/* style.css - 增加文字下间距版 */

/* --- 全局变量定义 --- */
:root {
    --bg-body: #0a0a0a;
    --bg-card: #141414;
    --bg-dark-alt: #111111;
    
    --accent-color: #ff1f1f; 
    --accent-glow: rgba(255, 31, 31, 0.5); 
    
    --text-main: #ffffff;
    --text-muted: #888888;
    
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    
    --card-shadow: 0 20px 50px rgba(0,0,0,0.5);
    --transition-smooth: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* --- 基础重置 --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body { 
    font-family: var(--font-body); 
    background-color: var(--bg-body); 
    color: var(--text-main); 
    line-height: 1.6; 
    overflow-x: hidden; 
}

h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--text-main); }
a { text-decoration: none; color: inherit; transition: 0.3s; }
img { display: block; max-width: 100%; }
ul { list-style: none; }

/* --- 容器设置 --- */
.container { 
    width: 90%; 
    max-width: 1400px; 
    margin: 0 auto; 
    padding: 0 20px; 
} 

.text-center { text-align: center; }
.accent-text { color: var(--accent-color); }
.section-padding { padding: 80px 0; }
.bg-dark-alt { background-color: var(--bg-dark-alt); }

/* --- 按钮样式 --- */
.btn { 
    display: inline-flex; align-items: center; justify-content: center; 
    padding: 12px 30px; border-radius: 4px; font-weight: 700; 
    text-transform: uppercase; border: none; cursor: pointer; 
    transition: 0.3s; gap: 8px; font-family: var(--font-heading);
}
.btn-primary { 
    background: var(--accent-color); color: #fff; 
    box-shadow: 0 4px 20px rgba(255, 31, 31, 0.3); 
}
.btn-primary:hover { 
    background: #d00000; transform: translateY(-2px); 
    box-shadow: 0 10px 30px var(--accent-glow);
}
.btn-outline { 
    background: transparent; border: 1px solid rgba(255,255,255,0.3); color: #fff; 
}
.btn-outline:hover { 
    border-color: #fff; background: #fff; color: #000; 
}
.btn-lg { padding: 15px 40px; font-size: 1rem; }
.icon-btn i { font-size: 1.2rem; }

/* --- 导航栏 --- */
#navbar {
    position: fixed; width: 100%; top: 0; z-index: 1000;
    background: rgba(10, 10, 10, 0.85); backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    height: 90px; display: flex; align-items: center; transition: all 0.4s ease;
}
#navbar.scrolled { height: 70px; background: rgba(10, 10, 10, 0.98); box-shadow: 0 10px 30px rgba(0,0,0,0.5); }

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

/* ★ 核心修改：Logo图片容器和动态缩放效果 ★ */
.logo {
    display: flex;
    align-items: center;
}
.logo-img {
    height: 45px; /* 顶部 Logo 大小 */
    width: auto;
    transition: height 0.4s ease;
}
#navbar.scrolled .logo-img {
    height: 35px; /* 滚动时变小 */
}

.nav-links { display: flex; gap: 40px; align-items: center; }
.nav-link {
    font-size: 1.05rem; font-weight: 700; color: #fff;
    text-transform: uppercase; letter-spacing: 1px;
    opacity: 0.7; position: relative; padding: 5px 0; transition: all 0.3s ease;
}
.nav-link:hover { opacity: 1; text-shadow: 0 0 8px rgba(255, 255, 255, 0.5); }
.active-link { opacity: 1 !important; color: var(--accent-color) !important; text-shadow: 0 0 15px var(--accent-glow); }
.active-link::after {
    content: ''; position: absolute; bottom: -8px; left: 50%; transform: translateX(-50%);
    width: 6px; height: 6px; background-color: var(--accent-color); border-radius: 50%; box-shadow: 0 0 8px var(--accent-color);
}
.hamburger { display: none; font-size: 1.8rem; cursor: pointer; color: #fff; }

/* --- Hero 区域 --- */
.hero-section { height: 100vh; display: flex; align-items: center; justify-content: center; position: relative; }
.hero-bg-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,0.4), rgba(0,0,0,0.9)); }
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 980px;
    text-align: center;
}

.hero-title {
    max-width: 900px;
    margin: 0 auto 20px;
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.1;
    text-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.hero-subtitle {
    max-width: 760px;
    margin: 0 auto 40px;
    font-size: 1.3rem;
    line-height: 1.75;
    opacity: 0.92;
    text-align: center;
}

.hero-btns {
    display: flex;
    justify-content: center;
}

/* --- 优势区域 --- */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; text-align: center; }
.feature-card { padding: 40px 20px; border: 1px solid rgba(255,255,255,0.05); border-radius: 8px; transition: 0.3s; }
.feature-card:hover { background: rgba(255,255,255,0.03); transform: translateY(-5px); border-color: var(--accent-color); }
.feature-icon { font-size: 2.5rem; color: var(--accent-color); margin-bottom: 15px; }
.feature-card h3 { font-size: 1.2rem; }

/* --- 产品展示区 --- */
.product-showcase-section { padding: 100px 0; overflow: hidden; position: relative; background: linear-gradient(to bottom, var(--bg-body), #111); }
.header-container { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 40px; }
.section-title { font-size: 2.5rem; text-transform: uppercase; margin-bottom: 5px; }
.section-desc { color: var(--text-muted); }
.scroll-progress { width: 150px; height: 3px; background: rgba(255,255,255,0.1); position: relative; border-radius: 3px; }
.scroll-bar { height: 100%; width: 0%; background: var(--accent-color); transition: width 0.1s; box-shadow: 0 0 10px var(--accent-color); border-radius: 3px; }
.horizontal-scroll-wrapper { width: 100%; overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none; padding-bottom: 60px; cursor: grab; }
.horizontal-scroll-wrapper::-webkit-scrollbar { display: none; }
.horizontal-scroll-wrapper:active { cursor: grabbing; }
.product-track { display: flex; gap: 40px; padding: 0 30px; width: max-content; }
.showcase-card { flex: 0 0 400px; height: 550px; position: relative; border-radius: 12px; overflow: hidden; background: var(--bg-card); transition: var(--transition-smooth); border: 1px solid rgba(255,255,255,0.05); filter: grayscale(80%); }
.showcase-card:hover { transform: scale(1.03) translateY(-10px); box-shadow: 0 30px 60px rgba(0,0,0,0.6); border-color: rgba(255,255,255,0.3); filter: grayscale(0%); z-index: 10; }
.card-img-wrapper { height: 100%; width: 100%; position: relative; }
.card-img-wrapper img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s; }
.showcase-card:hover .card-img-wrapper img { transform: scale(1.1); }
.card-overlay { position: absolute; bottom: 0; left: 0; width: 100%; background: linear-gradient(to top, rgba(0,0,0,0.95), rgba(0,0,0,0)); padding: 30px; transform: translateY(20px); transition: 0.4s; }
.showcase-card:hover .card-overlay { transform: translateY(0); }
.card-tech { font-size: 0.75rem; letter-spacing: 2px; text-transform: uppercase; color: var(--accent-color); display: block; font-weight: 700; margin-bottom: 5px; }
.card-title { font-size: 1.5rem; margin-bottom: 15px; }
.card-btn { opacity: 0; transform: translateY(10px); transition: 0.4s 0.1s; }
.showcase-card:hover .card-btn { opacity: 1; transform: translateY(0); }

/* --- ★★★ 关于区域 ★★★ --- */
#about {
    padding-top: 0; 
    margin-top: -120px; 
    padding-bottom: 40px; 
    position: relative;
    z-index: 2; 
}
#about .container {
    width: 100%;
    max-width: 100%;
    padding-left: 30px;
    padding-right: 30px;
}

/* 幻灯片外框 */
.about-image-carousel {
    position: relative;
    width: 100%;
    height: 600px; 
    min-height: 450px;
    border-radius: 12px;
    overflow: hidden; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.carousel-track {
    display: flex;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1); 
}
.carousel-slide {
    min-width: 100%; 
    height: 100%;
}
.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    filter: brightness(0.8);
}
.carousel-dots {
    position: absolute;
    bottom: 20px;
    right: 30px; 
    display: flex;
    gap: 10px;
    z-index: 10;
}
.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: transparent; 
    border: 2px solid #fff; 
    cursor: pointer;
    transition: 0.3s;
}
.dot.active {
    background: #fff; 
    transform: scale(1.2); 
}

/* 关于 - 内容区域布局 */
.about-container { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; }

/* ★ 给关于区域的描述段落增加下间距 ★ */
.about-content p {
    margin-bottom: 40px; /* 拉开与下方列表的距离 */
    color: #ccc; 
}

.about-list li { margin-bottom: 15px; font-size: 1.1rem; display: flex; align-items: center; gap: 10px; }

/* --- 页脚板块 --- */
.footer-section { background: #050505; padding-top: 40px; padding-bottom: 5px !important; border-top: 1px solid rgba(255,255,255,0.05); }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 50px; }

/* ★ 核心修改：底部 Logo 大小控制 ★ */
.logo-img-footer {
    height: 55px; /* 底部 Logo 稍大一些 */
    width: auto;
    margin-bottom: 20px; /* 和下方的描述文字隔开间距 */
}

/* PC端布局：6.5 : 3.5 */
@media (min-width: 900px) {
    .about-container { grid-template-columns: 6.5fr 3.5fr; gap: 120px; }
    .footer-grid { grid-template-columns: 6.5fr 3.5fr; gap: 120px; }
}

.footer-col h3 { margin-bottom: 25px !important; font-size: 1.1rem; color: #fff; text-transform: uppercase; }
.footer-desc { color: var(--text-muted); margin-top: 20px; max-width: 300px; }
.footer-contacts-list li { margin-bottom: 15px !important; display: flex; align-items: center; gap: 15px; color: var(--text-muted); line-height: 1.6; }
.footer-contacts-list li i { color: var(--accent-color); font-size: 1.2rem; flex-shrink: 0; }
.copyright-bar { border-top: 1px solid rgba(255,255,255,0.08); padding: 15px 0; margin-top: 30px; text-align: center; font-size: 0.75rem; color: #555; display: flex; flex-direction: column; gap: 5px; }
@media (min-width: 768px) { .copyright-bar { flex-direction: row; justify-content: center; gap: 20px; } }

/* 弹窗 Modal */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.9); z-index: 2000; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: 0.4s; backdrop-filter: blur(10px); }
.modal-overlay.active { opacity: 1; pointer-events: all; }
.modal-container-wide { width: 85vw; height: 85vh; max-width: 1400px; background: #1a1a1a; border-radius: 12px; position: relative; overflow: hidden; box-shadow: 0 50px 100px rgba(0,0,0,0.8); transform: translateY(50px); transition: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1); display: flex; }
.modal-overlay.active .modal-container-wide { transform: translateY(0); }
.modal-close { position: absolute; top: 20px; right: 20px; z-index: 20; background: rgba(0,0,0,0.5); border: 1px solid rgba(255,255,255,0.1); color: #fff; width: 40px; height: 40px; border-radius: 50%; font-size: 1.5rem; cursor: pointer; transition: 0.3s; display: flex; align-items: center; justify-content: center; }
.modal-close:hover { background: var(--accent-color); border-color: var(--accent-color); transform: rotate(90deg); }
.modal-grid { display: grid; grid-template-columns: 1.5fr 1fr; width: 100%; height: 100%; }
.modal-left { background: #000; position: relative; height: 100%; }
.modal-left img { width: 100%; height: 100%; object-fit: cover; opacity: 0.9; }
.img-overlay { position: absolute; inset: 0; background: linear-gradient(to right, transparent 80%, #1a1a1a 100%); }
.modal-right { padding: 60px; display: flex; flex-direction: column; overflow-y: auto; }
.modal-header { margin-bottom: 30px; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 20px; flex-shrink: 0; }
.modal-badge { display: inline-block; background: rgba(255,31,31,0.15); color: var(--accent-color); padding: 4px 10px; font-size: 0.8rem; font-weight: 700; margin-bottom: 10px; border-radius: 4px; }
.modal-header h2 { font-size: 3rem; line-height: 1; margin-bottom: 10px; }
.price-placeholder { color: var(--text-muted); font-size: 0.9rem; }
.modal-body { margin-bottom: 20px; flex-grow: 0; }
.modal-body p { color: #ccc; margin-bottom: 30px; font-size: 1.05rem; line-height: 1.8; }
.specs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; background: rgba(255,255,255,0.03); padding: 25px; border-radius: 8px; }
.spec-item .label { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; margin-bottom: 5px; display: block; }
.spec-item .value { font-size: 1.1rem; font-weight: 600; color: #fff; font-family: var(--font-heading); }
.modal-footer { margin-top: 20px; flex-shrink: 0; }
.btn-block { width: 100%; display: flex; justify-content: center; padding: 18px; font-size: 1.1rem; }
.security-note { text-align: center; color: var(--text-muted); font-size: 0.8rem; margin-top: 15px; display: flex; align-items: center; justify-content: center; gap: 5px; }

/* 移动端适配 */
@media (max-width: 900px) {
    .hero-title { font-size: 2.5rem; }
    .hamburger { display: block; }
    .nav-links { position: absolute; top: 90px; left: 0; width: 100%; background: #0f0f0f; flex-direction: column; padding: 30px 0; gap: 25px; border-bottom: 1px solid rgba(255,255,255,0.1); opacity: 0; visibility: hidden; transform: translateY(-20px); transition: 0.3s; }
    .nav-links.active { opacity: 1; visibility: visible; transform: translateY(0); }
    .active-link::after { display: none; } 
    .showcase-card { flex: 0 0 85vw; height: 450px; }
    .modal-grid { grid-template-columns: 1fr; }
    .modal-left { height: 200px; flex-shrink: 0; }
    .img-overlay { background: linear-gradient(to bottom, transparent, #1a1a1a); }
    .modal-right { padding: 30px 20px; }
    .modal-header h2 { font-size: 2rem; }
    .about-container, .footer-grid { grid-template-columns: 1fr; }
    #about .container { padding-left: 20px; padding-right: 20px; }
    .about-image-carousel { height: 300px; }
    
    /* 移动端减小 Logo 尺寸 */
    .logo-img { height: 35px; }
}