/* ---- Global Styles & Variables ---- */
:root {
    --brand-gradient: linear-gradient(135deg, #fbc2eb 0%, #a6c1ee 100%);
    --accent-gradient: linear-gradient(135deg, #ec4899, #a855f7);
    --header-height: 75px; /* 定义一个导航栏高度变量 */
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    margin: 0;
    background-color: #ffffff;
    line-height: 1.6;
}

/* style.css (替换 Header 和 Hero Section 的样式) */

/* ---- Header ---- */
.main-header {
    width: 100%;
    /* [修改] 使用 absolute 定位，使其脱离文档流，悬浮在最上层 */
    position: absolute; 
    top: 0;
    left: 0;
    z-index: 1000;
    
    padding: 15px clamp(20px, 8vw, 120px);
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: transparent;
    transition: background-color 0.3s ease, box-shadow 0.3s ease, border-bottom 0.3s ease;
}

/* [修改] 滚动后的粘性行为现在由 JS 控制添加的 fixed class 实现 */
.main-header.scrolled {
    position: fixed; /* 滚动后变为 fixed 定位，实现粘性效果 */
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e9ecef;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.main-header.scrolled .logo,
.main-header.scrolled .main-nav a {
    color: #212529;
}

.logo { 
    display: flex; 
    align-items: center; 
    gap: 12px; 
    font-size: 1.5rem; 
    font-weight: bold; 
    color: #212529; 
    transition: color 0.3s ease; 
}
.nav-right { display: flex; align-items: center; gap: 30px; }
.main-nav { display: none; }
@media (min-width: 768px) { .main-nav { display: flex; gap: 35px; } }
.main-nav a { font-size: 1.1rem; text-decoration: none; color: rgba(33, 37, 41, 0.8); font-weight: 500; transition: color 0.2s ease; }
.main-nav a:hover { color: #212529; }
.logo-img { width: 45px; height: 45px; object-fit: contain; }

/* ---- Hero Section ---- */
.hero-wrapper {
    background: var(--brand-gradient);
    /* [修改] 高度就是 100% 视口高 */
    height: 100vh;
    min-height: 700px;
    display: flex;
    position: relative;
    color: #212529;
    overflow: hidden;
    /* [修改] 使用 padding-top 为悬浮的导航栏留出空间 */
    padding-top: var(--header-height);
    box-sizing: border-box;
}

.hero-content {
    flex-grow: 1;
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0 clamp(20px, 8vw, 120px);
    box-sizing: border-box;
}

/* ... (Hero Section 内的其他样式保持不变) ... */
.intro-section { display: flex; align-items: center; justify-content: space-between; gap: 2rem; width: 100%; }
.intro-text h1 { font-size: 5rem; font-weight: 700; margin: 0 0 1rem 0; line-height: 1.1; }
.intro-text p { font-size: 1.1rem; margin-bottom: 2.5rem; max-width: 500px; color: rgba(33, 37, 41, 0.8); }
.cta-buttons { display: flex; gap: 1rem; }
.cta-buttons .btn-primary, .cta-buttons .btn-secondary { padding: 14px 28px; border-radius: 999px; text-decoration: none; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; transition: all 0.2s ease; }
.cta-buttons .btn-primary { background: #212529; color: white; }
.cta-buttons .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 20px rgba(0,0,0,0.2); background: #495057; }
.cta-buttons .btn-secondary { background: rgba(33, 37, 41, 0.1); color: #212529; border: 1px solid rgba(33, 37, 41, 0.2); }
.cta-buttons .btn-secondary:hover { background: rgba(33, 37, 41, 0.2); }
.intro-image-showcase { flex-shrink: 0; display: none; }
@media (min-width: 992px) { .intro-image-showcase { display: block; } }
.phone-frame { background-color: #1c1c1e; padding: 10px; border-radius: 50px; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.2), inset 0 2px 4px rgba(255,255,255,0.1); border: 1px solid #424245; transform: translateX(-150px); }
.phone-screen { background-color: #000; border-radius: 40px; overflow: hidden; width: 320px; height: 665px; }
.phone-screen video { width: 100%; height: 100%; object-fit: cover; }

/* ---- Main Content ---- */
.main-content { max-width: 1280px; margin: 0 auto; padding: 0 20px 4rem 20px; color: #212529; }
.gallery-header { text-align: center; padding-top: 4rem; margin-bottom: 3rem; }
.gallery-header h2 { font-size: 3.5rem; font-weight: 800; color: #1d232a; margin: 0; letter-spacing: -1.5px; }
/* ... (其余所有样式保持不变，这里省略以节约篇幅) ... */
.search-and-filters { padding: 1rem 1.5rem; background-color: white; border-radius: 999px; box-shadow: 0 8px 25px rgba(0, 0, 0, 0.07); border: 1px solid #e9ecef; display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; justify-content: space-between; margin-bottom: 3rem; }
.search-and-filters .search-bar { position: relative; display: flex; align-items: center; justify-content: space-between; background-color: #f8f9fa; border: 1px solid #dee2e6; border-radius: 999px; padding: 6px 8px 6px 24px; min-width: 250px; flex-grow: 1; transition: box-shadow 0.2s ease, border-color 0.2s ease; }
.search-and-filters .search-bar:focus-within { box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.25); border-color: #86b7fe; background-color: white; }
.search-and-filters .search-bar input { border: none; background: transparent; font-size: 1.1rem; font-weight: 500; flex-grow: 1; outline: none; padding: 12px 0; }
.search-arrow { display: flex; align-items: center; justify-content: center; background-color: #212529; color: white; width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0; }
.search-arrow i { font-size: 1.1rem; }
.filter-controls { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; }
.select-wrapper { position: relative; display: inline-block; }
.filter-select { -webkit-appearance: none; -moz-appearance: none; appearance: none; padding: 18px 48px 18px 28px; font-size: 1.1rem; font-weight: 500; border-radius: 999px; border: 1px solid #dee2e6; background-color: #f8f9fa; color: #495057; cursor: pointer; min-width: 200px; transition: all 0.2s ease; }
.filter-select:hover { border-color: #adb5bd; background-color: #f1f3f5; }
.filter-select:focus { outline: none; box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.25); border-color: #86b7fe; background-color: white; }
.select-arrow { position: absolute; right: 28px; top: 50%; transform: translateY(-50%); color: #6c757d; pointer-events: none; font-size: 0.9rem; }

/* style.css (完整替换 Product Grid & Cards 区块) */

/* Product Grid & Cards */
.product-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); 
    gap: 30px; 
}

.product-card { 
    position: relative; 
    border: 1px solid #dee2e6; 
    border-radius: 12px; 
    background-color: #ffffff; 
    overflow: hidden; 
    transition: transform 0.3s ease, box-shadow 0.3s ease; 
    cursor: pointer; 
}

.product-card:hover { 
    transform: translateY(-8px); 
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08); 
}

.card-image-wrapper { 
    overflow: hidden;
    /* [核心] 设定一个固定的高度来统一所有卡片 */
    aspect-ratio: 3 / 4; 
}

.product-card img { 
    /* [核心] 确保图片填满父容器并正确裁剪 */
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover; 
    transition: transform 0.3s ease;
}

.product-card:hover img { 
    transform: scale(1.05); 
}

.card-info { 
    padding: 20px; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    border-top: 1px solid #dee2e6; 
}

.card-info h3 { 
    margin: 0; 
    font-size: 1.1rem; 
    font-weight: 600; 
    white-space: nowrap; 
    overflow: hidden; 
    text-overflow: ellipsis; 
}

.btn-download { 
    display: inline-flex; 
    align-items: center; 
    justify-content: center; 
    background: #a855f7; 
    color: white; 
    padding: 8px 12px; 
    border-radius: 8px; 
    text-decoration: none; 
    transition: background-color 0.2s ease; 
}

.btn-download:hover { 
    background-color: #9333ea; 
}

.card-tags { 
    position: absolute; 
    top: 12px; 
    right: 12px; 
    display: flex; 
    flex-direction: column; 
    align-items: flex-end; 
    gap: 6px; 
    z-index: 5; 
}

.tag { 
    background: rgba(255, 255, 255, 0.6); 
    backdrop-filter: blur(8px); 
    color: #212529; 
    padding: 4px 10px; 
    border-radius: 999px; 
    font-size: 0.8rem; 
    font-weight: 600; 
    text-transform: capitalize; 
    border: 1px solid rgba(255, 255, 255, 0.3); 
}


.load-more-container { display: flex; justify-content: center; margin-top: 2rem; }
.btn-load-more { background: var(--brand-gradient); color: #212529; border: 1px solid rgba(33, 37, 41, 0.1); padding: 14px 40px; font-size: 1.1rem; font-weight: 600; border-radius: 999px; cursor: pointer; transition: all 0.2s ease; box-shadow: 0 4px 15px rgba(0,0,0,0.1); }
.btn-load-more:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0,0,0,0.15); }

/* ---- Featured Landscape Section ---- */
.featured-landscape-section { margin-top: 6rem; }
.section-header { text-align: center; margin-bottom: 2rem; }
.section-header h2 { font-size: 2.5rem; font-weight: 700; margin-bottom: 0.5rem; }
.section-header p { font-size: 1.1rem; color: #6c757d; max-width: 500px; margin: 0 auto; }
.landscape-grid { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; gap: 1.5rem; }
.grid-item { position: relative; overflow: hidden; border-radius: 16px; box-shadow: 0 8px 25px rgba(0, 0, 0, 0.07); cursor: pointer; transition: transform 0.3s ease; }
.grid-item:hover { transform: translateY(-5px); }
.grid-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.main-image { grid-column: 1 / 3; grid-row: 1 / 2; aspect-ratio: 16 / 9; }
.sub-image { grid-row: 2 / 3; aspect-ratio: 4 / 3; }

/* ---- Installation Guide Section ---- */
.installation-guide { margin-top: 6rem; padding-top: 4rem; border-top: 1px solid #e9ecef; }
.guide-layout-wrapper { display: flex; align-items: center; gap: 3rem; margin-top: 3rem; }
.guide-text-content { flex: 1; min-width: 0; }
.guide-image-showcase { flex: 1; display: none; }
@media (min-width: 992px) { .guide-image-showcase { display: block; } }
.image-frame-light { background-color: #f5f3ff; padding: 1rem; border-radius: 24px; box-shadow: 0 8px 30px rgba(0,0,0,0.05); }
.image-frame-light img { width: 100%; display: block; border-radius: 16px; }
.guide-tabs { display: flex; justify-content: center; background-color: #f1f3f5; border-radius: 12px; padding: 6px; max-width: 400px; margin-left: auto; margin-right: auto; margin-bottom: 3rem; }
.guide-tab { flex: 1; padding: 12px 20px; font-size: 1rem; font-weight: 600; color: #495057; background-color: transparent; border: none; border-radius: 8px; cursor: pointer; transition: all 0.3s ease; display: flex; align-items: center; justify-content: center; gap: 8px; }
.guide-tab:hover { background-color: #e9ecef; }
.guide-tab.active { background-color: #ffffff; color: #0d6efd; box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.guide-content { position: relative; }
.guide-pane { display: none; flex-direction: column; align-items: flex-start; gap: 2rem; }
.guide-pane.active { display: flex; }
.guide-step { display: flex; align-items: flex-start; gap: 1.5rem; width: 100%; }
.step-number { flex-shrink: 0; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--accent-gradient); color: white; font-size: 1.2rem; font-weight: 700; }
.step-text h4 { margin: 0 0 0.25rem 0; font-size: 1.25rem; font-weight: 600; }
.step-text p { margin: 0; color: #6c757d; line-height: 1.6; }

/* ---- Lightbox ---- */
.lightbox { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 2000; display: none; align-items: center; justify-content: center; padding: 2rem; box-sizing: border-box; }
.lightbox.active { display: flex; }
.lightbox-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.8); backdrop-filter: blur(5px); cursor: pointer; }
.lightbox-content { position: relative; background: var(--brand-gradient); padding: 20px; border-radius: 24px; max-width: 1200px; max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 1.5rem; box-shadow: 0 15px 40px rgba(0,0,0,0.4); overflow-y: auto; border: 1px solid rgba(255, 255, 255, 0.1); }
.lightbox-content img { max-width: 100%; max-height: 75vh; object-fit: contain; border-radius: 16px; }
.lightbox-close-btn { position: absolute; top: 15px; right: 20px; background: none; border: none; font-size: 2.5rem; color: rgba(33, 37, 41, 0.7); cursor: pointer; line-height: 1; z-index: 10; transition: color 0.2s ease; }
.lightbox-close-btn:hover { color: #212529; }
.download-area { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 100%; }
.lightbox-download-btn { background: var(--accent-gradient); color: white; padding: 14px 32px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 1.2rem; display: inline-flex; align-items: center; gap: 10px; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.lightbox-download-btn:hover { transform: scale(1.05); box-shadow: 0 10px 20px rgba(0,0,0,0.2); }

.download-notice {
    font-size: 0.8rem;
    color: rgba(33, 37, 41, 0.8);
    margin: 0;
    text-align: center;
    /* [核心修改] 设置最小高度，为最多两行文字永久保留空间 */
    min-height: 2.6em; 
    line-height: 1.3em;
}
/* ---- Footer ---- */
.main-footer { border-top: 1px solid #dee2e6; background-color: #f8f9fa; color: #6c757d; }
.footer-grid { max-width: 1280px; margin: 0 auto; padding: 4rem 20px; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; }
.footer-section h4 { margin-top: 0; margin-bottom: 1.5rem; color: #212529; font-size: 1rem; font-weight: 700; }
.footer-section a { display: block; color: #495057; text-decoration: none; transition: color 0.2s ease; }
.footer-section a:hover { color: #0d6efd; }
.footer-section .logo { margin-bottom: 1rem; }
.footer-section p { color: #6c757d; line-height: 1.6; max-width: 250px; }
.footer-bottom { max-width: 1280px; margin: 0 auto; padding: 2rem 20px; border-top: 1px solid #dee2e6; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 0.9rem; color: #6c757d; }
.footer-bottom a { color: #6c757d; text-decoration: none; }
.footer-bottom a:hover { color: #212529; }

/* ---- Responsive Adjustments ---- */
@media (max-width: 1200px) { .phone-frame { transform: translateX(-80px); } }
@media (max-width: 991px) { .intro-section { flex-direction: column; text-align: center; } .intro-text h1 { font-size: 3.5rem; } .intro-text p, .cta-buttons { margin-left: auto; margin-right: auto; justify-content: center; } .phone-frame { transform: none; } .footer-grid { grid-template-columns: 1fr 1fr; } .guide-layout-wrapper { flex-direction: column; } }
@media (max-width: 767px) { .nav-right { gap: 15px; } .main-header, .hero-content { padding-left: 20px; padding-right: 20px; } .intro-text h1 { font-size: 2.8rem; } .search-and-filters { justify-content: center; border-radius: 24px; } .gallery-header h2 { font-size: 2.5rem; } }
@media (max-width: 576px) { .footer-grid { grid-template-columns: 1fr; text-align: center; } .footer-section p { margin-left: auto; margin-right: auto; } }

/* style.css (在文件末尾追加) */

/* ---- [新] 页脚联系信息样式 ---- */
.contact-info {
    margin-top: 2rem; /* 与上方描述拉开距离 */
    display: flex;
    flex-direction: column;
    gap: 1rem; /* 项目之间的间距 */
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #495057;
    text-decoration: none;
    transition: color 0.2s ease;
}
.contact-item:hover {
    color: #0d6efd;
}

.contact-item i {
    font-size: 1.2rem;
    color: #a855f7; /* 使用一个协调的紫色作为图标颜色 */
}