/* css/style.css - 主色系改为 #ff7500 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Inter', sans-serif;
    background-color: #ffffff;
    color: #1e1e2a;
    line-height: 1.4;
    scroll-behavior: smooth;
    overflow-x: hidden;
}
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #f0f0f2;
}
::-webkit-scrollbar-thumb {
    background: #ff7500;
    border-radius: 8px;
}
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 32px;
}
@media (max-width: 768px) {
    .container {
        padding: 0 24px;
    }
}

/* ===== 导航栏样式 ===== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: transparent;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}
.nav-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
}
.logo a {
    font-size: 1.7rem;
    font-weight: 800;
    background: linear-gradient(135deg, #1a1a2e, #ff7500);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-decoration: none;
    letter-spacing: -0.5px;
}
.nav-links {
    display: flex;
    gap: 2.2rem;
    align-items: center;
}
.nav-links a {
    color: #2c2c38;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: 0.2s;
    letter-spacing: 0.3px;
}
.nav-links a:hover, .nav-links a.active {
    color: #ff7500;
}
.menu-toggle {
    display: none;
    background: transparent;
    border: 1px solid rgba(255, 117, 0, 0.6);
    color: #ff7500;
    font-size: 1.4rem;
    padding: 6px 12px;
    border-radius: 30px;
    cursor: pointer;
}

@media (min-width: 1024px) {
    .nav-links {
        display: flex;
    }
    .menu-toggle {
        display: none;
    }
}

@media (max-width: 1023px) {
    .menu-toggle {
        display: block;
    }
    .nav-links {
        display: none;
        position: fixed;
        top: 72px;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(16px);
        padding: 1.5rem;
        gap: 1.5rem;
        flex-direction: column;
        align-items: center;
        box-shadow: 0 20px 30px -12px rgba(0, 0, 0, 0.1);
        border-bottom: 1px solid rgba(255, 117, 0, 0.2);
    }
    .nav-links.show {
        display: flex;
    }
    .nav-links a {
        font-size: 1rem;
        padding: 8px 0;
    }
}

.lang-switch {
    display: flex;
    gap: 8px;
    margin-left: 0;
    align-items: center;
}
.lang-btn {
    background: transparent;
    border: none;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.8rem;
    padding: 5px 12px;
    border-radius: 30px;
    color: #2c2c38;
    font-family: inherit;
    transition: all 0.2s;
}
.lang-btn.active {
    background: #ff7500;
    color: white;
}
.lang-btn:hover:not(.active) {
    background: rgba(255, 117, 0, 0.1);
}
@media (max-width: 1023px) {
    .lang-switch {
        margin-top: 8px;
        margin-left: 0;
    }
}

section {
    padding: 100px 0;
}
.section-title {
    text-align: center;
    margin-bottom: 3rem;
}
.section-sub {
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 3px;
    color: #ff7500;
    margin-bottom: 1rem;
    display: inline-block;
    font-weight: 600;
}
.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: #1e1e2a;
}
@media (max-width: 768px) {
    section { padding: 70px 0; }
    .section-title h2 { font-size: 1.9rem; }
}

.btn-primary, .btn-outline {
    padding: 12px 28px;
    border-radius: 40px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.25s;
    font-size: 0.9rem;
    display: inline-block;
}
.btn-primary {
    background: #ff7500;
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 12px rgba(255, 117, 0, 0.25);
}
.btn-primary:hover {
    background: #e06600;
    transform: translateY(-3px);
}
.btn-outline {
    border: 1px solid #ff7500;
    color: #ff7500;
    background: transparent;
}
.btn-outline:hover {
    background: rgba(255, 117, 0, 0.08);
    transform: translateY(-3px);
}
.btn-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.fade-up {
    opacity: 0;
    transform: translateY(35px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.hero {
    position: relative;
    width: 100%;
    height: auto;
    min-height: 500px;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}
.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
}
.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 2;
    width: 90%;
    max-width: 1000px;
}
.hero-badge {
    display: inline-block;
    background: #ff7500;
    padding: 8px 20px;
    border-radius: 40px;
    font-size: 0.85rem;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    color: white;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: white;
    text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}
.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: rgba(255,255,255,0.95);
    text-shadow: 0 1px 8px rgba(0,0,0,0.35);
    font-weight: 500;
}
@media (min-width: 768px) {
    .hero-content h1 { font-size: 4.5rem; }
}
@media (max-width: 768px) {
    .hero-content h1 { font-size: 2.2rem; }
    .hero-content p { font-size: 1rem; }
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}
.product-card {
    background: #ffffff;
    border-radius: 32px;
    overflow: hidden;
    transition: all 0.4s;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 12px 28px -8px rgba(0,0,0,0.05);
    cursor: pointer;
}
.product-card:hover {
    transform: translateY(-12px);
    border-color: rgba(255, 117, 0, 0.4);
}
.card-media img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: transform 0.6s;
}
.card-info { padding: 1.8rem; }
.card-icon { font-size: 2rem; color: #ff7500; margin-bottom: 1rem; }

.stats-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
    text-align: center;
}
.stat-item h4 { font-size: 2.5rem; font-weight: 800; color: #ff7500; }
.stat-item p { color: #666; }

.timeline {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}
.timeline-item {
    border-left: 3px solid #ff7500;
    padding-left: 2rem;
    position: relative;
}
.timeline-year { font-weight: 800; font-size: 1.5rem; color: #ff7500; }

.brand-detail-card {
    background: #fff;
    border-radius: 32px;
    overflow: hidden;
    margin-bottom: 3rem;
    box-shadow: 0 12px 28px rgba(0,0,0,0.05);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.brand-detail-card img { width: 100%; height: 100%; object-fit: cover; }
.brand-detail-info { padding: 2rem; }

.gallery-scroll {
    display: flex;
    gap: 1.5rem;
    padding: 1rem 0;
    overflow: hidden;
    position: relative;
    cursor: grab;
}
.gallery-scroll:active {
    cursor: grabbing;
}
.gallery-scroll img {
    width: 280px;
    height: 200px;
    object-fit: cover;
    border-radius: 24px;
    flex-shrink: 0;
    pointer-events: none;
    user-select: none;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}
@media (max-width: 768px) {
    .gallery-scroll img {
        width: 220px;
        height: 160px;
    }
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px,1fr));
    gap: 2rem;
    background: #f8f8fc;
    border-radius: 32px;
    padding: 2rem;
}
.input-group input, .input-group select, .input-group textarea {
    width: 100%;
    padding: 12px;
    border-radius: 28px;
    border: 1px solid #e2e2e8;
    margin-bottom: 1rem;
    font-family: inherit;
}
.submit-btn {
    background: #ff7500;
    width: 100%;
    padding: 12px;
    border-radius: 40px;
    color: white;
    border: none;
    font-weight: 600;
    cursor: pointer;
}
.tech-tag {
    color: #ff7500;
    background: rgba(255, 117, 0, 0.08);
    padding: 4px 12px;
    border-radius: 20px;
    display: inline-block;
}

footer {
    background: #ffffff;
    padding: 50px 0 30px;
    border-top: 1px solid #efeff2;
}
.footer-flex {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
}
.footer-col h4 {
    color: #1e1e2a;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
    letter-spacing: 0.3px;
}
.footer-col p {
    margin-bottom: 0.3rem;
}
.footer-col a {
    color: #8e8e9a;
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    display: inline-block;
}
.footer-col a:hover {
    color: #ff7500;
    transform: translateX(4px);
}
.social-icons a {
    font-size: 1.4rem;
    margin-right: 1rem;
    color: #8e8e9a;
    transition: all 0.2s ease;
    display: inline-block;
}
.social-icons a:hover {
    color: #ff7500;
    transform: translateY(-3px);
}
.copyright {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.7rem;
    color: #8e8e9a;
}
.icp-link {
    color: #8e8e9a;
    text-decoration: none;
    margin-left: 6px;
    transition: all 0.2s ease;
}
.icp-link:hover {
    color: #ff7500;
    text-decoration: none;
}
/* ===== 关于页：曲线时间轴样式 ===== */
.timeline-ascent-wrapper {
    width: 100%;
    overflow-x: visible;
    overflow-y: visible;
    padding: 2rem 0 2.5rem 0;
    margin: 1.5rem 0 2rem;
}
.ascent-track {
    position: relative;
    width: 100%;
    min-width: auto;
    padding: 0 20px 60px 20px;
    margin: 0 auto;
    overflow: visible;
}
.curve-svg-layer {
    position: absolute;
    top: 55px;
    left: 0;
    width: 100%;
    height: 200px;
    pointer-events: none;
    z-index: 1;
    overflow: visible;
}
.curve-svg-layer svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}
.ascent-curve-path {
    stroke: #ff7500;
    stroke-width: 3;
    fill: none;
    stroke-linecap: round;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.08));
}
.nodes-row-ascent {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    position: relative;
    z-index: 2;
}
.milestone-node {
    flex: 1;
    min-width: 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.milestone-node:hover {
    transform: translateY(-6px);
}
.node-circle {
    width: 68px;
    height: 68px;
    background: #ffffff;
    border: 2.5px solid #ff7500;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.5rem;
    color: #ff7500;
    margin-bottom: 1.2rem;
    transition: all 0.3s;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    z-index: 3;
    position: relative;
}
.milestone-node:hover .node-circle {
    background: #ff7500;
    color: white;
    transform: scale(1.08);
    box-shadow: 0 14px 28px rgba(255, 117, 0, 0.35);
}
.node-year {
    font-weight: 700;
    font-size: 0.85rem;
    background: rgba(255, 117, 0, 0.12);
    padding: 5px 14px;
    border-radius: 40px;
    color: #e06600;
    margin-bottom: 0.7rem;
    letter-spacing: 0.3px;
}
.node-stage {
    font-weight: 800;
    font-size: 1.1rem;
    color: #1e1e2a;
    margin-bottom: 0.8rem;
}
.node-card {
    max-width: 100%;
    background: #ffffff;
    border-radius: 24px;
    padding: 1rem 1.2rem;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.04);
    border: 1px solid #f0ede5;
    transition: all 0.3s;
    text-align: left;
    width: 100%;
}
.milestone-node:hover .node-card {
    border-color: #e7dbbd;
    box-shadow: 0 20px 32px rgba(0, 0, 0, 0.08);
    transform: translateY(-4px);
}
.node-card p {
    font-size: 0.76rem;
    line-height: 1.55;
    color: #4a4a5a;
    font-weight: 500;
    margin: 0;
}
.culture-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 1rem;
}
.culture-card {
    background: #faf9fc;
    padding: 1.8rem;
    border-radius: 32px;
    text-align: center;
    transition: all 0.25s;
    border: 1px solid #f1efe7;
}
.culture-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
    border-color: #e7dbbd;
}
.culture-card h4 {
    margin: 0.75rem 0 0.25rem;
    font-size: 1.5rem;
    color: #ff7500;
}
.culture-card p.tagline {
    font-weight: 700;
    margin: 0.25rem 0 0.75rem;
    font-size: 1rem;
    color: #2c2c38;
}
.culture-card small {
    color: #6c6c7a;
    display: block;
    line-height: 1.5;
    font-size: 0.8rem;
}

/* ===== 响应式：平板尺寸（微调） ===== */
@media (max-width: 1100px) and (min-width: 769px) {
    .node-circle { width: 58px; height: 58px; font-size: 1.3rem; }
    .node-stage { font-size: 0.95rem; }
    .node-card p { font-size: 0.7rem; }
    .node-card { padding: 0.75rem 0.8rem; }
}

/* ===== 响应式：手机尺寸（纵向时间轴） ===== */
@media (max-width: 768px) {
    /* 隐藏横向曲线SVG */
    .curve-svg-layer {
        display: none !important;
    }

    /* 纵向容器调整 */
    .timeline-ascent-wrapper {
        padding: 1rem 0;
        margin: 0.5rem 0 1rem;
    }

    .ascent-track {
        padding: 0 16px 0 0;
        position: relative;
    }

    /* 纵向布局：flex改为列方向 */
    .nodes-row-ascent {
        display: flex !important;
        flex-direction: column !important;
        gap: 1.5rem !important;
        position: relative;
        margin-left: 28px;
    }

    /* 左侧连接竖线 */
    .nodes-row-ascent::before {
        content: '';
        position: absolute;
        left: 0px;
        top: 20px;
        bottom: 20px;
        width: 2px;
        background: linear-gradient(to bottom, #ff7500, #ffb36b);
        border-radius: 2px;
        z-index: 1;
    }

    /* 每个节点的第一行：放圆形和年份 */
    .milestone-node {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        flex-wrap: wrap !important;
        position: relative;
        z-index: 2;
    }

    /* 圆形图标 */
    .milestone-node .node-circle {
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
        font-size: 0.9rem !important;
        margin: 0 !important;
        background: #fff;
        border: 2.5px solid #ff7500;
        color: #ff7500;
        position: relative;
        left: -20px;
        margin-right: -16px;
        z-index: 3;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .milestone-node:hover .node-circle {
        background: #ff7500;
        color: white;
        transform: scale(1.05);
    }

    /* 年份标签 - 紧跟在圆形右边 */
    .milestone-node .node-year {
        font-size: 0.7rem !important;
        padding: 4px 10px !important;
        background: rgba(255, 117, 0, 0.12);
        border-radius: 30px;
        color: #e06600;
        margin: 0 !important;
        margin-left: 8px !important;
        display: inline-block !important;
        white-space: nowrap !important;
    }

    /* 阶段标题 - 另起一行 */
    .milestone-node .node-stage {
        font-size: 0.9rem !important;
        font-weight: 800;
        color: #1e1e2a;
        width: 100%;
        margin: 0.5rem 0 0 !important;
        padding-left: 24px !important;
    }

    /* 内容卡片 */
    .milestone-node .node-card {
        width: 100%;
        padding: 0.8rem 1rem !important;
        border-radius: 20px;
        margin-top: 0.5rem;
        margin-left: 120px !important;
    }

    .milestone-node .node-card p {
        font-size: 0.75rem !important;
        line-height: 1.5;
        margin: 0;
    }

    .milestone-node:hover .node-card {
        border-color: #ffd9b3;
        transform: translateX(4px);
    }
}

/* ===== 首页：手机端上图下文布局 ===== */
@media (max-width: 768px) {
    /* 给包含左文右图的容器添加样式 */
    div[style*="background:#f9f9fc"] > .container > div[style*="display:grid"] {
        display: flex !important;
        flex-direction: column !important;
        gap: 2rem !important;
        padding: 40px 0 !important;
    }

    /* 图片移到文字上方 */
    div[style*="background:#f9f9fc"] > .container > div[style*="display:grid"] .fade-up:first-child {
        order: 2;
    }

    div[style*="background:#f9f9fc"] > .container > div[style*="display:grid"] .fade-up:last-child {
        order: 1;
    }

    /* 图片下方添加文字 */
    div[style*="background:#f9f9fc"] > .container > div[style*="display:grid"] .fade-up:last-child::after {
        display: block;
        text-align: center;
        font-size: 0.9rem;
        font-weight: 500;
        color: #ff7500;
        margin-top: 16px;
        letter-spacing: 1px;
    }
}

/* ===== 大屏幕：确保横向布局正常 ===== */
@media (min-width: 769px) {
    .nodes-row-ascent::before {
        display: none !important;
    }

    .curve-svg-layer {
        display: block !important;
    }

    .nodes-row-ascent {
        display: flex !important;
        flex-direction: row !important;
        gap: 1rem !important;
    }

    .milestone-node {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
    }

    .milestone-node .node-circle {
        width: 68px !important;
        height: 68px !important;
        font-size: 1.5rem !important;
        margin-bottom: 1.2rem !important;
    }
}