
:root {
    --primary: #FF4D4D; /* 西瓜红 */
    --primary-hover: #E64444;
    --accent: #2ECC71; /* 翠绿 */
    --dark: #0F0F0F;
    --dark-alt: #1A1A1A;
    --light: #F4F4F4;
    --text: #E0E0E0;
    --text-dim: #999;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    --header-h: 80px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Noto Sans SC', sans-serif;
    background-color: var(--dark);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* 导航栏 */
.navbar {
    height: var(--header-h);
    background: rgba(15, 15, 15, 0.8);
    backdrop-filter: blur(20px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.navbar.scrolled {
    height: 60px;
    background: var(--dark);
}

.nav-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.logo .icon {
    margin-right: 8px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

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

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

.nav-links a.active::after {
    width: 100%;
}

/* 页面切换逻辑 */
.page {
    display: none;
    min-height: calc(100vh - var(--header-h));
    animation: slideUp 0.6s ease forwards;
}

.page.active {
    display: block;
}

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

/* Hero Section */
.hero {
    height: 90vh;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -1;
    filter: brightness(0.4);
    transition: transform 10s linear;
}

.hero:hover .hero-image {
    transform: scale(1.1);
}

.hero-content {
    max-width: 700px;
}

.hero h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 24px;
    font-weight: 800;
}

.highlight {
    color: var(--primary);
}

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

/* 按钮组件 */
.btn {
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
    display: inline-block;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 10px 20px rgba(255, 77, 77, 0.3);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(255, 77, 77, 0.4);
}

.btn-outline {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: white;
    margin-left: 16px;
}

.btn-outline:hover {
    background: white;
    color: var(--dark);
    border-color: white;
}

/* 通用布局区 */
.section {
    padding: 120px 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 48px;
    font-weight: 700;
}

.text-center { text-align: center; }
.bg-dark-alt { background-color: var(--dark-alt); }
.mt-lg { margin-top: 60px; }
.mb-md { margin-bottom: 32px; }
.pt-header { padding-top: calc(var(--header-h) + 60px); }

/* 信息网格 */
.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.info-visual img {
    width: 100%;
    border-radius: 24px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
}

.features {
    list-style: none;
    margin-top: 32px;
}

.features li {
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.features li span {
    color: var(--accent);
    font-weight: bold;
}

/* 产品网格 */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 32px;
}

.product-card {
    background: var(--dark-alt);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

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

.product-img {
    height: 380px;
    width: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-info {
    padding: 20px;
}

.product-tag {
    font-size: 0.75rem;
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.product-title {
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.product-rating {
    color: #FFD700;
    font-size: 0.85rem;
}

/* 过滤控制器 */
.filter-controls {
    margin: 40px 0;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 24px;
    border-radius: 30px;
    background: var(--dark-alt);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-dim);
    cursor: pointer;
    transition: var(--transition);
}

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

/* 揭示动画 */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }

/* 页脚 */
.footer {
    background: #080808;
    padding: 80px 0 40px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

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

.footer h5 {
    font-size: 1.1rem;
    margin-bottom: 24px;
    color: white;
}

.footer ul { list-style: none; }
.footer ul li { margin-bottom: 12px; }
.footer ul a {
    text-decoration: none;
    color: var(--text-dim);
    transition: var(--transition);
}

.footer ul a:hover { color: var(--primary); }

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: var(--text-dim);
    font-size: 0.85rem;
}

/* 关于我们详情 */
.about-hero {
    position: relative;
    height: 400px;
    border-radius: 32px;
    overflow: hidden;
}

.about-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6);
}

.about-hero-text {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.about-hero-text h2 { font-size: 3.5rem; margin-bottom: 16px; }

.history-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.timeline .time-item {
    margin-bottom: 32px;
    padding-left: 24px;
    border-left: 2px solid var(--primary);
}

.team-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.team-person {
    display: flex;
    gap: 20px;
    align-items: center;
    background: var(--dark-alt);
    padding: 16px;
    border-radius: 16px;
}

.team-person img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
}

/* 联系我们详情 */
.contact-wrap {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    background: var(--dark-alt);
    padding: 60px;
    border-radius: 40px;
}

.form-group { margin-bottom: 20px; }
.form-group input, .form-group textarea {
    width: 100%;
    padding: 16px 24px;
    background: var(--dark);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    color: white;
    font-family: inherit;
}

.form-group input:focus {
    border-color: var(--primary);
    outline: none;
}

.info-item { margin-bottom: 32px; }
.map-box {
    margin-top: 32px;
    height: 200px;
    border-radius: 16px;
    overflow: hidden;
}

.map-box img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) invert(1); }

/* 响应式适配 */
@media (max-width: 992px) {
    .info-grid, .footer-grid, .history-grid, .contact-wrap {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .hero h1 { font-size: 3rem; }
}

@media (max-width: 768px) {
    .nav-links { display: none; } /* 可扩展汉堡菜单 */
    .hero { height: 70vh; }
    .hero h1 { font-size: 2.5rem; }
}
