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

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

body.dark-mode {
    background: #0a0a14;
    color: #c0c0c0;
}

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

/* 头部导航 */
header {
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 215, 0, 0.1);
}

nav {
    padding: 15px 20px;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
}

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

.nav-menu a {
    color: #e0e0e0;
    text-decoration: none;
    font-size: 15px;
    padding: 5px 0;
    position: relative;
    transition: color 0.3s;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #ffd700;
}

.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #ffd700;
}

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

.nav-actions button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    transition: opacity 0.3s;
}

.nav-actions button:hover {
    opacity: 0.8;
}

.menu-toggle {
    display: none;
}

.search-bar {
    display: none;
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px;
}

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

.search-bar form {
    display: flex;
    gap: 10px;
}

.search-bar input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ffd700;
    border-radius: 5px;
    background: #1a1a2e;
    color: #fff;
    font-size: 15px;
    outline: none;
}

.search-bar input:focus {
    border-color: #ffaa00;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.2);
}

.search-bar button {
    padding: 10px 20px;
    background: #ffd700;
    border: none;
    border-radius: 5px;
    color: #1a1a2e;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
}

.search-bar button:hover {
    background: #ffaa00;
}

/* 面包屑导航 */
.breadcrumb {
    padding: 10px 20px;
    max-width: 1200px;
    margin: 0 auto;
    font-size: 14px;
    color: #888;
}

.breadcrumb a {
    color: #ffd700;
    text-decoration: none;
}

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

/* Hero Banner 区域 */
.hero {
    position: relative;
    overflow: hidden;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

.hero-carousel {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.hero-slide {
    display: none;
    padding: 80px 20px;
    text-align: center;
}

.hero-slide.active {
    display: block;
    animation: fadeIn 0.8s ease;
}

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

.hero-content h1,
.hero-content h2 {
    font-size: 48px;
    color: #ffd700;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 18px;
    color: #ccc;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary {
    padding: 15px 40px;
    background: linear-gradient(135deg, #ffd700, #ffaa00);
    border: none;
    border-radius: 50px;
    color: #1a1a2e;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    transition: transform 0.3s, box-shadow 0.3s;
    display: inline-block;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.3);
}

.btn-secondary {
    padding: 15px 40px;
    background: transparent;
    border: 2px solid #ffd700;
    border-radius: 50px;
    color: #ffd700;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    transition: background 0.3s, color 0.3s;
    display: inline-block;
}

.btn-secondary:hover {
    background: #ffd700;
    color: #1a1a2e;
}

/* 轮播控制 */
.carousel-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    pointer-events: none;
}

.carousel-controls button {
    pointer-events: all;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
    margin: 0 10px;
}

.carousel-controls button:hover {
    background: rgba(255, 215, 0, 0.3);
}

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

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #555;
    border: none;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
}

.carousel-dot.active {
    background: #ffd700;
    transform: scale(1.2);
}

/* 通用区域样式 */
section {
    padding: 80px 0;
}

section h2 {
    font-size: 36px;
    color: #ffd700;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
}

section h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: #ffd700;
    margin: 10px auto 0;
}

section p {
    font-size: 16px;
    color: #ccc;
    max-width: 800px;
    margin: 0 auto 20px;
    text-align: center;
}

.about p,
.brand-story p {
    text-align: left;
}

/* 网格布局 - 卡片 */
.culture-grid,
.product-grid,
.service-grid,
.solution-grid,
.case-grid,
.testimonial-grid,
.news-grid,
.hot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.culture-card,
.product-card,
.service-card,
.solution-card,
.case-card,
.testimonial-card,
.news-card,
.hot-item {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    border: 1px solid rgba(255, 215, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    opacity: 0;
    transform: translateY(30px);
}

.culture-card.animate,
.product-card.animate,
.service-card.animate,
.solution-card.animate,
.case-card.animate,
.testimonial-card.animate,
.news-card.animate {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.culture-card:hover,
.product-card:hover,
.service-card:hover,
.solution-card:hover,
.case-card:hover,
.testimonial-card:hover,
.news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(255, 215, 0, 0.1);
}

.culture-card h3,
.product-card h3,
.service-card h3,
.solution-card h3,
.case-card h3,
.testimonial-card h3,
.news-card h3,
.hot-item h3 {
    color: #ffd700;
    margin: 15px 0 10px;
    font-size: 20px;
}

.culture-card p,
.product-card p,
.service-card p,
.solution-card p,
.case-card p,
.testimonial-card p,
.news-card p,
.hot-item p {
    font-size: 14px;
    color: #aaa;
}

/* 优势列表 */
.advantages-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 600px;
    margin: 30px auto 0;
}

.advantage-item {
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 20px;
    border: 1px solid rgba(255, 215, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.advantage-item:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.1);
}

.advantage-item h3 {
    color: #ffd700;
    font-size: 18px;
}

.advantage-item p {
    color: #aaa;
    font-size: 14px;
    text-align: left;
}

/* 应用场景 */
.scenario-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.scenario-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    border: 1px solid rgba(255, 215, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.scenario-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.1);
}

.scenario-item h3 {
    color: #ffd700;
    margin: 15px 0 10px;
}

.scenario-item p {
    color: #aaa;
    font-size: 14px;
}

/* 数据统计 */
.stats {
    background: linear-gradient(135deg, #1a1a2e, #0f3460);
}

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

.stat-item {
    text-align: center;
    padding: 30px;
    transition: transform 0.3s;
}

.stat-item:hover {
    transform: scale(1.05);
}

.stat-number {
    font-size: 48px;
    font-weight: bold;
    color: #ffd700;
    display: inline;
}

.stat-suffix {
    font-size: 24px;
    color: #ffd700;
    margin-left: 5px;
}

.stat-item p {
    color: #ccc;
    margin-top: 10px;
    font-size: 16px;
}

/* 客户Logo */
.client-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    margin-top: 30px;
}

.client-logos svg {
    transition: transform 0.3s, opacity 0.3s;
}

.client-logos svg:hover {
    transform: scale(1.1);
    opacity: 0.9;
}

/* 评价 */
.testimonial-author {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
    justify-content: center;
}

.testimonial-author span {
    color: #aaa;
    font-size: 14px;
}

/* 新闻日期 */
.news-date {
    color: #888;
    font-size: 13px;
    margin-bottom: 10px;
}

/* 文章列表 */
.article-list {
    max-width: 800px;
    margin: 0 auto;
}

.article-list article {
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 215, 0, 0.1);
    transition: padding-left 0.3s;
}

.article-list article:hover {
    padding-left: 10px;
}

.article-list h3 a {
    color: #ffd700;
    text-decoration: none;
    font-size: 18px;
    transition: color 0.3s;
}

.article-list h3 a:hover {
    text-decoration: underline;
    color: #ffaa00;
}

.article-list p {
    color: #aaa;
    font-size: 14px;
    text-align: left;
}

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

.faq-item {
    border-bottom: 1px solid rgba(255, 215, 0, 0.1);
}

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

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

.faq-question::after {
    content: '+';
    position: absolute;
    right: 20px;
    font-size: 20px;
    transition: transform 0.3s;
}

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

.faq-answer {
    display: none;
    padding: 0 20px 20px;
    color: #aaa;
}

.faq-answer p {
    text-align: left;
}

/* HowTo步骤 */
.howto-steps {
    max-width: 600px;
    margin: 30px auto 0;
    padding-left: 20px;
}

.howto-steps li {
    padding: 10px 0;
    color: #ccc;
    font-size: 16px;
    transition: transform 0.3s;
}

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

.howto-steps li strong {
    color: #ffd700;
}

/* 联系我们 */
.contact-info {
    text-align: center;
    margin-bottom: 30px;
}

.contact-info p {
    font-size: 16px;
    margin: 10px 0;
}

.contact-form {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form input,
.contact-form textarea {
    padding: 15px;
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-size: 15px;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #ffd700;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.2);
}

.contact-form button {
    padding: 15px;
    background: linear-gradient(135deg, #ffd700, #ffaa00);
    border: none;
    border-radius: 10px;
    color: #1a1a2e;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.contact-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.3);
}

/* 网站地图 */
.sitemap ul {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    list-style: none;
    margin-top: 20px;
}

.sitemap a {
    color: #ffd700;
    text-decoration: none;
    font-size: 15px;
    transition: color 0.3s;
}

.sitemap a:hover {
    text-decoration: underline;
    color: #ffaa00;
}

/* 友情链接 */
.friend-links .links {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-top: 20px;
}

.friend-links a {
    color: #888;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.friend-links a:hover {
    color: #ffd700;
}

/* 作者信息与EEAT */
.author-info p,
.eeat p {
    text-align: left;
    margin: 10px auto;
    max-width: 800px;
}

.eeat p strong {
    color: #ffd700;
}

/* 页脚 */
footer {
    background: #1a1a2e;
    border-top: 1px solid rgba(255, 215, 0, 0.1);
    padding: 40px 0;
}

.footer-content {
    text-align: center;
}

.footer-links {
    margin: 20px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.footer-links a {
    color: #aaa;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #ffd700;
}

.footer-contact p {
    color: #888;
    margin: 5px 0;
    font-size: 14px;
}

.footer-copyright {
    margin-top: 20px;
    color: #666;
    font-size: 13px;
}

.footer-copyright a {
    color: #ffd700;
    text-decoration: none;
}

.footer-copyright a:hover {
    text-decoration: underline;
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #ffd700;
    border: none;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.3);
    z-index: 999;
    transition: transform 0.3s, opacity 0.3s;
}

.back-to-top.visible {
    display: flex;
}

.back-to-top:hover {
    transform: scale(1.1);
}

/* 响应式布局 */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: rgba(26, 26, 46, 0.98);
        padding: 20px;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }

    .nav-menu.active {
        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-content h1,
    .hero-content h2 {
        font-size: 32px;
    }

    .hero-content p {
        font-size: 16px;
    }

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

    .culture-grid,
    .product-grid,
    .service-grid,
    .solution-grid,
    .case-grid,
    .testimonial-grid,
    .news-grid {
        grid-template-columns: 1fr;
    }

    section {
        padding: 50px 0;
    }

    section h2 {
        font-size: 28px;
    }

    .carousel-controls button {
        width: 40px;
        height: 40px;
    }

    .stat-number {
        font-size: 36px;
    }

    .stat-suffix {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .hero-content h1,
    .hero-content h2 {
        font-size: 24px;
    }

    .btn-primary,
    .btn-secondary {
        padding: 12px 30px;
        font-size: 14px;
    }

    .stat-number {
        font-size: 32px;
    }

    .stat-suffix {
        font-size: 18px;
    }

    .hero {
        min-height: 400px;
    }

    .hero-slide {
        padding: 60px 15px;
    }

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

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

/* 暗色模式额外优化 */
body.dark-mode .culture-card,
body.dark-mode .product-card,
body.dark-mode .service-card,
body.dark-mode .solution-card,
body.dark-mode .case-card,
body.dark-mode .testimonial-card,
body.dark-mode .news-card,
body.dark-mode .hot-item,
body.dark-mode .advantage-item,
body.dark-mode .scenario-item {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 215, 0, 0.05);
}

body.dark-mode .contact-form input,
body.dark-mode .contact-form textarea {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 215, 0, 0.1);
}

body.dark-mode .search-bar input {
    background: #0a0a14;
    border-color: rgba(255, 215, 0, 0.3);
}

body.dark-mode footer {
    background: #0a0a14;
}