/*
Theme Name: Treewave Official Theme
Theme URI: https://www.treewave.com
Author: Treewave Tech
Description: Custom high-performance theme for Treewave Audio OEM/ODM.
Version: 2.0
Text Domain: treewave
*/

body, html { margin: 0; padding: 0; font-family: 'Montserrat', sans-serif; background-color: #F8FBFF; color: #1A1A1A; overflow-x: hidden; scroll-behavior: smooth; }

/* ================== 顶部导航（稳固的左右分布布局） ================== */
/* 核心修复 1：引入多语言兼容字体栈，让中文、俄文、阿拉伯文都有完美后备字体 */
body, html { 
    margin: 0; padding: 0; 
    font-family: 'Montserrat', 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', sans-serif; 
    background-color: #F8FBFF; color: #1A1A1A; overflow-x: hidden; scroll-behavior: smooth; 
}

/* 顶部导航容器维持左右对齐 */
.navbar { 
    position: fixed; top: 0; left: 0; width: 100%; height: 80px; 
    background: rgba(255, 255, 255, 0.98); backdrop-filter: blur(15px); 
    display: flex; justify-content: space-between; align-items: center; 
    padding: 0 5%; box-sizing: border-box; z-index: 1000; 
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05); 
}

.logo { font-size: 28px; font-weight: 900; color: #0044FF; text-decoration: none; flex-shrink: 0; }
.logo .tw-highlight { color: #FF6B00; font-style: italic; font-size: 32px; }

.nav-right { display: flex; align-items: center; gap: 40px; }

/* 核心修复 2：优化导航栏文字排版 */
.nav-links { display: flex; gap: 35px; align-items: center; }
.nav-links a { 
    text-decoration: none; color: #333; 
    font-weight: 600; /* 从糊成一团的 800 降为清爽的 600 (半粗体) */
    font-size: 15px; /* 字号略微放大，提升可读性 */
    letter-spacing: 0.5px; /* 增加字符间距，让呼吸感更强 */
    /* 删除了 text-transform: uppercase; 防止对中文排版产生挤压副作用 */
    transition: color 0.3s; 
}
.nav-links a:hover { color: #FF6B00; }

/* 语言下拉框保持简约原生样式 */
.lang-switcher select { 
    cursor: pointer; font-weight: 600; font-size: 14px; color: #333; 
    padding: 8px 12px; border: 1px solid #ddd; border-radius: 6px; 
    background: #fff; outline: none; transition: 0.3s; 
    font-family: inherit; width: 110px;
}
.lang-switcher select:hover { border-color: #0044FF; }

/* ================== 首页基础架构 ================== */
.hero { height: calc(100vh - 80px); margin-top: 80px; position: relative; background: linear-gradient(135deg, rgba(0, 68, 255, 0.2) 0%, rgba(255, 107, 0, 0.2) 100%), url('assets/images/ai-image-1779198948573.png') center top / cover no-repeat; display: flex; align-items: center; justify-content: flex-start; padding-left: 10%; }
.hero-content { max-width: 550px; margin-top: -50px; }
.hero h1 { font-size: clamp(2.5rem, 5vw, 3.5rem); font-weight: 900; margin: 0; line-height: 1.1; font-style: italic; background: linear-gradient(90deg, #FF6B00, #FF3300); -webkit-background-clip: text; -webkit-text-fill-color: transparent; text-transform: uppercase; word-break: break-word; }
.hero p { font-size: 1.25rem; color: #111; font-weight: 700; margin: 20px 0 40px; line-height: 1.6; }
.hero .btn { background: #0044FF; color: #fff; padding: 15px 40px; text-decoration: none; font-size: 1.2rem; font-weight: 700; border-radius: 30px; box-shadow: 0 10px 20px rgba(0, 68, 255, 0.3); transition: 0.3s; display: inline-block; }
.hero .btn:hover { background: #FF6B00; box-shadow: 0 10px 20px rgba(255, 107, 0, 0.3); }

.section { padding: 100px 5%; max-width: 1400px; margin: 0 auto; text-align: center; }
.section-title { font-size: 3rem; font-weight: 900; color: #0044FF; margin-bottom: 50px; text-transform: uppercase; font-style: italic; }

.product-grid { display: grid; gap: 30px; }
.product-card { background: #fff; border-radius: 20px; padding: 40px 20px; box-shadow: 0 15px 35px rgba(0,0,0,0.04); transition: 0.3s; cursor: pointer; border-bottom: 5px solid transparent; text-decoration: none; color: inherit; display: block; }
.product-card:hover { transform: translateY(-10px); border-bottom: 5px solid #FF6B00; box-shadow: 0 20px 40px rgba(255, 107, 0, 0.1); }
.img-placeholder { height: 200px; background: #F0F4F8; border-radius: 10px; margin-bottom: 20px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.img-placeholder img { width: 100%; height: 100%; object-fit: cover; }

.trust-banner { padding: 160px 5%; text-align: center; color: #fff; position: relative; background: linear-gradient(rgba(0, 15, 40, 0.3), rgba(0, 15, 40, 0.4)), url('assets/images/zhongxuan_guanwang.png') center/cover fixed; }
.trust-banner h2 { font-size: 2.5rem; font-weight: 900; margin-bottom: 15px; color: #FF6B00; font-style: italic; }
.trust-banner p { font-size: 1.2rem; color: #fff; max-width: 800px; margin: 0 auto; line-height: 1.8; }

/* ================== QC 品控网格（兼容 600x400 图片） ================== */
.qc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 40px; }
.qc-card { background: #fff; border-radius: 15px; overflow: hidden; display: flex; flex-direction: column; border: 1px solid #eee; height: auto; box-shadow: 0 10px 25px rgba(0,0,0,0.04); transition: transform 0.3s; }
.qc-card:hover { transform: translateY(-5px); }
.qc-img { width: 100%; aspect-ratio: 3 / 2; background: #fafafa; display: flex; align-items: center; justify-content: center; overflow: hidden;}
.qc-img img { width: 100%; height: 100%; object-fit: contain; }
.qc-title { background: #fff; width: 100%; padding: 20px; font-weight: 700; text-align: center; border-top: 3px solid #FF6B00; box-sizing: border-box; font-size: 1.15rem; color: #111; }

/* ================== News 行业新闻高级卡片 ================== */
.news-card { background: #fff; border-radius: 15px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.04); display: flex; flex-direction: column; text-decoration: none; transition: all 0.4s ease; border: 1px solid #f0f4f8; height: 100%; text-align: left; }
.news-card:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0, 68, 255, 0.08); }
.news-img { width: 100%; aspect-ratio: 3/2; overflow: hidden; background: #eee; }
.news-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.news-card:hover .news-img img { transform: scale(1.05); }
.news-content { padding: 30px; flex: 1; display: flex; flex-direction: column; }
.news-date { color: #FF6B00; font-weight: 800; font-size: 0.85rem; text-transform: uppercase; margin-bottom: 12px; }
.news-content h3 { font-size: 1.35rem; color: #111; margin: 0 0 15px 0; line-height: 1.4; font-weight: 900; }
.news-content p { color: #666; font-size: 0.95rem; line-height: 1.6; margin: 0; }
.placeholder-card { opacity: 0.6; pointer-events: none; filter: grayscale(50%); }

/* ================== 底部联系与 RTL 支持 ================== */
.contact-section { background: #111; padding: 80px 5%; display: flex; gap: 50px; justify-content: center; color: #fff; }
.footer-left { max-width: 500px; }
.footer-left h2 { font-size: 2.2rem; color: #FF6B00; font-style: italic; margin-top: 0; text-transform: uppercase; }
.footer-left p { color: #aaa; line-height: 1.8; margin-bottom: 20px; }
.inquiry-form { background: #222; padding: 40px; border-radius: 20px; width: 100%; max-width: 500px; box-sizing: border-box; }
.inquiry-form input, .inquiry-form textarea { width: 100%; padding: 15px; margin-bottom: 15px; border: none; border-radius: 8px; background: #333; color: #fff; font-family: 'Montserrat'; box-sizing: border-box; }
.inquiry-form button { width: 100%; padding: 15px; background: #0044FF; color: #fff; border: none; border-radius: 8px; font-weight: 700; font-size: 1.1rem; cursor: pointer; text-transform: uppercase; transition: 0.3s; }
.inquiry-form button:hover { background: #FF6B00; }
body.rtl .navbar, body.rtl .contact-section { direction: rtl; }
body.rtl .qc-title, body.rtl .news-card { text-align: right; border-top-color: #0044FF; }

/* ================== 关于我们 时间轴 (恢复丢失的排版) ================== */
.about-section { padding: 100px 5%; max-width: 1400px; margin: 0 auto; text-align: center; }
.horizontal-timeline { position: relative; max-width: 1200px; margin: 60px auto 0; display: flex; justify-content: space-between; }
.timeline-line { position: absolute; top: 15px; left: 5%; width: 90%; height: 4px; background: #E8EEF5; z-index: 1; }
.timeline-node { position: relative; z-index: 2; width: 18%; text-align: center; }
.timeline-dot { width: 34px; height: 34px; background: #FF6B00; border-radius: 50%; margin: 0 auto 20px; border: 5px solid #fff; box-shadow: 0 0 0 4px #E8EEF5; transition: 0.3s; }
.timeline-node:hover .timeline-dot { transform: scale(1.2); box-shadow: 0 0 0 4px #0044FF; background: #0044FF;}
.timeline-year { font-size: 1.8rem; font-weight: 900; color: #0044FF; margin-bottom: 10px; }
.timeline-desc { font-size: 0.95rem; color: #555; line-height: 1.5; padding: 0 10px; font-weight: 700;}



/* ================== 产品详情页 (Product Detail) 专属样式 ================== */
.product-detail-page { margin-top: 80px; }

/* 英雄区 (包含您的 1200x800 渲染图背景) */
.pd-hero { min-height: 70vh; display: flex; align-items: center; padding: 0 5%; position: relative; }
.pd-hero-content { max-width: 600px; z-index: 2; }
.pd-title { font-size: 3.5rem; color: #0044FF; font-weight: 900; line-height: 1.1; text-transform: uppercase; font-style: italic; margin-bottom: 20px; }
.pd-subtitle { font-size: 1.5rem; color: #333; font-weight: 700; margin-bottom: 40px; }
.pd-actions { display: flex; gap: 20px; }
.btn-primary { background: #0044FF; color: #fff; padding: 15px 35px; border-radius: 30px; font-weight: 800; text-decoration: none; transition: 0.3s; box-shadow: 0 10px 20px rgba(0,68,255,0.2); }
.btn-primary:hover { background: #FF6B00; box-shadow: 0 10px 20px rgba(255,107,0,0.2); }
.btn-secondary { background: #fff; color: #111; padding: 15px 35px; border-radius: 30px; font-weight: 800; text-decoration: none; border: 2px solid #E8EEF5; transition: 0.3s; }
.btn-secondary:hover { border-color: #0044FF; color: #0044FF; }

/* 核心卖点网格 */
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; text-align: left; max-width: 1000px; margin: 0 auto; }
.feature-card { background: #fff; padding: 40px; border-radius: 20px; box-shadow: 0 15px 35px rgba(0,0,0,0.03); border: 1px solid #f5f5f5; transition: 0.3s; }
.feature-card:hover { transform: translateY(-5px); border-bottom: 4px solid #FF6B00; }
.feature-card .icon { font-size: 3rem; margin-bottom: 20px; }
.feature-card h3 { font-size: 1.4rem; color: #111; margin-bottom: 15px; }
.feature-card p { color: #555; line-height: 1.7; font-size: 1rem; margin: 0; }

/* 生活方式展示区 (包含您的 800x800 佩戴图) */
.pd-lifestyle { display: flex; align-items: center; background: #111; color: #fff; margin-top: 100px; }
.lifestyle-text { flex: 1; padding: 80px 10%; }
.lifestyle-text h2 { font-size: 2.5rem; color: #FF6B00; font-style: italic; margin-bottom: 20px; }
.lifestyle-text p { font-size: 1.1rem; line-height: 1.8; color: #ccc; }
.lifestyle-image { flex: 1; min-height: 500px; }
.lifestyle-image img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* 规格参数表 */
.specs-table-container { max-width: 800px; margin: 0 auto; background: #fff; border-radius: 20px; box-shadow: 0 20px 40px rgba(0,0,0,0.05); overflow: hidden; }
.specs-table { width: 100%; border-collapse: collapse; text-align: left; }
.specs-table tr { border-bottom: 1px solid #eee; }
.specs-table tr:last-child { border-bottom: none; }
.specs-table th { padding: 25px 30px; background: #FAFCFF; color: #0044FF; font-weight: 800; width: 40%; }
.specs-table td { padding: 25px 30px; color: #333; font-weight: 600; }