/* ========================================
   style.css - 必一体育官方网站
   所有样式内联，无外部依赖
   ======================================== */

/* ===== 全局重置与基础 ===== */
*, *::before, *::after {
    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, sans-serif;
    background: #f4f7fc;
    color: #1a2a4a;
    line-height: 1.6;
    overflow-x: hidden;
    transition: background 0.3s ease, color 0.3s ease;
}

body.dark {
    background: #0d1b2a;
    color: #e0e8f0;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

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

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

/* ===== 滚动条美化 ===== */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #e8f0fe;
}
body.dark ::-webkit-scrollbar-track {
    background: #1a2a4a;
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #ff6b35, #ffb347);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #e05520, #ff9f1c);
}

/* ===== 头部导航 ===== */
header {
    background: linear-gradient(135deg, #1a2a4a, #2a4a6a);
    color: #fff;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.logo {
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: -1px;
    background: linear-gradient(135deg, #ff6b35, #ffb347);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo span {
    font-size: 1rem;
    display: block;
    font-weight: 400;
    color: #aac4e0;
    -webkit-text-fill-color: #aac4e0;
}

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

.nav a {
    font-size: 0.95rem;
    font-weight: 500;
    padding: 8px 0;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s ease, color 0.3s ease;
}

.nav a:hover {
    border-bottom-color: #ff6b35;
    color: #ffb347;
}

.nav-toggle {
    display: none;
    background: none;
    border: 2px solid #fff;
    color: #fff;
    font-size: 1.5rem;
    padding: 5px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-toggle:hover {
    background: #ff6b35;
    border-color: #ff6b35;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    padding: 5px 15px;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.search-box input {
    background: transparent;
    border: none;
    color: #fff;
    padding: 8px 0;
    width: 160px;
    outline: none;
    font-size: 0.9rem;
}

.search-box input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.search-box button {
    background: #ff6b35;
    border: none;
    color: #fff;
    padding: 6px 14px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s ease;
}

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

/* ===== 英雄区域 ===== */
.hero {
    background: linear-gradient(135deg, #1a2a4a 0%, #2a4a6a 50%, #1a3a5a 100%);
    color: #fff;
    padding: 100px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -30%;
    left: -20%;
    width: 70%;
    height: 120%;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.2), transparent 70%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -20%;
    right: -10%;
    width: 60%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 179, 71, 0.15), transparent 70%);
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-text h1 {
    font-size: 3.2rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.hero-text h1 span {
    background: linear-gradient(135deg, #ff6b35, #ffb347);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-text p {
    font-size: 1.2rem;
    color: #c0d4e8;
    margin-bottom: 30px;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, #ff6b35, #ffb347);
    color: #1a2a4a;
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(255, 107, 53, 0.5);
}

.btn-outline {
    background: transparent;
    border: 2px solid #ffb347;
    color: #ffb347;
}

.btn-outline:hover {
    background: #ffb347;
    color: #1a2a4a;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
}

.hero-visual svg {
    width: 100%;
    max-width: 450px;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* ===== 通用区块 ===== */
section {
    padding: 80px 0;
}

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

.section-title h2 {
    font-size: 2.4rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    display: block;
    width: 70px;
    height: 4px;
    background: linear-gradient(135deg, #ff6b35, #ffb347);
    margin: 15px auto 0;
    border-radius: 4px;
}

.section-title p {
    color: #5a6a7a;
    font-size: 1.1rem;
    margin-top: 15px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

/* ===== 品牌介绍 ===== */
.brand-intro {
    background: #fff;
}

body.dark .brand-intro {
    background: #122238;
}

.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.intro-text h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.intro-text p {
    color: #4a5a6a;
    margin-bottom: 15px;
    font-size: 1.05rem;
}

body.dark .intro-text p {
    color: #b0c0d0;
}

.intro-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.stat-item {
    background: linear-gradient(135deg, #f0f5ff, #e8f0fe);
    border-radius: 20px;
    padding: 25px;
    text-align: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

body.dark .stat-item {
    background: linear-gradient(135deg, #1a2a4a, #2a3a5a);
}

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

.stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, #ff6b35, #ffb347);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.9rem;
    color: #5a6a7a;
    margin-top: 5px;
}

body.dark .stat-label {
    color: #a0b0c0;
}

.intro-visual svg {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

/* ===== 产品中心 ===== */
.products {
    background: linear-gradient(135deg, #f4f7fc, #e8f0fe);
}

body.dark .products {
    background: linear-gradient(135deg, #0d1b2a, #1a2a4a);
}

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

.product-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: all 0.4s ease;
    text-align: center;
}

body.dark .product-card {
    background: rgba(26, 42, 74, 0.7);
    border-color: rgba(255, 255, 255, 0.1);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

.product-card svg {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    color: #ff6b35;
}

.product-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.product-card p {
    color: #4a5a6a;
    font-size: 0.95rem;
}

body.dark .product-card p {
    color: #b0c0d0;
}

.product-card .btn {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 28px;
    font-size: 0.9rem;
}

/* ===== 关于我们 ===== */
.about {
    background: #fff;
}

body.dark .about {
    background: #122238;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.about-text h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.about-text p {
    color: #4a5a6a;
    margin-bottom: 15px;
}

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

.values {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.value-item {
    background: linear-gradient(135deg, #f0f5ff, #e8f0fe);
    border-radius: 18px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease;
}

body.dark .value-item {
    background: linear-gradient(135deg, #1a2a4a, #2a3a5a);
}

.value-item:hover {
    transform: scale(1.03);
}

.value-item svg {
    width: 40px;
    height: 40px;
    margin: 0 auto 10px;
    color: #ff6b35;
}

.value-item h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.value-item p {
    font-size: 0.9rem;
    color: #5a6a7a;
}

body.dark .value-item p {
    color: #a0b0c0;
}

/* ===== 服务介绍 ===== */
.services {
    background: linear-gradient(135deg, #f4f7fc, #e8f0fe);
}

body.dark .services {
    background: linear-gradient(135deg, #0d1b2a, #1a2a4a);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
}

.service-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.4);
    transition: all 0.4s ease;
    text-align: center;
}

body.dark .service-card {
    background: rgba(26, 42, 74, 0.7);
    border-color: rgba(255, 255, 255, 0.1);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.1);
}

.service-card svg {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    color: #ff6b35;
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.service-card p {
    color: #4a5a6a;
    font-size: 0.95rem;
}

body.dark .service-card p {
    color: #b0c0d0;
}

/* ===== 成功案例 ===== */
.cases {
    background: #fff;
}

body.dark .cases {
    background: #122238;
}

.case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.case-card {
    background: linear-gradient(135deg, #f0f5ff, #e8f0fe);
    border-radius: 20px;
    padding: 25px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

body.dark .case-card {
    background: linear-gradient(135deg, #1a2a4a, #2a3a5a);
}

.case-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.case-card h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.case-card p {
    color: #4a5a6a;
    font-size: 0.95rem;
}

body.dark .case-card p {
    color: #b0c0d0;
}

.case-card .tag {
    display: inline-block;
    background: #ff6b35;
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-bottom: 10px;
}

/* ===== 客户评价 ===== */
.testimonials {
    background: linear-gradient(135deg, #f4f7fc, #e8f0fe);
}

body.dark .testimonials {
    background: linear-gradient(135deg, #0d1b2a, #1a2a4a);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.4);
    transition: all 0.4s ease;
}

body.dark .testimonial-card {
    background: rgba(26, 42, 74, 0.7);
    border-color: rgba(255, 255, 255, 0.1);
}

.testimonial-card:hover {
    transform: translateY(-5px);
}

.testimonial-card .stars {
    color: #ffb347;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.testimonial-card p {
    color: #4a5a6a;
    font-style: italic;
    margin-bottom: 15px;
}

body.dark .testimonial-card p {
    color: #b0c0d0;
}

.testimonial-card .author {
    font-weight: 700;
    font-size: 0.95rem;
}

.testimonial-card .role {
    color: #5a6a7a;
    font-size: 0.85rem;
}

body.dark .testimonial-card .role {
    color: #a0b0c0;
}

/* ===== 新闻中心 ===== */
.news {
    background: #fff;
}

body.dark .news {
    background: #122238;
}

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

.news-card {
    background: linear-gradient(135deg, #f0f5ff, #e8f0fe);
    border-radius: 20px;
    padding: 25px;
    transition: all 0.4s ease;
}

body.dark .news-card {
    background: linear-gradient(135deg, #1a2a4a, #2a3a5a);
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.news-card .date {
    font-size: 0.85rem;
    color: #5a6a7a;
    margin-bottom: 8px;
}

body.dark .news-card .date {
    color: #a0b0c0;
}

.news-card h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.news-card p {
    color: #4a5a6a;
    font-size: 0.95rem;
    margin-bottom: 15px;
}

body.dark .news-card p {
    color: #b0c0d0;
}

.news-card .btn {
    display: inline-block;
    padding: 8px 20px;
    font-size: 0.85rem;
    background: linear-gradient(135deg, #ff6b35, #ffb347);
    color: #1a2a4a;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.news-card .btn:hover {
    transform: translateX(5px);
}

/* ===== 常见问题 ===== */
.faq {
    background: linear-gradient(135deg, #f4f7fc, #e8f0fe);
}

body.dark .faq {
    background: linear-gradient(135deg, #0d1b2a, #1a2a4a);
}

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

.faq-item {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 16px;
    margin-bottom: 15px;
    padding: 20px 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

body.dark .faq-item {
    background: rgba(26, 42, 74, 0.7);
    border-color: rgba(255, 255, 255, 0.1);
}

.faq-item:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    font-size: 1.1rem;
}

.faq-question .icon {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
    color: #ff6b35;
}

.faq-item.active .faq-question .icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, opacity 0.4s ease;
    opacity: 0;
    margin-top: 0;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    opacity: 1;
    margin-top: 15px;
}

.faq-answer p {
    color: #4a5a6a;
    font-size: 0.95rem;
}

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

/* ===== 教程 ===== */
.howto {
    background: #fff;
}

body.dark .howto {
    background: #122238;
}

.howto-steps {
    max-width: 800px;
    margin: 0 auto;
    counter-reset: step;
}

.howto-step {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    background: rgba(240, 245, 255, 0.5);
    border-radius: 20px;
    padding: 25px;
    transition: all 0.3s ease;
}

body.dark .howto-step {
    background: rgba(26, 42, 74, 0.5);
}

.howto-step:hover {
    transform: translateX(5px);
}

.howto-step .step-num {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #ff6b35, #ffb347);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.3rem;
    color: #1a2a4a;
}

.howto-step .step-content h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.howto-step .step-content p {
    color: #4a5a6a;
    font-size: 0.95rem;
}

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

/* ===== 联系我们 ===== */
.contact {
    background: linear-gradient(135deg, #1a2a4a, #2a4a6a);
    color: #fff;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.contact-info p {
    color: #c0d4e8;
    margin-bottom: 10px;
    font-size: 1rem;
}

.contact-info .item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

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

.contact-form {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 24px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-form h3 {
    margin-bottom: 20px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px 18px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-size: 1rem;
    margin-bottom: 15px;
    outline: none;
    transition: border-color 0.3s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #ff6b35;
}

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

.contact-form .btn {
    width: 100%;
}

/* ===== 页脚 ===== */
.footer {
    background: #0d1b2a;
    color: #a0b0c0;
    padding: 60px 0 30px;
}

body.dark .footer {
    background: #081220;
}

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

.footer-col h4 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(135deg, #ff6b35, #ffb347);
    border-radius: 3px;
}

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

.footer-col ul li a {
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.footer-col ul li a:hover {
    color: #ffb347;
}

.footer-col p {
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 25px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 0.9rem;
}

.footer-bottom a {
    color: #ffb347;
    transition: color 0.3s ease;
}

.footer-bottom a:hover {
    color: #ff6b35;
}

/* ===== 返回顶部 ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #ff6b35, #ffb347);
    border: none;
    border-radius: 50%;
    color: #1a2a4a;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(255, 107, 53, 0.5);
}

/* ===== 暗色模式切换 ===== */
.dark-toggle {
    position: fixed;
    top: 90px;
    right: 20px;
    z-index: 999;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.3rem;
    color: #fff;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.dark-toggle:hover {
    background: #ff6b35;
    transform: scale(1.1);
}

body.dark .dark-toggle {
    background: rgba(255, 255, 255, 0.1);
    color: #ffb347;
}

/* ===== 响应式布局 ===== */

/* 平板 */
@media (max-width: 1024px) {
    .hero-grid,
    .intro-grid,
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-visual {
        min-height: 200px;
    }

    .hero-visual svg {
        max-width: 300px;
    }

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

/* 手机 */
@media (max-width: 768px) {
    .nav {
        display: none;
        flex-direction: column;
        width: 100%;
        background: rgba(26, 42, 74, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        padding: 20px;
        border-radius: 16px;
        margin-top: 15px;
        gap: 15px;
    }

    .nav.open {
        display: flex;
    }

    .nav-toggle {
        display: block;
    }

    .search-box {
        width: 100%;
    }

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

    .hero-text h1 {
        font-size: 2rem;
    }

    .section-title h2 {
        font-size: 1.8rem;
    }

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

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

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

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .dark-toggle {
        top: 80px;
        right: 15px;
        width: 42px;
        height: 42px;
    }
}

/* 小屏幕手机 */
@media (max-width: 480px) {
    .hero {
        padding: 60px 0 40px;
    }

    .hero-text h1 {
        font-size: 1.6rem;
    }

    .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }

    .product-card,
    .service-card,
    .case-card,
    .testimonial-card,
    .news-card {
        padding: 20px;
    }
}