* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #4a4a4a;
    --secondary-color: #2d2d2d;
    --accent-color: #666;
    --text-color: #e0e0e0;
    --text-muted: #999;
    --bg-dark: #1a1a1a;
    --bg-card: #242424;
    --border-color: #3a3a3a;
}

body {
    font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: linear-gradient(135deg, var(--bg-dark) 0%, #222 100%);
    color: var(--text-color);
    min-height: 100vh;
    line-height: 1.6;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    padding-bottom: 160px;
}

header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px 0;
}

.header-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 12px;
}

.logo-icon {
    font-size: 48px;
    color: #888;
    font-weight: bold;
}

.logo-text h1 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: #fff;
}

.subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 400;
}

.description {
    font-size: 1rem;
    color: var(--text-muted);
    margin-top: 8px;
}

.card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.card-header h2 {
    font-size: 1.4rem;
    color: #fff;
}

.theory-badge {
    background: linear-gradient(135deg, #555 0%, #333 100%);
    color: #fff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
}

.agreement-version, .result-version {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.intro-content p {
    font-size: 1rem;
    margin-bottom: 20px;
    color: var(--text-color);
}

.theory-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.theory-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
}

.theory-icon {
    font-size: 0.8rem;
    font-weight: 600;
    color: #888;
    background: rgba(255, 255, 255, 0.08);
    padding: 4px 10px;
    border-radius: 15px;
}

.theory-item span:last-child {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.rating-info h3, .dimensions-preview h3 {
    font-size: 1.1rem;
    margin-bottom: 12px;
    color: #fff;
}

.rating-info p {
    font-size: 0.95rem;
    color: var(--text-color);
    margin-bottom: 16px;
}

.rating-scale {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    margin-bottom: 12px;
}

.rating-scale li {
    text-align: center;
    padding: 12px 8px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    transition: all 0.2s ease;
}

.rating-scale li:hover {
    background: rgba(255, 255, 255, 0.08);
}

.rating-scale .rating-number {
    display: block;
    font-size: 1.2rem;
    font-weight: 600;
    color: #888;
    margin-bottom: 4px;
}

.rating-scale .rating-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.reverse-note {
    font-size: 0.85rem;
    color: #777;
    font-style: italic;
}

.dimensions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
}

.dimension-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
}

.dimension-letter {
    font-size: 1rem;
    font-weight: 600;
    color: #666;
    background: rgba(255, 255, 255, 0.08);
    padding: 4px 12px;
    border-radius: 50%;
}

.dimension-name {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.btn {
    display: inline-flex;
    padding: 14px 28px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
    justify-content: center;
    align-items: center;
}

.card .btn-primary {
    margin: 20px auto 0;
    display: flex;
}

.btn-primary {
    background: linear-gradient(135deg, #555 0%, #333 100%);
    color: #fff;
}

.btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #666 0%, #444 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.12);
}

.btn-group {
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

.btn-group .btn {
    flex: 0 0 auto;
    min-width: 120px;
    height: 48px;
    padding: 0 24px;
}

.section {
    display: none;
}

.section.active {
    display: block;
}

.agreement-card {
    max-height: 85vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.agreement-content {
    flex: 1;
    overflow-y: auto;
    padding-right: 8px;
}

.agreement-content::-webkit-scrollbar {
    width: 6px;
}

.agreement-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.agreement-content::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 3px;
}

.agreement-title {
    font-weight: 600;
    color: #fff;
    margin: 20px 0 10px;
    font-size: 1rem;
}

.agreement-content p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.8;
}

.agreement-content strong {
    color: #ccc;
}

.agreement-actions {
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 20px;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 4px;
    transform: scale(1.2);
    accent-color: #555;
}

.checkbox-label span {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.progress-bar {
    position: relative;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    margin-bottom: 24px;
    overflow: visible;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #555 0%, #777 100%);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.progress-text {
    position: absolute;
    right: 0;
    top: -28px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.current-number {
    font-weight: 600;
    color: #888;
    font-size: 1.1rem;
}

.question-card {
    position: relative;
}

.question-header {
    margin-bottom: 20px;
}

.dimension-tag {
    background: linear-gradient(135deg, #444 0%, #222 100%);
    color: white !important;
    padding: 8px 18px;
    border-radius: 25px;
    font-size: 0.85rem;
    display: inline-block;
    min-width: 120px;
    text-align: center;
}

.question-card h3 {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #fff;
    margin-bottom: 28px;
    font-weight: 500;
}

.rating-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

@media (min-width: 600px) {
    .rating-options {
        grid-template-columns: repeat(5, 1fr);
    }
}

.rating-btn {
    padding: 16px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-color);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.rating-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #555;
}

.rating-btn.selected {
    background: linear-gradient(135deg, #555 0%, #333 100%);
    border-color: #666;
    color: #fff;
}

.result-card {
    position: relative;
}

.score-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-bottom: 28px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
}

.score-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #555 0%, #333 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.score-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}

.score-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.score-info {
    text-align: left;
}

.score-range {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 8px;
}

.result-level {
    font-size: 1.4rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 4px;
}

.level-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.result-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.metaphor, .keywords {
    font-size: 0.9rem;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.03);
    padding: 8px 16px;
    border-radius: 20px;
}

.result-section {
    margin-bottom: 24px;
}

.result-section h3 {
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.result-section h3::before {
    content: '';
    width: 4px;
    height: 18px;
    background: #555;
    border-radius: 2px;
}

.result-section p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.8;
}

.result-section ul {
    list-style: none;
}

.result-section li {
    font-size: 0.95rem;
    color: var(--text-muted);
    padding: 10px 0 10px 24px;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.result-section li:last-child {
    border-bottom: none;
}

.result-section li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #666;
    font-size: 1.2rem;
}

.risk-section {
    background: rgba(239, 68, 68, 0.08);
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid #ef4444;
}

.risk-section h3 {
    color: #ef4444;
}

.suggestion-section {
    background: rgba(34, 197, 94, 0.08);
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid #22c55e;
}

.suggestion-section h3 {
    color: #22c55e;
}

.warnings-section {
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}

.warning-card {
    background: rgba(251, 191, 36, 0.08);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 16px;
    border-left: 4px solid #fbbf24;
}

.warning-card:last-child {
    margin-bottom: 0;
}

.warning-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.dimension-badge {
    font-size: 0.8rem;
    font-weight: 600;
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.15);
    padding: 4px 12px;
    border-radius: 15px;
}

.warning-score {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.warning-card h4 {
    font-size: 1rem;
    color: #fff;
    margin-bottom: 8px;
}

.warning-text {
    font-size: 0.9rem;
    color: #fbbf24;
    margin-bottom: 10px;
}

.suggestion-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.05);
    padding: 12px;
    border-radius: 8px;
}

.result-notice {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.result-notice p {
    font-size: 0.85rem;
    color: #666;
    font-style: italic;
}

.result-actions {
    margin-top: 28px;
}

.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(26, 26, 26, 0.95);
    border-top: 1px solid var(--border-color);
    padding: 16px 20px;
    backdrop-filter: blur(10px);
    z-index: 100;
}

.footer-content {
    text-align: center;
    margin-bottom: 12px;
}

.footer-content p {
    font-size: 0.8rem;
    color: #666;
}

.footer-info {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-beian {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-beian span {
    font-size: 0.75rem;
    color: #666;
}

.beian-icon {
    height: 16px;
    width: auto;
}

.footer-team {
    font-size: 0.8rem;
    color: #888;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-team:hover {
    color: #aaa;
    text-decoration: underline;
}

@media (max-width: 600px) {
    .container {
        padding: 15px;
        padding-bottom: 180px;
    }
    
    .card {
        padding: 20px;
    }
    
    .header-logo {
        flex-direction: column;
        gap: 8px;
    }
    
    .logo-text h1 {
        font-size: 1.4rem;
    }
    
    .description {
        font-size: 0.9rem;
    }
    
    .theory-list {
        grid-template-columns: 1fr;
    }
    
    .rating-scale {
        grid-template-columns: repeat(5, 1fr);
    }
    
    .rating-scale li {
        padding: 10px 4px;
    }
    
    .rating-scale .rating-label {
        font-size: 0.65rem;
    }
    
    .dimensions-grid {
        grid-template-columns: 1fr;
    }
    
    .score-display {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .score-info {
        text-align: center;
    }
    
    .result-meta {
        justify-content: center;
    }
    
    .footer-info {
        flex-direction: column;
        gap: 12px;
    }
    
    .footer-beian {
        flex-wrap: wrap;
        justify-content: center;
    }
}
