/* 全局重置与基础 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

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

/* 头部导航 */
header {
    background: #1a1a2e;
    color: #fff;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background 0.3s, box-shadow 0.3s;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ff6b35;
    text-decoration: none;
    transition: color 0.3s;
}

.logo:hover {
    color: #ff8c5a;
}

nav {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

nav a {
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    padding: 8px 12px;
    border-radius: 4px;
    transition: background 0.3s, transform 0.2s;
    position: relative;
}

nav a:hover {
    background: #ff6b35;
    transform: translateY(-2px);
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #ff6b35;
    transition: width 0.3s, left 0.3s;
}

nav a:hover::after {
    width: 80%;
    left: 10%;
}

.menu-toggle {
    display: none;
    background: none;
    border: 2px solid #ff6b35;
    color: #ff6b35;
    font-size: 1.5rem;
    padding: 5px 12px;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.3s, color 0.3s;
}

.menu-toggle:hover {
    background: #ff6b35;
    color: #fff;
}

/* 英雄区渐变Banner */
.hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: #fff;
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

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

@keyframes heroGlow {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(10%, 10%); }
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #ff6b35;
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.8s ease-out;
}

.hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 30px;
    color: #e0e0e0;
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

/* 按钮 */
.btn {
    display: inline-block;
    background: #ff6b35;
    color: #fff;
    padding: 14px 30px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255,107,53,0.4);
    background: #ff8c5a;
}

/* 通用section */
section {
    padding: 80px 0;
    opacity: 0;
    transform: translateY(40px);
    animation: sectionFadeIn 0.8s ease-out forwards;
}

section:nth-child(1) { animation-delay: 0.1s; }
section:nth-child(2) { animation-delay: 0.2s; }
section:nth-child(3) { animation-delay: 0.3s; }
section:nth-child(4) { animation-delay: 0.4s; }
section:nth-child(5) { animation-delay: 0.5s; }
section:nth-child(6) { animation-delay: 0.6s; }
section:nth-child(7) { animation-delay: 0.7s; }
section:nth-child(8) { animation-delay: 0.8s; }
section:nth-child(9) { animation-delay: 0.9s; }
section:nth-child(10) { animation-delay: 1s; }

@keyframes sectionFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

section h2 {
    font-size: 2.2rem;
    margin-bottom: 30px;
    color: #1a1a2e;
    position: relative;
    display: inline-block;
}

section h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: #ff6b35;
    margin-top: 10px;
    transition: width 0.3s;
}

section:hover h2::after {
    width: 80px;
}

/* 网格布局 */
.about-grid,
.advantages-grid,
.testimonials-grid,
.case-grid,
.insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

/* 圆角卡片 + 毛玻璃效果 */
.card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px 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.2);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    background: rgba(255, 255, 255, 0.9);
}

.card h3 {
    color: #ff6b35;
    margin-bottom: 15px;
    font-size: 1.4rem;
    transition: color 0.3s;
}

.card:hover h3 {
    color: #e55a2b;
}

.card p {
    color: #555;
    transition: color 0.3s;
}

/* about文字 */
.about-text {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    color: #444;
}

/* 服务列表 */
.services-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.service-item {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    border-left: 5px solid #ff6b35;
    transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
}

.service-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.9);
}

.service-item h3 {
    color: #1a1a2e;
    margin-bottom: 10px;
}

.service-item p {
    color: #666;
}

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

.faq-item {
    border-bottom: 1px solid #ddd;
    padding: 20px 0;
    transition: border-color 0.3s;
}

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

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1rem;
    color: #1a1a2e;
    transition: color 0.3s;
}

.faq-question:hover {
    color: #ff6b35;
}

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

.faq-question:hover .icon {
    transform: rotate(90deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s;
    color: #555;
    padding-top: 0;
}

.faq-answer.open {
    max-height: 500px;
    padding-top: 10px;
}

/* 指南步骤 */
.howto-steps {
    max-width: 700px;
    margin: 30px auto;
    counter-reset: step;
}

.howto-step {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    align-items: flex-start;
    transition: transform 0.3s;
}

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

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

.howto-step:hover .step-num {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(255,107,53,0.3);
}

.howto-step .step-content h4 {
    color: #1a1a2e;
    margin-bottom: 5px;
}

.howto-step .step-content p {
    color: #666;
}

/* 联系信息 */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    max-width: 800px;
    margin: 30px auto;
}

.contact-item {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
}

.contact-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.9);
}

.contact-item h4 {
    color: #ff6b35;
    margin-bottom: 10px;
}

.contact-item p {
    color: #555;
}

/* 页脚 */
footer {
    background: #1a1a2e;
    color: #ccc;
    padding: 40px 0;
    margin-top: 60px;
}

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

footer h4 {
    color: #ff6b35;
    margin-bottom: 15px;
    position: relative;
}

footer h4::after {
    content: '';
    display: block;
    width: 30px;
    height: 2px;
    background: #ff6b35;
    margin-top: 5px;
    transition: width 0.3s;
}

footer div:hover h4::after {
    width: 50px;
}

footer a {
    color: #ccc;
    text-decoration: none;
    display: block;
    margin-bottom: 8px;
    transition: color 0.3s, padding-left 0.3s;
}

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

.footer-bottom {
    background: #0f0f1f;
    padding: 15px 0;
    text-align: center;
    color: #888;
    font-size: 0.9rem;
    border-top: 1px solid #2a2a4e;
}

/* 返回顶部 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #ff6b35;
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    text-decoration: none;
    opacity: 0;
    transition: opacity 0.4s, transform 0.3s, box-shadow 0.3s;
    z-index: 999;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

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

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

/* 统计数字 */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
    text-align: center;
    margin: 40px 0;
}

.stat-item .number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ff6b35;
    transition: color 0.3s;
}

.stat-item:hover .number {
    color: #e55a2b;
}

.stat-item .label {
    color: #888;
    margin-top: 5px;
}

/* 响应式布局 */
@media (max-width: 768px) {
    nav {
        display: none;
        width: 100%;
        flex-direction: column;
        margin-top: 15px;
        gap: 10px;
    }

    nav.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

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

    .hero {
        padding: 60px 0;
    }

    section {
        padding: 50px 0;
    }

    section h2 {
        font-size: 1.8rem;
    }

    .card,
    .service-item,
    .contact-item {
        padding: 20px;
    }

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

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.6rem;
    }

    .hero p {
        font-size: 1rem;
    }

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

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

/* 暗色模式 */
@media (prefers-color-scheme: dark) {
    body {
        background: #121212;
        color: #e0e0e0;
    }

    .card,
    .service-item,
    .contact-item {
        background: rgba(30, 30, 46, 0.8);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        color: #e0e0e0;
        border-color: rgba(255, 255, 255, 0.1);
    }

    .card:hover,
    .service-item:hover,
    .contact-item:hover {
        background: rgba(30, 30, 46, 0.95);
    }

    .card h3,
    .service-item h3,
    .contact-item h4 {
        color: #ff6b35;
    }

    .card p,
    .service-item p,
    .contact-item p {
        color: #bbb;
    }

    section h2 {
        color: #e0e0e0;
    }

    .faq-question {
        color: #e0e0e0;
    }

    .faq-answer {
        color: #bbb;
    }

    .about-text {
        color: #ccc;
    }

    .stat-item .label {
        color: #aaa;
    }

    .hero {
        background: linear-gradient(135deg, #0d0d1a 0%, #1a1a2e 50%, #0f3460 100%);
    }

    header {
        background: #0d0d1a;
    }

    footer {
        background: #0d0d1a;
    }

    .footer-bottom {
        background: #0a0a12;
        border-top-color: #2a2a4e;
    }

    .faq-item {
        border-bottom-color: #333;
    }

    .faq-item:hover {
        border-bottom-color: #ff6b35;
    }
}