/* ═══════════════════════════════════════════
   HIPDS - 医疗创新与实践发展学会
   主色: #1a4731 (深绿)  辅色: #b87333 (铜色)
   风格: 现代专业型
   ═══════════════════════════════════════════ */

/* ── Reset & Base ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-padding-top: 80px; }

:root {
    --primary: #1a4731;
    --primary-light: #2a6b4a;
    --primary-dark: #0f2d1f;
    --copper: #b87333;
    --copper-light: #d4945a;
    --copper-dark: #8f5a28;
    --white: #ffffff;
    --off-white: #f8f9fa;
    --light-gray: #e9ecef;
    --gray: #6c757d;
    --dark-gray: #343a40;
    --text: #212529;
    --text-light: #555;
    --shadow: 0 2px 15px rgba(0,0,0,0.08);
    --shadow-hover: 0 8px 30px rgba(0,0,0,0.12);
    --radius: 8px;
    --transition: all 0.3s ease;
}

html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text);
    background: var(--white);
}

a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--copper); }

img { max-width: 100%; height: auto; }

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

/* ── Navigation ── */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 15px 0;
    transition: var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: var(--primary);
    padding: 10px 0;
    box-shadow: 0 2px 20px rgba(0,0,0,0.15);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.navbar-brand img {
    height: 64px;
    width: auto;
}

.navbar-brand span {
    color: var(--white);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2px;
    align-items: center;
    flex-shrink: 0;
}

.nav-links > li { position: relative; }

.nav-links > li > a {
    color: rgba(255,255,255,0.9);
    padding: 7px 10px;
    border-radius: var(--radius);
    font-size: 14px;
    transition: var(--transition);
    display: block;
    white-space: nowrap;
}

.nav-links > li > a:hover,
.nav-links > li > a.active {
    color: var(--white);
    background: rgba(255,255,255,0.15);
}

/* Dropdown */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-hover);
    min-width: 200px;
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    list-style: none;
}

.nav-links > li:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    color: var(--text);
    font-size: 14px;
}

.dropdown-menu a:hover {
    background: var(--off-white);
    color: var(--primary);
}

/* Mobile menu */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
}

/* ── Hero / Banner ── */
.hero {
    position: relative;
    height: 85vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(26,71,49,0.85) 0%, rgba(15,45,31,0.75) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

.hero h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 2px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 20px;
    margin-bottom: 35px;
    opacity: 0.95;
    line-height: 1.6;
}

/* Page Banner (sub pages) */
.page-banner {
    position: relative;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.page-banner .hero-bg,
.page-banner .hero-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; }
.page-banner .hero-overlay { background: linear-gradient(135deg, rgba(26,71,49,0.8) 0%, rgba(15,45,31,0.7) 100%); }

/* page-banner-bg: used as child div with inline background-image */
.page-banner-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* page-banner-overlay: used in about.html */
.page-banner-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(26,71,49,0.8) 0%, rgba(15,45,31,0.7) 100%);
}

.page-banner-content {
    position: relative;
    z-index: 2;
}

.page-banner h1 {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: 2px;
}

.page-banner p {
    font-size: 18px;
    opacity: 0.9;
}

/* ── Breadcrumb ── */
.breadcrumb {
    padding: 15px 0;
    background: var(--off-white);
    border-bottom: 1px solid var(--light-gray);
    font-size: 14px;
}

.breadcrumb a { color: var(--gray); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { color: var(--primary); font-weight: 500; }

/* ── Buttons ── */
.btn {
    display: inline-block;
    padding: 14px 36px;
    border-radius: var(--radius);
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    text-align: center;
}

.btn-primary {
    background: var(--copper);
    color: var(--white);
    border-color: var(--copper);
}

.btn-primary:hover {
    background: var(--copper-dark);
    border-color: var(--copper-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(184,115,51,0.3);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary);
}

.btn-outline-dark {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline-dark:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-group { display: flex; gap: 15px; justify-content: center; flex-wrap: wrap; }

/* ── Sections ── */
.section {
    padding: 80px 0;
}

.section-alt {
    background: var(--off-white);
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 34px;
    color: var(--primary);
    margin-bottom: 15px;
    font-weight: 700;
}

.section-title p {
    font-size: 17px;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--copper);
    margin: 20px auto 0;
    border-radius: 2px;
}

.section-action { margin-top: 20px; text-align: center; }

/* ── Stats Bar ── */
.stats-bar {
    background: var(--primary);
    padding: 50px 0;
    color: var(--white);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    text-align: center;
}

.stat-item h3 {
    font-size: 36px;
    font-weight: 700;
    color: var(--copper-light);
    margin-bottom: 5px;
}

.stat-item p {
    font-size: 14px;
    opacity: 0.85;
}

/* ── Cards ── */
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 35px 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--light-gray);
    display: flex;
    flex-direction: column;
}
.card > p:last-of-type { flex: 1; }
.card > div:last-child { margin-top: auto; }

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 26px;
    color: var(--white);
}

.card h3 {
    font-size: 20px;
    color: var(--primary);
    margin-bottom: 12px;
}

.card p {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.7;
}

/* ── News / Announcement List ── */
.news-list { list-style: none; }

.news-item {
    padding: 20px 0;
    border-bottom: 1px solid var(--light-gray);
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.news-date {
    min-width: 90px;
    text-align: center;
    background: var(--off-white);
    border-radius: var(--radius);
    padding: 10px;
}

.news-date .day { font-size: 24px; font-weight: 700; color: var(--primary); display: block; }
.news-date .month { font-size: 13px; color: var(--gray); }

.news-content h4 { font-size: 17px; margin-bottom: 8px; color: var(--text); }
.news-content h4 a:hover { color: var(--copper); }
.news-content p { font-size: 14px; color: var(--text-light); }

/* Announcement compact */
.announcement-list { list-style: none; }
.announcement-item {
    padding: 15px 0;
    border-bottom: 1px solid var(--light-gray);
    display: flex;
    gap: 15px;
    align-items: baseline;
}
.announcement-item .date { color: var(--copper); font-size: 14px; min-width: 100px; }
.announcement-item a { font-size: 15px; color: var(--text); }
.announcement-item a:hover { color: var(--copper); }

/* ── Activity Preview ── */
.activity-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--light-gray);
}

.activity-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }

.activity-card .card-body { padding: 25px; }
.activity-card .tag {
    display: inline-block;
    background: var(--primary);
    color: var(--white);
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 12px;
    margin-bottom: 12px;
}
.activity-card h4 { font-size: 18px; margin-bottom: 10px; color: var(--primary); }
.activity-card .meta { font-size: 14px; color: var(--gray); margin-bottom: 8px; }
.activity-card p { font-size: 14px; color: var(--text-light); }

/* ── CTA Section ── */
.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 70px 0;
    text-align: center;
    color: var(--white);
}

.cta-section h2 { font-size: 32px; margin-bottom: 15px; }
.cta-section p { font-size: 18px; margin-bottom: 30px; opacity: 0.9; }

/* ── Footer ── */
.footer {
    background: var(--primary-dark);
    color: rgba(255,255,255,0.8);
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand img { height: 50px; margin-bottom: 15px; }
.footer-brand p { font-size: 14px; line-height: 1.7; }

.footer h4 {
    color: var(--white);
    font-size: 16px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer h4::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 30px; height: 2px;
    background: var(--copper);
}

.footer ul { list-style: none; }
.footer ul li { margin-bottom: 10px; }
.footer ul a { color: rgba(255,255,255,0.7); font-size: 14px; }
.footer ul a:hover { color: var(--copper-light); }

.footer-bottom {
    padding: 20px 0;
    text-align: center;
    font-size: 13px;
    color: rgba(255,255,255,0.5);
}

/* ── Query System ── */
.query-box {
    background: var(--white);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow);
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.query-box h3 { color: var(--primary); margin-bottom: 20px; font-size: 22px; }

.query-box .form-group {
    margin-bottom: 15px;
    text-align: left;
}

.query-box label {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
    color: var(--text-light);
    font-weight: 500;
}

.query-box input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--light-gray);
    border-radius: var(--radius);
    font-size: 15px;
    transition: var(--transition);
}

.query-box input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26,71,49,0.1);
}

.query-result {
    margin-top: 20px;
    padding: 20px;
    border-radius: var(--radius);
    display: none;
}

.query-result.success { background: #d4edda; color: #155724; display: block; }
.query-result.error { background: #f8d7da; color: #721c24; display: block; }

/* ── Timeline ── */
.timeline {
    position: relative;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 100%;
    background: var(--light-gray);
}

.timeline-item:nth-child(odd) { left: 0; text-align: right; }
.timeline-item:nth-child(even) { left: 50%; }

.timeline-item::before {
    content: '';
    position: absolute;
    top: 30px;
    width: 16px; height: 16px;
    background: var(--copper);
    border: 3px solid var(--white);
    border-radius: 50%;
    box-shadow: 0 0 0 3px var(--copper);
}

.timeline-item:nth-child(odd)::before { right: -8px; }
.timeline-item:nth-child(even)::before { left: -8px; }

.timeline-year {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

/* Actual HTML classes used in timeline */
.timeline-date {
    font-size: 26px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.timeline-content h4 {
    display: inline-block;
    font-size: 15px;
    font-weight: 700;
    color: var(--white);
    background: var(--copper);
    padding: 3px 14px;
    border-radius: 20px;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.timeline-content p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.8;
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 30px 50px;
}

.timeline-text { font-size: 15px; color: var(--text-light); }

/* ── Highlight Card (mission/vision) ── */
.highlight-card {
    display: flex;
    gap: 16px;
    background: var(--off-white);
    border-left: 4px solid var(--copper);
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 18px 22px;
    margin-bottom: 18px;
}

.highlight-card-icon {
    font-size: 28px;
    flex-shrink: 0;
    line-height: 1;
}

.highlight-card h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--copper-dark);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.highlight-card p {
    font-size: 14px;
    color: var(--text);
    line-height: 1.7;
    margin: 0;
}

/* ── Content Block h3 (org structure) ── */
.content-block h3 {
    font-size: 19px;
    color: var(--primary);
    padding: 10px 20px;
    background: linear-gradient(90deg, rgba(26,71,49,0.08), transparent);
    border-left: 4px solid var(--primary);
    border-radius: 0 var(--radius) var(--radius) 0;
    margin-bottom: 16px;
}

/* ── Charter Chapter heading ── */
.charter-chapter h3 {
    display: inline-block;
    background: var(--primary);
    color: var(--white);
    padding: 5px 20px;
    border-radius: var(--radius);
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

/* ── Stat card (about intro summary) ── */
.stat-highlights {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 30px;
}

.stat-highlight-item {
    text-align: center;
    background: var(--primary);
    color: var(--white);
    border-radius: var(--radius);
    padding: 20px 10px;
}

.stat-highlight-item .num {
    font-size: 30px;
    font-weight: 800;
    color: var(--copper-light);
    display: block;
}

.stat-highlight-item .label {
    font-size: 13px;
    opacity: 0.85;
    margin-top: 4px;
    display: block;
}

/* ── Content Page ── */
.content-section {
    padding: 60px 0;
}

.content-section h2 {
    font-size: 28px;
    color: var(--primary);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--light-gray);
}

.content-section h3 {
    font-size: 22px;
    color: var(--primary);
    margin: 30px 0 15px;
}

.content-section h4 {
    font-size: 18px;
    color: var(--dark-gray);
    margin: 20px 0 10px;
}

.content-section p {
    margin-bottom: 15px;
    line-height: 1.8;
}

.content-section ul {
    margin: 10px 0 20px 25px;
    line-height: 2;
}

/* ── Tables ── */
.table-responsive { overflow-x: auto; }

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.data-table th {
    background: var(--primary);
    color: var(--white);
    padding: 14px 18px;
    text-align: left;
    font-size: 14px;
    font-weight: 600;
}

.data-table td {
    padding: 12px 18px;
    border-bottom: 1px solid var(--light-gray);
    font-size: 14px;
}

.data-table tr:hover td { background: var(--off-white); }

/* ── FAQ ── */
.faq-item {
    border: 1px solid var(--light-gray);
    border-radius: var(--radius);
    margin-bottom: 12px;
    overflow: hidden;
}

.faq-question {
    padding: 18px 24px;
    background: var(--off-white);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 15px;
    color: var(--primary);
    transition: var(--transition);
}

.faq-question:hover { background: var(--light-gray); }

.faq-question::after {
    content: '+';
    font-size: 20px;
    font-weight: 300;
    transition: var(--transition);
}

.faq-item.active .faq-question::after { content: '−'; }

.faq-answer {
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 18px 24px;
    max-height: 500px;
}

/* ── Contact Form ── */
.contact-form .form-group { margin-bottom: 20px; }
.contact-form label { display: block; margin-bottom: 6px; font-weight: 500; font-size: 14px; color: var(--text); }
.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--light-gray);
    border-radius: var(--radius);
    font-size: 15px;
    font-family: inherit;
    transition: var(--transition);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26,71,49,0.1);
}

.contact-form textarea { resize: vertical; min-height: 120px; }

/* ── Two Column Layout ── */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.three-col { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }

/* ── Membership Tiers ── */
.tier-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--light-gray);
    transition: var(--transition);
}

.tier-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }

.tier-card .tier-header {
    background: var(--primary);
    color: var(--white);
    padding: 25px;
    text-align: center;
}

.tier-card .tier-header h3 { font-size: 22px; margin-bottom: 5px; }
.tier-card .tier-header .en-name { font-size: 13px; opacity: 0.8; }

.tier-card .tier-body { padding: 30px; }
.tier-card .tier-body h4 { font-size: 15px; color: var(--primary); margin-bottom: 10px; font-weight: 600; }
.tier-card .tier-body ul { list-style: none; margin: 0 0 20px; }
.tier-card .tier-body ul li { padding: 6px 0; font-size: 14px; color: var(--text-light); padding-left: 20px; position: relative; }
.tier-card .tier-body ul li::before { content: '✓'; position: absolute; left: 0; color: var(--primary); font-weight: 700; }

.tier-card .tier-footer {
    padding: 20px 30px;
    border-top: 1px solid var(--light-gray);
    text-align: center;
}

.tier-card .price { font-size: 24px; font-weight: 700; color: var(--copper); }

/* Featured tier */
.tier-card.featured { border-color: var(--copper); }
.tier-card.featured .tier-header { background: linear-gradient(135deg, var(--primary), var(--copper-dark)); }

/* ── Back to Top ── */
.back-to-top {
    position: fixed;
    bottom: 30px; right: 30px;
    width: 46px; height: 46px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--copper); transform: translateY(-3px); }

/* ── Charter ── */
.charter-chapter { margin-bottom: 40px; }
.charter-articles p { margin-bottom: 22px; }

/* ── Navbar Search ── */
.navbar-search {
    display: flex;
    align-items: center;
    margin-left: 12px;
    flex-shrink: 0;
}

.navbar-search input {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.35);
    border-radius: 20px;
    padding: 6px 14px;
    color: var(--white);
    font-size: 13px;
    width: 110px;
    transition: var(--transition);
    outline: none;
    font-family: inherit;
}

.navbar-search input::placeholder { color: rgba(255,255,255,0.6); }
.navbar-search input:focus { background: rgba(255,255,255,0.25); width: 150px; }

@media (max-width: 768px) {
    .navbar-search { display: none; }
}

/* ── News Detail ── */
.news-detail { max-width: 800px; margin: 0 auto; }
.news-detail .meta { color: var(--gray); font-size: 14px; margin-bottom: 30px; padding-bottom: 20px; border-bottom: 1px solid var(--light-gray); }
.news-detail .content p { margin-bottom: 18px; line-height: 1.9; }

/* ── Award Category Cards ── */
.award-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--copper);
    margin-bottom: 25px;
    transition: var(--transition);
}
.award-card:hover { box-shadow: var(--shadow-hover); }
.award-card h3 { color: var(--primary); margin-bottom: 12px; font-size: 20px; }
.award-card p { color: var(--text-light); line-height: 1.8; }

/* ── Process Steps ── */
.steps { counter-reset: step; }
.step-item {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    align-items: flex-start;
}
.step-number {
    flex-shrink: 0;
    width: 42px; height: 42px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
}
.step-number-offset { margin-top: 25px; }
.step-content h4 { font-size: 16px; color: var(--primary); margin-bottom: 5px; }
.step-content p { font-size: 14px; color: var(--text-light); }

/* ── Animations ── */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .card-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(3, 1fr); }
    .three-col { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .hero h1 { font-size: 32px; }
    .hero p { font-size: 16px; }
    .page-banner h1 { font-size: 28px; }

    .nav-links {
        position: fixed;
        top: 0; right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--primary-dark);
        flex-direction: column;
        padding: 80px 20px 20px;
        transition: var(--transition);
        gap: 5px;
    }

    .nav-links.active { right: 0; }
    .nav-links > li > a { padding: 12px 16px; }

    .dropdown-menu {
        position: static;
        box-shadow: none;
        background: rgba(255,255,255,0.05);
        border-radius: 0;
        padding: 0;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
    }

    .nav-links > li:hover .dropdown-menu,
    .nav-links > li.open .dropdown-menu { display: block; }

    .dropdown-menu a { color: rgba(255,255,255,0.7); padding: 8px 30px; }

    .menu-toggle { display: block; }

    .card-grid { grid-template-columns: 1fr; }
    .two-col { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr; }

    .section { padding: 50px 0; }
    .section-title h2 { font-size: 26px; }

    .stat-item h3 { font-size: 28px; }

    .timeline::before { left: 20px; }
    .timeline-item { width: 100%; left: 0 !important; text-align: left !important; padding-left: 50px; padding-right: 0; }
    .timeline-item::before { left: 12px !important; right: auto !important; }

    .btn { padding: 12px 28px; font-size: 15px; }
}

@media (max-width: 480px) {
    .hero { min-height: 500px; }
    .hero h1 { font-size: 26px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    .container { padding: 0 15px; }
}

/* ── Pagination ── */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
    padding-top: 30px;
}

.pagination button {
    padding: 8px 18px;
    border: 1px solid var(--light-gray);
    background: var(--white);
    color: var(--text);
    border-radius: var(--radius);
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.pagination button:hover:not(:disabled) {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.pagination button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.pagination .page-info {
    font-size: 14px;
    color: var(--text-light);
    margin: 0 10px;
}

/* ── Language Toggle ── */
.lang-toggle {
    background: rgba(255,255,255,0.15);
    color: var(--white);
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: 4px;
    padding: 4px 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    letter-spacing: 0.5px;
    transition: var(--transition);
    margin-left: 8px;
    white-space: nowrap;
}
.lang-toggle:hover {
    background: rgba(255,255,255,0.28);
}

/* ── Article Nav (Prev/Next) ── */
.article-nav {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--light-gray);
}
.article-nav-prev, .article-nav-next {
    flex: 1;
    min-width: 0;
}
.article-nav-next { text-align: right; }
.article-nav a {
    display: block;
    text-decoration: none;
    color: var(--text);
    padding: 12px 16px;
    border-radius: 8px;
    transition: background 0.2s;
}
.article-nav a:hover { background: var(--bg-alt, #f5f5f5); }
.article-nav .nav-label {
    display: block;
    font-size: 13px;
    color: #999;
    margin-bottom: 4px;
}
.article-nav .nav-title {
    display: block;
    font-size: 15px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ── CMS Pagination ── */
.pagination { text-align: center; margin-top: 40px; }
.pagination ul { display: inline-flex; list-style: none; gap: 6px; padding: 0; }
.pagination li a,
.pagination li span {
    display: inline-block;
    min-width: 38px;
    height: 38px;
    line-height: 38px;
    padding: 0 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    color: #555;
    font-size: 14px;
    text-align: center;
    text-decoration: none;
    transition: all 0.2s;
}
.pagination li a:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}
.pagination li.active span {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}
.pagination li.disabled span {
    color: #ccc;
    cursor: not-allowed;
    border-color: #eee;
}

/* Language visibility control */
.lang-en { display: none; }

html.en .lang-zh { display: none !important; }
html.en p.lang-en,
html.en div.lang-en,
html.en li.lang-en,
html.en h1.lang-en, html.en h2.lang-en, html.en h3.lang-en, html.en h4.lang-en,
html.en section.lang-en,
html.en dt.lang-en, html.en dd.lang-en,
html.en td.lang-en, html.en th.lang-en,
html.en label.lang-en { display: block !important; }
html.en .lang-en.lang-flex { display: flex !important; }
html.en span.lang-en,
html.en a.lang-en,
html.en strong.lang-en,
html.en em.lang-en,
html.en i.lang-en,
html.en button.lang-en { display: inline !important; }
html.en .lang-toggle-label-zh { display: none; }
html.en .lang-toggle-label-en { display: inline; }
