:root {
    --primary: #0a1628;
    --secondary: #1a365d;
    --accent: #3182ce;
    --gold: #d69e2e;
    --text: #2d3748;
    --light: #f7fafc;
    --white: #ffffff;
    --gradient: linear-gradient(135deg, #0a1628 0%, #1a365d 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', -apple-system, sans-serif;
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 22, 40, 0.95);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.header.scrolled {
    box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

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

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

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.logo-text {
    font-size: 36px;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 2px;
}

.logo-text span {
    color: var(--gold);
}

.nav {
    display: flex;
    gap: 40px;
}

.nav a {
    color: var(--white);
    font-size: 15px;
    position: relative;
    padding: 5px 0;
    transition: color 0.3s;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width 0.3s;
}

.nav a:hover::after,
.nav a.active::after {
    width: 100%;
}

.nav a:hover {
    color: var(--gold);
}

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

.menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--white);
    transition: all 0.3s;
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--primary);
    padding: 20px;
    flex-direction: column;
    gap: 15px;
}

.mobile-nav.active {
    display: flex;
}

.mobile-nav a {
    color: var(--white);
    padding: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.hero {
    min-height: 100vh;
    background: var(--gradient);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--gold);
    border-radius: 50%;
    opacity: 0.3;
    animation: float 15s infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.3;
    }
    90% {
        opacity: 0.3;
    }
    100% {
        transform: translateY(-100vh) rotate(720deg);
        opacity: 0;
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(214, 158, 46, 0.2);
    border: 1px solid var(--gold);
    border-radius: 30px;
    color: var(--gold);
    font-size: 14px;
    margin-bottom: 30px;
    animation: fadeInUp 0.8s ease;
}

.hero h1 {
    font-size: clamp(36px, 6vw, 64px);
    font-weight: 800;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 24px;
    animation: fadeInUp 0.8s ease 0.2s backwards;
}

.hero h1 span {
    background: linear-gradient(135deg, var(--gold), #f6e05e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 18px;
    color: rgba(255,255,255,0.8);
    margin-bottom: 40px;
    max-width: 600px;
    animation: fadeInUp 0.8s ease 0.4s backwards;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.6s backwards;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--gold);
    color: var(--primary);
}

.btn-primary:hover {
    background: #f6e05e;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(214, 158, 46, 0.3);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary);
}

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

.features {
    padding: 100px 0;
    background: var(--light);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-header h2 {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 16px;
}

.section-header p {
    font-size: 16px;
    color: #718096;
}

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

.feature-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

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

.feature-icon {
    width: 240px;
    height: 140px;
    background: var(--gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 28px;
}

.feature-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
    padding: 3px;
}

.contact-icon {
    background: #ffffff !important;
}

.feature-card h3 {
    font-size: 20px;
    color: var(--primary);
    margin-bottom: 12px;
}

.feature-card p {
    font-size: 14px;
    color: #718096;
    line-height: 1.8;
}

.products-preview {
    padding: 100px 0;
    background: var(--white);
}

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

.product-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: var(--white);
    transition: all 0.3s ease;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

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

.product-card img {
    width: 100%;
    height: 280px;
    object-fit: contain;
    object-position: center;
    border-radius: 12px 12px 0 0;
    background: #f8f9fa;
    padding: 20px;
}

.product-info {
    padding: 20px;
}

.product-info h3 {
    font-size: 18px;
    color: var(--primary);
    margin-bottom: 8px;
}

.product-info p {
    font-size: 14px;
    color: #718096;
    margin-bottom: 16px;
}

.product-link {
    color: var(--accent);
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.product-link:hover {
    color: var(--gold);
}

.cases-preview {
    padding: 100px 0;
    background: var(--primary);
}

.cases-preview .section-header h2,
.cases-preview .section-header p {
    color: var(--white);
}

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

.case-card {
    background: rgba(255,255,255,0.05);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s ease;
}

.case-card:hover {
    transform: translateY(-5px);
    background: rgba(255,255,255,0.1);
}

.case-card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    object-position: center;
}

.case-content {
    padding: 24px;
}

.case-tag {
    display: inline-block;
    padding: 4px 12px;
    background: var(--gold);
    color: var(--primary);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 12px;
}

.case-content h3 {
    color: var(--white);
    font-size: 18px;
    margin-bottom: 8px;
}

.case-content p {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
}

.cta {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--gold), #f6e05e);
    text-align: center;
}

.cta h2 {
    font-size: clamp(28px, 4vw, 42px);
    color: var(--primary);
    margin-bottom: 16px;
}

.cta p {
    font-size: 18px;
    color: var(--primary);
    opacity: 0.8;
    margin-bottom: 32px;
}

.footer {
    background: var(--primary);
    padding: 60px 0 30px;
    color: var(--white);
}

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

.footer-col h4 {
    font-size: 16px;
    margin-bottom: 20px;
    color: var(--gold);
}

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

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

.footer-col ul li a:hover {
    color: var(--gold);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 14px;
    color: rgba(255,255,255,0.5);
}

.floating-buttons {
    position: fixed;
    right: 20px;
    bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 999;
}

.float-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.float-btn:hover {
    transform: scale(1.1);
}

.wechat-btn {
    background: #07c160;
    color: white;
}

.ai-btn {
    background: var(--accent);
    color: white;
}

.contact-btn {
    background: var(--gold);
    color: var(--primary);
}

.social-btn {
    background: #ff6b6b;
    color: white;
}

.xiaohongshu-btn {
    background: #fe2c55;
    color: white;
}

.video-btn {
    background: #00d1b2;
    color: white;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.8);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--white);
    padding: 40px;
    border-radius: 16px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #999;
}

.modal-content h3 {
    font-size: 20px;
    color: var(--primary);
    margin-bottom: 20px;
}

.modal-content p {
    color: #666;
    margin-bottom: 20px;
}

.page-header {
    padding: 140px 0 80px;
    background: var(--gradient);
    text-align: center;
}

.page-header h1 {
    font-size: clamp(32px, 5vw, 48px);
    color: var(--white);
    margin-bottom: 16px;
}

.page-header p {
    color: rgba(255,255,255,0.8);
    font-size: 18px;
}

.products-section {
    padding: 80px 0;
    background: var(--light);
}

.products-filter {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 24px;
    background: var(--white);
    border: 2px solid #e2e8f0;
    border-radius: 30px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

.products-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.cases-section {
    padding: 80px 0;
    background: var(--white);
}

.cases-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.full-case-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 120px 1fr;
    transition: all 0.3s ease;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.full-case-card:hover {
    box-shadow: 0 12px 24px rgba(0,0,0,0.12);
}

.full-case-card img {
    width: 100%;
    height: 100%;
    min-height: 140px;
    object-fit: contain;
    object-position: center;
    background: #f8f9fa;
}

.full-case-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.full-case-content h3 {
    font-size: 20px;
    color: var(--primary);
    margin-bottom: 12px;
}

.full-case-content p {
    color: #718096;
    margin-bottom: 20px;
    font-size: 14px;
}

.case-details {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #666;
}

.ai-chat-modal {
    max-width: 450px;
}

.chat-display {
    background: var(--light);
    border-radius: 12px;
    padding: 20px;
    min-height: 200px;
    margin-bottom: 20px;
    max-height: 300px;
    overflow-y: auto;
}

.chat-message {
    margin-bottom: 15px;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.6;
}

.chat-message.ai {
    background: var(--primary);
    color: var(--white);
    border-bottom-left-radius: 4px;
}

.chat-message.user {
    background: var(--accent);
    color: var(--white);
    border-bottom-right-radius: 4px;
    margin-left: 40px;
}

.chat-input-wrap {
    display: flex;
    gap: 10px;
}

.chat-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
}

.chat-input:focus {
    border-color: var(--accent);
}

.chat-send {
    padding: 12px 20px;
    background: var(--accent);
    color: var(--white);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
}

@media (max-width: 768px) {
    .nav {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .hero-content {
        padding: 0 20px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .features-grid,
    .products-grid,
    .cases-grid {
        grid-template-columns: 1fr;
    }

    .full-case-card {
        grid-template-columns: 1fr;
    }

    .full-case-card img {
        height: 200px;
        min-height: 200px;
    }

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

    .floating-buttons {
        right: 10px;
        bottom: 10px;
    }

    .float-btn {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }

    .section-header {
        padding: 0 20px;
    }

    .products-filter {
        gap: 10px;
    }

    .filter-btn {
        padding: 8px 16px;
        font-size: 13px;
    }
}

.seo-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}
