/* 颜色定义 - 淡黑金风格 */
:root {
    --bg-dark: #121212;
    --bg-light: #1a1a1a;
    --gold: #d4af37;
    --gold-hover: #c5a028;
    --text-white: #f5f5f5;
    --text-gray: #b0b0b0;
    --border-color: #333;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(18, 18, 18, 0.95);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    padding: 15px 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

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

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-gray);
}

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

.nav-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--gold);
}

/* 英雄区 */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('https://tse-mm.bing.com/th?q=科技感背景图') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 5px;
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 40px;
    color: var(--text-white);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-bottom: 40px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-item .count {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gold);
}

.stat-item .label {
    font-size: 1rem;
    color: var(--text-gray);
}

/* 按钮 */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

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

.btn-gold:hover {
    background-color: var(--gold-hover);
    transform: translateY(-3px);
}

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

.btn-outline:hover {
    background-color: var(--gold);
    color: var(--bg-dark);
}

/* 通用章节 */
.section {
    padding: 80px 0;
}

.bg-dark {
    background-color: var(--bg-light);
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--gold);
    margin-bottom: 15px;
}

.underline {
    width: 60px;
    height: 4px;
    background-color: var(--gold);
    margin: 0 auto;
}

/* 公司介绍 */
.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.intro-text h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--text-white);
}

.intro-text p {
    margin-bottom: 20px;
    color: var(--text-gray);
}

.intro-image img {
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transition: var(--transition);
}

.intro-image img:hover {
    transform: scale(1.02);
}

/* 产品预览 */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.product-card {
    background-color: var(--bg-dark);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.product-card:hover {
    border-color: var(--gold);
    transform: translateY(-10px);
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 20px;
}

.product-card h3 {
    color: var(--gold);
    margin-bottom: 10px;
}

/* 最新上线 */
.online-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.online-item {
    background: var(--bg-light);
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid var(--gold);
}

.online-item h4 {
    color: var(--gold);
    margin-bottom: 5px;
}

.online-item p {
    font-size: 0.9rem;
    color: var(--text-gray);
}

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

.news-card {
    background: var(--bg-dark);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.news-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.news-info {
    padding: 20px;
}

.news-date {
    font-size: 0.8rem;
    color: var(--gold);
    margin-bottom: 10px;
}

.news-info h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.news-info p {
    color: var(--text-gray);
    font-size: 0.9rem;
}

/* 会员推广 */
.promo-box {
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
    border-radius: 20px;
    padding: 50px;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
    align-items: center;
    border: 1px solid var(--gold);
}

.promo-content h2 {
    font-size: 2.5rem;
    color: var(--gold);
    margin-bottom: 20px;
}

.promo-btns {
    margin-top: 30px;
    display: flex;
    gap: 20px;
}

/* 企业动态列表 */
.dynamics-container {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 10px;
}

.dynamics-container::-webkit-scrollbar {
    width: 5px;
}

.dynamics-container::-webkit-scrollbar-thumb {
    background: var(--gold);
    border-radius: 10px;
}

.dynamics-list li {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
}

.dynamics-list li:hover {
    background: rgba(212, 175, 55, 0.05);
}

.dynamic-time {
    color: var(--gold);
    font-size: 0.8rem;
}

/* 产品页特定 */
.page-header {
    padding: 120px 0 60px;
    background: linear-gradient(rgba(0,0,0,0.8), rgba(0,0,0,0.8)), url('https://tse-mm.bing.com/th?q=产品展示背景') center/cover;
    text-align: center;
}

.page-header h1 {
    font-size: 3rem;
    color: var(--gold);
}

.filter-container {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 40px;
}

.search-box {
    display: flex;
    margin-bottom: 20px;
}

.search-box input {
    flex: 1;
    padding: 12px;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    color: white;
    border-radius: 5px 0 0 5px;
}

.search-box button {
    padding: 0 20px;
    background: var(--gold);
    border: none;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
}

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.filter-group select {
    padding: 8px;
    background: var(--bg-dark);
    color: white;
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

.sort-tags {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.sort-btn {
    background: transparent;
    border: none;
    color: var(--text-gray);
    margin-right: 15px;
    cursor: pointer;
}

.sort-btn.active {
    color: var(--gold);
    font-weight: bold;
}

.tag {
    display: inline-block;
    padding: 4px 12px;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 0.8rem;
    margin-right: 10px;
    cursor: pointer;
}

.tag.active {
    background: var(--gold);
    color: var(--bg-dark);
}

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

.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 50px;
}

.page-num {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    cursor: pointer;
}

.page-num.active {
    background: var(--gold);
    color: var(--bg-dark);
}

/* 关于我们特定 */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background: var(--gold);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
}

.timeline-item:nth-child(odd) { left: 0; text-align: right; }
.timeline-item:nth-child(even) { left: 50%; }

.timeline-date {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--gold);
    margin-bottom: 10px;
}

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

.team-card {
    text-align: center;
}

.team-card img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    margin: 0 auto 20px;
    border: 3px solid var(--gold);
    object-fit: cover;
}

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

.culture-item {
    text-align: center;
    padding: 40px;
    background: var(--bg-light);
    border-radius: 15px;
}

.culture-item i {
    font-size: 3rem;
    color: var(--gold);
    margin-bottom: 20px;
}

/* 联系我们特定 */
.contact-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 50px;
}

.contact-form-container {
    background: var(--bg-light);
    padding: 40px;
    border-radius: 10px;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form input, .contact-form select, .contact-form textarea {
    width: 100%;
    padding: 12px;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    color: white;
    border-radius: 5px;
}

.info-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--gold);
}

.social-icons {
    display: flex;
    gap: 20px;
    margin-top: 15px;
}

.social-icons i {
    font-size: 1.8rem;
    color: var(--text-gray);
}

.social-icons i:hover {
    color: var(--gold);
}

.map-container {
    margin-top: 60px;
}

.map-placeholder {
    position: relative;
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
}

.map-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.map-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(212, 175, 55, 0.9);
    color: var(--bg-dark);
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
}

/* 在线客服按钮 */
.online-service {
    position: fixed;
    right: 30px;
    bottom: 30px;
    z-index: 999;
}

#serviceBtn {
    background: var(--gold);
    color: var(--bg-dark);
    border: none;
    padding: 15px 25px;
    border-radius: 50px;
    font-weight: bold;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* 页脚 */
.footer {
    background-color: #0a0a0a;
    padding: 80px 0 20px;
    border-top: 1px solid var(--border-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    color: var(--text-gray);
    font-size: 0.9rem;
}

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

.animate-up {
    animation: fadeInUp 0.8s ease forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

/* 响应式 */
@media (max-width: 992px) {
    .intro-grid, .promo-box, .contact-grid, .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-content h1 { font-size: 3rem; }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-dark);
        flex-direction: column;
        padding: 20px;
        text-align: center;
        border-bottom: 1px solid var(--border-color);
    }
    
    .nav-links.show {
        display: flex;
    }
    
    .nav-toggle {
        display: block;
    }
}

@media (max-width: 600px) {
    .hero-content h1 { font-size: 2.2rem; }
    .hero-stats { gap: 20px; }
    .stat-item .count { font-size: 1.8rem; }
    .timeline::after { left: 31px; }
    .timeline-item { width: 100%; padding-left: 70px; text-align: left !important; }
    .timeline-item::after { left: 21px; }
}
