/* ===== 基础变量 ===== */
:root {
    --primary: #ff7b00;
    --primary-dark: #e66a00;
    --bg-dark: #1a1a2e;
    --bg-light: #f8f9fa;
    --text-dark: #1a1a2e;
    --text-light: #ffffff;
    --text-muted: #6c757d;
    --border: #e9ecef;
    --card-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --transition: 0.3s ease;
    --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ===== 全局重置 ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: var(--font-main);
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--bg-light);
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; height: auto; }

/* ===== 布局容器 ===== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ===== 导航栏 ===== */
.navbar {
    background: var(--bg-dark);
    color: var(--text-light);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-light);
    letter-spacing: 0.5px;
}
.logo-en {
    font-size: 0.85rem;
    font-weight: 400;
    color: #aaa;
    margin-left: 0.5rem;
}
.nav-menu {
    display: flex;
    gap: 2rem;
}
.nav-menu a {
    color: #ccc;
    transition: var(--transition);
    padding: 0.5rem 0;
}
.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary);
}
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
}
.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-light);
}

/* ===== 按钮样式 ===== */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}
.btn-primary {
    background: var(--primary);
    color: var(--text-light);
    border: 2px solid var(--primary);
}
.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}
.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}
.btn-outline:hover {
    background: var(--primary);
    color: var(--text-light);
}
.btn-secondary {
    background: var(--bg-dark);
    color: var(--text-light);
    border: 2px solid var(--bg-dark);
}
.btn-secondary:hover {
    background: #2a2a4e;
    border-color: #2a2a4e;
}

/* ===== Hero 区域 ===== */
.hero {
    background: linear-gradient(135deg, var(--bg-dark) 0%, #16213e 100%);
    color: var(--text-light);
    padding: 6rem 0;
    text-align: center;
}
.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 800;
}
.hero-subtitle {
    font-size: 1.25rem;
    color: #ccc;
    margin-bottom: 0.5rem;
}
.hero-tagline {
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: 2rem;
}
.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== 章节通用 ===== */
section { padding: 4rem 0; }
.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 3rem;
    color: var(--bg-dark);
}
.section-desc {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== 特性卡片 ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}
.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    text-align: center;
    transition: var(--transition);
}
.feature-card:hover {
    transform: translateY(-4px);
}
.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}
.feature-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    color: var(--bg-dark);
}

/* ===== 产品预览 ===== */
.products-preview {
    background: white;
}
.product-line {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}
.product-summary {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 12px;
    border-left: 4px solid var(--primary);
}
.product-summary h3 {
    font-size: 1.4rem;
    color: var(--bg-dark);
    margin-bottom: 0.5rem;
}
.product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
}
.product-specs {
    margin: 1rem 0;
    padding-left: 1.2rem;
}
.product-specs li {
    list-style: disc;
    margin-bottom: 0.4rem;
    color: var(--text-muted);
}

/* ===== 工艺对比 ===== */
.craftsmanship {
    background: var(--bg-light);
}
.craft-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}
.craft-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    position: relative;
}
.craft-card.featured {
    border: 2px solid var(--primary);
}
.badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: var(--primary);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}
.craft-desc {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}
.craft-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0.5rem 0 1rem;
}
.craft-note {
    margin-top: 1rem;
    padding: 0.8rem;
    background: var(--bg-light);
    border-radius: 6px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ===== 愿景区域 ===== */
.vision {
    background: linear-gradient(135deg, #16213e 0%, var(--bg-dark) 100%);
    color: var(--text-light);
}
.vision-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}
.vision-content p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
}
.vision-content strong {
    color: var(--primary);
}
.vision-signature {
    text-align: right;
    font-style: italic;
    color: #aaa;
    margin-top: 2rem;
}

/* ===== 产品矩阵页样式 ===== */
.page-header {
    background: var(--bg-dark);
    color: var(--text-light);
    padding: 3rem 0;
    text-align: center;
}
.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}
.page-header p {
    color: #aaa;
    font-size: 1.1rem;
}

.products-matrix h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 1rem;
}
.series-title {
    margin: 3rem 0 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary);
    color: var(--bg-dark);
    font-size: 1.6rem;
}
.product-card {
    background: white;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    margin-bottom: 1.5rem;
    overflow: hidden;
}
.product-card-header {
    background: var(--bg-dark);
    color: var(--text-light);
    padding: 1.2rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.product-card-header h3 {
    font-size: 1.3rem;
}
.price-tag {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
}
.product-card-body {
    padding: 1.5rem;
}
.spec-group {
    margin-bottom: 1.2rem;
}
.spec-group h4 {
    font-size: 1rem;
    color: var(--bg-dark);
    margin-bottom: 0.5rem;
    border-left: 3px solid var(--primary);
    padding-left: 0.5rem;
}
.spec-table {
    width: 100%;
    border-collapse: collapse;
}
.spec-table tr {
    border-bottom: 1px dashed var(--border);
}
.spec-table td {
    padding: 0.5rem 0;
}
.spec-table td:first-child {
    font-weight: 600;
    width: 40%;
    color: var(--bg-dark);
}
.spec-group.full-width {
    background: var(--bg-light);
    padding: 1rem;
    border-radius: 8px;
}
.spec-group.highlight {
    border-left: 4px solid var(--primary);
}
.product-card.prototype {
    border: 2px dashed #aaa;
}

/* ===== 关于页面样式 ===== */
.about-section {
    padding: 4rem 0;
}
.about-section.alt-bg {
    background: var(--bg-light);
}
.about-content,
.tech-content {
    max-width: 800px;
    margin: 0 auto;
}
.about-content p,
.tech-content p {
    margin-bottom: 1.2rem;
}
.tech-content h3 {
    margin: 2rem 0 1rem;
    font-size: 1.4rem;
    color: var(--bg-dark);
}
.tech-content ul {
    list-style: disc;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}
.tech-content li {
    margin-bottom: 0.5rem;
}

.principles-grid,
.scenarios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}
.principle-card,
.scenario-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    text-align: center;
}
.principle-icon,
.scenario-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}
.principle-card h3,
.scenario-card h3 {
    margin-bottom: 0.5rem;
    color: var(--bg-dark);
}
.history-content {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
}
.history-content h3 {
    margin-bottom: 1rem;
    color: var(--bg-dark);
}
.link-arrow {
    color: var(--primary);
    font-weight: 600;
}
.vision-box {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}
.vision-box p {
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
}
.vision-box .signature {
    text-align: right;
    color: var(--primary);
    font-weight: 600;
    margin-top: 1.5rem;
}

/* ===== 联系我们页面 ===== */
.contact-section {
    background: white;
}
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}
.contact-form-wrapper,
.contact-info {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 12px;
}
.contact-form-wrapper h2,
.contact-info h2 {
    margin-bottom: 1.5rem;
    color: var(--bg-dark);
}
.form-group {
    margin-bottom: 1rem;
}
.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 600;
    font-size: 0.95rem;
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
    background: white;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 123, 0, 0.1);
}
.required { color: var(--primary); }
.form-group.full-width { grid-column: 1 / -1; }

.info-block {
    margin-bottom: 1.5rem;
}
.info-block h3 {
    font-size: 1rem;
    color: var(--bg-dark);
    margin-bottom: 0.3rem;
}
.info-block p {
    color: var(--text-muted);
}
.info-block .note {
    font-size: 0.9rem;
    color: #999;
    margin-top: 0.3rem;
}
a.link-arrow {
    font-weight: 600;
    color: var(--primary);
}

/* ===== FAQ ===== */
.faq-section {
    background: var(--bg-light);
}
.faq-list {
    max-width: 900px;
    margin: 0 auto;
}
.faq-item {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.faq-item h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--bg-dark);
}

/* ===== Footer ===== */
.footer {
    background: var(--bg-dark);
    color: var(--text-light);
    padding: 3rem 0 1rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}
.footer-brand h4,
.footer-links h4,
.footer-contact h4 {
    margin-bottom: 0.8rem;
    color: var(--primary);
}
.footer p {
    color: #aaa;
    margin-bottom: 0.4rem;
}
.footer-links ul li {
    margin-bottom: 0.4rem;
}
.footer-links a:hover {
    color: var(--primary);
}
.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 1.5rem;
    text-align: center;
    color: #777;
    font-size: 0.9rem;
}

/* ===== 响应式设计 ===== */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-dark);
        flex-direction: column;
        padding: 1rem;
        gap: 0.5rem;
    }
    .nav-menu.active { display: flex; }
    .nav-toggle { display: flex; }
    .hero h1 { font-size: 2.2rem; }
    .contact-grid { grid-template-columns: 1fr; }
    .container { padding: 0 1rem; }
    section { padding: 3rem 0; }
}

/* ===== 工具类 ===== */
.full-width { grid-column: 1 / -1; }
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
