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

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

body.dark-mode {
    background: #0f0c29;
    color: #e0e0e0;
}

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

/* 头部导航 */
header {
    background: #1a1a2e;
    color: white;
    padding: 0 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    height: 70px;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo svg {
    display: block;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 20px;
    align-items: center;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 6px;
    transition: background 0.3s ease, color 0.3s ease;
    font-size: 15px;
}

.nav-menu a:hover,
.nav-menu a.active {
    background: #e94560;
    color: white;
}

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

.nav-actions button {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 6px;
    border-radius: 50%;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-actions button:hover {
    background: rgba(233, 69, 96, 0.3);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    background: white;
    display: block;
    transition: all 0.3s ease;
}

/* 搜索覆盖层 */
.search-overlay {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.9);
    padding: 20px;
    z-index: 999;
    animation: fadeIn 0.3s ease;
}

.search-overlay.active {
    display: block;
}

.search-box {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
    gap: 10px;
}

.search-box input {
    flex: 1;
    padding: 12px 16px;
    border-radius: 8px;
    border: none;
    font-size: 16px;
    background: #fff;
    color: #1a1a2e;
    outline: none;
}

.search-box input:focus {
    box-shadow: 0 0 0 3px rgba(233, 69, 96, 0.3);
}

.search-box button {
    padding: 12px 24px;
    background: #e94560;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: background 0.3s ease;
}

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

.search-close {
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    padding: 0 10px;
    transition: transform 0.3s ease;
}

.search-close:hover {
    transform: rotate(90deg);
}

/* 面包屑导航 */
.breadcrumb {
    background: #f0f0f0;
    padding: 10px 20px;
    font-size: 14px;
}

body.dark-mode .breadcrumb {
    background: #1a1a2e;
    color: #ccc;
}

.breadcrumb ol {
    list-style: none;
    display: flex;
    gap: 8px;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.breadcrumb li + li::before {
    content: "/";
    margin-right: 8px;
    color: #888;
}

.breadcrumb a {
    color: #e94560;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #d63850;
    text-decoration: underline;
}

/* Hero 横幅区域 */
.hero {
    position: relative;
    overflow: hidden;
    height: 520px;
}

.hero-banner {
    position: relative;
    height: 100%;
    background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
}

body.dark-mode .hero-banner {
    background: linear-gradient(135deg, #0a0a1a, #1a1a3e, #2d2d44);
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 60px;
    opacity: 0;
    transition: opacity 0.8s ease;
    pointer-events: none;
}

.hero-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.hero-content {
    max-width: 500px;
    z-index: 1;
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: white;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #ddd;
    line-height: 1.6;
}

.btn-primary {
    padding: 14px 36px;
    background: #e94560;
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    display: inline-block;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(233, 69, 96, 0.3);
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(233, 69, 96, 0.5);
}

.hero-image svg {
    max-width: 100%;
    height: auto;
    display: block;
}

.hero-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 2;
}

.dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}

.dot:hover {
    transform: scale(1.2);
}

.dot.active {
    background: #e94560;
}

.hero-prev,
.hero-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 16px 20px;
    cursor: pointer;
    font-size: 24px;
    border-radius: 50%;
    transition: background 0.3s ease, transform 0.3s ease;
    z-index: 2;
    line-height: 1;
}

.hero-prev:hover,
.hero-next:hover {
    background: rgba(233, 69, 96, 0.7);
    transform: translateY(-50%) scale(1.1);
}

.hero-prev {
    left: 20px;
}

.hero-next {
    right: 20px;
}

/* 通用区块 */
.section {
    padding: 60px 0;
}

.section h2 {
    font-size: 2rem;
    margin-bottom: 40px;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

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

body.dark-mode .section h2::after {
    background: #e94560;
}

/* 品牌卡片网格 */
.brand-grid,
.team-grid,
.product-grid,
.service-grid,
.case-grid,
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

/* 卡片通用样式 */
.brand-card,
.team-card,
.product-card,
.service-card,
.case-card,
.news-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

body.dark-mode .brand-card,
body.dark-mode .team-card,
body.dark-mode .product-card,
body.dark-mode .service-card,
body.dark-mode .case-card,
body.dark-mode .news-card {
    background: rgba(30, 30, 58, 0.8);
    border-color: rgba(255, 255, 255, 0.05);
}

.brand-card:hover,
.team-card:hover,
.product-card:hover,
.service-card:hover,
.case-card:hover,
.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.brand-card svg,
.team-card svg {
    margin-bottom: 20px;
    display: block;
}

.brand-card h3,
.team-card h3,
.product-card h3,
.service-card h3,
.case-card h3,
.news-card h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: #1a1a2e;
}

body.dark-mode .brand-card h3,
body.dark-mode .team-card h3,
body.dark-mode .product-card h3,
body.dark-mode .service-card h3,
body.dark-mode .case-card h3,
body.dark-mode .news-card h3 {
    color: #e0e0e0;
}

.brand-card p,
.team-card p,
.product-card p,
.service-card p,
.case-card p,
.news-card p {
    color: #555;
    line-height: 1.7;
}

body.dark-mode .brand-card p,
body.dark-mode .team-card p,
body.dark-mode .product-card p,
body.dark-mode .service-card p,
body.dark-mode .case-card p,
body.dark-mode .news-card p {
    color: #bbb;
}

.news-card time {
    display: block;
    color: #888;
    margin: 8px 0;
    font-size: 0.9rem;
}

.read-more {
    color: #e94560;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    margin-top: 10px;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #d63850;
    text-decoration: underline;
}

/* 企业文化 */
.culture-section .culture-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.culture-section .culture-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

.culture-values {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 20px;
    flex-wrap: wrap;
}

.culture-values span {
    background: #e94560;
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 1rem;
    transition: transform 0.3s ease;
    cursor: default;
}

.culture-values span:hover {
    transform: scale(1.05);
}

/* 核心数据 */
.core-grid {
    display: flex;
    justify-content: space-around;
    text-align: center;
    gap: 30px;
    flex-wrap: wrap;
}

.core-grid div {
    flex: 1;
    min-width: 150px;
}

.core-grid .num {
    font-size: 3rem;
    font-weight: bold;
    color: #e94560;
    display: block;
    line-height: 1.2;
}

.core-grid p {
    font-size: 1rem;
    color: #666;
    margin-top: 8px;
}

body.dark-mode .core-grid p {
    color: #aaa;
}

/* 侧边栏布局 */
.sidebar-layout {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.sidebar {
    width: 280px;
    flex-shrink: 0;
    position: sticky;
    top: 90px;
}

.sidebar h3 {
    margin-top: 24px;
    margin-bottom: 12px;
    font-size: 1.2rem;
    color: #1a1a2e;
}

body.dark-mode .sidebar h3 {
    color: #e0e0e0;
}

.sidebar h3:first-child {
    margin-top: 0;
}

.sidebar ul {
    list-style: none;
    padding: 0;
}

.sidebar ul li {
    margin-bottom: 8px;
}

.sidebar a {
    color: #e94560;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.sidebar a:hover {
    color: #d63850;
    text-decoration: underline;
}

.sidebar-main {
    flex: 1;
    min-width: 0;
}

.full-article {
    margin-bottom: 40px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: background 0.3s ease;
}

body.dark-mode .full-article {
    background: rgba(30, 30, 58, 0.8);
    border-color: rgba(255, 255, 255, 0.05);
}

.full-article h3 {
    font-size: 1.4rem;
    margin-bottom: 8px;
    color: #1a1a2e;
}

body.dark-mode .full-article h3 {
    color: #e0e0e0;
}

.full-article time {
    color: #888;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 12px;
}

.full-article p {
    line-height: 1.8;
    color: #444;
}

body.dark-mode .full-article p {
    color: #bbb;
}

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

.faq-item {
    margin-bottom: 12px;
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 16px 20px;
    background: #e94560;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    position: relative;
    transition: background 0.3s ease;
    font-weight: 600;
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
    transform: translateY(-50%) rotate(45deg);
}

.faq-question:hover {
    background: #d63850;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    background: #f9f9f9;
    padding: 0 20px;
    border-radius: 0 0 8px 8px;
}

body.dark-mode .faq-answer {
    background: #2d2d44;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 16px 20px;
}

.faq-answer p {
    padding: 0;
    line-height: 1.7;
}

/* 操作指南 */
.howto-steps {
    max-width: 800px;
    margin: 0 auto;
}

.howto-steps h3 {
    font-size: 1.2rem;
    margin-top: 24px;
    margin-bottom: 10px;
    color: #e94560;
}

.howto-steps p {
    line-height: 1.8;
    margin-bottom: 12px;
}

.howto-steps ol {
    padding-left: 24px;
    margin: 10px 0;
    line-height: 1.8;
}

.howto-steps ol li {
    margin-bottom: 6px;
}

/* 联系我们 */
.contact-section p {
    text-align: center;
    line-height: 2;
    font-size: 1.05rem;
}

.contact-qr {
    display: flex;
    gap: 40px;
    justify-content: center;
    margin-top: 30px;
    flex-wrap: wrap;
}

.contact-qr div {
    text-align: center;
}

.contact-qr svg {
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.contact-qr p {
    margin-top: 8px;
    font-size: 0.95rem;
    color: #555;
}

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

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

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.footer-inner h4 {
    margin-bottom: 16px;
    color: #e94560;
    font-size: 1.1rem;
}

.footer-inner ul {
    list-style: none;
    padding: 0;
}

.footer-inner ul li {
    margin-bottom: 8px;
}

.footer-inner a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.footer-inner a:hover {
    color: #e94560;
}

.footer-legal {
    grid-column: 1 / -1;
    text-align: center;
    border-top: 1px solid #333;
    padding-top: 20px;
    margin-top: 20px;
    font-size: 14px;
    color: #aaa;
    line-height: 1.8;
}

.footer-legal p {
    margin-bottom: 4px;
}

/* 返回顶部按钮 */
#backToTop {
    display: none;
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #e94560;
    color: white;
    border: none;
    padding: 14px 18px;
    border-radius: 50%;
    font-size: 22px;
    cursor: pointer;
    z-index: 999;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: background 0.3s ease, transform 0.3s ease;
    line-height: 1;
}

#backToTop:hover {
    background: #d63850;
    transform: translateY(-3px);
}

/* 滚动动画 */
.animate-in {
    animation: fadeInUp 0.6s ease forwards;
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* 图片懒加载占位 */
svg[loading="lazy"] {
    background: #f0f0f0;
    border-radius: 12px;
}

body.dark-mode svg[loading="lazy"] {
    background: #2d2d44;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-inner {
        height: 60px;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: #1a1a2e;
        padding: 20px;
        gap: 10px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    }

    .nav-menu.open {
        display: flex;
    }

    .nav-menu a {
        padding: 12px;
        font-size: 16px;
    }

    .menu-toggle {
        display: flex;
    }

    .hero {
        height: auto;
        min-height: 400px;
    }

    .hero-slide {
        position: relative;
        flex-direction: column;
        text-align: center;
        opacity: 1;
        padding: 40px 20px;
        height: auto;
        pointer-events: auto;
    }

    .hero-slide:not(.active) {
        display: none;
    }

    .hero-content {
        max-width: 100%;
        margin-bottom: 20px;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

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

    .hero-image {
        display: none;
    }

    .hero-prev,
    .hero-next {
        display: none;
    }

    .hero-controls {
        position: relative;
        bottom: auto;
        margin-top: 20px;
    }

    .section {
        padding: 40px 0;
    }

    .section h2 {
        font-size: 1.6rem;
        margin-bottom: 30px;
    }

    .brand-grid,
    .team-grid,
    .product-grid,
    .service-grid,
    .case-grid,
    .news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .sidebar-layout {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        position: static;
        margin-bottom: 20px;
    }

    .sidebar h3 {
        margin-top: 16px;
    }

    .core-grid {
        gap: 20px;
    }

    .core-grid .num {
        font-size: 2.2rem;
    }

    .core-grid div {
        min-width: 120px;
    }

    .culture-values {
        gap: 12px;
    }

    .culture-values span {
        padding: 6px 16px;
        font-size: 0.9rem;
    }

    .faq-question {
        font-size: 15px;
        padding: 14px 16px;
    }

    .contact-qr {
        gap: 20px;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-legal {
        font-size: 13px;
    }

    #backToTop {
        bottom: 20px;
        right: 20px;
        padding: 12px 16px;
        font-size: 18px;
    }
}

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

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

    .section h2 {
        font-size: 1.4rem;
    }

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