/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

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

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

.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 20px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.glass:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

body.dark .glass {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.section {
    padding: 60px 0;
}

h1, h2, h3 {
    margin-bottom: 15px;
}

h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}

h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #ffd700, #e94560);
    margin: 10px auto;
    border-radius: 2px;
}

.section-desc {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    font-size: 1.1rem;
}

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

.btn-primary:hover {
    transform: scale(1.05);
}

.read-more {
    display: inline-block;
    margin-top: 10px;
    color: #ffd700;
    text-decoration: none;
    font-weight: bold;
}

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

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(26, 26, 46, 0.9);
    backdrop-filter: blur(10px);
    padding: 10px 20px;
}

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

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

nav ul li a {
    color: #fff;
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background 0.3s;
}

nav ul li a:hover {
    background: rgba(255, 215, 0, 0.2);
}

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

.nav-actions button {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 5px;
}

#menuToggle {
    display: none;
}

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

.search-box input {
    width: 80%;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

.search-box button {
    padding: 10px 20px;
    background: #ffd700;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

/* Breadcrumb */
.breadcrumb {
    background: #f0f0f0;
    padding: 10px 20px;
    margin-top: 70px;
}

body.dark .breadcrumb {
    background: #2a2a3e;
}

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

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

body.dark .breadcrumb a {
    color: #e0e0e0;
}

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

/* Hero */
.hero {
    position: relative;
    height: 600px;
    overflow: hidden;
}

.hero-slider {
    position: relative;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide.active {
    opacity: 1;
}

.slide-bg svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.slide-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    padding: 20px;
    max-width: 800px;
}

.slide-content h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.slide-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

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

.hero-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
}

.hero-dots span.active {
    background: #ffd700;
}

.hero-prev, .hero-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    border: none;
    font-size: 2rem;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 5px;
}

.hero-prev {
    left: 20px;
}

.hero-next {
    right: 20px;
}

/* Grids */
.brand-grid, .team-grid, .product-grid, .adv-grid, .service-grid, .sol-grid, .ind-grid, .case-grid, .testimonial-grid, .news-grid, .hot-grid, .rel-grid, .contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.culture-list {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.culture-item {
    flex: 1;
    min-width: 250px;
    background: rgba(255, 215, 0, 0.1);
    padding: 20px;
    border-radius: 12px;
}

.core-list {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.core-item {
    text-align: center;
    font-size: 2rem;
    font-weight: bold;
}

.core-item span.num {
    color: #ffd700;
}

.team-card, .product-card, .adv-card, .service-card, .sol-card, .ind-card, .case-card, .testi-card, .news-card, .hot-card {
    text-align: center;
}

.team-card svg, .product-card svg, .adv-card svg, .service-card svg {
    margin-bottom: 15px;
}

.ind-card {
    padding: 30px;
    font-size: 1.2rem;
    font-weight: bold;
}

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

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

.friend-links a:hover {
    text-decoration: underline;
}

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

.faq-item {
    margin-bottom: 10px;
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 15px;
    background: rgba(255, 215, 0, 0.1);
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    color: inherit;
}

.faq-answer {
    display: none;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin-top: 5px;
}

.faq-answer.open {
    display: block;
}

/* HowTo */
.howto-content {
    max-width: 800px;
    margin: 0 auto;
}

.howto-content h3 {
    margin-top: 20px;
}

.howto-content ol {
    padding-left: 20px;
}

/* Contact */
.contact-info p {
    margin-bottom: 10px;
}

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

.contact-qr svg {
    margin-bottom: 10px;
}

/* Article detail */
.article-detail {
    display: none;
    padding: 40px 20px;
    max-width: 800px;
    margin: 0 auto;
}

.article-detail:target {
    display: block;
}

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

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

.footer-col h3 {
    color: #ffd700;
    margin-bottom: 15px;
}

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

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

.footer-col a {
    color: #ccc;
    text-decoration: none;
}

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

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
}

.footer-bottom a {
    color: #ffd700;
    text-decoration: none;
    margin: 0 10px;
}

#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #ffd700;
    color: #1a1a2e;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    display: none;
    z-index: 999;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background: rgba(26, 26, 46, 0.95);
        padding: 20px;
    }

    nav ul.open {
        display: flex;
    }

    #menuToggle {
        display: block;
    }

    .hero {
        height: 400px;
    }

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

    .section {
        padding: 40px 0;
    }

    .breadcrumb {
        margin-top: 60px;
    }
}

/* Scroll animation */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s, transform 0.6s;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}