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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f8f9fa;
    transition: background 0.3s, color 0.3s;
}

a {
    color: #1a73e8;
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    text-decoration: underline;
    color: #0d47a1;
}

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

.header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(224, 224, 224, 0.5);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    font-size: 28px;
    font-weight: 700;
    color: #1a73e8;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.3s;
}

.logo:hover {
    transform: scale(1.05);
}

.logo svg {
    width: 40px;
    height: 40px;
}

.nav {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav a {
    color: #555;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s, transform 0.3s;
    position: relative;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #1a73e8;
    transition: width 0.3s;
}

.nav a:hover {
    color: #1a73e8;
    transform: translateY(-2px);
}

.nav a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    padding: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #333;
    border-radius: 3px;
    transition: all 0.3s;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 999;
    max-height: 80vh;
    overflow-y: auto;
}

.mobile-menu a {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    color: #555;
    font-size: 16px;
    transition: color 0.3s, padding-left 0.3s;
}

.mobile-menu a:hover {
    color: #1a73e8;
    padding-left: 10px;
}

.hero {
    background: linear-gradient(135deg, #1a73e8, #0d47a1, #1a73e8);
    background-size: 200% 200%;
    animation: gradientShift 10s ease infinite;
    color: #fff;
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: heroGlow 15s ease infinite;
}

@keyframes heroGlow {
    0% { transform: translate(-30%, -30%) rotate(0deg); }
    50% { transform: translate(30%, 30%) rotate(180deg); }
    100% { transform: translate(-30%, -30%) rotate(360deg); }
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: 800;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.hero p {
    font-size: 20px;
    max-width: 800px;
    margin: 0 auto 30px;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

.hero .btn {
    display: inline-block;
    background: #fff;
    color: #1a73e8;
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 600;
    transition: all 0.3s;
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.hero .btn:hover {
    background: #f0f0f0;
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.section {
    padding: 60px 0;
}

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

.section-title h2 {
    font-size: 36px;
    color: #1a73e8;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: #1a73e8;
    margin: 10px auto 0;
    border-radius: 2px;
}

.section-title p {
    font-size: 18px;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

.grid {
    display: grid;
    gap: 30px;
}

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

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

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

.card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
    border: 1px solid rgba(255,255,255,0.5);
}

.card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 1);
}

.card h3 {
    font-size: 20px;
    color: #1a73e8;
    margin-bottom: 10px;
    transition: color 0.3s;
}

.card:hover h3 {
    color: #0d47a1;
}

.card p {
    color: #555;
    font-size: 15px;
    transition: color 0.3s;
}

.card .icon {
    width: 50px;
    height: 50px;
    margin-bottom: 15px;
    transition: transform 0.3s;
}

.card:hover .icon {
    transform: rotate(10deg) scale(1.1);
}

.about-content {
    display: flex;
    gap: 40px;
    align-items: center;
}

.about-text {
    flex: 1;
}

.about-text h2 {
    font-size: 32px;
    color: #1a73e8;
    margin-bottom: 20px;
    position: relative;
}

.about-text h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: #1a73e8;
    margin-top: 10px;
    border-radius: 2px;
}

.about-text p {
    margin-bottom: 15px;
    font-size: 16px;
    color: #555;
    line-height: 1.8;
}

.about-image {
    flex: 1;
    text-align: center;
}

.about-image svg {
    max-width: 100%;
    height: auto;
    transition: transform 0.3s;
}

.about-image:hover svg {
    transform: scale(1.05);
}

.stats {
    background: linear-gradient(135deg, #1a73e8, #0d47a1);
    color: #fff;
    padding: 60px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.stats::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1) 0%, transparent 50%);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    position: relative;
    z-index: 1;
}

.stat-item h3 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 5px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.stat-item p {
    font-size: 18px;
    opacity: 0.9;
}

.articles-grid {
    display: grid;
    gap: 30px;
    grid-template-columns: 1fr 1fr;
}

.article-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid rgba(255,255,255,0.5);
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.article-card .date {
    font-size: 14px;
    color: #999;
    margin-bottom: 5px;
}

.article-card h3 {
    font-size: 18px;
    color: #1a73e8;
    margin-bottom: 8px;
    transition: color 0.3s;
}

.article-card:hover h3 {
    color: #0d47a1;
}

.article-card p {
    color: #555;
    font-size: 15px;
    margin-bottom: 10px;
}

.article-card .read-more {
    color: #1a73e8;
    font-weight: 500;
    transition: color 0.3s, padding-left 0.3s;
}

.article-card:hover .read-more {
    color: #0d47a1;
    padding-left: 5px;
}

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

.faq-item {
    border: 1px solid rgba(224, 224, 224, 0.5);
    border-radius: 8px;
    margin-bottom: 10px;
    overflow: hidden;
    transition: border-color 0.3s;
}

.faq-item:hover {
    border-color: #1a73e8;
}

.faq-question {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    padding: 18px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 16px;
    color: #333;
    transition: background 0.3s, color 0.3s;
}

.faq-question:hover {
    background: rgba(245, 245, 245, 0.9);
    color: #1a73e8;
}

.faq-question .arrow {
    transition: transform 0.3s;
    font-size: 14px;
}

.faq-question.active .arrow {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    background: rgba(250, 250, 250, 0.8);
}

.faq-answer.open {
    padding: 18px 20px;
    max-height: 500px;
}

.faq-answer p {
    color: #555;
    font-size: 15px;
    line-height: 1.7;
}

.howto {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255,255,255,0.5);
}

.howto h2 {
    color: #1a73e8;
    margin-bottom: 20px;
    text-align: center;
    font-size: 28px;
}

.howto-step {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(248, 249, 250, 0.8);
    border-radius: 8px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.howto-step:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.howto-step .step-num {
    width: 40px;
    height: 40px;
    background: #1a73e8;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
    transition: transform 0.3s;
}

.howto-step:hover .step-num {
    transform: scale(1.1);
}

.howto-step .step-content h4 {
    font-size: 16px;
    color: #1a73e8;
    margin-bottom: 5px;
}

.howto-step .step-content p {
    color: #555;
    font-size: 15px;
}

.contact {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    text-align: center;
    border: 1px solid rgba(255,255,255,0.5);
}

.contact h2 {
    color: #1a73e8;
    margin-bottom: 20px;
    font-size: 28px;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
}

.contact-info .item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: rgba(248, 249, 250, 0.8);
    border-radius: 8px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.contact-info .item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.contact-info .item svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.footer {
    background: #222;
    color: #ccc;
    padding: 40px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

.footer h3 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 15px;
    position: relative;
}

.footer h3::after {
    content: '';
    display: block;
    width: 30px;
    height: 2px;
    background: #1a73e8;
    margin-top: 8px;
    border-radius: 1px;
}

.footer a {
    color: #aaa;
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    transition: color 0.3s, padding-left 0.3s;
}

.footer a:hover {
    color: #fff;
    padding-left: 5px;
}

.footer .copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
    font-size: 14px;
}

.breadcrumb {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    padding: 12px 0;
    border-bottom: 1px solid rgba(224, 224, 224, 0.5);
    font-size: 14px;
    color: #666;
}

.breadcrumb a {
    color: #1a73e8;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: #0d47a1;
}

.breadcrumb span {
    margin: 0 5px;
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #1a73e8;
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 999;
    transition: opacity 0.3s, transform 0.3s, background 0.3s;
}

.back-to-top.show {
    display: flex;
}

.back-to-top:hover {
    background: #0d47a1;
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.dark-mode-toggle {
    position: fixed;
    bottom: 90px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #333;
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    z-index: 999;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: background 0.3s, transform 0.3s;
}

.dark-mode-toggle:hover {
    background: #555;
    transform: rotate(30deg) scale(1.1);
}

.search-box {
    display: flex;
    max-width: 400px;
    margin: 0 auto;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s;
}

.search-box:focus-within {
    box-shadow: 0 4px 20px rgba(26, 115, 232, 0.2);
}

.search-box input {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid #e0e0e0;
    border-right: none;
    border-radius: 50px 0 0 50px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s;
}

.search-box input:focus {
    border-color: #1a73e8;
}

.search-box button {
    background: #1a73e8;
    color: #fff;
    border: none;
    padding: 12px 25px;
    border-radius: 0 50px 50px 0;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: background 0.3s;
}

.search-box button:hover {
    background: #0d47a1;
}

/* 暗色模式 */
body.dark-mode {
    background: #1a1a2e;
    color: #e0e0e0;
}

body.dark-mode .header {
    background: rgba(22, 33, 62, 0.8);
    border-color: rgba(51, 51, 51, 0.5);
}

body.dark-mode .nav a {
    color: #ccc;
}

body.dark-mode .nav a::after {
    background: #4a9eff;
}

body.dark-mode .mobile-menu {
    background: rgba(22, 33, 62, 0.95);
}

body.dark-mode .mobile-menu a {
    color: #ccc;
    border-color: #333;
}

body.dark-mode .mobile-menu a:hover {
    color: #4a9eff;
}

body.dark-mode .card {
    background: rgba(30, 42, 74, 0.9);
    border-color: rgba(51, 51, 51, 0.5);
    color: #e0e0e0;
}

body.dark-mode .card:hover {
    background: rgba(30, 42, 74, 1);
}

body.dark-mode .card h3 {
    color: #4a9eff;
}

body.dark-mode .card p {
    color: #ccc;
}

body.dark-mode .faq-item {
    border-color: rgba(51, 51, 51, 0.5);
}

body.dark-mode .faq-item:hover {
    border-color: #4a9eff;
}

body.dark-mode .faq-question {
    background: rgba(30, 42, 74, 0.9);
    color: #e0e0e0;
}

body.dark-mode .faq-question:hover {
    background: rgba(30, 42, 74, 1);
    color: #4a9eff;
}

body.dark-mode .faq-answer {
    background: rgba(22, 33, 62, 0.8);
}

body.dark-mode .faq-answer p {
    color: #ccc;
}

body.dark-mode .howto {
    background: rgba(30, 42, 74, 0.9);
    border-color: rgba(51, 51, 51, 0.5);
}

body.dark-mode .howto-step {
    background: rgba(22, 33, 62, 0.8);
}

body.dark-mode .howto-step .step-content p {
    color: #ccc;
}

body.dark-mode .contact {
    background: rgba(30, 42, 74, 0.9);
    border-color: rgba(51, 51, 51, 0.5);
}

body.dark-mode .contact p {
    color: #ccc;
}

body.dark-mode .contact-info .item {
    background: rgba(22, 33, 62, 0.8);
}

body.dark-mode .breadcrumb {
    background: rgba(22, 33, 62, 0.9);
    border-color: rgba(51, 51, 51, 0.5);
    color: #aaa;
}

body.dark-mode .article-card {
    background: rgba(30, 42, 74, 0.9);
    border-color: rgba(51, 51, 51, 0.5);
}

body.dark-mode .article-card p {
    color: #ccc;
}

body.dark-mode .footer {
    background: #0f0f1a;
}

body.dark-mode .search-box input {
    background: rgba(30, 42, 74, 0.9);
    border-color: rgba(51, 51, 51, 0.5);
    color: #e0e0e0;
}

body.dark-mode .search-box input:focus {
    border-color: #4a9eff;
}

body.dark-mode .section-title p {
    color: #aaa;
}

body.dark-mode .about-text p {
    color: #ccc;
}

body.dark-mode .hamburger span {
    background: #e0e0e0;
}

/* 滚动动画 */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s, transform 0.6s;
}

.scroll-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Banner轮播 */
.banner-slider {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    height: 400px;
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 40px;
    text-align: center;
    color: #fff;
}

.banner-slide.active {
    opacity: 1;
}

.banner-slide h2 {
    font-size: 36px;
    margin-bottom: 15px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.banner-slide p {
    font-size: 18px;
    max-width: 600px;
    margin-bottom: 20px;
}

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

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

.banner-dots span:hover {
    transform: scale(1.3);
}

.banner-dots span.active {
    background: #fff;
    transform: scale(1.2);
}

/* 响应式布局 */
@media (max-width: 768px) {
    .nav {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .hero h1 {
        font-size: 32px;
    }

    .hero p {
        font-size: 16px;
    }

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .about-content {
        flex-direction: column;
    }

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

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

    .banner-slider {
        height: 300px;
    }

    .banner-slide h2 {
        font-size: 24px;
    }

    .contact-info {
        grid-template-columns: 1fr;
    }

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

    .section-title h2 {
        font-size: 28px;
    }

    .about-text h2 {
        font-size: 26px;
    }

    .back-to-top {
        width: 40px;
        height: 40px;
        font-size: 20px;
        bottom: 20px;
        right: 20px;
    }

    .dark-mode-toggle {
        width: 40px;
        height: 40px;
        font-size: 16px;
        bottom: 70px;
        right: 20px;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 50px 0;
    }

    .section {
        padding: 40px 0;
    }

    .hero h1 {
        font-size: 26px;
    }

    .hero p {
        font-size: 14px;
    }

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

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

    .section-title h2 {
        font-size: 24px;
    }

    .card {
        padding: 20px;
    }

    .howto {
        padding: 20px;
    }

    .contact {
        padding: 20px;
    }

    .banner-slider {
        height: 250px;
    }

    .banner-slide h2 {
        font-size: 20px;
    }

    .banner-slide p {
        font-size: 14px;
    }
}