/*
Theme Name: 大帆广告主题
Theme URI: https://www.dafan-example.com
Author: 大帆广告
Description: 展厅文化墙一站式服务官网主题，适配百度SEO优化。
Version: 1.0.0
Text Domain: dafan
*/

/* ===== Reset & Base ===== */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{
    font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Hiragino Sans GB","Microsoft YaHei","Helvetica Neue",Arial,sans-serif;
    font-size:16px;line-height:1.7;color:#2d3436;background:#f4f6f8;
}
a{color:inherit;text-decoration:none}
ul,ol{list-style:none}
img{max-width:100%;display:block}
button{font-family:inherit;cursor:pointer;border:none;background:none}

.container{max-width:1200px;margin:0 auto;padding:0 20px}

/* ===== Header ===== */
.header{position:fixed;top:0;left:0;right:0;z-index:1000;background:#fff;box-shadow:0 2px 10px rgba(0,0,0,.06);height:72px}
.header-inner{max-width:1400px;margin:0 auto;padding:0 20px;height:72px;display:flex;align-items:center;justify-content:space-between}
.logo{display:flex;align-items:center;gap:10px}
.logo-mark{width:38px;height:38px;background:#1e40af;color:#fff;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:18px;border-radius:6px}
.logo-text{font-size:18px;font-weight:700;color:#1e293b}
.nav{display:flex;gap:32px}
.nav a{font-size:15px;color:#475569;transition:color .2s}
.nav a:hover,.nav a.active{color:#1e40af}
.header-contact{display:flex;align-items:center;gap:16px}
.header-phone{font-size:15px;font-weight:600;color:#1e40af}
.btn-quote{background:#1e40af;color:#fff;padding:8px 20px;border-radius:6px;font-size:14px}
.hamburger{display:none;background:none;border:none;cursor:pointer;width:28px;height:28px;position:relative;padding:0}
.hamburger span{width:24px;height:2px;background:#333;display:block;transition:transform .3s,opacity .3s;position:absolute;left:2px}
.hamburger span:nth-child(1){top:6px}
.hamburger span:nth-child(2){top:13px}
.hamburger span:nth-child(3){top:20px}
.hamburger.open span:nth-child(1){transform:rotate(45deg);top:13px}
.hamburger.open span:nth-child(2){opacity:0}
.hamburger.open span:nth-child(3){transform:rotate(-45deg);top:13px}
.mobile-nav{display:none;position:fixed;top:72px;left:0;right:0;background:#fff;z-index:999;box-shadow:0 4px 12px rgba(0,0,0,.1);flex-direction:column;padding:16px 20px}
.mobile-nav a{padding:12px 0;border-bottom:1px solid #e2e8f0;font-size:15px;color:#475569}

/* ===== Hero ===== */
.hero{
    position:relative;height:76vh;min-height:540px;display:flex;align-items:center;
    color:#fff;overflow:hidden;margin:0 auto;max-width:2440px;
}
.hero-bg{position:absolute;inset:0;z-index:0}
.hero-bg img{
    width:100%;height:100%;object-fit:cover;
    position:absolute;opacity:0;transition:opacity 1s ease;
}
.hero-bg img.active{opacity:1}
.hero::after{
    content:'';position:absolute;inset:0;z-index:1;
    background:linear-gradient(135deg,rgba(5,11,24,.9) 0%,rgba(15,32,88,.65) 75%,rgba(17,37,102,.35) 100%);
}
.hero-inner{
    position:relative;z-index:2;max-width:1200px;margin:0 auto;
    padding:120px 20px 80px;width:100%;height:100%;
}
.hero-slide{
    position:absolute;top:50%;left:20px;right:20px;
    transform:translateY(-50%);
    opacity:0;transition:opacity .8s ease;pointer-events:none;
}
.hero-slide.active{opacity:1;pointer-events:auto}
.hero h1{font-size:48px;font-weight:700;line-height:1.3;margin-bottom:32px;max-width:680px;letter-spacing:1px}
.hero h1 span{color:#93c5fd}
.hero-sub{font-size:20px;color:#e2e8f0;margin-bottom:44px;line-height:2;max-width:600px}
.hero-badges{display:flex;gap:20px;flex-wrap:wrap;margin-bottom:52px}
.hero-badge{
    background:rgba(255,255,255,.15);backdrop-filter:blur(4px);
    padding:10px 20px;border-radius:6px;font-size:14px;color:#fff;
}
.hero-cta{display:flex;gap:20px;flex-wrap:wrap}
.btn-primary{
    background:#fff;color:#1e40af;padding:14px 32px;border-radius:8px;
    font-size:16px;font-weight:600;transition:transform .2s,box-shadow .2s;
}
.btn-primary:hover{transform:translateY(-2px);box-shadow:0 8px 25px rgba(0,0,0,.2)}
.btn-outline{
    border:2px solid rgba(255,255,255,.5);color:#fff;padding:12px 32px;
    border-radius:8px;font-size:16px;font-weight:500;transition:all .2s;
}
.btn-outline:hover{border-color:#fff;background:rgba(255,255,255,.1)}
.hero-dots{
    position:absolute;bottom:30px;left:50%;transform:translateX(-50%);
    z-index:3;display:flex;gap:8px;
}
.hero-dot{
    width:10px;height:10px;border-radius:50%;background:rgba(255,255,255,.4);
    cursor:pointer;transition:.3s;border:none;padding:0;
}
.hero-dot.active{background:#fff;width:24px;border-radius:5px}

/* ===== Section Common ===== */
.section{padding:80px 20px}
.section-title{text-align:center;margin-bottom:50px}
.section-title h2{font-size:32px;font-weight:700;color:#1e293b;margin-bottom:12px}
.section-title p{color:#64748b;font-size:16px}

/* ===== Stats ===== */
.stats{background:#1e40af;color:#fff;padding:50px 20px}
.stats-grid{max-width:1200px;margin:0 auto;display:grid;grid-template-columns:repeat(4,1fr);gap:30px;text-align:center}
.stat-num{font-size:36px;font-weight:700;margin-bottom:8px}
.stat-label{font-size:14px;color:#cbd5e1}

/* ===== Services ===== */
.services-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:24px;max-width:1200px;margin:0 auto}
.service-card{background:#fff;border-radius:10px;padding:30px 24px;border:1px solid #e2e8f0;transition:transform .2s,box-shadow .2s}
.service-card:hover{transform:translateY(-4px);box-shadow:0 12px 30px rgba(0,0,0,.08)}
.service-icon{width:48px;height:48px;background:#e8effd;color:#1e40af;border-radius:10px;display:flex;align-items:center;justify-content:center;margin-bottom:16px;font-size:24px}
.service-card h3{font-size:17px;font-weight:700;margin-bottom:8px}
.service-card p{color:#64748b;font-size:14px;line-height:1.7}

/* ===== Products ===== */
.product-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:28px;max-width:1200px;margin:0 auto}
.product-card{background:#fff;border-radius:12px;overflow:hidden;border:1px solid #e2e8f0;transition:transform .2s,box-shadow .2s}
.product-card:hover{transform:translateY(-4px);box-shadow:0 12px 30px rgba(0,0,0,.08)}
.product-img{aspect-ratio:4/3;overflow:hidden}
.product-img img{width:100%;height:100%;object-fit:cover}
.product-info{padding:24px}
.product-info h3{font-size:18px;font-weight:700;margin-bottom:8px}
.product-info p{color:#64748b;font-size:14px;line-height:1.7;margin-bottom:12px}
.product-info a{color:#1e40af;font-weight:600;font-size:14px}

/* ===== Cases ===== */
.case-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;max-width:1200px;margin:0 auto}
.case-card{border-radius:10px;overflow:hidden;border:1px solid #e2e8f0;transition:transform .2s,box-shadow .2s;background:#fff}
.case-card:hover{transform:translateY(-4px);box-shadow:0 12px 30px rgba(0,0,0,.08)}
.case-img{aspect-ratio:4/3;overflow:hidden}
.case-img img{width:100%;height:100%;object-fit:cover}
.case-info{padding:20px}
.case-info h3{font-size:16px;font-weight:600}

/* ===== News ===== */
.news-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:28px;max-width:1200px;margin:0 auto}
.news-card{background:#fff;border-radius:10px;overflow:hidden;border:1px solid #e2e8f0;transition:transform .2s,box-shadow .2s}
.news-card:hover{transform:translateY(-4px);box-shadow:0 12px 30px rgba(0,0,0,.08)}
.news-img{aspect-ratio:4/3;overflow:hidden}
.news-img img{width:100%;height:100%;object-fit:cover}
.news-info{padding:20px}
.news-date{font-size:13px;color:#94a3b8;margin-bottom:8px}
.news-info h3{font-size:16px;font-weight:600;margin-bottom:8px;line-height:1.5}
.news-info p{color:#64748b;font-size:14px;line-height:1.6}

/* ===== FAQ ===== */
.faq-list{max-width:1200px;margin:0 auto;padding:0 20px}
.faq-item{border:1px solid #e2e8f0;border-radius:10px;margin-bottom:12px;overflow:hidden;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.04)}
.faq-question{width:100%;padding:20px 24px;text-align:left;font-size:16px;font-weight:600;color:#1e293b;background:#fff;display:flex;justify-content:space-between;align-items:center;transition:background .2s}
.faq-question:hover{background:#eff6ff}
.faq-question .arrow{width:20px;height:20px;transition:transform .3s;flex-shrink:0}
.faq-item.open .arrow{transform:rotate(180deg)}
.faq-item.open .faq-answer{max-height:300px}
.faq-answer{max-height:0;overflow:hidden;transition:max-height .3s ease}
.faq-answer p{padding:0 24px 20px;color:#64748b;line-height:1.8;font-size:15px}

/* ===== CTA ===== */
.cta{background:linear-gradient(135deg,#1e40af,#3b82f6);color:#fff;padding:60px 20px;text-align:center}
.cta h2{font-size:28px;font-weight:700;margin-bottom:12px}
.cta p{color:#cbd5e1;margin-bottom:24px}

/* ===== Footer ===== */
.footer{background:#1e293b;color:#94a3b8;padding:60px 20px 20px}
.footer-grid{max-width:1200px;margin:0 auto;display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:40px}
.footer h4{color:#fff;font-size:16px;margin-bottom:16px}
.footer ul{list-style:none}
.footer ul li{margin-bottom:10px;font-size:14px}
.footer-bottom{text-align:center;margin-top:40px;padding-top:20px;border-top:1px solid #334155;font-size:13px}

/* ===== Float Buttons ===== */
.float-btns{position:fixed;right:20px;bottom:80px;z-index:99;display:flex;flex-direction:column;gap:12px}
.float-btn{width:48px;height:48px;border-radius:50%;background:#1e40af;color:#fff;display:flex;align-items:center;justify-content:center;box-shadow:0 4px 12px rgba(0,0,0,.15)}
.float-btn.wechat{background:#07c160}

/* ===== Page Hero (Inner Pages) ===== */
.page-hero{margin-top:72px;background:linear-gradient(135deg,rgba(20,40,90,.9) 0%,rgba(30,64,175,.7) 75%,rgba(30,64,175,.4) 100%);padding:60px 20px;color:#fff}
.page-hero-inner{max-width:1200px;margin:0 auto}
.page-hero h1{font-size:36px;font-weight:700;margin-bottom:12px}
.page-hero p{font-size:16px;color:#cbd5e1;max-width:600px}
.breadcrumb{margin-top:20px;font-size:14px;color:#94a3b8}
.breadcrumb a{color:#93c5fd}

/* ===== Large Desktop (1920+) ===== */
@media (min-width:1920px){
    .container,.header-inner,.hero-inner,.stats-grid,
    .services-grid,.case-grid,.news-grid,
    .product-grid,.footer-grid,.faq-list{max-width:1400px}
    body{font-size:17px}
}

/* ===== Tablet ===== */
@media (max-width:1024px){
    .services-grid{grid-template-columns:repeat(2,1fr)}
    .case-grid,.news-grid,.product-grid{grid-template-columns:repeat(2,1fr)}
    .stats-grid{grid-template-columns:repeat(2,1fr)}
    .hero h1{font-size:42px}
}

/* ===== Mobile ===== */
@media (max-width:768px){
    .nav{display:none}
    .header-contact{display:none}
    .hamburger{display:flex}
    .mobile-nav.open{display:flex}
    .hero{min-height:480px}
    .hero-inner{padding:110px 20px 60px}
    .hero h1{font-size:26px;line-height:1.35;margin-bottom:16px}
    .hero-sub{font-size:14px;margin-bottom:20px}
    .hero-badges{gap:10px;margin-bottom:24px}
    .hero-badge{font-size:12px;padding:6px 12px}
    .hero-cta{flex-direction:column;gap:12px}
    .section{padding:50px 20px}
    .section-title h2{font-size:24px}
    .services-grid,.case-grid,.news-grid,.product-grid{grid-template-columns:1fr;gap:16px}
    .stats-grid{grid-template-columns:repeat(2,1fr);gap:20px}
    .stat-num{font-size:28px}
    .footer-grid{grid-template-columns:1fr;gap:24px}
    .page-hero h1{font-size:26px}
}
