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

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

body.dark {
    background: #1a1a2e;
    color: #e0e0e0;
}

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

a:hover {
    color: #e55a2b;
}

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

/* ===== 头部导航 ===== */
header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: white;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    backdrop-filter: blur(10px);
    transition: background 0.3s, box-shadow 0.3s;
}

header.dark {
    background: linear-gradient(135deg, #0f0f23, #1a1a2e);
}

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

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(90deg, #ff6b35, #ffa500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

nav ul li a {
    color: white;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s;
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    width: 0;
    height: 2px;
    background: #ff6b35;
    transition: all 0.3s;
    transform: translateX(-50%);
}

nav ul li a:hover::after,
nav ul li a.active::after {
    width: 60%;
}

nav ul li a:hover,
nav ul li a.active {
    background: rgba(255,107,53,0.2);
    color: #ff6b35;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: transform 0.3s;
}

.menu-toggle:hover {
    transform: scale(1.1);
}

.dark-toggle {
    background: none;
    border: 2px solid rgba(255,255,255,0.3);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.dark-toggle:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.5);
}

/* ===== Hero区域 ===== */
.hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: white;
    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: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(90deg, #ff6b35, #ffa500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    animation: fadeInUp 0.8s ease;
}

.hero p {
    font-size: 1.3rem;
    max-width: 700px;
    margin: 0 auto 30px;
    opacity: 0.9;
    position: relative;
    animation: fadeInUp 1s ease;
}

.hero .btn {
    display: inline-block;
    background: linear-gradient(90deg, #ff6b35, #e55a2b);
    color: white;
    padding: 16px 40px;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 700;
    transition: all 0.3s;
    box-shadow: 0 8px 25px rgba(255,107,53,0.4);
    animation: fadeInUp 1.2s ease;
}

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

/* ===== 搜索框 ===== */
.search-box {
    display: flex;
    max-width: 500px;
    margin: 30px auto 0;
    animation: fadeInUp 1.4s ease;
}

.search-box input {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 30px 0 0 30px;
    background: rgba(255,255,255,0.1);
    color: white;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s, background 0.3s;
}

.search-box input:focus {
    border-color: #ff6b35;
    background: rgba(255,255,255,0.15);
}

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

.search-box button {
    padding: 15px 25px;
    background: #ff6b35;
    border: none;
    color: white;
    border-radius: 0 30px 30px 0;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: background 0.3s;
}

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

/* ===== 统计数字 ===== */
.stats {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
    margin-top: 40px;
    animation: fadeInUp 1.6s ease;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(90deg, #ff6b35, #ffa500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    opacity: 0.7;
    margin-top: 5px;
}

/* ===== 通用Section ===== */
.section {
    padding: 80px 0;
    transition: background 0.3s;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 50px;
    position: relative;
}

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

/* ===== 网格布局 ===== */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

/* ===== 卡片 ===== */
.card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    transition: all 0.4s;
    border: 1px solid rgba(0,0,0,0.05);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s forwards;
}

body.dark .card {
    background: #16213e;
    border-color: rgba(255,255,255,0.1);
}

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

.card-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.card p {
    opacity: 0.8;
    line-height: 1.7;
}

/* 卡片延迟动画 */
.grid .card:nth-child(1) { animation-delay: 0.1s; }
.grid .card:nth-child(2) { animation-delay: 0.2s; }
.grid .card:nth-child(3) { animation-delay: 0.3s; }
.grid .card:nth-child(4) { animation-delay: 0.4s; }
.grid .card:nth-child(5) { animation-delay: 0.5s; }
.grid .card:nth-child(6) { animation-delay: 0.6s; }

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

/* ===== 徽章 ===== */
.badge {
    display: inline-block;
    background: linear-gradient(90deg, #ff6b35, #ffa500);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* ===== 团队网格 ===== */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}

.team-member {
    padding: 30px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    transition: all 0.4s;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s forwards;
}

body.dark .team-member {
    background: #16213e;
}

.team-member:hover {
    transform: translateY(-5px);
}

.team-member svg {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 15px;
}

.team-member h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.team-member p {
    opacity: 0.7;
    font-size: 0.95rem;
}

.team-grid .team-member:nth-child(1) { animation-delay: 0.1s; }
.team-grid .team-member:nth-child(2) { animation-delay: 0.2s; }
.team-grid .team-member:nth-child(3) { animation-delay: 0.3s; }
.team-grid .team-member:nth-child(4) { animation-delay: 0.4s; }

/* ===== 客户评价 ===== */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    position: relative;
    transition: all 0.4s;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s forwards;
}

body.dark .testimonial {
    background: #16213e;
}

.testimonial::before {
    content: '"';
    font-size: 4rem;
    color: #ff6b35;
    opacity: 0.3;
    position: absolute;
    top: 10px;
    left: 20px;
}

.testimonial p {
    font-style: italic;
    margin-bottom: 20px;
}

.testimonial .author {
    font-weight: 600;
}

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

.testimonial-grid .testimonial:nth-child(1) { animation-delay: 0.1s; }
.testimonial-grid .testimonial:nth-child(2) { animation-delay: 0.2s; }
.testimonial-grid .testimonial:nth-child(3) { animation-delay: 0.3s; }

/* ===== FAQ ===== */
.faq-item {
    background: white;
    border-radius: 15px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: all 0.3s;
}

body.dark .faq-item {
    background: #16213e;
}

.faq-question {
    padding: 20px 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 1.1rem;
    transition: background 0.3s;
}

.faq-question:hover {
    background: rgba(255,107,53,0.05);
}

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

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

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

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

/* ===== 新闻 ===== */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.news-item {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    transition: all 0.4s;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s forwards;
}

body.dark .news-item {
    background: #16213e;
}

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.12);
}

.news-item .content {
    padding: 25px;
}

.news-item .date {
    font-size: 0.9rem;
    opacity: 0.6;
    margin-bottom: 10px;
}

.news-item h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.news-item p {
    opacity: 0.8;
}

.news-grid .news-item:nth-child(1) { animation-delay: 0.1s; }
.news-grid .news-item:nth-child(2) { animation-delay: 0.2s; }
.news-grid .news-item:nth-child(3) { animation-delay: 0.3s; }

/* ===== 联系卡片 ===== */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.contact-item {
    background: white;
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    transition: all 0.4s;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s forwards;
}

body.dark .contact-item {
    background: #16213e;
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.12);
}

.contact-item svg {
    width: 50px;
    height: 50px;
    margin-bottom: 15px;
}

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

.contact-item p {
    opacity: 0.8;
}

.contact-grid .contact-item:nth-child(1) { animation-delay: 0.1s; }
.contact-grid .contact-item:nth-child(2) { animation-delay: 0.2s; }
.contact-grid .contact-item:nth-child(3) { animation-delay: 0.3s; }

/* ===== 面包屑 ===== */
.breadcrumb {
    display: flex;
    list-style: none;
    gap: 10px;
    padding: 15px 0;
    font-size: 0.9rem;
}

.breadcrumb li a {
    color: #ff6b35;
}

.breadcrumb li::after {
    content: '/';
    margin-left: 10px;
    color: #999;
}

.breadcrumb li:last-child::after {
    content: '';
}

.breadcrumb li:last-child a {
    color: #999;
    pointer-events: none;
}

/* ===== 相关链接 ===== */
.related-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.related-links a {
    background: rgba(255,107,53,0.1);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.related-links a:hover {
    background: rgba(255,107,53,0.2);
    transform: translateY(-2px);
}

/* ===== 页脚 ===== */
footer {
    background: #1a1a2e;
    color: white;
    padding: 60px 0 30px;
    transition: background 0.3s;
}

footer.dark {
    background: #0f0f23;
}

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

.footer-col h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
}

.footer-col h4::after {
    content: '';
    display: block;
    width: 30px;
    height: 3px;
    background: #ff6b35;
    margin-top: 8px;
}

.footer-col ul {
    list-style: none;
}

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

.footer-col ul li a {
    color: rgba(255,255,255,0.7);
    transition: color 0.3s;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-bottom p {
    opacity: 0.6;
    font-size: 0.9rem;
}

/* ===== 返回顶部 ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(90deg, #ff6b35, #e55a2b);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    font-size: 1.5rem;
    box-shadow: 0 8px 25px rgba(255,107,53,0.4);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 999;
}

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

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

/* ===== Banner轮播 ===== */
.banner-carousel {
    position: relative;
    margin-top: 50px;
}

.banner-slide {
    display: none;
    padding: 40px;
    background: rgba(255,255,255,0.05);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    animation: fadeIn 0.8s ease;
}

.banner-slide.active {
    display: block;
}

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

.banner-slide h3 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.banner-slide p {
    font-size: 1.1rem;
    opacity: 0.8;
}

.carousel-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.carousel-btn {
    background: rgba(255,255,255,0.1);
    border: none;
    color: white;
    padding: 12px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s;
}

.carousel-btn:hover {
    background: rgba(255,107,53,0.3);
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
    nav ul {
        display: none;
        flex-direction: column;
        background: #1a1a2e;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        padding: 20px;
        gap: 10px;
        box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    }

    nav ul.open {
        display: flex;
        animation: slideDown 0.3s ease;
    }

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

    .menu-toggle {
        display: block;
    }

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

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

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

    .stats {
        gap: 30px;
    }

    .stat-number {
        font-size: 2rem;
    }

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

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

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

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

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

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

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

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

    .hero {
        padding: 60px 0;
    }

    .section {
        padding: 50px 0;
    }

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

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

    .search-box {
        flex-direction: column;
        max-width: 100%;
    }

    .search-box input {
        border-radius: 30px;
        margin-bottom: 10px;
    }

    .search-box button {
        border-radius: 30px;
    }
}