/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fafafa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
    color: #2563eb;
}

h2 {
    font-size: 2rem;
    color: #1e40af;
}

h3 {
    font-size: 1.5rem;
    color: #374151;
}

/* Section Title Styles for VADPRS */
.question-section {
    font-size: 1.55rem;
    font-weight: 700;
    /*color: #1e40af;*/
    color: black;
    text-align: center;
    margin-bottom: 1.5rem;
    /*margin-top: 0.2rem;*/
    padding: 5px 0;
    border-bottom: 1px solid #e5e7eb;
}

p {
    margin-bottom: 1rem;
}

a {
    color: #2563eb;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #1d4ed8;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background-color: #2563eb;
    color: white;
}

.btn-primary:hover {
    background-color: #1d4ed8;
    transform: translateY(-1px);
}

.btn-primary:disabled {
    background-color: #9ca3af;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background-color: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
}

.btn-secondary:hover {
    background-color: #e5e7eb;
}

.btn-secondary:disabled {
    background-color: #f9fafb;
    color: #9ca3af;
    cursor: not-allowed;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e5e7eb;
    z-index: 1000;
    padding: 1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #1f2937;
}

.logo-img {
    width: 32px;
    height: 32px;
    margin-right: 12px;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2563eb;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: #374151;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background-color: #f3f4f6;
    color: #2563eb;
}

.dropdown {
    position: relative;
}

.dropdown-toggle::after {
    content: ' ▾';
    font-size: 0.8rem;
    margin-left: 4px;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    min-width: 280px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%)  translateY(0);
}

.dropdown-item {
    display: block;
    padding: 12px 16px;
    color: #374151;
    border-bottom: 1px solid #f3f4f6;
    transition: background-color 0.3s ease;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background-color: #f8fafc;
    color: #2563eb;
}

/* Main Content Layout */
.main-content {
    display: block;
    padding-left: 200px;
    padding-right: 200px;
    margin-top: 80px;
    min-height: calc(100vh - 80px);
}

.content-area {
    max-width: 100%;
}

/* Ad Spaces - Neutralized */
.ad-space,
.ad-space.ad-left,
.ad-space.ad-right {
    display: none;
}

.ad-placeholder {
    display: none;
}

/* Hero Section */
.hero-section {
    padding: 3rem 0;
    text-align: center;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 16px;
    margin-bottom: 0;
}

.hero-section-blog {
    padding: 3rem 0;
    text-align: center;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 16px;
    margin-bottom: 20px;
}


.article-icon {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  opacity: 0.4;
  transition: opacity 0.2s ease;
}

.hero-description {
    font-size: 1.125rem;
    color: #6b7280;
    max-width: 800px;
    margin: 0 auto;
}

/* Info Grid */
.adhd-info-section {
    margin-bottom: 3rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.info-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
}

.info-card h3 {
    color: #1f2937;
    margin-bottom: 1rem;
}

.info-card ul {
    list-style: none;
    padding-left: 0;
}

.info-card li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f3f4f6;
}

.info-card li:last-child {
    border-bottom: none;
}

/* Test Section */
.test-section {
    background: white;
    border-radius: 16px;
    padding: 3rem;
    margin-bottom: 3rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
}

.test-header {
    text-align: center;
    margin-bottom: 3rem;
}

.test-container {
    max-width: 800px;
    margin: 0 auto;
}

.question-container {
    margin-bottom: 2rem;
}

.question {
    background: #f8fafc;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    margin-bottom: 1.5rem;
}

.question h3 {
    color: #1e293b;
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.option {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.option:hover {
    border-color: #3b82f6;
    background-color: #f0f9ff;
}

.option.selected {
    border-color: #2563eb;
    background-color: #dbeafe;
}

.option input[type="radio"] {
    margin-right: 12px;
    width: 18px;
    height: 18px;
    accent-color: #2563eb;
}

.option label {
    cursor: pointer;
    font-weight: 500;
    color: #374151;
}

/* Progress Bar */
.progress-container {
    margin: 2rem 0;
    text-align: center;
}

.progress-bar {
    background: #e5e7eb;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

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

.progress-text {
    color: #6b7280;
    font-weight: 500;
}

/* Test Navigation */
.test-navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
    gap: 1rem;
}

/* 让 submit 按钮单独时也居中 */
#submit-btn {
    margin-left: 0 !important;
    margin-right: 0 !important;
}


/* Results Section */
.results-section {
    background: #f0fdf4;
    border: 2px solid #2563eb;
    border-radius: 16px;
    padding: 3rem;
    margin-top: 3rem;
    text-align: center;
}

.results-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.score-display {
    margin-top: 2rem;
}

.score-number {
    font-size: 4rem;
    font-weight: 700;
    color: #2563eb;
    margin-bottom: 1rem;
}

.score-interpretation {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.score-interpretation.low {
    color: #059669;
}

.score-interpretation.high {
    color: #dc2626;
}

/* Explanation Section */
.score-explanation-section,
.recommendations-section,
.references-section {
    margin-bottom: 3rem;
}

.explanation-grid,
.recommendations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.explanation-card,
.recommendation-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
}

.score-ranges {
    margin-top: 1.5rem;
}

.score-range {
    margin-bottom: 1.5rem;
    padding: 1rem;
    border-radius: 8px;
    background: #f8fafc;
}

.range-label {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.range-label.low {
    background: #dcfce7;
    color: #166534;
}

.range-label.high {
    background: #fee2e2;
    color: #991b1b;
}

.recommendation-content h4 {
    color: #1f2937;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.recommendation-content ul {
    list-style: disc;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.recommendation-content li {
    margin-bottom: 0.5rem;
}

/* References */
.references-list {
    margin-top: 2rem;
}

.reference-item {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    margin-bottom: 1rem;
}

.reference-item:last-child {
    margin-bottom: 0;
}

/* Footer */
.footer {
    background: #1f2937;
    color: #d1d5db;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: #f9fafb;
    margin-bottom: 1rem;
}

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

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #d1d5db;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #60a5fa;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 1rem;
    text-align: center;
    color: #9ca3af;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .main-content {
        padding-left: 100px;
        padding-right: 100px;
        margin-top: 80px;
    }
}

@media (max-width: 1024px) {
    .main-content {
        padding-left: 20px;
        padding-right: 20px;
        margin-top: 80px;
    }

    .ad-space {
        display: none;
    }

    .info-grid,
    .explanation-grid,
    .recommendations-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .main-content {
        padding-left: 10px;
        padding-right: 10px;
        margin-top: 80px;
    }

    .container {
        padding: 0 15px;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    .nav-container {
        padding: 0 15px;
    }

    .nav-menu {
        gap: 1rem;
    }

    .test-section {
        padding: 2rem 1.5rem;
    }

    .hero-section {
        padding: 2rem 0;
    }

    .options {
        gap: 0.5rem;
    }

    .option {
        padding: 0.75rem;
    }

    .test-navigation {
        flex-direction: column;
        gap: 1rem;
    }

    .test-navigation .btn {
        width: 100%;
    }

    .explanation-grid,
    .recommendations-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .info-card,
    .explanation-card,
    .recommendation-card {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding-left: 5px;
        padding-right: 5px;
        margin-top: 80px;
    }

    .container {
        padding: 0 10px;
    }

    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .logo-text {
        font-size: 1.25rem;
    }

    .nav-container {
        padding: 0 10px;
    }

    .nav-menu {
        gap: 0.5rem;
    }

    .nav-link {
        padding: 6px 12px;
        font-size: 0.9rem;
    }

    .dropdown-menu {
        min-width: 180px;
        left: -50px;
    }

    .test-section {
        padding: 1.5rem 1rem;
    }

    .hero-section {
        padding: 1.5rem 0;
    }

    .hero-description {
        font-size: 1rem;
    }

    .score-number {
        font-size: 3rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .info-card,
    .explanation-card,
    .recommendation-card {
        padding: 1rem;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for accessibility */
.btn:focus,
.option:focus,
.nav-link:focus {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .navbar,
    .ad-space,
    .test-navigation,
    .footer {
        display: none;
    }
    
    .main-content {
        grid-template-columns: 1fr;
        margin-top: 0;
    }
    
    .test-section,
    .hero-section {
        box-shadow: none;
        border: 1px solid #e5e7eb;
    }
}

/* Blog List Styles */
.blog-list-section {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.blog-list {
    max-width: 800px;
    margin: 0 auto;
}

.blog-item {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    margin-bottom: 0.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid #e5e7eb;
    background-color: #fafafa;
}

.blog-item:hover {
    background-color: #f3f4f6;
    border-color: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.blog-date {
    min-width: 160px;
    color: #6b7280;
    font-size: 0.9rem;
    font-weight: 500;
}

.blog-title {
    flex: 1;
    color: #1f2937;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
}

.blog-item:hover .blog-title {
    color: #2563eb;
}

.error-message {
    text-align: center;
    padding: 2rem;
    color: #dc2626;
    font-weight: 500;
}

/* Hero section description for blog page */
.hero-description {
    font-size: 1.1rem;
    color: #6b7280;
    max-width: 800px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .blog-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 0.4rem;
    }
    
    .blog-date {
        min-width: auto;
        margin-bottom: 0.5rem;
        font-size: 0.85rem;
    }
    
    .blog-title {
        font-size: 1rem;
    }
    
    .blog-list-section {
        padding: 1.5rem;
    }
}