/* style.css - 江南体育官方网站 */
/* 全局重置与基础 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #f8fafc;
    color: #1e293b;
    line-height: 1.6;
    transition: background 0.3s, color 0.3s;
}
body.dark {
    background: #0f172a;
    color: #e2e8f0;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* 面包屑导航 */
nav[aria-label="面包屑导航"] {
    background: #1a73e8;
    color: #fff;
    padding: 8px 0;
    font-size: 14px;
}
nav[aria-label="面包屑导航"] ol {
    list-style: none;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
nav[aria-label="面包屑导航"] a {
    color: #fff;
    text-decoration: none;
}

/* 顶部导航 */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: background 0.3s;
}
body.dark header {
    background: rgba(15, 23, 42, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
}
header a[href="/"] {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #1e293b;
}
body.dark header a[href="/"] {
    color: #e2e8f0;
}
header a[href="/"] span {
    font-size: 20px;
    font-weight: 700;
    background: linear-gradient(135deg, #1a73e8, #0d47a1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
header nav[aria-label="主导航"] {
    display: flex;
    gap: 24px;
    align-items: center;
}
header nav a {
    text-decoration: none;
    color: #1e293b;
    font-weight: 500;
    transition: color 0.2s;
}
body.dark header nav a {
    color: #e2e8f0;
}
header nav a:hover {
    color: #1a73e8;
}
#darkToggle, #searchBtn, #menuToggle {
    background: none;
    border: 1px solid #ccc;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}
body.dark #darkToggle, body.dark #searchBtn, body.dark #menuToggle {
    border-color: #475569;
    color: #e2e8f0;
}
#darkToggle:hover, #searchBtn:hover, #menuToggle:hover {
    background: rgba(26, 115, 232, 0.1);
}
#menuToggle {
    border-radius: 8px;
    width: 40px;
    height: 40px;
    font-size: 20px;
    display: none;
}

/* 搜索模态框 */
#searchModal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}
#searchModal > div {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}
body.dark #searchModal > div {
    background: #1e293b;
    color: #e2e8f0;
}
#searchModal form {
    display: flex;
    gap: 12px;
}
#searchModal input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
}
body.dark #searchModal input {
    background: #0f172a;
    color: #e2e8f0;
    border-color: #475569;
}
#searchModal button[type="submit"] {
    padding: 12px 24px;
    background: #1a73e8;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s;
}
#searchModal button[type="submit"]:hover {
    background: #0d47a1;
}
#searchModal button:last-child {
    margin-top: 16px;
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
}
body.dark #searchModal button:last-child {
    color: #94a3b8;
}

/* Hero Banner 轮播 */
section[aria-label="Banner 轮播"] {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #1a73e8, #0d47a1);
    color: #fff;
    padding: 80px 0 100px;
}
section[aria-label="Banner 轮播"] .container {
    position: relative;
    z-index: 2;
}
.banner-slide {
    text-align: center;
}
.banner-slide h1 {
    font-size: 48px;
    margin-bottom: 16px;
    font-weight: 800;
}
.banner-slide p {
    font-size: 20px;
    max-width: 700px;
    margin: 0 auto 24px;
    opacity: 0.9;
}
.banner-slide a {
    display: inline-block;
    padding: 14px 40px;
    background: #fff;
    color: #1a73e8;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    font-size: 18px;
    transition: transform 0.2s, box-shadow 0.2s;
}
.banner-slide a:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}
.banner-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
    border: none;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s;
}
.banner-dot:hover, .banner-dot.active {
    opacity: 1;
}
section[aria-label="Banner 轮播"] > div:last-child {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: linear-gradient(to top, #f8fafc, transparent);
}

/* 通用section样式 */
section {
    padding: 80px 0;
    transition: background 0.3s;
}
section h2 {
    font-size: 36px;
    text-align: center;
    margin-bottom: 40px;
    color: #1a73e8;
}
body.dark section h2 {
    color: #60a5fa;
}
section p {
    font-size: 18px;
    color: #475569;
}
body.dark section p {
    color: #94a3b8;
}

/* 关于我们 */
#about {
    background: #fff;
}
body.dark #about {
    background: #1e293b;
}
#about > .container > p {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
}
#about .grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}
#about .card {
    background: #f1f5f9;
    padding: 30px;
    border-radius: 16px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}
body.dark #about .card {
    background: #0f172a;
}
#about .card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.1);
}
#about .card svg {
    margin: 0 auto 16px;
}
#about .card h3 {
    font-size: 20px;
    margin-bottom: 8px;
}

/* 品牌故事 */
section:nth-of-type(2) {
    background: #f8fafc;
}
body.dark section:nth-of-type(2) {
    background: #0f172a;
}
section:nth-of-type(2) .grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}
section:nth-of-type(2) .grid > div:first-child h2 {
    text-align: left;
}
section:nth-of-type(2) .grid > div:last-child {
    background: linear-gradient(135deg, #1a73e8, #0d47a1);
    border-radius: 16px;
    padding: 40px;
    color: #fff;
    text-align: center;
}

/* 企业文化 */
section:nth-of-type(3) {
    background: #fff;
}
body.dark section:nth-of-type(3) {
    background: #1e293b;
}
section:nth-of-type(3) .grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
}
section:nth-of-type(3) .card {
    background: rgba(26, 115, 232, 0.05);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(26, 115, 232, 0.1);
    transition: transform 0.3s;
}
body.dark section:nth-of-type(3) .card {
    background: rgba(96, 165, 250, 0.05);
    border-color: rgba(96, 165, 250, 0.1);
}
section:nth-of-type(3) .card:hover {
    transform: translateY(-4px);
}
section:nth-of-type(3) .card h3 {
    font-size: 20px;
    color: #1a73e8;
}
body.dark section:nth-of-type(3) .card h3 {
    color: #60a5fa;
}

/* 核心产品 */
#products {
    background: #f8fafc;
}
body.dark #products {
    background: #0f172a;
}
#products .grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}
#products .card {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s, box-shadow 0.3s;
}
body.dark #products .card {
    background: #1e293b;
}
#products .card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}
#products .card svg {
    margin: 0 auto 16px;
    display: block;
}
#products .card h3 {
    font-size: 22px;
    text-align: center;
    margin-bottom: 8px;
}
#products .card p {
    text-align: center;
}

/* 产品优势 */
section:nth-of-type(5) {
    background: #fff;
}
body.dark section:nth-of-type(5) {
    background: #1e293b;
}
section:nth-of-type(5) .grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}
section:nth-of-type(5) .card {
    background: linear-gradient(135deg, rgba(26,115,232,0.05), rgba(13,71,161,0.05));
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    transition: transform 0.3s;
}
body.dark section:nth-of-type(5) .card {
    background: linear-gradient(135deg, rgba(96,165,250,0.05), rgba(37,99,235,0.05));
}
section:nth-of-type(5) .card:hover {
    transform: scale(1.03);
}
section:nth-of-type(5) .card svg {
    margin: 0 auto 12px;
}
section:nth-of-type(5) .card h3 {
    font-size: 18px;
    color: #1a73e8;
}
body.dark section:nth-of-type(5) .card h3 {
    color: #60a5fa;
}

/* 服务体系 */
#services {
    background: #f8fafc;
}
body.dark #services {
    background: #0f172a;
}
#services .grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}
#services .card {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s;
}
body.dark #services .card {
    background: #1e293b;
}
#services .card:hover {
    transform: translateY(-4px);
}
#services .card h3 {
    font-size: 20px;
    color: #1a73e8;
}
body.dark #services .card h3 {
    color: #60a5fa;
}

/* 行业解决方案 */
section:nth-of-type(7) {
    background: #fff;
}
body.dark section:nth-of-type(7) {
    background: #1e293b;
}
section:nth-of-type(7) .grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}
section:nth-of-type(7) .card {
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px;
    transition: transform 0.3s, box-shadow 0.3s;
}
body.dark section:nth-of-type(7) .card {
    border-color: #334155;
}
section:nth-of-type(7) .card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
section:nth-of-type(7) .card h3 {
    font-size: 20px;
    color: #1a73e8;
}
body.dark section:nth-of-type(7) .card h3 {
    color: #60a5fa;
}

/* 应用场景 */
section:nth-of-type(8) {
    background: #f8fafc;
}
body.dark section:nth-of-type(8) {
    background: #0f172a;
}
section:nth-of-type(8) .grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}
section:nth-of-type(8) .card {
    background: rgba(26, 115, 232, 0.08);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s, background 0.3s;
}
body.dark section:nth-of-type(8) .card {
    background: rgba(96, 165, 250, 0.08);
}
section:nth-of-type(8) .card:hover {
    transform: translateY(-4px);
    background: rgba(26, 115, 232, 0.15);
}
body.dark section:nth-of-type(8) .card:hover {
    background: rgba(96, 165, 250, 0.15);
}
section:nth-of-type(8) .card svg {
    margin: 0 auto 8px;
}
section:nth-of-type(8) .card h3 {
    font-size: 16px;
    color: #1a73e8;
}
body.dark section:nth-of-type(8) .card h3 {
    color: #60a5fa;
}

/* 数据展示 */
section:nth-of-type(9) {
    background: linear-gradient(135deg, #1a73e8, #0d47a1);
    color: #fff;
}
section:nth-of-type(9) h2 {
    color: #fff;
}
section:nth-of-type(9) .grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
    text-align: center;
}
.counter {
    font-size: 48px;
    font-weight: 800;
}
section:nth-of-type(9) p {
    font-size: 16px;
    opacity: 0.9;
    color: #fff;
}

/* 成功案例 */
#cases {
    background: #fff;
}
body.dark #cases {
    background: #1e293b;
}
#cases .grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}
#cases .card {
    background: #f1f5f9;
    border-radius: 16px;
    padding: 24px;
    transition: transform 0.3s, box-shadow 0.3s;
}
body.dark #cases .card {
    background: #0f172a;
}
#cases .card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
#cases .card h3 {
    font-size: 20px;
    color: #1a73e8;
}
body.dark #cases .card h3 {
    color: #60a5fa;
}

/* 合作客户 */
section:nth-of-type(11) {
    background: #f8fafc;
}
body.dark section:nth-of-type(11) {
    background: #0f172a;
}
section:nth-of-type(11) .flex {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    align-items: center;
}
section:nth-of-type(11) .client {
    background: #e2e8f0;
    border-radius: 12px;
    padding: 16px 24px;
    font-weight: 700;
    color: #475569;
    transition: transform 0.3s, background 0.3s;
}
body.dark section:nth-of-type(11) .client {
    background: #334155;
    color: #94a3b8;
}
section:nth-of-type(11) .client:hover {
    transform: scale(1.05);
    background: #cbd5e1;
}
body.dark section:nth-of-type(11) .client:hover {
    background: #475569;
}

/* 客户评价 */
section:nth-of-type(12) {
    background: #fff;
}
body.dark section:nth-of-type(12) {
    background: #1e293b;
}
section:nth-of-type(12) .grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}
section:nth-of-type(12) .card {
    background: #f1f5f9;
    border-radius: 16px;
    padding: 24px;
    position: relative;
    transition: transform 0.3s;
}
body.dark section:nth-of-type(12) .card {
    background: #0f172a;
}
section:nth-of-type(12) .card:hover {
    transform: translateY(-4px);
}
section:nth-of-type(12) .card p:first-child {
    font-style: italic;
}
section:nth-of-type(12) .card p:last-child {
    margin-top: 12px;
    font-weight: 700;
}

/* 新闻中心 */
#news {
    background: #f8fafc;
}
body.dark #news {
    background: #0f172a;
}
#news .grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}
#news article {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s, box-shadow 0.3s;
}
body.dark #news article {
    background: #1e293b;
}
#news article:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
#news article h3 {
    font-size: 18px;
    color: #1a73e8;
}
body.dark #news article h3 {
    color: #60a5fa;
}
#news article p {
    color: #475569;
    margin: 8px 0;
}
body.dark #news article p {
    color: #94a3b8;
}

/* 最新文章 */
section:nth-of-type(14) {
    background: #fff;
}
body.dark section:nth-of-type(14) {
    background: #1e293b;
}
section:nth-of-type(14) .grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}
section:nth-of-type(14) .card {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    transition: transform 0.3s, border-color 0.3s;
}
body.dark section:nth-of-type(14) .card {
    border-color: #334155;
}
section:nth-of-type(14) .card:hover {
    transform: translateY(-4px);
    border-color: #1a73e8;
}
section:nth-of-type(14) .card h3 {
    font-size: 18px;
    color: #1a73e8;
}
body.dark section:nth-of-type(14) .card h3 {
    color: #60a5fa;
}
section:nth-of-type(14) .card p {
    color: #475569;
    font-size: 14px;
}
body.dark section:nth-of-type(14) .card p {
    color: #94a3b8;
}

/* 热门推荐 */
section:nth-of-type(15) {
    background: #f8fafc;
}
body.dark section:nth-of-type(15) {
    background: #0f172a;
}
section:nth-of-type(15) .grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}
section:nth-of-type(15) .card {
    background: rgba(26, 115, 232, 0.06);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    transition: transform 0.3s, background 0.3s;
}
body.dark section:nth-of-type(15) .card {
    background: rgba(96, 165, 250, 0.06);
}
section:nth-of-type(15) .card:hover {
    transform: translateY(-4px);
    background: rgba(26, 115, 232, 0.12);
}
body.dark section:nth-of-type(15) .card:hover {
    background: rgba(96, 165, 250, 0.12);
}
section:nth-of-type(15) .card h3 {
    font-size: 18px;
    color: #1a73e8;
}
body.dark section:nth-of-type(15) .card h3 {
    color: #60a5fa;
}

/* FAQ */
section:nth-of-type(16) {
    background: #fff;
}
body.dark section:nth-of-type(16) {
    background: #1e293b;
}
.faq-item {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: border-color 0.3s;
}
body.dark .faq-item {
    border-color: #334155;
}
.faq-item:hover {
    border-color: #1a73e8;
}
.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 16px 20px;
    text-align: left;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #1e293b;
    transition: background 0.3s;
}
body.dark .faq-question {
    color: #e2e8f0;
}
.faq-question:hover {
    background: rgba(26, 115, 232, 0.05);
}
.faq-question span {
    font-size: 24px;
    transition: transform 0.3s;
}
.faq-answer {
    padding: 0 20px 16px;
    display: none;
    color: #475569;
}
body.dark .faq-answer {
    color: #94a3b8;
}

/* HowTo */
section:nth-of-type(17) {
    background: #f8fafc;
}
body.dark section:nth-of-type(17) {
    background: #0f172a;
}
section:nth-of-type(17) ol {
    list-style: none;
    counter-reset: step;
    display: grid;
    gap: 20px;
}
section:nth-of-type(17) li {
    counter-increment: step;
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: transform 0.3s;
}
body.dark section:nth-of-type(17) li {
    background: #1e293b;
}
section:nth-of-type(17) li:hover {
    transform: translateX(8px);
}
section:nth-of-type(17) li span {
    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;
}

/* 联系我们 */
#contact {
    background: #fff;
}
body.dark #contact {
    background: #1e293b;
}
#contact .card {
    max-width: 600px;
    margin: 0 auto;
    background: #f1f5f9;
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    transition: transform 0.3s;
}
body.dark #contact .card {
    background: #0f172a;
}
#contact .card:hover {
    transform: translateY(-4px);
}
#contact .card p {
    font-size: 18px;
    margin-bottom: 12px;
}
#contact .card p:last-child {
    font-size: 16px;
    color: #475569;
    margin-top: 20px;
}
body.dark #contact .card p:last-child {
    color: #94a3b8;
}

/* 网站地图 */
section:nth-of-type(19) {
    padding: 40px 0;
    background: #f8fafc;
}
body.dark section:nth-of-type(19) {
    background: #0f172a;
}
section:nth-of-type(19) h2 {
    font-size: 24px;
    margin-bottom: 24px;
}
section:nth-of-type(19) .grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    text-align: center;
}
section:nth-of-type(19) a {
    color: #1a73e8;
    text-decoration: none;
    transition: color 0.3s;
}
body.dark section:nth-of-type(19) a {
    color: #60a5fa;
}
section:nth-of-type(19) a:hover {
    color: #0d47a1;
    text-decoration: underline;
}

/* 友情链接 */
section:nth-of-type(20) {
    padding: 20px 0;
    background: #fff;
}
body.dark section:nth-of-type(20) {
    background: #1e293b;
}
section:nth-of-type(20) h3 {
    font-size: 16px;
    color: #475569;
    margin-bottom: 12px;
}
body.dark section:nth-of-type(20) h3 {
    color: #94a3b8;
}
section:nth-of-type(20) .flex {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}
section:nth-of-type(20) a {
    color: #1a73e8;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}
body.dark section:nth-of-type(20) a {
    color: #60a5fa;
}
section:nth-of-type(20) a:hover {
    color: #0d47a1;
}

/* Footer */
footer {
    background: #1e293b;
    color: #cbd5e1;
    padding: 40px 0 20px;
}
footer .grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}
footer h4 {
    color: #fff;
    margin-bottom: 12px;
}
footer p {
    font-size: 14px;
    color: #cbd5e1;
}
footer ul {
    list-style: none;
    font-size: 14px;
}
footer ul li {
    margin-bottom: 4px;
}
footer a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.3s;
}
footer a:hover {
    color: #fff;
}
footer > .container > div:last-child {
    border-top: 1px solid #334155;
    padding-top: 20px;
    text-align: center;
    font-size: 14px;
}
footer > .container > div:last-child p {
    margin-top: 8px;
}

/* 返回顶部 */
#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #1a73e8;
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    z-index: 999;
    transition: background 0.3s, transform 0.3s;
}
#backToTop:hover {
    background: #0d47a1;
    transform: scale(1.1);
}

/* 滚动动画 */
[data-animate] {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* 暗色模式调整 */
body.dark section[aria-label="Banner 轮播"] > div:last-child {
    background: linear-gradient(to top, #0f172a, transparent);
}
body.dark section[aria-label="Banner 轮播"] {
    background: linear-gradient(135deg, #1e3a5f, #0d2137);
}
body.dark section:nth-of-type(9) {
    background: linear-gradient(135deg, #1e3a5f, #0d2137);
}

/* 响应式 */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    header .container {
        padding: 10px 16px;
    }
    header nav[aria-label="主导航"] {
        gap: 12px;
    }
    #menuToggle {
        display: flex;
    }
    header nav a:not(#darkToggle):not(#searchBtn):not(#menuToggle) {
        display: none;
    }
    .banner-slide h1 {
        font-size: 32px;
    }
    .banner-slide p {
        font-size: 16px;
    }
    section h2 {
        font-size: 28px;
    }
    section:nth-of-type(2) .grid {
        grid-template-columns: 1fr;
    }
    section:nth-of-type(2) .grid > div:last-child {
        padding: 24px;
    }
    .counter {
        font-size: 36px;
    }
    footer .grid {
        grid-template-columns: 1fr;
    }
    #backToTop {
        width: 40px;
        height: 40px;
        font-size: 20px;
        bottom: 20px;
        right: 20px;
    }
}

@media (max-width: 480px) {
    .banner-slide h1 {
        font-size: 24px;
    }
    .banner-slide a {
        padding: 12px 24px;
        font-size: 16px;
    }
    #searchModal > div {
        padding: 20px;
    }
    #searchModal form {
        flex-direction: column;
    }
    #searchModal button[type="submit"] {
        width: 100%;
    }
}