/* style.css - 最终完美版 (手机适配+表单修复) */

:root {
    --primary-color: #ff6600; 
    --bg-dark: #0a0a0a;
    --bg-card: #141414;
    --text-light: #f0f0f0;
    --text-gray: #a0a0a0;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
html { scroll-behavior: smooth; }

/* === Logo 动画 === */
@keyframes eyeScan {
    0% { opacity: 0.6; transform: scale(1); filter: drop-shadow(0 0 0 rgba(255,102,0,0)); }
    50% { opacity: 1; transform: scale(1.2); filter: drop-shadow(0 0 8px rgba(255,255,255,0.8)); }
    100% { opacity: 0.6; transform: scale(1); filter: drop-shadow(0 0 0 rgba(255,102,0,0)); }
}

header {
    background: rgba(10, 10, 10, 0.95);
    padding: 15px 5%; /* 增加一点高度 */
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #333;
}

.logo-container { display: flex; align-items: center; gap: 12px; }
.logo-y-shape { stroke: var(--primary-color); stroke-width: 8; stroke-linecap: round; stroke-linejoin: round; fill: none; }
.logo-eye { fill: #fff; transform-origin: center; animation: eyeScan 3s infinite ease-in-out; }
.logo-text { font-weight: 800; font-size: 22px; color: #ffffff; letter-spacing: 1px; text-transform: uppercase; }

nav ul { display: flex; gap: 20px; }
nav a { font-size: 0.85rem; font-weight: 700; color: #ccc; text-transform: uppercase; cursor: pointer;}
nav a:hover { color: var(--primary-color); }

/* === Hero === */
.hero {
    height: 90vh;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.8)), url('images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
}
.hero-content h1 { font-size: 3rem; margin-bottom: 15px; font-weight: 800; line-height: 1.1; }
.hero-content h2 { font-size: 1.3rem; color: var(--text-gray); margin-bottom: 35px; font-weight: 300; }
.highlight { color: var(--primary-color); }

.btn { display: inline-block; padding: 12px 30px; background: var(--primary-color); color: white; border-radius: 4px; font-weight: bold; margin: 10px; border: 2px solid var(--primary-color); cursor: pointer; }
.btn:hover { background: transparent; color: var(--primary-color); }
.btn-outline { background: transparent; border: 2px solid white; cursor: pointer; }
.btn-outline:hover { background: white; color: black; }

/* === Section === */
section { padding: 80px 10%; }
.section-title { font-size: 2.2rem; margin-bottom: 40px; font-weight: 700; border-left: 5px solid var(--primary-color); padding-left: 20px; text-transform: uppercase;}

.values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; text-align: center; }
.value-card { background: var(--bg-card); padding: 30px; border-radius: 8px; border: 1px solid #333; }
.value-card h3 { color: var(--primary-color); margin-bottom: 15px; }

/* === Homepage Cards === */
.scroll-anchor { scroll-margin-top: 100px; }
.solutions-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; }
.solution-card { background: var(--bg-card); border-radius: 10px; overflow: hidden; border: 1px solid #222; transition: transform 0.3s; display: flex; flex-direction: column;}
.solution-card:hover { transform: translateY(-5px); border-color: #444; }
.solution-card img { width: 100%; height: 250px; object-fit: contain; background: #000; } 
.card-content { padding: 30px; flex-grow: 1; display: flex; flex-direction: column; justify-content: space-between; }
.card-content h3 { font-size: 1.5rem; margin-bottom: 10px; }
.card-content p { color: var(--text-gray); margin-bottom: 25px; }

/* === Industrial Section === */
.industrial-row { display: flex; align-items: center; gap: 50px; margin-bottom: 80px; }
.industrial-text { flex: 1; }
.industrial-img { flex: 1; height: 400px; border: 1px solid #333; background: #000; }
.industrial-img img { width: 100%; height: 100%; object-fit: cover; }
.industrial-list li { margin-bottom: 10px; color: #ccc; display: flex; align-items: start; }
.industrial-list li::before { content: "■"; color: var(--primary-color); font-size: 10px; margin-right: 10px; margin-top: 6px;}

.orange-box-section { 
    background: var(--bg-card); 
    border: 1px solid #333;
    border-left: 5px solid var(--primary-color);
    display: flex;
    align-items: stretch;
    min-height: 450px;
    margin: 0 10%;
}
.orange-content { flex: 1; padding: 60px; color: white; display: flex; flex-direction: column; justify-content: center; }
.orange-content h3 { border-bottom: 1px solid #333; padding-bottom: 15px; margin-bottom: 20px; color: var(--primary-color); }
.orange-content li { color: #ccc; font-weight: 400; }
.orange-content li::before { color: var(--primary-color); }
.orange-img { flex: 1; background: black; display: flex; align-items: center; justify-content: center; overflow: hidden;}
.orange-img img { width: 100%; height: 100%; object-fit: contain; max-height: 450px; }
.orange-btn { background: var(--primary-color); color: white; border: none; padding: 15px 30px; font-weight: bold; margin-top: 30px; cursor: pointer; text-transform: uppercase; display: inline-block;}
.orange-btn:hover { background: white; color: black; }

/* === 详情页 Hero === */
.detail-hero-container {
    height: 60vh;
    background: #050505;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    border-bottom: 1px solid #222;
}
.detail-hero-img {
    max-height: 70%;
    max-width: 90%;
    object-fit: contain;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 20px rgba(255,102,0,0.1));
}
.detail-title h1 { font-size: 2.2rem; line-height: 1.2; margin-bottom: 10px; text-align: center; }
.detail-title h2 { font-size: 1.1rem; color: var(--primary-color); font-weight: 400; text-align: center; }

.detail-content { background: var(--bg-card); margin: -20px auto 0; padding: 60px; border-radius: 10px; position: relative; border: 1px solid #333; max-width: 1000px; width: 90%; z-index: 2; }
.specs-list li { border-bottom: 1px solid #333; padding: 15px 0; }

/* === Footer & QR (手机端修复重点) === */
footer { 
    background: black; 
    padding: 60px 10% 80px 10%; /* 增加底部padding，防止手机浏览器工具栏遮挡 */
    text-align: center; 
    border-top: 1px solid #333; 
}
.qr-codes { 
    display: flex; 
    justify-content: center; 
    gap: 40px; 
    margin: 30px 0; 
}
.qr-box { text-align: center; }
.qr-img { width: 120px; height: 120px; background: #fff; padding: 5px; border-radius: 5px; }
.qr-img img { width: 100%; height: 100%; object-fit: contain; }

.footer-links { margin-top: 30px; display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; border-top: 1px solid #222; padding-top: 20px; }
.footer-links button { 
    background: none; 
    border: none; 
    color: #666; 
    cursor: pointer; 
    font-size: 0.9rem; /* 字体稍微调大 */
    transition: 0.3s;
    text-transform: uppercase;
    padding: 10px; /* 增加点击区域 */
}
.footer-links button:hover { color: var(--primary-color); }

/* === Modal === */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}
.modal-content {
    background: #1a1a1a;
    border: 1px solid var(--primary-color);
    width: 90%; max-width: 600px;
    padding: 40px;
    border-radius: 4px;
    position: relative;
    text-align: left;
    max-height: 85vh; 
    overflow-y: auto; 
}
.close-modal { position: absolute; top: 15px; right: 20px; font-size: 30px; color: #666; cursor: pointer; z-index: 10; }
.form-group { margin-bottom: 20px; }
.form-control { width: 100%; padding: 12px; background: #111; border: 1px solid #333; color: white; margin-top: 5px; }
.legal-text h4 { color: var(--primary-color); margin: 15px 0 10px; border-bottom: 1px solid #333; padding-bottom: 5px; }
.legal-text p { font-size: 0.9rem; color: #ccc; margin-bottom: 10px; }

/* === 移动端适配强化 (Mobile Fixes) === */
@media (max-width: 768px) {
    header { flex-direction: column; gap: 15px; padding: 15px; }
    nav ul { gap: 15px; flex-wrap: wrap; justify-content: center; }
    .hero-content h1 { font-size: 2.2rem; }
    
    .industrial-row { flex-direction: column; gap: 30px; }
    .orange-box-section { flex-direction: column; margin: 0 5%; }
    .orange-content { padding: 30px; }
    .orange-img { height: 250px; }
    
    /* 详情页手机适配 */
    .detail-hero-container { height: auto; padding: 40px 20px; }
    .detail-hero-img { max-height: 250px; width: 100%; }
    .detail-content { padding: 30px; margin-top: 0; width: 95%; }

    /* 页脚手机适配 */
    footer { padding: 40px 5% 100px 5%; } /* 底部留白更多 */
    .qr-codes { flex-direction: column; align-items: center; gap: 30px; }
    .footer-links { flex-direction: column; gap: 10px; }
}