:root {
    --bg-body: #F8FAFC;
    --bg-card: #FFFFFF;
    --bg-nav: #0B1E33;
    --bg-footer: #0B1E33;
    --bg-faq: #F1F5F9;
    --bg-banner: linear-gradient(135deg, #0B1E33 0%, #1E3A5F 100%);
    --text-primary: #0F172A;
    --text-secondary: #1E293B;
    --text-muted: #334155;
    --text-inverse: #F8FAFC;
    --text-nav: #F1F5F9;
    --text-footer: #CBD5E1;
    --text-link: #1D4ED8;
    --text-link-hover: #1E3A8A;
    --text-btn: #FFFFFF;
    --bg-btn: #1D4ED8;
    --bg-btn-hover: #1E3A8A;
    --border-color: #E2E8F0;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --brand-dark: #0B1E33;
    --brand-mid: #1E3A5F;
    --brand-accent: #2563EB;
    --focus-ring: #2563EB;
    --faq-question: #0F172A;
    --faq-answer: #1E293B;
    --table-head: #0F172A;
    --table-body: #1E293B;
    --input-border: #94A3B8;
    --input-text: #0F172A;
    --input-placeholder: #64748B;
    --input-bg: #FFFFFF;
    --badge-bg: #DBEAFE;
    --badge-text: #1E3A8A;
    --glass-bg: rgba(255, 255, 255, 0.72);
    --glass-border: rgba(255, 255, 255, 0.35);
    --glass-shadow: 0 8px 32px rgba(11, 30, 51, 0.12);
    --gradient-accent: linear-gradient(135deg, #2563EB 0%, #1D4ED8 50%, #1E3A8A 100%);
    --gradient-soft: linear-gradient(135deg, rgba(37,99,235,0.08) 0%, rgba(30,58,95,0.06) 100%);
}

html[data-theme="dark"] {
    --bg-body: #0B1120;
    --bg-card: #111827;
    --bg-nav: #0B1120;
    --bg-footer: #0B1120;
    --bg-faq: #1E293B;
    --bg-banner: linear-gradient(135deg, #0B1120 0%, #1E293B 100%);
    --text-primary: #F8FAFC;
    --text-secondary: #E2E8F0;
    --text-muted: #CBD5E1;
    --text-inverse: #0B1120;
    --text-nav: #F1F5F9;
    --text-footer: #E2E8F0;
    --text-link: #93C5FD;
    --text-link-hover: #BFDBFE;
    --text-btn: #0B1120;
    --bg-btn: #93C5FD;
    --bg-btn-hover: #BFDBFE;
    --border-color: #334155;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.5);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.6);
    --brand-dark: #0B1120;
    --brand-mid: #1E293B;
    --brand-accent: #93C5FD;
    --faq-question: #F8FAFC;
    --faq-answer: #E2E8F0;
    --table-head: #F8FAFC;
    --table-body: #E2E8F0;
    --input-border: #475569;
    --input-text: #F8FAFC;
    --input-placeholder: #94A3B8;
    --input-bg: #1E293B;
    --badge-bg: #1E3A8A;
    --badge-text: #DBEAFE;
    --glass-bg: rgba(17, 24, 39, 0.72);
    --glass-border: rgba(148, 163, 184, 0.18);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
    --gradient-accent: linear-gradient(135deg, #93C5FD 0%, #60A5FA 50%, #3B82F6 100%);
    --gradient-soft: linear-gradient(135deg, rgba(147,197,253,0.08) 0%, rgba(30,41,59,0.4) 100%);
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
    background-color: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.7;
    font-size: 16px;
    transition: background-color 0.3s ease, color 0.3s ease;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img, svg {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--text-link);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--text-link-hover);
}

::selection {
    background: var(--brand-accent);
    color: #FFFFFF;
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-body);
}

::-webkit-scrollbar-thumb {
    background: var(--brand-mid);
    border-radius: 6px;
    border: 2px solid var(--bg-body);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--brand-accent);
}

.nav-sticky {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--bg-nav);
    backdrop-filter: blur(18px) saturate(180%);
    -webkit-backdrop-filter: blur(18px) saturate(180%);
    box-shadow: var(--shadow-md);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

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

.nav-brand {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-nav);
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-brand:hover {
    opacity: 0.92;
    transform: translateY(-1px);
}

.nav-brand svg {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 6px rgba(37, 99, 235, 0.4));
}

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

.nav-links a {
    color: var(--text-nav);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 6px 0;
    border-bottom: 2px solid transparent;
    transition: border-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
    position: relative;
    white-space: nowrap;
}

.nav-links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background: var(--gradient-accent);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a:focus::after {
    width: 100%;
}

.nav-links a:hover,
.nav-links a:focus {
    color: #FFFFFF;
    outline: none;
    transform: translateY(-1px);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.search-box {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    padding: 4px 12px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.search-box:focus-within {
    border-color: var(--brand-accent);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25);
}

.search-box input {
    background: transparent;
    border: none;
    color: #FFFFFF;
    font-size: 0.88rem;
    padding: 6px 4px;
    width: 140px;
    outline: none;
    font-family: inherit;
}

.search-box input::placeholder {
    color: #CBD5E1;
}

.search-box button {
    background: transparent;
    border: none;
    color: #FFFFFF;
    cursor: pointer;
    padding: 4px 6px;
    display: flex;
    align-items: center;
    transition: color 0.2s ease, transform 0.2s ease;
}

.search-box button:hover {
    color: var(--brand-accent);
    transform: scale(1.1);
}

.theme-toggle {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #F1F5F9;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.3s ease;
    flex-shrink: 0;
}

.theme-toggle:hover,
.theme-toggle:focus {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--brand-accent);
    outline: none;
    transform: rotate(25deg) scale(1.05);
}

.mobile-menu-btn {
    display: none;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #F1F5F9;
    border-radius: 6px;
    padding: 6px 10px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.mobile-menu-btn:hover,
.mobile-menu-btn:focus {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--brand-accent);
    outline: none;
}

.banner-section {
    position: relative;
    overflow: hidden;
    background: var(--bg-banner);
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 70%;
    height: 200%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.25) 0%, transparent 70%);
    pointer-events: none;
    animation: bannerGlow 12s ease-in-out infinite alternate;
}

.banner-section::after {
    content: '';
    position: absolute;
    bottom: -60%;
    right: -15%;
    width: 60%;
    height: 180%;
    background: radial-gradient(circle, rgba(147, 197, 253, 0.18) 0%, transparent 70%);
    pointer-events: none;
    animation: bannerGlow 15s ease-in-out infinite alternate-reverse;
}

@keyframes bannerGlow {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 0.6;
    }
    100% {
        transform: translate(6%, 4%) scale(1.15);
        opacity: 1;
    }
}

.banner-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.9s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    pointer-events: none;
}

.banner-slide.active {
    opacity: 1;
    position: relative;
    pointer-events: auto;
}

.banner-content {
    max-width: 820px;
    text-align: center;
    position: relative;
    z-index: 2;
    animation: bannerFadeUp 0.9s ease both;
}

@keyframes bannerFadeUp {
    from {
        opacity: 0;
        transform: translateY(28px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.banner-content h1 {
    font-size: 2.6rem;
    font-weight: 800;
    color: #FFFFFF;
    margin-bottom: 18px;
    line-height: 1.3;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.45);
    letter-spacing: -0.02em;
}

.banner-content p {
    font-size: 1.15rem;
    color: #E2E8F0;
    margin-bottom: 28px;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.4);
    line-height: 1.8;
}

.banner-btn {
    display: inline-block;
    background: var(--gradient-accent);
    color: #FFFFFF;
    padding: 13px 38px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
    box-shadow: 0 4px 18px rgba(37, 99, 235, 0.4);
    position: relative;
    overflow: hidden;
}

.banner-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transition: left 0.6s ease;
}

.banner-btn:hover::before {
    left: 100%;
}

.banner-btn:hover,
.banner-btn:focus {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(37, 99, 235, 0.55);
    filter: brightness(1.08);
    outline: none;
}

.banner-dots {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 5;
}

.banner-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease, width 0.3s ease;
    display: block;
}

.banner-dots span:hover {
    background: rgba(255, 255, 255, 0.7);
    transform: scale(1.15);
}

.banner-dots span.active {
    background: #FFFFFF;
    width: 28px;
    border-radius: 6px;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
}

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

.section {
    padding: 60px 0;
    position: relative;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    text-align: center;
    letter-spacing: -0.02em;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 56px;
    height: 4px;
    background: var(--gradient-accent);
    border-radius: 2px;
    margin: 14px auto 0;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px) saturate(160%);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    border-radius: 16px;
    padding: 28px 24px;
    box-shadow: var(--glass-shadow);
    border: 1px solid var(--glass-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-accent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(11, 30, 51, 0.18);
    border-color: var(--brand-accent);
}

.card:hover::before {
    opacity: 1;
}

.card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
    line-height: 1.5;
}

.card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.badge {
    display: inline-block;
    background: var(--badge-bg);
    color: var(--badge-text);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 4px 14px;
    border-radius: 12px;
    margin-bottom: 12px;
    letter-spacing: 0.02em;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover .badge {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 24px;
    text-align: center;
    margin-top: 40px;
    padding: 32px 20px;
    background: var(--glass-bg);
    backdrop-filter: blur(16px) saturate(160%);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

.stat-item {
    padding: 8px;
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-4px);
}

.stat-item .stat-num {
    font-size: 2.4rem;
    font-weight: 800;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.stat-item .stat-label {
    font-size: 0.92rem;
    color: var(--text-muted);
    margin-top: 8px;
    font-weight: 500;
}

.article-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
}

.article-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px) saturate(160%);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    border-radius: 16px;
    padding: 26px 24px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.article-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-soft);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 42px rgba(11, 30, 51, 0.18);
    border-color: var(--brand-accent);
}

.article-card:hover::after {
    opacity: 1;
}

.article-card .article-date {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 10px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

.article-card .article-date::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--brand-accent);
    display: inline-block;
}

.article-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
    line-height: 1.55;
    position: relative;
    z-index: 1;
    transition: color 0.25s ease;
}

.article-card:hover h3 {
    color: var(--brand-accent);
}

.article-card p {
    font-size: 0.93rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 16px;
    flex-grow: 1;
    position: relative;
    z-index: 1;
}

.article-card .read-more {
    color: var(--text-link);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.92rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.25s ease, gap 0.25s ease;
    position: relative;
    z-index: 1;
    align-self: flex-start;
}

.article-card .read-more:hover,
.article-card .read-more:focus {
    color: var(--text-link-hover);
    text-decoration: underline;
    outline: none;
    gap: 10px;
}

.faq-list {
    max-width: 860px;
    margin: 0 auto;
}

.faq-item {
    background: var(--glass-bg);
    backdrop-filter: blur(14px) saturate(160%);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
    border-radius: 14px;
    margin-bottom: 12px;
    border: 1px solid var(--glass-border);
    overflow: hidden;
    transition: box-shadow 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.faq-item:hover {
    box-shadow: var(--glass-shadow);
    border-color: var(--brand-accent);
}

.faq-item.open {
    border-color: var(--brand-accent);
    box-shadow: 0 8px 28px rgba(37, 99, 235, 0.15);
}

.faq-question {
    width: 100%;
    background: transparent;
    border: none;
    padding: 18px 22px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--faq-question);
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    transition: background 0.25s ease, color 0.25s ease;
    font-family: inherit;
    line-height: 1.6;
}

.faq-question:hover,
.faq-question:focus {
    background: rgba(37, 99, 235, 0.07);
    outline: none;
    color: var(--brand-accent);
}

.faq-question .faq-icon {
    font-size: 1.3rem;
    color: var(--brand-accent);
    transition: transform 0.35s ease;
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.1);
    font-weight: 400;
    line-height: 1;
}

.faq-item.open .faq-question .faq-icon {
    transform: rotate(45deg);
    background: var(--brand-accent);
    color: #FFFFFF;
}

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

.faq-item.open .faq-answer {
    max-height: 800px;
    padding: 0 22px 20px;
}

.faq-answer p {
    font-size: 0.95rem;
    color: var(--faq-answer);
    line-height: 1.85;
}

.howto-steps {
    max-width: 860px;
    margin: 0 auto;
}

.howto-step {
    display: flex;
    gap: 18px;
    margin-bottom: 20px;
    background: var(--glass-bg);
    backdrop-filter: blur(14px) saturate(160%);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
    border-radius: 14px;
    padding: 22px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative;
    overflow: hidden;
}

.howto-step::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--gradient-accent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.howto-step:hover {
    transform: translateX(6px);
    box-shadow: 0 12px 32px rgba(11, 30, 51, 0.15);
    border-color: var(--brand-accent);
}

.howto-step:hover::before {
    opacity: 1;
}

.howto-step-num {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--gradient-accent);
    color: #FFFFFF;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
    transition: transform 0.3s ease;
}

.howto-step:hover .howto-step-num {
    transform: scale(1.08) rotate(-5deg);
}

.howto-step-content h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
    line-height: 1.5;
}

.howto-step-content p {
    font-size: 0.93rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.table-wrap {
    overflow-x: auto;
    margin-top: 20px;
    border-radius: 14px;
    box-shadow: var(--glass-shadow);
    border: 1px solid var(--glass-border);
    -webkit-overflow-scrolling: touch;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
    border-radius: 14px;
    overflow: hidden;
    min-width: 600px;
}

th {
    background: var(--brand-dark);
    color: #FFFFFF;
    font-weight: 600;
    padding: 15px 18px;
    text-align: left;
    font-size: 0.92rem;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

td {
    padding: 14px 18px;
    border-bottom: 1px solid var(--border-color);
    color: var(--table-body);
    font-size: 0.92rem;
    line-height: 1.7;
    transition: background 0.2s ease;
}

tr:last-child td {
    border-bottom: none;
}

tr:hover td {
    background: rgba(37, 99, 235, 0.05);
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: var(--glass-bg);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    padding: 36px 32px;
    border-radius: 18px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    transition: box-shadow 0.3s ease;
}

.contact-form:hover {
    box-shadow: 0 16px 44px rgba(11, 30, 51, 0.16);
}

.form-group {
    margin-bottom: 22px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    font-size: 0.92rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border-radius: 10px;
    border: 1px solid var(--input-border);
    background: var(--input-bg);
    color: var(--input-text);
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--input-placeholder);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--brand-accent);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
    outline: none;
    background: var(--bg-card);
}

.form-btn {
    background: var(--gradient-accent);
    color: #FFFFFF;
    border: none;
    padding: 13px 32px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
    width: 100%;
    font-family: inherit;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35);
    position: relative;
    overflow: hidden;
}

.form-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transition: left 0.6s ease;
}

.form-btn:hover::before {
    left: 100%;
}

.form-btn:hover,
.form-btn:focus {
    transform: translateY(-2px);
    box-shadow: 0 8px 26px rgba(37, 99, 235, 0.5);
    filter: brightness(1.08);
    outline: none;
}

.footer {
    background: var(--bg-footer);
    color: var(--text-footer);
    padding: 56px 0 24px;
    margin-top: 40px;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--brand-accent), transparent);
    opacity: 0.5;
}

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

.footer h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 18px;
    position: relative;
    padding-bottom: 10px;
}

.footer h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 28px;
    height: 2px;
    background: var(--gradient-accent);
    border-radius: 2px;
}

.footer p,
.footer li {
    font-size: 0.88rem;
    color: var(--text-footer);
    line-height: 1.9;
}

.footer ul {
    list-style: none;
}

.footer ul li {
    margin-bottom: 4px;
}

.footer a {
    color: var(--text-footer);
    text-decoration: none;
    transition: color 0.25s ease, padding-left 0.25s ease;
    display: inline-block;
}

.footer a:hover,
.footer a:focus {
    color: #FFFFFF;
    text-decoration: underline;
    outline: none;
    padding-left: 4px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 22px;
    text-align: center;
    font-size: 0.82rem;
    color: #94A3B8;
    line-height: 2;
}

.footer-bottom p {
    color: #94A3B8;
    font-size: 0.82rem;
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gradient-accent);
    color: #FFFFFF;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    z-index: 999;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover,
.back-to-top:focus {
    transform: translateY(-5px) scale(1.06);
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.55);
    outline: none;
}

.fade-in {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}

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

.breadcrumb {
    padding: 16px 0;
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: var(--text-link);
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb a:hover {
    text-decoration: underline;
    color: var(--text-link-hover);
}

.breadcrumb span {
    color: var(--text-muted);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
[role="button"]:focus-visible {
    outline: 2px solid var(--focus-ring);
    outline-offset: 2px;
    border-radius: 4px;
}

@media (max-width: 1024px) {
    .nav-links {
        gap: 20px;
    }

    .nav-links a {
        font-size: 0.88rem;
    }

    .search-box input {
        width: 110px;
    }

    .banner-content h1 {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .nav-inner {
        height: 60px;
        padding: 0 16px;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: var(--bg-nav);
        flex-direction: column;
        padding: 20px;
        gap: 16px;
        box-shadow: var(--shadow-md);
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        animation: menuSlide 0.3s ease;
    }

    @keyframes menuSlide {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        width: 100%;
        padding: 10px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        font-size: 0.95rem;
    }

    .nav-links a::after {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .search-box input {
        width: 100px;
    }

    .banner-section {
        min-height: 360px;
    }

    .banner-content h1 {
        font-size: 1.8rem;
    }

    .banner-content p {
        font-size: 1rem;
    }

    .banner-btn {
        padding: 11px 30px;
        font-size: 0.95rem;
    }

    .section {
        padding: 44px 0;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .section-subtitle {
        font-size: 0.92rem;
        margin-bottom: 30px;
    }

    .stats-row {
        grid-template-columns: repeat(2, 1fr);
        padding: 24px 16px;
        gap: 16px;
    }

    .stat-item .stat-num {
        font-size: 1.9rem;
    }

    .article-list {
        grid-template-columns: 1fr;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .card {
        padding: 24px 20px;
    }

    .howto-step {
        padding: 18px;
        gap: 14px;
    }

    .howto-step-num {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .contact-form {
        padding: 26px 20px;
    }

    .footer {
        padding: 40px 0 20px;
    }

    .footer-grid {
        gap: 28px;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
    }
}

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

    .nav-brand {
        font-size: 1.15rem;
    }

    .nav-brand svg {
        width: 28px;
        height: 28px;
    }

    .banner-section {
        min-height: 320px;
    }

    .banner-content h1 {
        font-size: 1.45rem;
        margin-bottom: 14px;
    }

    .banner-content p {
        font-size: 0.9rem;
        margin-bottom: 22px;
    }

    .banner-content {
        padding: 0 8px;
    }

    .banner-btn {
        padding: 10px 26px;
        font-size: 0.9rem;
    }

    .banner-dots span {
        width: 10px;
        height: 10px;
    }

    .banner-dots span.active {
        width: 22px;
    }

    .section-title {
        font-size: 1.3rem;
    }

    .stat-item .stat-num {
        font-size: 1.6rem;
    }

    .stat-item .stat-label {
        font-size: 0.82rem;
    }

    .card h3 {
        font-size: 1.08rem;
    }

    .card p {
        font-size: 0.9rem;
    }

    .article-card h3 {
        font-size: 1rem;
    }

    .faq-question {
        font-size: 0.92rem;
        padding: 15px 18px;
    }

    .faq-answer {
        padding: 0 18px;
    }

    .faq-item.open .faq-answer {
        padding: 0 18px 16px;
    }

    .howto-step-content h3 {
        font-size: 0.98rem;
    }

    .howto-step-content p {
        font-size: 0.88rem;
    }

    th, td {
        padding: 12px 14px;
        font-size: 0.85rem;
    }

    .footer h4 {
        font-size: 0.95rem;
    }

    .footer p,
    .footer li {
        font-size: 0.84rem;
    }

    .footer-bottom {
        font-size: 0.76rem;
    }

    .footer-bottom p {
        font-size: 0.76rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

@media print {
    .nav-sticky,
    .back-to-top,
    .banner-section,
    .theme-toggle,
    .mobile-menu-btn,
    .search-box {
        display: none !important;
    }

    body {
        background: #FFFFFF;
        color: #000000;
    }

    .card,
    .article-card,
    .faq-item,
    .howto-step {
        box-shadow: none;
        border: 1px solid #CCCCCC;
        break-inside: avoid;
    }
}