/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

/* 政府红色党建风格主题色 */
:root {
    --primary-color: #C8252A;
    --primary-light: #E84747;
    --primary-dark: #A01D20;
    --gold-color: #FFD700;
    --text-primary: #333;
    --text-secondary: #666;
    --text-light: #999;
    --bg-color: #f5f5f5;
    --border-color: #e5e5e5;
}

/* 容器 */
.container {
    max-width: 750px;
    margin: 0 auto;
    background: #fff;
    min-height: 100vh;
}

/* 头部 */
.header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: #fff;
    padding: 16px;
    text-align: center;
    position: relative;
}

.header-title {
    font-size: 18px;
    font-weight: bold;
}

.header-back {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: #fff;
    text-decoration: none;
}

/* Logo区域 */
.logo-section {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: #fff;
}

.logo {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
}

.title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 8px;
}

.subtitle {
    font-size: 16px;
    opacity: 0.9;
}

/* 表单区域 */
.form-section {
    padding: 30px 20px;
}

.form-item {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-size: 14px;
}

.form-input {
    width: 100%;
    height: 44px;
    padding: 0 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 16px;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* 按钮 */
.btn {
    width: 100%;
    height: 44px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background: var(--primary-color);
    color: #fff;
}

.btn-primary:hover {
    background: var(--primary-light);
}

.btn-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.btn-secondary {
    background: #fff;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

/* 案例卡片 */
.case-card {
    background: #fff;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.case-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.case-no {
    font-size: 18px;
    font-weight: bold;
    color: var(--primary-color);
}

.case-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 8px;
}

.case-info {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

/* 投票控制器 */
.vote-control {
    display: flex;
    align-items: center;
    gap: 12px;
}

.vote-btn {
    width: 32px;
    height: 32px;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    background: #fff;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.vote-btn:active {
    background: #f5f5f5;
}

.vote-count {
    font-size: 18px;
    font-weight: bold;
    color: var(--primary-color);
    min-width: 20px;
    text-align: center;
}

/* 底部固定按钮 */
.footer-fixed {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    padding: 12px 16px;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
    z-index: 100;
}

/* 倒计时 */
.countdown {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 20px 0;
}

.countdown-item {
    background: var(--primary-color);
    color: #fff;
    padding: 8px 12px;
    border-radius: 4px;
    text-align: center;
}

.countdown-value {
    font-size: 24px;
    font-weight: bold;
}

.countdown-label {
    font-size: 12px;
}

/* 提示信息 */
.tips {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 4px;
    padding: 12px;
    margin: 16px 0;
    font-size: 14px;
    color: #856404;
}

/* 统计信息 */
.stats-bar {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: #fff;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 16px;
}

.stats-item {
    text-align: center;
}

.stats-value {
    font-size: 24px;
    font-weight: bold;
}

.stats-label {
    font-size: 14px;
    opacity: 0.9;
}
