/**
 * 业委会选举平台样式文件
 * 支持响应式设计，兼容移动端和PC端
 */

/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1890ff;
    --primary-dark: #096dd9;
    --success-color: #52c41a;
    --warning-color: #faad14;
    --error-color: #f5222d;
    --text-color: #333;
    --text-secondary: #666;
    --text-light: #999;
    --border-color: #d9d9d9;
    --bg-color: #f0f2f5;
    --bg-light: #fafafa;
    --white: #ffffff;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 6px 16px rgba(0, 0, 0, 0.16);
    --gold: #faad14;
    --silver: #8c8c8c;
    --bronze: #d4671e;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 
                 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--bg-color);
}

/* 容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 头部 */
.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: var(--shadow-md);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    color: var(--white);
}

.logo-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 5px;
}

.logo-subtitle {
    font-size: 12px;
    opacity: 0.9;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-name {
    color: var(--white);
    font-weight: 500;
}

/* 三公原则横幅 */
.principles-banner {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    padding: 40px 0;
    margin-bottom: 30px;
}

.principles-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
}

.principle-item {
    text-align: center;
    color: var(--white);
    flex: 1;
}

.principle-icon {
    font-size: 48px;
    margin-bottom: 15px;
    animation: float 3s ease-in-out infinite;
}

.principle-item:nth-child(2) .principle-icon {
    animation-delay: 0.5s;
}

.principle-item:nth-child(4) .principle-icon {
    animation-delay: 1s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.principle-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.principle-desc {
    font-size: 14px;
    opacity: 0.95;
}

.principle-divider {
    width: 1px;
    height: 80px;
    background: rgba(255, 255, 255, 0.3);
    margin: 0 20px;
}

/* 卡片 */
.card {
    background: var(--white);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--bg-color);
}

.card-icon {
    font-size: 24px;
}

.card-title {
    font-size: 18px;
    font-weight: 600;
    flex: 1;
}

.card-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.card-badge.official {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: var(--white);
}

.card-badge.info {
    background: linear-gradient(135deg, #ffc837 0%, #ff8008 100%);
    color: var(--white);
}

.card-badge.live {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: var(--white);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* 通知公告 */
.notice-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.notice-card .card-header {
    border-bottom-color: rgba(255, 255, 255, 0.2);
}

.notice-card .card-icon,
.notice-card .card-title {
    color: var(--white);
}

.notice-content {
    white-space: pre-wrap;
    line-height: 1.8;
    font-size: 15px;
}

/* 温馨提示 */
.tips-card {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.tips-card .card-header {
    border-bottom-color: rgba(255, 255, 255, 0.2);
}

.tips-card .card-icon,
.tips-card .card-title {
    color: var(--white);
}

/* 按钮区域 */
.action-buttons {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.action-buttons-top {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    margin-bottom: 0;
}

.action-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 16px;
    padding: 30px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 20px;
    color: var(--white);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s;
}

.action-btn:hover::before {
    left: 100%;
}

.action-btn:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: var(--shadow-lg);
}

.action-btn-icon {
    font-size: 56px;
    flex-shrink: 0;
}

.action-btn-content {
    flex: 1;
    text-align: left;
}

.action-btn-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 5px;
}

.action-btn-desc {
    font-size: 14px;
    opacity: 0.9;
}

.action-btn-arrow {
    font-size: 32px;
    font-weight: bold;
    flex-shrink: 0;
    transition: transform 0.3s;
}

.action-btn:hover .action-btn-arrow {
    transform: translateX(5px);
}

/* 表单 */
.form-container {
    max-width: 500px;
    margin: 40px auto;
}

.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
    font-weight: 500;
    color: var(--text-color);
}

.label-icon {
    font-size: 16px;
}

.form-label .required {
    color: var(--error-color);
    margin-left: 4px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: var(--white);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(24, 144, 255, 0.1);
    transform: translateY(-2px);
}

.form-input:hover {
    border-color: var(--primary-color);
}

.form-input.error {
    border-color: var(--error-color);
}

.error-message {
    color: var(--error-color);
    font-size: 12px;
    margin-top: 8px;
    display: none;
    animation: slideDown 0.3s ease;
}

.error-message.show {
    display: block;
}

textarea.form-input {
    min-height: 120px;
    resize: vertical;
    font-family: inherit;
}

/* 登录注册页面 */
.auth-container {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.auth-card {
    width: 100%;
    max-width: 480px;
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    padding: 40px;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-header {
    text-align: center;
    margin-bottom: 35px;
}

.auth-icon {
    font-size: 64px;
    margin-bottom: 15px;
    animation: float 3s ease-in-out infinite;
}

.auth-title {
    font-size: 28px;
    font-weight: bold;
    color: var(--text-color);
    margin-bottom: 10px;
}

.auth-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    letter-spacing: 2px;
}

.auth-form {
    margin-bottom: 25px;
}

.auth-footer {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.auth-footer p {
    color: var(--text-secondary);
    font-size: 14px;
}

.auth-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.auth-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.auth-notice {
    display: flex;
    gap: 12px;
    padding: 15px;
    background: linear-gradient(135deg, #e3f2fd 0%, #e8eaf6 100%);
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
}

.notice-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.notice-text {
    flex: 1;
}

.notice-text p {
    margin: 5px 0;
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* 个人中心 - 表单分区 */
.form-section {
    margin-bottom: 35px;
    padding: 25px;
    background: var(--bg-light);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary-color);
}

.section-icon {
    font-size: 22px;
}

.section-desc {
    padding: 12px 16px;
    background: linear-gradient(135deg, #e3f2fd 0%, #e8eaf6 100%);
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid var(--primary-color);
}

.section-desc p {
    margin: 5px 0;
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.field-hint {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 6px;
}

.form-actions {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 2px solid var(--border-color);
}

/* 审核状态横幅 */
.status-banner {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 25px;
    margin-bottom: 25px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.status-banner.pending {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    border-left: 5px solid var(--warning-color);
}

.status-banner.approved {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border-left: 5px solid var(--success-color);
}

.status-banner.rejected {
    background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
    border-left: 5px solid var(--error-color);
}

.status-icon {
    font-size: 48px;
    flex-shrink: 0;
}

.status-content {
    flex: 1;
}

.status-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 6px;
}

.status-desc {
    font-size: 14px;
    color: var(--text-secondary);
}

/* 文件上传 */
.upload-area {
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--white);
}

.upload-area:hover {
    border-color: var(--primary-color);
    background: rgba(24, 144, 255, 0.05);
    transform: translateY(-2px);
}

.upload-area.has-file {
    border-color: var(--success-color);
    background: rgba(82, 196, 26, 0.05);
}

.upload-icon {
    font-size: 56px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.upload-text {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 6px;
}

.upload-hint {
    font-size: 12px;
    color: var(--text-light);
}

.upload-preview {
    margin-top: 15px;
    position: relative;
}

.upload-preview img {
    max-width: 100%;
    max-height: 250px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.upload-delete {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--error-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    cursor: pointer;
    font-size: 18px;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

.upload-delete:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-md);
}

/* 房产列表 */
.property-list {
    margin-top: 20px;
}

.property-item {
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    position: relative;
    background: var(--white);
    transition: all 0.3s ease;
}

.property-item:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow);
}

.property-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.property-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 600;
}

.property-number {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
}

.property-delete {
    background: var(--error-color);
    color: var(--white);
    border: none;
    border-radius: 8px;
    padding: 6px 16px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s;
}

.property-delete:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(245, 34, 45, 0.3);
}

.property-stats {
    display: flex;
    gap: 20px;
    margin-top: 15px;
}

.property-stat {
    flex: 1;
    padding: 12px;
    background: var(--bg-light);
    border-radius: 8px;
    text-align: center;
}

.property-stat-label {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.property-stat-value {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
}

/* 按钮 */
.btn {
    padding: 12px 32px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:active::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-vote {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: var(--white);
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(72, 187, 120, 0.3);
    transition: all 0.3s;
}

.btn-vote:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(72, 187, 120, 0.4);
}

.btn-vote:active {
    transform: translateY(0);
}

.btn-light {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-light:hover {
    background: rgba(255, 255, 255, 0.3);
}

.btn-success {
    background: var(--success-color);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(82, 196, 26, 0.3);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(82, 196, 26, 0.4);
}

.btn-danger {
    background: var(--error-color);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(245, 34, 45, 0.3);
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(245, 34, 45, 0.4);
}

.btn-block {
    width: 100%;
    display: flex;
}

.btn-lg {
    padding: 16px 40px;
    font-size: 16px;
}

.btn-icon {
    font-size: 18px;
    font-weight: bold;
    transition: transform 0.3s;
}

.btn:hover .btn-icon {
    transform: translateX(4px);
}

.btn-add {
    background: var(--white);
    border: 2px dashed var(--primary-color);
    color: var(--primary-color);
}

.btn-add:hover {
    background: var(--primary-color);
    color: var(--white);
    border-style: solid;
}

/* 投票页面 */
.vote-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 25px;
    color: var(--white);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 25px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.vote-banner-icon {
    font-size: 72px;
    flex-shrink: 0;
    animation: float 3s ease-in-out infinite;
}

.vote-banner-content {
    flex: 1;
}

.vote-banner-title {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 10px;
}

.vote-banner-votes {
    margin-bottom: 10px;
}

.vote-count {
    font-size: 56px;
    font-weight: bold;
    line-height: 1;
}

.vote-unit {
    font-size: 24px;
    margin-left: 8px;
}

.vote-banner-desc {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 12px;
}

.vote-remaining {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

.vote-remaining span {
    font-size: 18px;
    font-weight: bold;
}

/* 投票原则 */
.vote-principles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 25px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.vote-principle-item {
    background: var(--white);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.vote-principle-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.principle-badge {
    font-size: 48px;
    margin-bottom: 12px;
}

.principle-text {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-color);
    line-height: 1.6;
}

/* 已投票横幅 */
.voted-banner {
    background: linear-gradient(135deg, #52c41a 0%, #73d13d 100%);
    border-radius: 16px;
    padding: 25px 30px;
    margin-bottom: 25px;
    color: var(--white);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 20px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.voted-icon {
    font-size: 64px;
    flex-shrink: 0;
}

.voted-content {
    flex: 1;
}

.voted-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 8px;
}

.voted-desc {
    font-size: 15px;
    opacity: 0.95;
}

/* 投票操作区 */
.vote-actions {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 2px solid var(--border-color);
}

.vote-summary {
    display: flex;
    justify-content: space-around;
    padding: 20px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 12px;
    margin-bottom: 25px;
}

.summary-item {
    text-align: center;
}

.summary-label {
    font-size: 14px;
    color: var(--text-secondary);
    display: block;
    margin-bottom: 8px;
}

.summary-value {
    font-size: 32px;
    font-weight: bold;
    color: var(--primary-color);
}

.summary-value.highlight {
    color: var(--error-color);
}

.vote-notice {
    text-align: center;
    margin-top: 20px;
    padding: 12px;
    background: rgba(250, 173, 20, 0.1);
    border-radius: 8px;
    color: var(--warning-color);
}

.vote-notice p {
    margin: 0;
    font-size: 13px;
}

/* 候选人列表 */
.candidate-list {
    display: grid;
    gap: 20px;
}

.candidate-item {
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
    background: var(--white);
}

.candidate-item:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.candidate-item.selected {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    box-shadow: var(--shadow);
}

.candidate-number {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    flex-shrink: 0;
    box-shadow: var(--shadow);
}

.candidate-info {
    flex: 1;
}

.candidate-name {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-color);
}

.candidate-intro {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 14px;
}

.candidate-current-votes {
    margin-top: 10px;
    padding: 8px 12px;
    background: var(--bg-light);
    border-radius: 8px;
    display: inline-block;
}

.candidate-current-votes .label {
    font-size: 12px;
    color: var(--text-secondary);
}

.candidate-current-votes .value {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-color);
    margin-left: 6px;
}

.candidate-vote-control {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.vote-input-group {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-light);
    padding: 8px 12px;
    border-radius: 12px;
}

.vote-input-label {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

.vote-input {
    width: 100px;
    text-align: center;
    padding: 10px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    background: var(--white);
    transition: all 0.3s;
}

.vote-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* 统计数据区 */
.ranking-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 25px;
    padding: 20px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 12px;
}

.stat-item {
    text-align: center;
}

.stat-label {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.stat-value {
    font-size: 28px;
    font-weight: bold;
    color: var(--primary-color);
}

.stat-divider {
    width: 1px;
    background: rgba(0, 0, 0, 0.1);
}

/* 排行榜 */
.ranking-item {
    display: flex;
    align-items: center;
    padding: 20px;
    margin-bottom: 15px;
    background: var(--bg-light);
    border-radius: 12px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.ranking-item:hover {
    border-color: var(--primary-color);
    background: var(--white);
    transform: translateX(5px);
    box-shadow: var(--shadow);
}

.ranking-medal {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: bold;
    margin-right: 20px;
    flex-shrink: 0;
    box-shadow: var(--shadow);
}

.ranking-medal.top1 {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
}

.ranking-medal.top2 {
    background: linear-gradient(135deg, #C0C0C0, #808080);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(192, 192, 192, 0.4);
}

.ranking-medal.top3 {
    background: linear-gradient(135deg, #CD7F32, #8B4513);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(205, 127, 50, 0.4);
}

.ranking-medal.other {
    background: var(--bg-color);
    color: var(--text-secondary);
    font-size: 20px;
}

.ranking-info {
    flex: 1;
}

.ranking-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-color);
}

.ranking-desc {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 10px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ranking-progress {
    display: flex;
    align-items: center;
    gap: 10px;
}

.progress-bar {
    flex: 1;
    height: 8px;
    background: var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 4px;
    transition: width 0.6s ease;
}

.progress-rate {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-color);
    min-width: 45px;
    text-align: right;
}

.ranking-votes {
    text-align: center;
    padding: 12px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    color: var(--white);
    flex-shrink: 0;
}

.votes-number {
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
    margin-bottom: 5px;
}

.votes-label {
    font-size: 12px;
    opacity: 0.9;
}

/* 统计数据 */
.statistics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.stat-card {
    background: var(--white);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    box-shadow: var(--shadow);
}

.stat-value {
    font-size: 32px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.stat-label {
    color: var(--text-secondary);
}

/* 表格 */
.table-container {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
}

th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

th {
    background: var(--bg-color);
    font-weight: 600;
}

tr:hover {
    background: rgba(24, 144, 255, 0.05);
}

/* 徽章 */
.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.badge-success {
    background: #f6ffed;
    color: var(--success-color);
    border: 1px solid #b7eb8f;
}

.badge-warning {
    background: #fffbe6;
    color: var(--warning-color);
    border: 1px solid #ffe58f;
}

.badge-danger {
    background: #fff1f0;
    color: var(--error-color);
    border: 1px solid #ffccc7;
}

/* 加载动画 */
.loading {
    text-align: center;
    padding: 40px;
}

.loading-spinner {
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 消息提示 */
.message {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 15px 20px;
    border-radius: 4px;
    box-shadow: var(--shadow-lg);
    z-index: 9999;
    animation: slideDown 0.3s ease;
    min-width: 300px;
    text-align: center;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.message-success {
    background: var(--success-color);
    color: var(--white);
}

.message-error {
    background: var(--error-color);
    color: var(--white);
}

.message-warning {
    background: var(--warning-color);
    color: var(--white);
}

.message-info {
    background: var(--primary-color);
    color: var(--white);
}

/* 选举进程 */
.process-card {
    background: var(--white);
}

.process-timeline {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.process-step {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    border-radius: 12px;
    background: var(--bg-light);
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
}

.process-step::before {
    content: '';
    position: absolute;
    left: 31px;
    top: 70px;
    width: 2px;
    height: calc(100% + 20px);
    background: var(--border-color);
}

.process-step:last-child::before {
    display: none;
}

.process-step.completed {
    border-color: var(--success-color);
    background: rgba(82, 196, 26, 0.05);
}

.process-step.completed .process-number {
    background: var(--success-color);
}

.process-step.active {
    border-color: var(--primary-color);
    background: rgba(24, 144, 255, 0.05);
    box-shadow: var(--shadow-md);
}

.process-step.active .process-number {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    animation: pulse-border 2s ease-in-out infinite;
}

@keyframes pulse-border {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.7);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(102, 126, 234, 0);
    }
}

.process-number {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--border-color);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    flex-shrink: 0;
}

.process-info {
    flex: 1;
}

.process-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--text-color);
}

.process-desc {
    font-size: 13px;
    color: var(--text-secondary);
}

/* 页脚 */
.footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: var(--white);
    padding: 30px 0;
    margin-top: 40px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-info p {
    margin: 5px 0;
    opacity: 0.9;
}

.footer-principles {
    display: flex;
    gap: 15px;
}

.footer-badge {
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    font-weight: 600;
    font-size: 15px;
    backdrop-filter: blur(10px);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }

    .header {
        padding: 15px 0;
    }

    .header-content {
        flex-direction: row;
        justify-content: space-between;
        padding: 0 15px;
        gap: 10px;
    }

    .logo-title {
        font-size: 16px;
    }

    .logo-subtitle {
        font-size: 10px;
    }

    .user-info {
        gap: 8px;
    }

    .user-name {
        display: none;
    }

    .btn {
        padding: 8px 16px;
        font-size: 13px;
    }

    .principles-banner {
        padding: 30px 0;
    }

    .principle-item {
        padding: 0 10px;
    }

    .principle-icon {
        font-size: 40px;
    }

    .principle-title {
        font-size: 16px;
    }

    .principle-desc {
        font-size: 12px;
    }

    .ranking-stats {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .stat-divider {
        width: 100%;
        height: 1px;
    }

    .action-buttons-top {
        padding: 15px;
    }

    .action-btn {
        flex-direction: row;
        text-align: left;
        padding: 20px 15px;
        gap: 15px;
    }

    .action-btn-icon {
        font-size: 42px;
    }

    .action-btn-content {
        text-align: left;
    }

    .action-btn-title {
        font-size: 16px;
    }

    .action-btn-desc {
        font-size: 12px;
    }

    .action-btn-arrow {
        font-size: 24px;
    }

    .action-btn:hover .action-btn-arrow {
        transform: translateX(3px);
    }

    .ranking-item {
        flex-wrap: wrap;
        padding: 15px;
    }

    .ranking-medal {
        width: 48px;
        height: 48px;
        font-size: 24px;
        margin-right: 12px;
    }

    .ranking-info {
        flex: 1;
        min-width: 200px;
    }

    .ranking-name {
        font-size: 16px;
    }

    .ranking-desc {
        font-size: 12px;
    }

    .ranking-votes {
        margin-top: 10px;
        width: 100%;
        padding: 10px 15px;
    }

    .votes-number {
        font-size: 20px;
    }

    .process-step {
        flex-direction: column;
        align-items: flex-start;
    }

    .process-step::before {
        left: 21px;
        top: 64px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .form-container {
        padding: 0 10px;
    }

    .auth-card {
        padding: 25px 20px;
    }

    .auth-title {
        font-size: 24px;
    }

    .auth-icon {
        font-size: 52px;
    }

    .form-section {
        padding: 20px 15px;
    }

    .section-title {
        font-size: 16px;
    }

    .statistics {
        grid-template-columns: 1fr;
    }

    .card {
        padding: 20px 15px;
        margin-bottom: 20px;
    }

    .card-header {
        margin-bottom: 15px;
    }

    .card-title {
        font-size: 16px;
    }

    .notice-content {
        font-size: 14px;
    }

    .candidate-item {
        flex-direction: column;
        padding: 20px 15px;
        gap: 15px;
    }

    .candidate-number {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }

    .candidate-name {
        font-size: 18px;
    }

    .candidate-intro {
        font-size: 13px;
    }

    .candidate-vote-control {
        width: 100%;
    }

    .vote-input-group {
        width: 100%;
        justify-content: space-between;
    }

    .vote-input {
        width: 80px;
    }

    /* 投票页面移动端优化 */
    .vote-banner {
        flex-direction: column;
        padding: 20px 15px;
        gap: 15px;
        text-align: center;
    }

    .vote-banner-icon {
        font-size: 56px;
    }

    .vote-banner-content {
        text-align: center;
    }

    .vote-count {
        font-size: 42px;
    }

    .vote-unit {
        font-size: 20px;
    }

    .vote-banner-desc {
        font-size: 13px;
    }

    .vote-principles {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .vote-principle-item {
        padding: 15px;
    }

    .principle-badge {
        font-size: 40px;
    }

    .vote-summary {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }

    .summary-value {
        font-size: 28px;
    }

    .property-item {
        padding: 15px;
    }

    .property-delete {
        padding: 5px 12px;
        font-size: 12px;
    }

    .upload-area {
        padding: 20px 15px;
    }

    .upload-icon {
        font-size: 48px;
    }

    .upload-text {
        font-size: 14px;
    }

    .upload-hint {
        font-size: 11px;
    }

    .property-stats {
        flex-direction: column;
        gap: 10px;
    }

    table {
        font-size: 12px;
    }

    th, td {
        padding: 8px;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 13px;
    }

    .container {
        padding: 10px;
    }

    .header-content {
        padding: 0 10px;
    }

    .logo-title {
        font-size: 14px;
    }

    .logo-subtitle {
        font-size: 9px;
    }

    .btn {
        padding: 6px 12px;
        font-size: 12px;
    }

    .action-buttons-top {
        padding: 10px;
    }

    .action-btn {
        padding: 15px 12px;
        gap: 12px;
    }

    .action-btn-icon {
        font-size: 36px;
    }

    .action-btn-title {
        font-size: 15px;
    }

    .action-btn-desc {
        font-size: 11px;
    }

    .action-btn-arrow {
        font-size: 20px;
    }

    .card {
        padding: 15px 12px;
        border-radius: 10px;
    }

    .card-title {
        font-size: 15px;
    }

    .card-icon {
        font-size: 20px;
    }

    .principles-banner {
        padding: 25px 0;
    }

    .principle-item {
        padding: 0 8px;
    }

    .principle-icon {
        font-size: 32px;
    }

    .principle-title {
        font-size: 13px;
    }

    .principle-desc {
        font-size: 10px;
    }

    .ranking-stats {
        grid-template-columns: 1fr;
        padding: 15px;
    }

    .stat-value {
        font-size: 24px;
    }

    .stat-label {
        font-size: 12px;
    }

    .ranking-item {
        padding: 12px;
    }

    .ranking-medal {
        width: 40px;
        height: 40px;
        font-size: 20px;
        margin-right: 10px;
    }

    .ranking-name {
        font-size: 15px;
    }

    .ranking-desc {
        font-size: 11px;
    }

    .votes-number {
        font-size: 18px;
    }

    .process-step {
        padding: 15px 12px;
    }

    .process-number {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    .process-title {
        font-size: 14px;
    }

    .process-desc {
        font-size: 12px;
    }

    .process-step::before {
        left: 17px;
    }

    .footer {
        padding: 20px 0;
    }

    .footer-badge {
        padding: 6px 15px;
        font-size: 13px;
    }

    /* 投票页面小屏幕优化 */
    .vote-banner {
        padding: 15px 12px;
    }

    .vote-banner-icon {
        font-size: 48px;
    }

    .vote-count {
        font-size: 36px;
    }

    .vote-unit {
        font-size: 18px;
    }

    .vote-banner-title {
        font-size: 14px;
    }

    .vote-banner-desc {
        font-size: 12px;
    }

    .vote-remaining {
        padding: 6px 12px;
        font-size: 13px;
    }

    .vote-remaining span {
        font-size: 16px;
    }

    .candidate-number {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .candidate-name {
        font-size: 16px;
    }

    .vote-input {
        width: 70px;
        padding: 8px;
        font-size: 14px;
    }

    .summary-value {
        font-size: 24px;
    }

    .summary-label {
        font-size: 13px;
    }

    .auth-card {
        padding: 20px 15px;
    }

    .auth-title {
        font-size: 22px;
    }

    .form-input {
        padding: 10px 14px;
        font-size: 13px;
    }

    .property-item {
        padding: 12px;
    }

    .property-header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

    .property-delete {
        padding: 4px 10px;
        font-size: 11px;
    }

    .property-stats {
        flex-direction: column;
        gap: 8px;
    }

    .property-stat {
        padding: 10px;
    }

    .property-stat-value {
        font-size: 16px;
    }

    .upload-area {
        padding: 15px 12px;
    }

    .upload-icon {
        font-size: 40px;
    }

    .upload-text {
        font-size: 13px;
    }

    .upload-hint {
        font-size: 10px;
    }

    .upload-preview img {
        max-height: 200px;
    }

    .upload-delete {
        width: 30px;
        height: 30px;
        font-size: 16px;
    }

    .form-label {
        font-size: 13px;
    }

    .label-icon {
        font-size: 14px;
    }

    .field-hint {
        font-size: 11px;
    }

    .status-banner {
        flex-direction: column;
        padding: 15px;
        gap: 12px;
        text-align: center;
    }

    .status-icon {
        font-size: 40px;
    }

    .status-title {
        font-size: 16px;
    }

    .status-desc {
        font-size: 13px;
    }

    .btn-block {
        padding: 12px 24px;
    }
}

/* 管理员界面 */
.admin-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 200px;
    background: #001529;
    color: var(--white);
    padding: 20px 0;
}

.admin-content {
    margin-left: 220px;
    padding: 20px;
}

.admin-menu-item {
    padding: 15px 20px;
    cursor: pointer;
    transition: all 0.3s;
    color: rgba(255, 255, 255, 0.7);
}

.admin-menu-item:hover,
.admin-menu-item.active {
    background: var(--primary-color);
    color: var(--white);
}

@media (max-width: 768px) {
    .admin-sidebar {
        width: 100%;
        position: relative;
        height: auto;
    }

    .admin-content {
        margin-left: 0;
    }
}

