/* =========================
   DDUTEC 工业风统一样式
   主色调：柔和天蓝 + 橘色 CTA
   Header Logo + 公司英文名称协调，手机端自动隐藏英文名
========================= */

/* ---------- 全局 ---------- */
* {
    margin:0;
    padding:0;
    box-sizing:border-box;
}
body {
    font-family: "Segoe UI", Arial, Helvetica, sans-serif;
    background:#f4f5f7;
    color:#1e293b;
    line-height:1.8;
}
.container {
    width:100%;
    max-width:1200px;
    margin:auto;
    padding:0 20px;
}
section {
    padding:80px 0;
}
h1,h2,h3 {
    color:#0f172a;
    font-weight:600;
}
a { text-decoration:none; }

/* ---------- Header / Navigation ---------- */
.header {
    position: sticky;
    top: 0;
    z-index: 999;
    background: #fff;
    border-bottom: 2px solid #ff8800;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}
.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    height: 90px;
}

/* Logo + 公司英文名称 */
.logo-block {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 300px;
    flex-shrink: 0;
}
.logo-block img {
    height: 60px;
    width: auto;
}
.company-name {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav {
    display: flex;
    align-items: center;
    gap: 25px;
}
.nav a {
    color:#334155;
    font-size:16px;
    font-weight:600;
    transition:0.3s;
}
.nav a:hover { color: #ff8800; }
.quote-btn {
    background:#ff8800;
    color:#fff !important;
    padding:12px 28px;
    border-radius:10px;
    font-weight:700;
    transition:0.3s;
}
.quote-btn:hover { background:#ff6600; }

/* ---------- Hero Banner ---------- */
.hero {
    position: relative;
    background: linear-gradient(to bottom, #87CEFA 0%, #B0E0E6 100%);
    background-size: cover;
    background-position: center;
    color:#fff;
    padding:140px 20px;
}
.hero-content {
    position: relative;
    z-index:2;
    max-width:700px;
    margin:auto;
    text-align:center;
}
.hero h1 { font-size:52px; line-height:1.2; margin-bottom:25px; color:#0f172a; }
.hero p { font-size:20px; margin-bottom:35px; color:#1f2937; }
.hero-buttons { display:flex; gap:18px; justify-content:center; flex-wrap:wrap; }
.btn-primary { background:#ff8800; color:#fff; padding:14px 32px; border-radius:10px; font-weight:700; transition:0.3s; }
.btn-primary:hover { background:#ff6600; }
.btn-secondary { border:2px solid #fff; color:#fff; padding:14px 32px; border-radius:10px; transition:0.3s; }
.btn-secondary:hover { background:#fff; color:#ff8800; }

/* ---------- Section Titles ---------- */
.section-title {
    text-align:center;
    margin-bottom:50px;
}
.section-title h2 { font-size:36px; margin-bottom:15px; }
.section-title p { color:#64748b; max-width:700px; margin:auto; }

/* ---------- About Box ---------- */
.about-box {
    background:#fff;
    padding:45px;
    border-radius:14px;
    box-shadow:0 6px 20px rgba(0,0,0,0.05);
}

/* ---------- Product Grid ---------- */
.product-grid {
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
    gap:28px;
}
.product-card {
    background:#fff;
    border-radius:12px;
    overflow:hidden;
    box-shadow:0 6px 16px rgba(0,0,0,0.05);
    transition:0.3s;
}
.product-card:hover { transform:translateY(-6px); }
.product-card img { width:100%; height:220px; object-fit:cover; }
.product-content { padding:25px; }
.product-content h3 { margin-bottom:10px; font-size:20px; }
.product-content p { color:#64748b; margin-bottom:18px; }
.product-btn { display:inline-block; background:#1e293b; color:#fff; padding:10px 22px; border-radius:6px; transition:0.3s; }
.product-btn:hover { background:#ff8800; }

/* ---------- Features ---------- */
.features { display:grid; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); gap:25px; }
.feature-box { background:#fff; padding:35px; border-radius:12px; text-align:center; box-shadow:0 6px 16px rgba(0,0,0,0.05); }
.feature-box h3 { margin-bottom:12px; }

/* ---------- Footer ---------- */
.footer { background:#0f172a; color:#cbd5e1; padding:50px 20px 30px; }
.footer-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:40px; padding-bottom:30px; }
.footer h3 { color:#fff; margin-bottom:15px; font-size:18px; }
.footer a { display:block; color:#cbd5e1; margin-bottom:10px; transition:0.3s; }
.footer a:hover { color:#ff8800; }
.footer-bottom { text-align:center; color:#fff; margin-top:30px; font-size:14px; }

/* ---------- WhatsApp Floating ---------- */
.whatsapp { position:fixed; right:20px; bottom:20px; background:#25D366; color:#fff; padding:14px 18px; border-radius:50px; font-weight:600; box-shadow:0 6px 18px rgba(0,0,0,0.2); z-index:999; }

/* ---------- Responsive ---------- */
/* ---------- Responsive Header 修正版 ---------- */
@media(max-width:768px){
    .logo-block {
        flex-direction: row;        /* 保持 Logo 在左，名称在右 */
        align-items: center;
        justify-content: center;    /* 居中对齐 */
        gap: 6px;                   /* Logo和名称间距 */
        max-width: 100%;            /* 不限制宽度 */
    }
    .logo-block img {
        height: 50px;
        width: auto;
        margin-bottom: 0;
    }
    .company-name {
        font-size: 10px;            /* 更小字体 */
        max-width: 120px;           /* 限制长度 */
        text-align: left;
        white-space: nowrap;        /* 不换行 */
        overflow: hidden;
        text-overflow: ellipsis;    /* 超长显示省略号 */
        display: inline-block;      /* 避免撑开 flex */
    }
    .nav {
        gap:12px;
        flex-wrap: wrap;
        justify-content: center;
        margin-top: 6px;
    }
    .nav a { font-size:14px; }
    .hero h1 { font-size:32px; }
    .hero p { font-size:16px; }
    .hero-buttons { flex-direction: column; gap:12px; }
}
.back-btn{
    display:inline-block;
    padding:12px 30px;         /* 更大，更像按钮 */
    background:#ff7a00;        /* 橘色背景 */
    color:#fff;                /* 白色文字 */
    text-decoration:none;
    border:none;               /* 移除默认边框 */
    border-radius:6px;         /* 圆角 */
    font-weight:bold;
    font-size:16px;            /* 更清晰 */
    cursor:pointer;            /* 鼠标手型 */
    box-shadow:0 4px 6px rgba(0,0,0,0.1); /* 浮起感 */
    transition:0.3s;
    margin-bottom:25px;
}

.back-btn:hover{
    background:#e56700;        /* 橘色加深 */
    box-shadow:0 6px 10px rgba(0,0,0,0.15);
    transform:translateY(-2px); /* 悬浮动画 */
}

/* =========================================
   PRODUCT DETAIL PAGE SYSTEM
========================================= */

.detail-page{
    padding:60px 0;
}

.detail-container{
    width:90%;
    max-width:1200px;
    margin:auto;
}

/* 返回按钮 */

.back-btn{
    display:inline-flex;
    align-items:center;
    gap:10px;
    padding:12px 26px;
    background:#ff8800;
    color:#fff;
    border:none;
    border-radius:8px;
    font-size:15px;
    font-weight:600;
    cursor:pointer;
    transition:0.3s;
    box-shadow:0 4px 12px rgba(0,0,0,0.1);
    margin-bottom:35px;
}

.back-btn:hover{
    background:#ff6600;
    transform:translateY(-2px);
}

/* 顶部布局 */

.detail-top{
    display:flex;
    gap:50px;
    align-items:flex-start;
    flex-wrap:wrap;
}

/* 图片区域 */

.detail-gallery{
    flex:1;
    min-width:320px;
}

.detail-main-image{
    position:relative;
    background:#fff;
    border-radius:14px;
    overflow:hidden;
    border:1px solid #eee;
    box-shadow:0 6px 20px rgba(0,0,0,0.05);
}

.detail-main-image img{
    width:100%;
    display:block;
    cursor:pointer;
    transition:0.3s;
}

.detail-main-image img:hover{
    transform:scale(1.02);
}

/* 缩略图 */

.detail-thumbnails{
    display:flex;
    gap:15px;
    margin-top:18px;
    overflow-x:auto;
}

.detail-thumbnails img{
    width:95px;
    height:95px;
    object-fit:cover;
    border-radius:10px;
    cursor:pointer;
    border:2px solid transparent;
    transition:0.3s;
    background:#fff;
    flex-shrink:0;
}

.detail-thumbnails img:hover{
    border-color:#ff8800;
    transform:translateY(-3px);
}

/* 产品信息 */

.detail-info{
    flex:1;
    min-width:320px;
}

.detail-info h1{
    font-size:38px;
    margin-bottom:20px;
    color:#111827;
}

.detail-info p{
    font-size:16px;
    line-height:1.9;
    color:#64748b;
}

/* 询盘按钮 */

.inquiry-btn{
    display:inline-block;
    margin-top:30px;
    padding:15px 38px;
    background:#ff8800;
    color:#fff;
    text-decoration:none;
    border-radius:8px;
    font-weight:700;
    transition:0.3s;
    box-shadow:0 4px 12px rgba(0,0,0,0.12);
}

.inquiry-btn:hover{
    background:#ff6600;
    transform:translateY(-2px);
}

/* 内容区块 */

.detail-section{
    margin-top:60px;
    background:#fff;
    padding:45px;
    border-radius:14px;
    box-shadow:0 6px 18px rgba(0,0,0,0.04);
}

.detail-section h2{
    margin-bottom:28px;
    font-size:30px;
    color:#111827;
}

/* 产品特点 */

.detail-features{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
    gap:22px;
}

.detail-feature-item{
    background:#f8fafc;
    padding:25px;
    border-radius:10px;
    transition:0.3s;
    border:1px solid #eef2f7;
}

.detail-feature-item:hover{
    transform:translateY(-5px);
    box-shadow:0 10px 20px rgba(0,0,0,0.05);
}

/* 参数表格 */

.detail-spec-table{
    width:100%;
    border-collapse:collapse;
}

.detail-spec-table tr:nth-child(even){
    background:#f8fafc;
}

.detail-spec-table td{
    padding:16px 18px;
    border:1px solid #e5e7eb;
    font-size:15px;
}

.detail-spec-table td:first-child{
    width:320px;
    font-weight:700;
    background:#f1f5f9;
    color:#0f172a;
}

/* 图片放大 */

.lightbox{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,0.88);
    display:none;
    justify-content:center;
    align-items:center;
    z-index:9999;
}

.lightbox img{
    max-width:90%;
    max-height:90%;
    border-radius:10px;
}

/* 手机端 */

@media(max-width:768px){

.detail-info h1{
    font-size:28px;
}

.detail-section{
    padding:25px;
}

.detail-spec-table{
    display:block;
    overflow-x:auto;
    white-space:nowrap;
}

.back-btn{
    width:100%;
    justify-content:center;
}

.inquiry-btn{
    width:100%;
    text-align:center;
}

}