/* ============================================================
   MiaoheCMS v2.0 - 五金行业营销型模板样式
   设计理念：工业实用风 / 钢铁质感 / 粗犷大气 / 暖灰+焦橙
   兼容性：使用 hsl()/hex 确保所有主流浏览器正常渲染
   ============================================================ */

/* ---------- CSS 变量体系 ---------- */
:root {
    --primary: #3d3a36;
    --primary-dark: #1e1d1b;
    --primary-light: #f0efed;
    --accent: #d4712a;
    --accent-dark: #a8551e;
    --accent-light: #fef0e4;
    --text: #1e1d1b;
    --text-secondary: #5c5955;
    --text-light: #8a8782;
    --bg: #f5f4f2;
    --bg-white: #fcfbfa;
    --border: #ddd9d4;
    --border-light: #edeae6;
    --shadow-sm: 0 1px 2px rgba(30,29,27,.04);
    --shadow: 0 4px 16px rgba(30,29,27,.07);
    --shadow-lg: 0 12px 40px rgba(30,29,27,.12);
    --radius: 4px;
    --radius-lg: 6px;
    --transition: .28s cubic-bezier(.4, 0, .2, 1);
    --max-width: 1260px;
    --header-height: 72px;
}

/* ---------- 全局重置 ---------- */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{font-size:16px;-webkit-text-size-adjust:100%;scroll-behavior:smooth}
body{
    font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", system-ui, -apple-system, sans-serif;
    background: #fcfbfa;
    color: #1e1d1b;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    font-kerning: normal;
}
a{color:#1e1d1b;text-decoration:none;transition:color .28s cubic-bezier(.4,0,.2,1)}
a:hover{color:#d4712a}
img{max-width:100%;height:auto;display:block}
ul,ol{list-style:none}
input,button,textarea,select{font-family:inherit;font-size:inherit}
.container{max-width:1260px;margin:0 auto;padding:0 24px}

/* ---------- 顶部信息栏 ---------- */
.top-bar{
    background: #2a2825;
    border-bottom: 1px solid #3d3a36;
    font-size: .8125rem;
    color: #b0aca7;
}
.top-bar .container{display:flex;justify-content:space-between;align-items:center;height:38px}
.top-bar a{color:#b0aca7}
.top-bar a:hover{color:#d4712a}

/* ---------- 头部导航 ---------- */
.header{
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #fcfbfa;
    border-bottom: 2px solid #3d3a36;
    transition: box-shadow .28s cubic-bezier(.4,0,.2,1);
}
.header.scrolled{box-shadow:0 12px 40px rgba(30,29,27,.12)}
.header-inner{
    display: flex;
    align-items: center;
    height: 72px;
    gap: 36px;
}

/* Logo */
.logo{
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}
.logo img{height: 42px; width: auto; border-radius: 3px}
.logo .site-name{
    font-size: 1.25rem;
    font-weight: 800;
    color: #3d3a36;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.logo:hover .site-name{color:#d4712a}

/* 导航菜单 */
.nav{flex:1}
.nav ul{display:flex;align-items:center}
.nav > ul > li{position:relative}
.nav > ul > li > a{
    display: block;
    padding: 0 18px;
    height: 72px;
    line-height: 72px;
    font-size: .9375rem;
    font-weight: 600;
    color: #5c5955;
    position: relative;
    letter-spacing: .02em;
    transition: color .28s cubic-bezier(.4,0,.2,1);
}
.nav > ul > li > a::after{
    content: '';
    position: absolute;
    bottom: 0;
    left: 18px;
    right: 18px;
    height: 3px;
    background: #d4712a;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .28s cubic-bezier(.4,0,.2,1);
}
.nav > ul > li:hover > a,
.nav > ul > li.active > a{
    color: #3d3a36;
}
.nav > ul > li:hover > a::after,
.nav > ul > li.active > a::after{
    transform: scaleX(1);
}

/* 下拉菜单 */
.nav > ul > li.has-sub{position:relative}
.nav > ul > li.has-sub > a .sub-arrow{
  font-size:10px;margin-left:4px;transition:transform .28s cubic-bezier(.4,0,.2,1);
  display:inline-block;vertical-align:middle;
}
.nav > ul > li.has-sub:hover > a .sub-arrow{transform:rotate(180deg)}
.nav .sub-menu{
  position:absolute;top:100%;left:0;min-width:170px;
  background:#fff;border-radius:0 0 4px 4px;
  box-shadow:0 12px 40px rgba(30,29,27,.12);border:1px solid #ddd9d4;
  opacity:0;visibility:hidden;transform:translateY(-6px);
  transition:all .22s ease;z-index:100;padding:6px 0;
}
.nav > ul > li.has-sub:hover > .sub-menu{opacity:1;visibility:visible;transform:translateY(0)}
.nav .sub-menu li{display:block}
.nav .sub-menu li a{
  display:block;padding:10px 22px;font-size:.875rem;color:#1e1d1b;
  white-space:nowrap;transition:all .28s cubic-bezier(.4,0,.2,1);height:auto;line-height:1.4;
}
.nav .sub-menu li a:hover{background:#fef0e4;color:#a8551e}
.nav .sub-menu li a::after{display:none}
.nav .sub-menu li.active > a{color:#d4712a;font-weight:600;background:#fef0e4}

/* 移动端下拉 */
@media (max-width:768px){
  .nav .sub-menu{
    position:static;box-shadow:none;border:none;
    opacity:1;visibility:visible;transform:none;
    padding:0 0 0 16px;display:none;
  }
  .nav > ul > li.has-sub.open > .sub-menu{display:block}
  .nav > ul > li.has-sub > a{cursor:pointer}
  .nav > ul > li.has-sub > a .sub-arrow{float:right;font-size:14px}
}

/* 头部右侧按钮 */
.header-right{display:flex;align-items:center;gap:10px;flex-shrink:0}
.btn-outline{
    padding: 8px 20px;
    border: 2px solid #ddd9d4;
    border-radius: 4px;
    color: #5c5955;
    font-size: .875rem;
    font-weight: 600;
    transition: all .28s cubic-bezier(.4,0,.2,1);
}
.btn-outline:hover{color:#d4712a;border-color:#d4712a}
.btn-primary-sm{
    padding: 10px 22px;
    background: #d4712a;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: .875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .28s cubic-bezier(.4,0,.2,1);
    letter-spacing: .02em;
}
.btn-primary-sm:hover{background:#a8551e;color:#fff;box-shadow:0 4px 12px rgba(212,113,42,.35)}

/* 移动端菜单按钮 */
.menu-toggle{
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: #1e1d1b;
}
.menu-toggle span{
    display: block;
    width: 24px;
    height: 3px;
    background: #1e1d1b;
    margin: 5px 0;
    border-radius: 1px;
    transition: all .28s cubic-bezier(.4,0,.2,1);
}

/* ============================================================
   首页专属区块
   ============================================================ */

/* ---------- Banner Hero ---------- */
.banner{
    position: relative;
    overflow: hidden;
    background: #1e1d1b;
}
.banner .swiper-slide{
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(165deg, #3a3733 0%, #1e1d1b 40%, #161412 100%);
}
/* 金属纹理叠加 */
.banner .swiper-slide::before{
    content: '';
    position: absolute;
    inset: 0;
    background: 
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 2px,
            rgba(255,255,255,.015) 2px,
            rgba(255,255,255,.015) 4px
        ),
        radial-gradient(ellipse at 20% 50%, rgba(212,113,42,.08) 0%, transparent 60%),
        radial-gradient(ellipse at 75% 80%, rgba(100,130,180,.06) 0%, transparent 50%);
    z-index: 0;
}
.banner .slide-bg{
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 15% 30%, rgba(140,136,128,.15) 0%, transparent 50%),
        radial-gradient(circle at 85% 70%, rgba(180,100,40,.12) 0%, transparent 45%);
    z-index: 1;
}
.banner .slide-content{
    position: relative;
    z-index: 2;
    text-align: left;
    color: #fff;
    max-width: 700px;
    padding: 80px 40px;
}
.banner .slide-content .hero-badge{
    display: inline-block;
    padding: 6px 16px;
    background: #d4712a;
    color: #fff;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    border-radius: 2px;
    margin-bottom: 28px;
    animation: fadeInUp .7s ease;
}
.banner .slide-content h1{
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 24px;
    letter-spacing: .02em;
    animation: fadeInUp .7s ease .1s both;
}
.banner .slide-content h1 .highlight{
    color: #d4712a;
    position: relative;
}
.banner .slide-content p{
    font-size: clamp(1rem, 2vw, 1.15rem);
    opacity: .8;
    line-height: 1.75;
    margin-bottom: 40px;
    max-width: 540px;
    animation: fadeInUp .7s ease .2s both;
}
.banner .slide-content p .highlight{
    color: #d4712a;
    opacity: 1;
    font-weight: 700;
}
.banner .slide-btns{
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    animation: fadeInUp .7s ease .35s both;
}
.banner .btn-primary{
    padding: 15px 42px;
    background: #d4712a;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: .03em;
    transition: all .28s cubic-bezier(.4,0,.2,1);
    display: inline-block;
    position: relative;
    overflow: hidden;
}
.banner .btn-primary::before{
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,.15) 0%, transparent 60%);
}
.banner .btn-primary:hover{background:#a8551e;transform:translateY(-2px);box-shadow:0 8px 24px rgba(212,113,42,.4);color:#fff}
.banner .btn-outline-light{
    padding: 15px 42px;
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,.35);
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: .03em;
    transition: all .28s cubic-bezier(.4,0,.2,1);
    display: inline-block;
}
.banner .btn-outline-light:hover{background:rgba(255,255,255,.1);border-color:#fff;color:#fff}
.banner .swiper-pagination{bottom:28px}
.banner .swiper-pagination-bullet{width:36px;height:4px;border-radius:2px;background:rgba(255,255,255,.35);opacity:1}
.banner .swiper-pagination-bullet-active{background:#d4712a;width:48px}
.banner .swiper-button-next,
.banner .swiper-button-prev{
    width: 52px;
    height: 52px;
    background: rgba(255,255,255,.08);
    border-radius: 4px;
    color: #fff;
    transition: all .28s cubic-bezier(.4,0,.2,1);
    border: 1px solid rgba(255,255,255,.15);
}
.banner .swiper-button-next:hover,
.banner .swiper-button-prev:hover{background:#d4712a;border-color:#d4712a}
.banner .swiper-button-next::after,
.banner .swiper-button-prev::after{font-size:18px;font-weight:700}

@keyframes fadeInUp{
    from{opacity:0;transform:translateY(36px)}
    to{opacity:1;transform:translateY(0)}
}

/* ---------- 区块通用 ---------- */
.section-padding{padding: 96px 0}
.section-header{
    text-align: center;
    margin-bottom: 64px;
}
.section-header .section-tag{
    display: inline-block;
    padding: 5px 16px;
    background: #fef0e4;
    color: #a8551e;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    border-radius: 2px;
    margin-bottom: 18px;
}
.section-header h2{
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 800;
    color: #1e1d1b;
    margin-bottom: 14px;
    letter-spacing: .01em;
}
.section-header h2 .accent-text{color:#d4712a}
.section-header .subtitle{
    color: #5c5955;
    font-size: 1.0625rem;
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ---------- 统计数字区 ---------- */
.stats-section{
    background: #3d3a36;
    padding: 0;
    position: relative;
    overflow: hidden;
}
.stats-section::before{
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 8px,
        rgba(255,255,255,.02) 8px,
        rgba(255,255,255,.02) 9px
    );
}
.stats-grid{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}
.stat-item{
    text-align: center;
    padding: 48px 24px;
    position: relative;
    color: #fff;
}
.stat-item::after{
    content: '';
    position: absolute;
    right: 0;
    top: 25%;
    height: 50%;
    width: 1px;
    background: rgba(255,255,255,.12);
}
.stat-item:last-child::after{display:none}
.stat-item .stat-icon{
    width: 56px;
    height: 56px;
    margin: 0 auto 18px;
    background: rgba(255,255,255,.1);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
}
.stat-item .stat-number{
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 900;
    line-height: 1;
    margin-bottom: 8px;
    font-variant-numeric: tabular-nums;
}
.stat-item .stat-number .suffix{
    font-size: 1.2rem;
    font-weight: 600;
    color: #d4712a;
}
.stat-item .stat-label{
    color: rgba(255,255,255,.6);
    font-size: .875rem;
    font-weight: 500;
    letter-spacing: .04em;
}

/* ---------- 产品分类导航区 ---------- */
.category-section{
    background: #f5f4f2;
    padding: 48px 0;
    border-bottom: 1px solid #edeae6;
}
.category-grid{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
}
.category-card{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 28px 16px;
    background: #fcfbfa;
    border-radius: 4px;
    border: 1px solid #edeae6;
    transition: all .28s cubic-bezier(.4,0,.2,1);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}
.category-card::before{
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #d4712a;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .28s cubic-bezier(.4,0,.2,1);
}
.category-card:hover{
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(30,29,27,.07);
    border-color: #d4712a;
}
.category-card:hover::before{transform:scaleX(1)}
.category-card .cat-icon{
    width: 52px;
    height: 52px;
    background: #fef0e4;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: all .28s cubic-bezier(.4,0,.2,1);
}
.category-card:hover .cat-icon{
    background: #d4712a;
    transform: scale(1.1);
}
.category-card .cat-name{
    font-size: .9375rem;
    font-weight: 600;
    color: #1e1d1b;
    text-align: center;
}
.category-card .cat-count{
    font-size: .75rem;
    color: #8a8782;
}

/* ---------- 产品展示区 ---------- */
.products-section{background:#fcfbfa}
.products-grid{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.product-card{
    background: #fcfbfa;
    border: 1px solid #ddd9d4;
    border-radius: 4px;
    overflow: hidden;
    transition: all .28s cubic-bezier(.4,0,.2,1);
    position: relative;
}
.product-card:hover{
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(30,29,27,.12);
    border-color: #d4712a;
}
.product-card .card-img{
    position: relative;
    overflow: hidden;
    height: 260px;
    background: #f5f4f2;
}
.product-card .card-img img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s cubic-bezier(.4,0,.2,1);
}
.product-card:hover .card-img img{transform:scale(1.06)}
.product-card .card-tag{
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 4px 14px;
    background: #d4712a;
    color: #fff;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .04em;
    border-radius: 2px;
    z-index: 2;
}
.product-card .card-img .card-overlay{
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(30,29,27,.7) 0%, transparent 50%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 24px;
    opacity: 0;
    transition: opacity .28s cubic-bezier(.4,0,.2,1);
}
.product-card:hover .card-img .card-overlay{opacity:1}
.card-overlay .more-btn{
    display: inline-block;
    padding: 10px 28px;
    background: #d4712a;
    color: #fff;
    border-radius: 4px;
    font-size: .875rem;
    font-weight: 600;
    letter-spacing: .03em;
    transform: translateY(12px);
    transition: all .28s cubic-bezier(.4,0,.2,1);
}
.product-card:hover .card-overlay .more-btn{transform:translateY(0)}
.card-img-placeholder{
    width: 100%;
    height: 260px;
    background: linear-gradient(135deg, #f5f4f2, #e8e5e0);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 56px;
    color: #3d3a36;
}
.product-card .card-body{padding:22px 20px}
.product-card .card-body h3{
    font-size: 1.0625rem;
    font-weight: 700;
    line-height: 1.45;
    margin-bottom: 8px;
}
.product-card .card-body h3 a{color:#1e1d1b}
.product-card .card-body h3 a:hover{color:#d4712a}
.product-card .card-desc{
    color: #5c5955;
    font-size: .8125rem;
    line-height: 1.7;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.product-card .card-meta{
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: .75rem;
    color: #8a8782;
    padding-top: 14px;
    border-top: 1px solid #edeae6;
}

/* ---------- 优势特色区 ---------- */
.advantages-section{
    background: #2a2825;
    position: relative;
    overflow: hidden;
}
.advantages-section::before{
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at 20% 80%, rgba(212,113,42,.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(100,95,85,.15) 0%, transparent 50%);
}
.advantages-section .section-header{
    position: relative;
    z-index: 1;
}
.advantages-section .section-header h2{color:#fff}
.advantages-section .section-header .subtitle{color:rgba(255,255,255,.55)}
.advantages-section .section-tag{background:rgba(212,113,42,.2);color:#d4712a}
.advantages-grid{
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.advantage-card{
    padding: 40px 28px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 4px;
    transition: all .28s cubic-bezier(.4,0,.2,1);
    background: rgba(255,255,255,.03);
}
.advantage-card:hover{
    border-color: #d4712a;
    background: rgba(255,255,255,.06);
    transform: translateY(-4px);
}
.advantage-card .adv-icon-wrap{
    width: 60px;
    height: 60px;
    background: rgba(212,113,42,.15);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 22px;
    transition: all .28s cubic-bezier(.4,0,.2,1);
}
.advantage-card:hover .adv-icon-wrap{
    background: #d4712a;
    transform: scale(1.08);
}
.advantage-card h3{
    font-size: 1.125rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
    letter-spacing: .01em;
}
.advantage-card p{
    color: rgba(255,255,255,.5);
    font-size: .875rem;
    line-height: 1.8;
}

/* ---------- 案例/工程展示区 ---------- */
.cases-section{background:#f5f4f2}
.cases-grid{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.case-card{
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    aspect-ratio: 3/4;
    background: #fcfbfa;
    border: 1px solid #edeae6;
    transition: all .28s cubic-bezier(.4,0,.2,1);
}
.case-card:hover{
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(30,29,27,.12);
}
.case-card img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s cubic-bezier(.4,0,.2,1);
}
.case-card:hover img{transform:scale(1.05)}
.case-card .case-info{
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 28px 20px;
    background: linear-gradient(to top, rgba(30,29,27,.85) 0%, transparent 100%);
    color: #fff;
}
.case-card .case-info h4{
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 4px;
}
.case-card .case-info span{
    font-size: .75rem;
    opacity: .6;
}

/* ---------- 合作伙伴 / 友情链接 ---------- */
.partners-section{background:#fcfbfa}
.partner-logos{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 32px;
    align-items: center;
}
.partner-logos a{
    color: #5c5955;
    font-size: 1rem;
    font-weight: 600;
    padding: 14px 28px;
    border: 1px solid #ddd9d4;
    border-radius: 4px;
    transition: all .28s cubic-bezier(.4,0,.2,1);
    background: #fcfbfa;
    letter-spacing: .03em;
}
.partner-logos a:hover{
    color: #d4712a;
    border-color: #d4712a;
    box-shadow: 0 4px 16px rgba(30,29,27,.07);
    transform: translateY(-2px);
}

/* ---------- 新闻资讯区 ---------- */
.news-grid{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.news-card{
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #e8e5e2;
    transition: all .3s cubic-bezier(.4,0,.2,1);
}
.news-card:hover{
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(30,29,27,.1);
    border-color: #d4712a;
}
.news-img{
    overflow: hidden;
    aspect-ratio: 16/9;
}
.news-img img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}
.news-card:hover .news-img img{transform: scale(1.05)}
.news-info{
    padding: 18px;
}
.news-info h3{
    font-size: .9375rem;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.5;
}
.news-info h3 a{
    color: #3d3a36;
    text-decoration: none;
    transition: color .2s;
}
.news-info h3 a:hover{color: #d4712a}
.news-desc{
    font-size: .8125rem;
    color: #8c8985;
    line-height: 1.6;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-date{
    font-size: .75rem;
    color: #b8b5b1;
}
@media (max-width: 768px) {
    .news-grid{grid-template-columns: 1fr}
}

/* ---------- CTA 行动号召 ---------- */
.cta-section{
    background: #1e1d1b;
    text-align: center;
    padding: 88px 24px;
    position: relative;
    overflow: hidden;
}
.cta-section::before{
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 30% 50%, rgba(212,113,42,.1) 0%, transparent 60%),
        radial-gradient(circle at 70% 50%, rgba(100,95,85,.15) 0%, transparent 50%);
}
.cta-section .container{position:relative;z-index:1}
.cta-section h2{
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: 14px;
    letter-spacing: .02em;
}
.cta-section p{
    font-size: 1.0625rem;
    color: rgba(255,255,255,.6);
    margin-bottom: 36px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}
.cta-section .btn-cta{
    display: inline-block;
    padding: 16px 52px;
    background: #d4712a;
    color: #fff;
    border-radius: 4px;
    font-size: 1.0625rem;
    font-weight: 700;
    letter-spacing: .04em;
    transition: all .28s cubic-bezier(.4,0,.2,1);
    position: relative;
    overflow: hidden;
}
.cta-section .btn-cta::before{
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,.15) 0%, transparent 60%);
}
.cta-section .btn-cta:hover{
    background: #a8551e;
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(212,113,42,.45);
    color:#fff;
}

/* ---------- 底部 ---------- */
.footer{
    background: #1e1d1b;
    color: rgba(255,255,255,.45);
}
.footer-main{
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    padding: 64px 0 48px;
}
.footer-col h4{
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 22px;
    position: relative;
    padding-bottom: 14px;
    letter-spacing: .03em;
}
.footer-col h4::after{
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 28px;
    height: 3px;
    background: #d4712a;
    border-radius: 1px;
}
.footer-col p{font-size:.875rem;line-height:1.9;margin-bottom:8px}
.footer-col ul li{margin-bottom:10px}
.footer-col ul li a{
    color: rgba(255,255,255,.45);
    font-size: .875rem;
    transition: all .28s cubic-bezier(.4,0,.2,1);
    position: relative;
    padding-left: 14px;
}
.footer-col ul li a::before{
    content: '\25B8';
    position: absolute;
    left: 0;
    color: #d4712a;
    font-size: .625rem;
    top: 3px;
}
.footer-col ul li a:hover{color:#fff;padding-left:18px}
.footer-bottom{
    border-top: 1px solid rgba(255,255,255,.06);
    padding: 24px 0;
    text-align: center;
    font-size: .8125rem;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}
.footer-bottom a{color:rgba(255,255,255,.6)}
.footer-bottom a:hover{color:#fff}

/* ---------- 面包屑 ---------- */
.breadcrumb{
    padding: 16px 0;
    color: #8a8782;
    font-size: .875rem;
    border-bottom: 1px solid #ddd9d4;
    margin-bottom: 28px;
}
.breadcrumb a{color:#5c5955}
.breadcrumb a:hover{color:#d4712a}

/* ---------- 文章列表 ---------- */
.article-list{margin:0}
.article-item{
    display: flex;
    background: #fff;
    border-radius: 4px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 1px 2px rgba(30,29,27,.04);
    transition: all .28s cubic-bezier(.4,0,.2,1);
    gap: 24px;
    border: 1px solid #ddd9d4;
}
.article-item:hover{box-shadow:0 4px 16px rgba(30,29,27,.07);transform:translateY(-2px);border-color:#d4712a}
.article-item .thumb{
    flex-shrink: 0;
    width: 240px;
    height: 160px;
    overflow: hidden;
    border-radius: 4px;
}
.article-item .thumb img{width:100%;height:100%;object-fit:cover;transition:transform .5s}
.article-item:hover .thumb img{transform:scale(1.05)}
.article-info{flex:1;min-width:0;display:flex;flex-direction:column}
.article-info h3{font-size:1.125rem;margin-bottom:10px;line-height:1.5}
.article-info h3 a{color:#1e1d1b}
.article-info h3 a:hover{color:#d4712a}
.article-info .desc{
    color: #5c5955;
    font-size: .875rem;
    line-height: 1.8;
    margin-bottom: auto;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.article-info .meta{
    display: flex;
    gap: 18px;
    color: #8a8782;
    font-size: .8125rem;
    margin-top: 14px;
    flex-wrap: wrap;
}
.meta-tag{
    display: inline-block;
    padding: 3px 12px;
    background: #fef0e4;
    color: #a8551e;
    border-radius: 20px;
    font-size: .75rem;
}

/* ---------- 文章详情 ---------- */
.article-detail{
    background: #fff;
    border-radius: 6px;
    padding: 40px;
    box-shadow: 0 1px 2px rgba(30,29,27,.04);
    border: 1px solid #ddd9d4;
}
.article-title{font-size:1.75rem;color:#1e1d1b;margin-bottom:16px;line-height:1.4;font-weight:800;text-align:center}
.article-meta{
    display: flex;
    gap: 22px;
    color: #8a8782;
    font-size: .875rem;
    padding-bottom: 20px;
    border-bottom: 1px solid #ddd9d4;
    margin-bottom: 28px;
    flex-wrap: wrap;
    justify-content:center;
}
.article-thumb{margin-bottom:28px;text-align:center;border-radius:4px;overflow:hidden}
.article-content{
    font-size: 1rem;
    line-height: 2;
    color: #1e1d1b;
    word-break: break-word;
}
.article-content img{max-width:100%;height:auto;margin:20px 0;border-radius:4px}
.article-content p{margin-bottom:20px}
.article-content h2,.article-content h3,.article-content h4{margin:32px 0 16px;font-weight:700}
.article-content blockquote{
    border-left: 4px solid #d4712a;
    padding: 14px 24px;
    margin: 24px 0;
    background: #f5f4f2;
    border-radius: 0 4px 4px 0;
    color: #5c5955;
}
.article-content pre{
    background: #1e1d1b;
    color: #e2e8f0;
    padding: 24px;
    border-radius: 4px;
    overflow-x: auto;
    margin: 24px 0;
    font-size: .875rem;
}
.article-content code{font-family:"Fira Code",monospace;font-size:.9em}
.article-content p code{
    background: #fef0e4;
    padding: 2px 8px;
    border-radius: 4px;
    color: #a8551e;
}
.article-tags{
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #ddd9d4;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}
.article-tags span{color:#5c5955;font-size:.875rem}
.article-tags a{
    display: inline-block;
    padding: 5px 16px;
    background: #fef0e4;
    color: #a8551e;
    border-radius: 20px;
    font-size: .8125rem;
    transition: all .28s cubic-bezier(.4,0,.2,1);
}
.article-tags a:hover{background:#d4712a;color:#fff}

/* 上下篇 */
.article-nav{
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 36px;
    padding-top: 28px;
    border-top: 1px solid #ddd9d4;
}
.article-nav a{
    flex: 1;
    padding: 18px 24px;
    background: #f5f4f2;
    border-radius: 4px;
    color: #5c5955;
    font-size: .875rem;
    transition: all .28s cubic-bezier(.4,0,.2,1);
    border: 1px solid transparent;
    display:flex;align-items:center;gap:8px
}
.article-nav a:hover{background:#fef0e4;color:#a8551e;border-color:#d4712a}
.article-nav .prev{text-align:left}
.article-nav .next{text-align:right;justify-content:flex-end}
.article-nav .nav-arrow{font-size:1.125rem;font-weight:700;color:#d4712a}
.article-nav .nav-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.article-nav .nav-label{font-size:.75rem;color:#8a8782;display:block;margin-bottom:4px}

/* 相关推荐 */
.related-section{
    margin-top: 40px;
    background: #fff;
    border-radius: 6px;
    padding: 36px 40px;
    box-shadow: 0 1px 2px rgba(30,29,27,.04);
    border: 1px solid #ddd9d4;
}
.related-section h3{
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 24px;
    padding-bottom: 14px;
    border-bottom: 2px solid #d4712a;
    position: relative;
    display: inline-block;
}
.related-grid{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.related-item{
    padding: 16px;
    background: #f5f4f2;
    border-radius: 4px;
    transition: all .28s cubic-bezier(.4,0,.2,1);
    border: 1px solid transparent;
}
.related-item:hover{
    background: #fff;
    border-color: #d4712a;
    box-shadow: 0 1px 2px rgba(30,29,27,.04);
    transform: translateY(-2px);
}
.related-item a{
    font-size: .875rem;
    font-weight: 500;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.related-item .related-meta{
    font-size: .75rem;
    color: #8a8782;
    margin-top: 8px;
}

/* ---------- 侧边栏 ---------- */
.sidebar{width:340px;flex-shrink:0}
.widget{
    background: #fff;
    border-radius: 6px;
    padding: 28px 24px;
    margin-bottom: 24px;
    box-shadow: 0 1px 2px rgba(30,29,27,.04);
    border: 1px solid #ddd9d4;
}
.widget h3{
    font-size: 1.0625rem;
    font-weight: 700;
    color: #1e1d1b;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 2px solid #d4712a;
    position: relative;
}
.widget ul li{
    padding: 12px 0;
    border-bottom: 1px dashed #ddd9d4;
    font-size: .875rem;
}
.widget ul li:last-child{border-bottom:none}
.widget ul li a{color:#1e1d1b;transition:color .28s cubic-bezier(.4,0,.2,1)}
.widget ul li a:hover{color:#d4712a}
.widget .clicks{float:right;color:#8a8782;font-size:.75rem}
.widget .rank-num{
    display: inline-block;
    width: 22px;
    height: 22px;
    line-height: 22px;
    text-align: center;
    background: #fef0e4;
    color: #a8551e;
    border-radius: 4px;
    font-size: .75rem;
    font-weight: 700;
    margin-right: 8px;
}
.widget .rank-num.top{background:#d4712a;color:#fff}
.widget .rank-num.top2{background:#ef4444;color:#fff}
.widget .rank-num.top3{background:#f97316;color:#fff}

/* 搜索 */
.widget-search form{display:flex}
.widget-search input{
    flex: 1;
    padding: 11px 16px;
    border: 2px solid #ddd9d4;
    border-radius: 4px 0 0 4px;
    outline: none;
    transition: border-color .28s cubic-bezier(.4,0,.2,1);
}
.widget-search input:focus{border-color:#d4712a}
.widget-search button{
    padding: 11px 20px;
    background: #d4712a;
    color: #fff;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-weight: 600;
    transition: background .28s cubic-bezier(.4,0,.2,1);
}
.widget-search button:hover{background:#a8551e}

/* 标签云 */
.tag-cloud{display:flex;flex-wrap:wrap;gap:8px}
.tag-cloud a{
    padding: 6px 16px;
    background: #f5f4f2;
    border-radius: 20px;
    color: #5c5955;
    font-size: .8125rem;
    transition: all .28s cubic-bezier(.4,0,.2,1);
    border: 1px solid transparent;
}
.tag-cloud a:hover{background:#d4712a;color:#fff;border-color:#d4712a}

/* ---------- 搜索页 ---------- */
.search-header{margin-bottom:28px}
.search-header h2{margin-bottom:18px;font-size:1.5rem;font-weight:800}
.search-form{display:flex;max-width:520px}
.search-form input{
    flex: 1;
    padding: 13px 20px;
    border: 2px solid #d4712a;
    border-radius: 4px 0 0 4px;
    font-size: 1rem;
    outline: none;
}
.search-form button{
    padding: 13px 32px;
    background: #d4712a;
    color: #fff;
    border: none;
    border-radius: 0 4px 4px 0;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
}
.search-form button:hover{background:#a8551e}

/* ---------- 表单通用 ---------- */
.form-container{
    max-width: 480px;
    margin: 50px auto;
    background: #fff;
    border-radius: 6px;
    padding: 48px;
    box-shadow: 0 12px 40px rgba(30,29,27,.12);
    border: 1px solid #ddd9d4;
}
.form-container h2{text-align:center;margin-bottom:36px;font-size:1.5rem;font-weight:800}
.form-group{margin-bottom:22px}
.form-group label{display:block;margin-bottom:7px;color:#1e1d1b;font-weight:600;font-size:.875rem}
.form-group input,
.form-group textarea,
.form-group select{
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #ddd9d4;
    border-radius: 4px;
    font-size: .9375rem;
    outline: none;
    transition: border-color .28s cubic-bezier(.4,0,.2,1), box-shadow .28s cubic-bezier(.4,0,.2,1);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus{
    border-color: #d4712a;
    box-shadow: 0 0 0 3px rgba(212,113,42,.1);
}
.form-group textarea{resize:vertical;min-height:110px}
.btn-submit{
    display: block;
    width: 100%;
    padding: 14px;
    background: #d4712a;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all .28s cubic-bezier(.4,0,.2,1);
    letter-spacing: .03em;
}
.btn-submit:hover{background:#a8551e;transform:translateY(-1px);box-shadow:0 4px 16px rgba(30,29,27,.07)}
.form-footer{text-align:center;margin-top:24px;color:#5c5955;font-size:.875rem}
.form-footer a{font-weight:600}

/* 通用按钮 */
.btn{
    display: inline-block;
    padding: 10px 28px;
    background: #d4712a;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    font-size: .875rem;
    font-weight: 600;
    transition: all .28s cubic-bezier(.4,0,.2,1);
    margin-right: 8px;
}
.btn:hover{background:#a8551e;color:#fff}
.btn-danger{background:#ef4444}
.btn-danger:hover{background:#dc2626}

/* ---------- 留言板 ---------- */
.guestbook-form{margin-bottom:40px}
.guestbook-form h3{font-size:1.125rem;font-weight:700;margin-bottom:18px}
.guestbook-item{
    background: #fff;
    border-radius: 4px;
    padding: 26px;
    margin-bottom: 18px;
    box-shadow: 0 1px 2px rgba(30,29,27,.04);
    border: 1px solid #ddd9d4;
}
.guestbook-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}
.guestbook-header strong{color:#1e1d1b;font-size:.9375rem}
.guestbook-header .time{color:#8a8782;font-size:.8125rem}
.guestbook-content{margin-bottom:12px;line-height:1.9;font-size:.9375rem}
.guestbook-reply{
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 4px;
    padding: 16px;
    margin-top: 14px;
}
.guestbook-reply strong{color:#16a34a}

/* ---------- 投票 ---------- */
.vote-detail{
    background: #fff;
    border-radius: 6px;
    padding: 36px;
    box-shadow: 0 1px 2px rgba(30,29,27,.04);
    border: 1px solid #ddd9d4;
}
.vote-desc{color:#5c5955;margin:14px 0}
.vote-time{color:#8a8782;font-size:.875rem;margin-bottom:28px}
.vote-option{
    display: flex;
    align-items: center;
    padding: 16px 18px;
    margin-bottom: 12px;
    background: #f5f4f2;
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: background .28s cubic-bezier(.4,0,.2,1);
}
.vote-option:hover{background:#fef0e4}
.vote-option input{margin-right:14px;flex-shrink:0}
.vote-option .option-text{flex:1;min-width:100px;font-size:.9375rem;z-index:1}
.vote-option .option-bar{
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    background: rgba(212,113,42,.06);
    z-index: 0;
    transition: width .4s ease;
}
.vote-option .option-votes{margin-left:14px;color:#d4712a;font-weight:700;z-index:1;flex-shrink:0;font-size:.875rem}
.vote-total{color:#8a8782;margin:18px 0;font-size:.875rem}

/* ---------- 评论 ---------- */
.comment-section{
    margin-top: 40px;
    background: #fff;
    border-radius: 6px;
    padding: 36px;
    box-shadow: 0 1px 2px rgba(30,29,27,.04);
    border: 1px solid #ddd9d4;
}
.comment-section h3{
    font-size: 1.125rem;
    margin-bottom: 22px;
    font-weight: 700;
    padding-bottom: 14px;
    border-bottom: 2px solid #ddd9d4;
    position: relative;
}
.comment-section h3::before{
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: #d4712a;
    border-radius: 1px;
}
.comment-count{color:#8a8782;font-size:.875rem;font-weight:400}
.comment-form{
    background: #f5f4f2;
    border-radius: 4px;
    padding: 24px;
    margin-bottom: 28px;
    border: 1px solid #ddd9d4;
}
.comment-form .form-row{margin-bottom:14px}
.comment-form .form-control{
    width: 100%;
    max-width: 100%;
    padding: 12px 16px;
    border: 2px solid #ddd9d4;
    border-radius: 4px;
    font-size: .875rem;
    outline: none;
    transition: border-color .28s cubic-bezier(.4,0,.2,1), box-shadow .28s cubic-bezier(.4,0,.2,1);
    background: #fff;
    box-sizing: border-box;
}
.comment-form .form-control:focus{
    border-color: #d4712a;
    box-shadow: 0 0 0 3px rgba(212,113,42,.1);
}
.comment-form textarea.form-control{resize:vertical;min-height:100px}
.comment-form .btn-submit{
    display: inline-block;
    width: auto;
    padding: 10px 36px;
}
/* 验证码 */
.captcha-row{display:flex;gap:10px;align-items:stretch}
.captcha-row .captcha-input{flex:1}
.captcha-row .captcha-img{width:110px;height:40px;border:1px solid #d9d9d9;border-radius:4px;cursor:pointer;flex-shrink:0}
.comment-list .comment-item{
    padding: 18px 0;
    border-bottom: 1px solid #ddd9d4;
    transition: background .28s cubic-bezier(.4,0,.2,1);
}
.comment-list .comment-item:hover{background:#f5f4f2}
.comment-list .comment-item:last-child{border-bottom:none}
.comment-user{
    font-weight: 700;
    color: #d4712a;
    font-size: .9375rem;
}
.comment-time{color:#8a8782;font-size:.75rem;margin-left:10px}
.comment-body{margin:10px 0;line-height:1.8;font-size:.9375rem;color:#1e1d1b}
.comment-actions{margin-top:8px}
.comment-actions a{
    font-size: .75rem;
    color: #8a8782;
    margin-right: 14px;
    cursor: pointer;
    transition: color .28s cubic-bezier(.4,0,.2,1);
}
.comment-actions a:hover{color:#d4712a}
.comment-pagination{text-align:center;margin-top:18px}

/* 子回复样式 */
.comment-replies{margin-left:40px;border-left:3px solid #fef0e4;padding-left:16px;margin-top:8px}
.comment-child{padding:14px 0;border-bottom:1px dashed #ddd9d4}
.comment-child:hover{background:transparent}
.comment-reply-to{color:#8a8782;font-size:.8125rem;margin:0 4px}
.comment-reply-to .reply-arrow{color:#d4712a}

/* 回复表单 */
.reply-form-wrapper{margin:8px 0 8px 40px}
.reply-form{background:#f5f4f2;border:1px solid #ddd9d4;border-radius:4px;padding:14px;margin-bottom:10px}
.reply-form textarea{width:100%;padding:10px 12px;border:2px solid #ddd9d4;border-radius:4px;font-size:.875rem;outline:none;resize:vertical;min-height:70px;box-sizing:border-box;font-family:inherit;transition:border-color .28s cubic-bezier(.4,0,.2,1)}
.reply-form textarea:focus{border-color:#d4712a;box-shadow:0 0 0 3px rgba(212,113,42,.1)}
.reply-form-btns{margin-top:10px;display:flex;gap:8px}
.btn-reply-submit{padding:7px 22px;background:#d4712a;color:#fff;border:none;border-radius:4px;cursor:pointer;font-size:.8125rem;font-weight:600;transition:background .28s cubic-bezier(.4,0,.2,1)}
.btn-reply-submit:hover{background:#a8551e}
.btn-reply-cancel{padding:7px 18px;background:#fff;color:#5c5955;border:1px solid #ddd9d4;border-radius:4px;cursor:pointer;font-size:.8125rem;transition:all .28s cubic-bezier(.4,0,.2,1)}
.btn-reply-cancel:hover{color:#1e1d1b;border-color:#999}

@media (max-width: 768px) {
    .comment-replies{margin-left:16px;padding-left:12px}
    .reply-form-wrapper{margin-left:16px}
}

/* ---------- 会员中心 ---------- */
.member-center{
    background: #fff;
    border-radius: 6px;
    padding: 40px;
    box-shadow: 0 1px 2px rgba(30,29,27,.04);
    border: 1px solid #ddd9d4;
}
.member-info{display:flex;align-items:flex-start;gap:28px;margin-bottom:28px}
.member-avatar img{width:96px;height:96px;border-radius:50%}
.avatar-placeholder{
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: #d4712a;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    font-weight: 800;
}
.member-detail h3{font-size:1.375rem;margin-bottom:12px}
.member-detail p{color:#5c5955;margin-bottom:6px;font-size:.875rem}
.member-actions{margin-top:28px;padding-top:28px;border-top:1px solid #ddd9d4}

/* ---------- 热门标签页 ---------- */
.hot-tags{padding:24px 0}
.hot-tags .tag-item{
    display: inline-block;
    margin: 5px 10px;
    padding: 8px 20px;
    background: #fef0e4;
    border-radius: 20px;
    color: #a8551e;
    transition: all .28s cubic-bezier(.4,0,.2,1);
}
.hot-tags .tag-item:hover{background:#d4712a;color:#fff}
.tag-count{font-size:.75rem;color:#8a8782}

/* ---------- 分页 ---------- */
.pagination{margin:40px 0;text-align:center}
.pagination ul{display:inline-flex;gap:8px}
.pagination li a,.pagination li span{
    display: inline-block;
    padding: 9px 18px;
    border: 2px solid #ddd9d4;
    border-radius: 4px;
    color: #5c5955;
    font-size: .875rem;
    font-weight: 600;
    transition: all .28s cubic-bezier(.4,0,.2,1);
}
.pagination li a:hover{border-color:#d4712a;color:#d4712a}
.pagination li.active span{background:#d4712a;color:#fff;border-color:#d4712a}

/* ---------- 空状态 ---------- */
.empty{text-align:center;padding:80px 20px;color:#8a8782;font-size:1rem}

/* ---------- 主体布局 ---------- */
.main{padding:40px 0}
.main > .container{display:flex;gap:36px;max-width:1260px;margin:0 auto;padding:0 24px;align-items:flex-start}
.content-wrap{flex:1;min-width:0;max-width:calc(100% - 376px)}

/* 统一内页内容布局 */
.content-layout{
    max-width: 1260px;
    margin: 0 auto;
    padding: 40px 24px;
}
.content-layout .breadcrumb{
    padding: 16px 0;
    margin-bottom: 28px;
}

/* ---------- 回到顶部 ---------- */
.back-to-top{
    position: fixed;
    bottom: 36px;
    right: 36px;
    width: 48px;
    height: 48px;
    background: #d4712a;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 22px;
    box-shadow: 0 12px 40px rgba(30,29,27,.12);
    opacity: 0;
    visibility: hidden;
    transition: all .28s cubic-bezier(.4,0,.2,1);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.back-to-top.visible{opacity:1;visibility:visible}
.back-to-top:hover{background:#a8551e;transform:translateY(-3px)}

/* ---------- 响应式布局 ---------- */

/* 平板 */
@media (max-width: 1024px) {
    .products-grid{grid-template-columns: repeat(2, 1fr)}
    .advantages-grid{grid-template-columns: repeat(2, 1fr)}
    .cases-grid{grid-template-columns: repeat(2, 1fr)}
    .stats-grid{grid-template-columns: repeat(2, 1fr)}
    .stat-item:nth-child(2)::after{display:none}
    .footer-main{grid-template-columns: repeat(2, 1fr)}
    .sidebar{width:280px}
    .related-grid{grid-template-columns: repeat(2, 1fr)}
    .banner .swiper-slide{min-height:480px}
    .banner .slide-content h1{font-size:clamp(1.8rem,4vw,2.6rem)}
}

/* 手机 */
@media (max-width: 768px) {
    :root{--header-height:60px}
    .container{padding:0 16px}

    /* 顶部栏隐藏 */
    .top-bar{display:none}

    /* 移动端菜单 */
    .menu-toggle{display:block;margin-left:auto}
    .nav{
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: #fff;
        border-bottom: 1px solid #ddd9d4;
        box-shadow: 0 12px 40px rgba(30,29,27,.12);
        padding: 16px 0;
        transform: translateY(-120%);
        opacity: 0;
        transition: all .28s cubic-bezier(.4,0,.2,1);
        z-index: 999;
    }
    .nav.open{transform:translateY(0);opacity:1}
    .nav ul{flex-direction:column;padding:0 24px}
    .nav > ul > li > a{height:48px;line-height:48px;padding:0;font-size:1rem}
    .nav > ul > li > a::after{display:none}

    .header-inner{gap:16px}
    .header-right .btn-outline{display:none}

    /* 布局 */
    .main{padding:24px 0}
    .main > .container{flex-direction:column;padding:0 16px}
    .sidebar{width:100%}
    .content-wrap{max-width:100%}
    .content-layout{padding:24px 16px}

    /* Banner */
    .banner .swiper-slide{min-height:400px}
    .banner .slide-content{padding:60px 20px}
    .banner .slide-content h1{font-size:clamp(1.6rem,6vw,2rem)}
    .banner .slide-content p{font-size:.9375rem}
    .banner .btn-primary,
    .banner .btn-outline-light{padding:12px 28px;font-size:.875rem}

    /* 统计 */
    .stats-grid{grid-template-columns: repeat(2, 1fr);gap:0}
    .stat-item{padding:32px 16px}
    .stat-item .stat-number{font-size:2rem}
    .stat-item .stat-icon{width:44px;height:44px;font-size:20px}

    /* 产品 / 优势 / 案例 */
    .products-grid,.advantages-grid{grid-template-columns: 1fr}
    .cases-grid{grid-template-columns: repeat(2, 1fr)}
    .category-grid{grid-template-columns: repeat(3, 1fr)}

    /* 文章列表 */
    .article-item{flex-direction:column;padding:20px}
    .article-item .thumb{width:100%;height:200px;margin:0 0 18px}
    .article-title{font-size:1.375rem}

    /* 详情 */
    .article-detail{padding:24px}
    .article-nav{flex-direction:column}
    .related-grid{grid-template-columns: 1fr}
    .related-section{padding: 24px}
    .comment-section{padding: 24px}
    .comment-form{padding: 18px}
    .comment-form .btn-submit{display:block;width:100%}

    /* 表单 */
    .form-container{padding:32px 24px;margin:20px 10px}

    /* 底部 */
    .footer-main{grid-template-columns: 1fr;gap:32px}
    .footer-bottom{flex-direction:column;text-align:center}

    .back-to-top{bottom:20px;right:20px;width:42px;height:42px}

    .cta-section{padding:64px 20px}
    .cta-section h2{font-size:1.5rem}

    .section-header h2{font-size:1.5rem}
}

/* 小屏手机 */
@media (max-width: 480px) {
    .banner .swiper-slide{min-height:360px}
    .banner .slide-content h1{font-size:1.5rem}
    .banner .slide-btns{flex-direction:column;align-items:flex-start}
    .banner .btn-primary,
    .banner .btn-outline-light{width:100%;text-align:center}
    .stats-grid{grid-template-columns: 1fr 1fr}
    .stat-item::after{display:none}
    .category-grid{grid-template-columns: repeat(2, 1fr)}
    .cases-grid{grid-template-columns: 1fr}
    .section-header h2{font-size:1.375rem}
    .partner-logos{gap:16px}
    .partner-logos a{padding:10px 18px;font-size:.8125rem}
    .news-grid{grid-template-columns: 1fr}
}
