/*
Theme Name: Twenty Twenty-Four Child - Industrial Pro
Theme URI: https://example.com/
Description: 工业制造/五金紧固件产品官网子主题，深蓝工业风，左侧分类+右侧产品布局，SEO优化，正方形产品图。
Author: Custom
Author URI: https://example.com/
Template: twentytwentyfour
Version: 2.0.0
Text Domain: twentytwentyfour-child
*/

/* ========== 基础变量 ========== */
:root{
    --primary:#0066b3;
    --primary-dark:#004c8c;
    --primary-light:#e6f2ff;
    --accent:#f5b800;
    --text:#333333;
    --text-muted:#666666;
    --border:#e5e5e5;
    --bg-light:#f5f7fa;
    --bg-white:#ffffff;
    --dark:#1a1a1a;
    --radius:4px;
    --max-w:1200px;
}

*{box-sizing:border-box;margin:0;padding:0;}
body{
    font-family:"Microsoft YaHei","PingFang SC",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
    color:var(--text);
    background:var(--bg-white);
    line-height:1.7;
    font-size:14px;
}
a{color:var(--primary);text-decoration:none;}
a:hover{color:var(--primary-dark);}
img{max-width:100%;height:auto;display:block;}
h1,h2,h3,h4,h5{line-height:1.3;font-weight:600;}
.container{max-width:var(--max-w);margin:0 auto;padding:0 15px;}
ul{list-style:none;}

/* ========== 顶部欢迎条 ========== */
.top-bar{
    background:#f5f5f5;
    border-bottom:1px solid var(--border);
    font-size:13px;
    color:var(--text-muted);
}
.top-bar .container{
    display:flex;justify-content:space-between;align-items:center;
    height:36px;
}
.top-bar .welcome{color:var(--text-muted);}
.top-bar .top-links{display:flex;gap:15px;align-items:center;}
.top-bar .top-links a{color:var(--text-muted);}
.top-bar .top-links a:hover{color:var(--primary);}
.top-bar .top-links .btn-sitemap{
    background:var(--accent);color:#fff!important;
    padding:4px 12px;border-radius:3px;
}

/* ========== 头部 ========== */
.site-header{
    background:#fff;
    padding:20px 0;
}
.site-header .container{
    display:flex;align-items:center;justify-content:space-between;
}
.site-branding{display:flex;align-items:center;gap:12px;}
.site-branding .logo-text{
    font-size:24px;font-weight:700;color:var(--primary);
}
.site-branding .logo-sub{
    font-size:12px;color:var(--text-muted);letter-spacing:2px;
}
.header-tagline{
    text-align:center;flex:1;padding:0 30px;
}
.header-tagline h2{
    font-size:24px;color:var(--text);font-weight:600;
}
.header-tagline h2 span{color:var(--primary);}
.header-tagline p{
    font-size:13px;color:var(--text-muted);margin-top:4px;
}
.header-hotline{
    text-align:right;
}
.header-hotline .label{
    font-size:13px;color:var(--text-muted);
}
.header-hotline .number{
    font-size:26px;font-weight:700;color:var(--primary);
    line-height:1.2;
}

/* ========== 主导航 ========== */
.main-nav{
    background:var(--primary);
}
.main-nav ul{
    display:flex;justify-content:center;
}
.main-nav ul li{
    position:relative;
}
.main-nav ul li a{
    display:block;color:#fff;
    padding:15px 30px;
    font-size:16px;
    transition:background .2s;
}
.main-nav ul li a:hover{
    background:var(--primary-dark);
}
.main-nav ul li.menu-item-has-children > a::after{
    content:" ▼";font-size:10px;
}
.main-nav .sub-menu{
    display:none;
    position:absolute;top:100%;left:0;
    background:#222;min-width:180px;
    box-shadow:0 4px 12px rgba(0,0,0,.3);
    z-index:100;
}
.main-nav .sub-menu li{
    border-bottom:1px solid #333;
}
.main-nav .sub-menu li a{
    color:#fff;padding:12px 18px;font-size:14px;
}
.main-nav .sub-menu li a:hover{
    background:#000;color:#fff;
}
.main-nav ul li:hover > .sub-menu{display:block;}

.menu-toggle{
    display:none;background:none;border:none;
    color:#fff;font-size:20px;padding:10px 15px;
    cursor:pointer;
}

/* ========== Banner ========== */
.hero-banner{
    position:relative;
    width:100%;
    height:480px;
    background:linear-gradient(135deg,#1a3a5c 0%,#0066b3 100%);
    overflow:hidden;
    display:flex;align-items:center;justify-content:center;
    text-align:center;color:#fff;
}
.hero-banner .banner-inner{
    position:relative;z-index:2;
}
.hero-banner h1{
    font-size:56px;font-weight:700;
    margin-bottom:10px;
    text-shadow:0 2px 8px rgba(0,0,0,.3);
}
.hero-banner .banner-sub{
    font-size:20px;opacity:.9;margin-bottom:20px;
}
.hero-banner .banner-desc{
    display:inline-block;
    background:var(--primary);
    padding:10px 40px;
    font-size:16px;
    margin:10px 0;
}
.hero-banner .banner-en{
    font-size:28px;letter-spacing:4px;opacity:.8;
    margin-top:15px;
}
.hero-dots{
    position:absolute;bottom:25px;left:50%;transform:translateX(-50%);
    display:flex;gap:10px;z-index:3;
}
.hero-dots span{
    width:40px;height:5px;background:rgba(255,255,255,.4);cursor:pointer;
}
.hero-dots span.active{background:#fff;}

/* ========== 关键词+搜索 ========== */
.keyword-bar{
    background:#fff;border-bottom:1px solid var(--border);
    padding:12px 0;
}
.keyword-bar .container{
    display:flex;justify-content:space-between;align-items:center;
}
.keyword-bar .keywords{
    font-size:13px;color:var(--text-muted);
}
.keyword-bar .keywords strong{color:var(--primary);}
.keyword-bar .keywords a{margin:0 8px;}
.search-inline{
    display:flex;
}
.search-inline input{
    width:220px;padding:8px 12px;
    border:1px solid var(--border);border-right:none;
    font-size:13px;outline:none;
}
.search-inline button{
    background:var(--primary);color:#fff;
    border:none;padding:8px 20px;cursor:pointer;
    font-size:13px;
}

/* ========== 通用区块标题 ========== */
.section{padding:50px 0;}
.section-title{
    text-align:center;margin-bottom:40px;
}
.section-title .sub{
    font-size:14px;color:var(--text-muted);margin-bottom:8px;
}
.section-title h2{
    font-size:32px;color:var(--text);font-weight:600;
}
.section-title .divider{
    width:60px;height:3px;background:var(--primary);
    margin:15px auto 0;position:relative;
}
.section-title .divider::after{
    content:"●";position:absolute;left:50%;top:-8px;
    transform:translateX(-50%);color:var(--primary);font-size:14px;
}

/* ========== 首页产品展示区 ========== */
.product-showcase{
    background:var(--bg-light);
}
.product-showcase .showcase-layout{
    display:grid;grid-template-columns:280px 1fr;gap:30px;
}
.sidebar-cats .cat-block{
    margin-bottom:15px;background:#fff;
    border:1px solid var(--border);
}
.sidebar-cats .cat-title{
    background:var(--primary);color:#fff;
    padding:12px 18px;font-size:16px;font-weight:600;
    display:flex;justify-content:space-between;align-items:center;
}
.sidebar-cats .cat-title a{color:#fff;}
.sidebar-cats .cat-title .arrow{font-size:14px;}
.sidebar-cats .cat-list{
    padding:10px 0;
}
.sidebar-cats .cat-list li{
    border-bottom:1px dashed var(--border);
}
.sidebar-cats .cat-list li:last-child{border-bottom:none;}
.sidebar-cats .cat-list li a{
    display:block;padding:8px 18px;
    color:var(--text);font-size:14px;
}
.sidebar-cats .cat-list li a::before{
    content:"›";margin-right:8px;color:var(--primary);
}
.sidebar-cats .cat-list li a:hover{
    color:var(--primary);background:var(--primary-light);
}

/* 产品卡片 */
.product-grid-3{
    display:grid;grid-template-columns:repeat(3,1fr);gap:20px;
}
.product-card{
    background:#fff;border:1px solid var(--border);
    overflow:hidden;transition:.2s;
}
.product-card:hover{
    box-shadow:0 4px 16px rgba(0,102,179,.15);
}
.product-card .card-img{
    width:100%;aspect-ratio:1/1;
    background:#f5f5f5;overflow:hidden;
}
.product-card .card-img img{
    width:100%;height:100%;object-fit:cover;
    transition:transform .3s;
}
.product-card:hover .card-img img{transform:scale(1.05);}
.product-card .card-body{
    padding:15px;text-align:center;
}
.product-card .card-body h3{
    font-size:15px;margin-bottom:12px;color:var(--text);
}
.product-card .card-body h3 a{color:var(--text);}
.product-card .card-body h3 a:hover{color:var(--primary);}
.product-card .card-buttons{
    display:flex;justify-content:center;gap:10px;
}
.btn{
    display:inline-block;padding:6px 18px;
    font-size:13px;border-radius:3px;cursor:pointer;
    transition:.2s;border:1px solid transparent;
}
.btn-primary{
    background:var(--primary);color:#fff;
}
.btn-primary:hover{background:var(--primary-dark);color:#fff;}
.btn-outline{
    background:transparent;color:var(--primary);
    border:1px solid var(--primary);
}
.btn-outline:hover{background:var(--primary);color:#fff;}

/* ========== 蓝色优势横幅 ========== */
.advantage-banner{
    background:var(--primary);
    padding:50px 0;
}
.advantage-banner .banner-text{
    text-align:center;color:#fff;margin-bottom:40px;
}
.advantage-banner .banner-text .sub{
    font-size:14px;opacity:.8;margin-bottom:8px;
}
.advantage-banner .banner-text h2{
    font-size:32px;font-weight:600;
}
.advantage-cols{
    display:grid;grid-template-columns:repeat(4,1fr);gap:25px;
}
.advantage-col{
    background:#fff;border-radius:4px;overflow:hidden;
}
.advantage-col .adv-img{
    width:100%;height:160px;overflow:hidden;
    background:#eee;
}
.advantage-col .adv-img img{width:100%;height:100%;object-fit:cover;}
.advantage-col .adv-title{
    background:rgba(0,0,0,.6);color:#fff;
    padding:8px 15px;font-size:15px;text-align:center;
    margin-top:-36px;position:relative;
}
.advantage-col .adv-list{
    padding:15px;
}
.advantage-col .adv-list li{
    font-size:13px;color:var(--text-muted);
    padding:4px 0;
}
.advantage-col .adv-list li::before{
    content:"✓";color:var(--primary);font-weight:bold;margin-right:6px;
}

/* ========== 应用行业区 ========== */
.industry-section{padding:50px 0;background:#fff;}
.industry-layout{
    display:grid;grid-template-columns:1fr 2fr;gap:40px;align-items:center;
}
.industry-img{
    background:#f5f5f5;border-radius:4px;overflow:hidden;
    aspect-ratio:4/3;
}
.industry-img img{width:100%;height:100%;object-fit:cover;}
.industry-list{
    display:grid;grid-template-columns:repeat(3,1fr);gap:20px;
}
.industry-item{position:relative;}
.industry-item .ind-num{
    display:inline-block;
    width:24px;height:24px;line-height:24px;
    background:var(--accent);color:#fff;
    text-align:center;font-size:12px;border-radius:50%;
    margin-right:8px;
}
.industry-item h4{
    display:inline;
    background:#333;color:#fff;
    padding:4px 12px;font-size:14px;
}
.industry-item p{
    font-size:13px;color:var(--text-muted);
    margin-top:8px;line-height:1.6;
}

/* ========== 新闻资讯区 ========== */
.news-section{background:var(--bg-light);padding:50px 0;}
.news-grid{
    display:grid;grid-template-columns:repeat(3,1fr);gap:25px;
}
.news-card{
    background:#fff;border-radius:4px;overflow:hidden;
    transition:.2s;
}
.news-card:hover{box-shadow:0 4px 16px rgba(0,0,0,.1);}
.news-card .news-img{
    width:100%;height:180px;overflow:hidden;
}
.news-card .news-img img{width:100%;height:100%;object-fit:cover;}
.news-card .news-body{padding:18px;}
.news-card .news-date{
    font-size:12px;color:var(--text-muted);margin-bottom:8px;
}
.news-card .news-body h3{
    font-size:15px;margin-bottom:8px;line-height:1.4;
}
.news-card .news-body h3 a{color:var(--text);}
.news-card .news-body h3 a:hover{color:var(--primary);}
.news-card .news-body p{
    font-size:13px;color:var(--text-muted);
    display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
}

/* ========== 面包屑 ========== */
.breadcrumb{
    background:var(--bg-light);
    padding:10px 0;font-size:13px;color:var(--text-muted);
}
.breadcrumb a{color:var(--primary);}
.breadcrumb .sep{margin:0 8px;color:#ccc;}

/* ========== 产品列表页 ========== */
.page-layout{
    display:grid;grid-template-columns:280px 1fr;gap:30px;
    padding:30px 0;
}
.page-content{min-width:0;}
.page-content h1.page-title{
    font-size:24px;margin-bottom:20px;padding-bottom:15px;
    border-bottom:2px solid var(--primary);
}

/* ========== 产品详情页 ========== */
.product-detail-layout{
    display:grid;grid-template-columns:1fr 1fr;gap:40px;
    padding:30px 0;
}
.product-detail-img{
    background:#f5f5f5;border:1px solid var(--border);
    border-radius:4px;overflow:hidden;
    aspect-ratio:1/1;
}
.product-detail-img img{width:100%;height:100%;object-fit:cover;}
.product-detail-info h1{
    font-size:26px;margin-bottom:15px;color:var(--text);
}
.product-detail-info .model{
    color:var(--text-muted);font-size:14px;margin-bottom:15px;
}
.product-spec-table{
    width:100%;border-collapse:collapse;margin:20px 0;
}
.product-spec-table th,.product-spec-table td{
    border:1px solid var(--border);
    padding:10px 15px;font-size:14px;text-align:left;
}
.product-spec-table th{
    background:var(--bg-light);width:120px;color:var(--text-muted);font-weight:500;
}
.product-actions{margin-top:20px;display:flex;gap:10px;}
.product-actions .btn{padding:10px 30px;font-size:15px;}
.product-content-full{
    margin-top:30px;line-height:1.8;
}
.product-content-full h2{
    font-size:20px;margin:25px 0 15px;
    padding-left:10px;border-left:4px solid var(--primary);
}

/* 相关产品 */
.related-products{
    margin-top:40px;padding-top:30px;
    border-top:1px solid var(--border);
}
.related-products h3{
    font-size:20px;margin-bottom:20px;
    padding-left:10px;border-left:4px solid var(--primary);
}

/* ========== 分页 ========== */
.pagination{
    display:flex;gap:6px;justify-content:center;flex-wrap:wrap;
    margin:30px 0;
}
.pagination .page-numbers{
    padding:7px 14px;border:1px solid var(--border);
    color:var(--text);font-size:13px;border-radius:4px;
    background:#fff;
}
.pagination .page-numbers.current{
    background:var(--primary);color:#fff;border-color:var(--primary);
}
.pagination a.page-numbers:hover{background:var(--bg-light);border-color:var(--primary);color:var(--primary);}

/* ========== 页脚 ========== */
.site-footer{
    background:var(--dark);
    color:#999;font-size:13px;
    padding:50px 0 0;
}
.footer-cols{
    display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:30px;
    padding-bottom:30px;
}
.footer-col h4{
    color:#fff;font-size:16px;margin-bottom:15px;
    padding-bottom:10px;border-bottom:1px solid #333;
}
.footer-col p{line-height:1.8;}
.footer-col ul li{padding:4px 0;}
.footer-col ul li a{color:#999;}
.footer-col ul li a:hover{color:#fff;}
.footer-bottom{
    border-top:1px solid #333;
    padding:15px 0;text-align:center;
    color:#666;font-size:12px;
}

/* ========== 搜索/404 ========== */
.search-page{text-align:center;padding:60px 20px;}
.search-page .search-form{
    display:flex;max-width:500px;margin:25px auto;
}
.search-page .search-form input{
    flex:1;padding:12px 15px;border:1px solid var(--border);outline:none;
}
.search-page .search-form button{
    background:var(--primary);color:#fff;border:none;
    padding:12px 30px;cursor:pointer;
}
.not-found{text-align:center;padding:80px 20px;}
.not-found h1{font-size:100px;color:var(--primary);margin:0;}

/* ========== 移动端适配 ========== */
@media (max-width: 992px){
    .product-showcase .showcase-layout,
    .page-layout{grid-template-columns:1fr;}
    .sidebar-cats{display:none;}
    .product-grid-3{grid-template-columns:repeat(2,1fr);}
    .advantage-cols{grid-template-columns:repeat(2,1fr);}
    .industry-layout{grid-template-columns:1fr;}
    .industry-list{grid-template-columns:repeat(2,1fr);}
    .news-grid{grid-template-columns:repeat(2,1fr);}
    .footer-cols{grid-template-columns:repeat(2,1fr);}
    .product-detail-layout{grid-template-columns:1fr;}
}
@media (max-width: 768px){
    /* 顶部欢迎条 */
    .top-bar .container{flex-direction:row;justify-content:space-between;height:auto;padding:4px 15px;font-size:12px;}
    .top-bar .top-links{gap:10px;}
    .top-bar .top-links .btn-sitemap{padding:2px 8px;font-size:12px;}

    /* 头部 */
    .site-header{padding:12px 0;}
    .site-header .container{flex-direction:row;justify-content:space-between;align-items:center;}
    .site-branding .logo-text{font-size:18px;}
    .site-branding .logo-sub{font-size:10px;letter-spacing:1px;}
    .header-tagline{display:none;} /* 手机上隐藏中间标语，省空间 */
    .header-hotline{text-align:right;}
    .header-hotline .label{font-size:11px;}
    .header-hotline .number{font-size:18px;}

    /* 导航 */
    .main-nav .menu-toggle{display:block;width:100%;text-align:left;padding:10px 15px;}
    .main-nav ul{display:none;flex-direction:column;}
    .main-nav ul.open{display:block;}
    .main-nav ul li a{padding:12px 20px;border-bottom:1px solid rgba(255,255,255,.1);font-size:15px;}

    /* Banner */
    .hero-banner{height:240px;padding:0 15px;}
    .hero-banner h1{font-size:30px;margin-bottom:5px;}
    .hero-banner .banner-sub{font-size:14px;margin-bottom:10px;}
    .hero-banner .banner-desc{font-size:13px;padding:6px 20px;margin:5px 0;}
    .hero-dots{bottom:15px;}
    .hero-dots span{width:25px;height:3px;}

    /* 关键词栏 */
    .keyword-bar{padding:8px 0;}
    .keyword-bar .container{flex-direction:column;gap:8px;align-items:stretch;}
    .keywords{font-size:12px;line-height:1.8;}
    .keywords a{margin:0 5px;}
    .search-inline input{width:100%;flex:1;}

    /* 区块间距 */
    .section{padding:25px 0;}
    .section-title{margin-bottom:18px;}
    .section-title h2{font-size:20px;}
    .section-title .sub{font-size:11px;}

    /* 产品卡片：手机上2列，紧凑 */
    .product-grid-3{grid-template-columns:repeat(2,1fr);gap:8px;}
    .product-card .card-body{padding:8px;}
    .product-card .card-body h3{font-size:12px;margin-bottom:6px;line-height:1.3;}
    .product-card .card-buttons{gap:4px;}
    .product-card .card-buttons .btn{padding:3px 8px;font-size:11px;}

    /* 优势区：手机上2列 */
    .advantage-banner{padding:25px 0;}
    .advantage-banner .banner-text h2{font-size:20px;}
    .advantage-banner .banner-text .sub{font-size:11px;}
    .advantage-cols{grid-template-columns:repeat(2,1fr);gap:10px;}
    .advantage-col .adv-img{height:90px;}
    .advantage-col .adv-title{font-size:11px;padding:5px 6px;margin-top:-25px;}
    .advantage-col .adv-list{padding:8px;}
    .advantage-col .adv-list li{font-size:10px;padding:2px 0;line-height:1.4;}

    /* 行业区：手机上图片在上，居中显示 */
    .industry-layout{grid-template-columns:1fr;gap:20px;}
    .industry-img{height:200px;max-width:600px;margin:0 auto;text-align:center;}
    .industry-list{grid-template-columns:repeat(2,1fr);gap:15px;}
    .industry-item h4{font-size:12px;padding:3px 8px;}
    .industry-item p{font-size:11px;line-height:1.5;}
    .industry-item .ind-num{width:18px;height:18px;line-height:18px;font-size:10px;}

    /* 首页新闻区：手机上2列（2排2个） */
    .news-grid{grid-template-columns:repeat(2,1fr);gap:12px;}
    .news-card .news-img{height:120px;}
    .news-card .news-body{padding:10px;}
    .news-card .news-body h3{font-size:12px;margin:4px 0;line-height:1.4;}
    .news-card .news-body p{display:none;}
    .news-card .news-date{font-size:10px;}

    /* 产品详情页 */
    .product-detail-layout{gap:20px;padding:15px 0;}
    .product-detail-info h1{font-size:20px;}
    .product-actions .btn{padding:10px 20px;font-size:14px;}
    .product-spec-table th,.product-spec-table td{padding:8px 10px;font-size:13px;}

    /* 页脚 */
    .site-footer{padding:25px 0 0;}
    .footer-cols{grid-template-columns:1fr 1fr;gap:18px;padding-bottom:15px;}
    .footer-col h4{font-size:13px;margin-bottom:8px;}
    .footer-col p,.footer-col li{font-size:12px;line-height:1.7;}
    .footer-bottom{font-size:11px;padding:12px 0;}

    /* 悬浮按钮 */
    .float-side{right:10px;bottom:80px;}
    .float-btn{width:55px;padding:8px 3px;}
    .float-btn .float-icon{font-size:20px;}
    .float-btn .float-text{font-size:11px;}

    /* 底部安全区 */
    body{padding-bottom:60px;}
}

/* ========== PC端右侧悬浮按钮 ========== */
.float-side{
    position:fixed;right:20px;bottom:120px;z-index:999;
    display:flex;flex-direction:column;gap:0;
    box-shadow:0 4px 16px rgba(0,0,0,.15);
    border-radius:6px;overflow:hidden;
}
.float-btn{
    display:flex;flex-direction:column;align-items:center;
    width:70px;padding:12px 5px;
    color:#fff;font-size:12px;text-align:center;
    transition:.2s;text-decoration:none;
}
.float-btn .float-icon{
    font-size:24px;line-height:1;margin-bottom:4px;
}
.float-phone{background:var(--primary);}
.float-phone:hover{background:var(--primary-dark);color:#fff;}
.float-wechat{background:#07c160;}
.float-wechat:hover{background:#06ad56;color:#fff;}

/* ========== H5端底部固定菜单（蓝色） ========== */
.mobile-bottom-bar{
    display:none;
    position:fixed;bottom:0;left:0;right:0;
    background:var(--primary);
    z-index:9999;
    padding:5px 0;
    padding-bottom:env(safe-area-inset-bottom);
    box-shadow:0 -2px 10px rgba(0,0,0,.2);
}
.mobile-bottom-bar .mb-item{
    flex:1;
    display:flex;flex-direction:column;align-items:center;
    padding:5px 0;
    color:#fff;font-size:11px;text-decoration:none;
}
.mobile-bottom-bar .mb-item .mb-icon{
    font-size:22px;line-height:1;margin-bottom:3px;
}
.mobile-bottom-bar .mb-item:active{color:#ffd700;}

/* 移动端显示底部栏，隐藏PC悬浮 */
@media (max-width: 768px){
    .float-side{display:none;}
    .mobile-bottom-bar{display:flex;}
    body{padding-bottom:60px;}
}

/* 桌面端隐藏底部栏 */
@media (min-width: 769px){
    .mobile-bottom-bar{display:none;}
}

/* 手机端横向分类条 */
.mobile-cat-bar{
    display:none;
    overflow-x:auto;
    white-space:nowrap;
    padding:10px 0;
    margin-bottom:15px;
    -webkit-overflow-scrolling:touch;
}
.mobile-cat-bar .mobile-cat-item{
    display:inline-block;
    padding:6px 14px;
    margin-right:8px;
    background:#f5f5f5;
    border-radius:20px;
    font-size:13px;
    color:#666;
}
.mobile-cat-bar .mobile-cat-item.active{
    background:var(--primary);
    color:#fff;
}
@media (max-width:768px){
    .mobile-cat-bar{display:block;}
}

/* ========== 文章详情页 ========== */
.article-detail .article-title{
    font-size:28px;line-height:1.4;margin-bottom:15px;color:#222;
}
.article-meta{
    font-size:13px;color:#999;padding-bottom:15px;
    border-bottom:1px solid #eee;margin-bottom:20px;
}
.article-meta span{margin-right:20px;}
.article-content{
    font-size:15px;line-height:1.8;color:#444;
}
.article-content p{margin-bottom:15px;}
.article-content img{max-width:100%;height:auto;}
.article-nav a{color:var(--primary);font-size:14px;}

/* ========== 新闻列表页 ========== */
.news-list-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:20px;
    margin:20px 0;
}
.news-list-card{
    background:#fff;
    border:1px solid #eee;
    border-radius:6px;
    overflow:hidden;
    transition:box-shadow .3s;
}
.news-list-card:hover{
    box-shadow:0 4px 12px rgba(0,0,0,.1);
}
.news-list-img{
    width:100%;
    aspect-ratio:16/10;
    overflow:hidden;
}
.news-list-img img{
    width:100%;height:100%;object-fit:cover;
}
.news-list-body{
    padding:12px;
}
.news-list-body h3{
    font-size:14px;line-height:1.4;margin:0 0 6px;
}
.news-list-body h3 a{
    color:#222;
}
.news-list-body h3 a:hover{
    color:var(--primary);
}
.news-list-date{
    font-size:12px;color:#999;
}

/* 平板和手机端新闻列表2列 */
@media (max-width:1024px){
    .news-list-grid{
        grid-template-columns:repeat(2,1fr) !important;
        gap:12px !important;
    }
    .news-list-img{
        aspect-ratio:16/10 !important;
    }
    .news-list-body{
        padding:10px !important;
    }
    .news-list-body h3{
        font-size:13px !important;line-height:1.4;margin:0 0 5px;
    }
    .news-list-date{
        font-size:11px !important;
    }
}

/* ========== 文章详情页居中优化（强制） ========== */
.article-detail{
    max-width:900px !important;
    margin:0 auto !important;
    text-align:left !important;
    width:100% !important;
    padding:0 20px !important;
}
.article-detail .article-title{
    text-align:center !important;
    font-size:28px !important;
    margin-bottom:15px !important;
}
.article-detail .article-meta{
    text-align:center !important;
    border-bottom:1px solid #eee !important;
    padding-bottom:15px !important;
    margin-bottom:20px !important;
}
.article-detail .article-content{
    font-size:16px !important;
    line-height:1.9 !important;
    color:#444 !important;
}
.article-detail .article-content p{
    margin-bottom:15px !important;
}
.article-detail .article-content img{
    max-width:100% !important;
    height:auto !important;
    margin:15px auto !important;
    display:block !important;
}
.article-nav{
    max-width:800px !important;
    margin:40px auto !important;
}

/* ========== 产品详情页美化 ========== */
.product-detail-layout{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:40px;
    margin:30px 0;
}
.product-detail-img{
    border:1px solid var(--border);
    border-radius:8px;
    overflow:hidden;
}
.product-detail-img img{
    width:100%;
    height:auto;
    display:block;
}
.product-detail-info h1{
    font-size:28px;
    color:#222;
    margin-bottom:15px;
    line-height:1.3;
}
.product-detail-info .model{
    font-size:14px;
    color:#666;
    margin-bottom:20px;
    padding:8px 12px;
    background:var(--bg-light);
    border-radius:4px;
    display:inline-block;
}
.product-spec-table{
    width:100%;
    border-collapse:collapse;
    margin:20px 0;
}
.product-spec-table th,.product-spec-table td{
    padding:12px 15px;
    border:1px solid var(--border);
    text-align:left;
    font-size:14px;
}
.product-spec-table th{
    background:var(--bg-light);
    width:120px;
    font-weight:600;
}
.product-actions{
    margin:25px 0;
}
.product-content-full{
    margin:40px 0;
    padding:30px;
    background:#fff;
    border:1px solid var(--border);
    border-radius:8px;
    font-size:15px;
    line-height:1.9;
    color:#444;
}
.product-content-full h2{
    font-size:20px;
    margin:20px 0 10px;
    color:#222;
}
.related-products{
    margin:50px 0;
}
.related-products h3{
    font-size:22px;
    text-align:center;
    margin-bottom:25px;
    color:#222;
}
.related-products h3::after{
    content:'';
    display:block;
    width:50px;
    height:3px;
    background:var(--primary);
    margin:10px auto 0;
}

/* 手机端产品详情 */
@media (max-width:768px){
    .product-detail-layout{
        grid-template-columns:1fr;
        gap:20px;
    }
    .product-detail-info h1{
        font-size:22px;
    }
    .product-content-full{
        padding:15px;
        font-size:14px;
    }
}
