/*
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%;overflow-y:scroll}
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;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}
.logo img{max-height:50px;width:auto;display:block}
.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:#3363ff;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-card h3 a{color:#1e293b;transition:color .2s}
.product-card h3 a:hover{color:#1e40af}
.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:28px;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-answer{display:grid;grid-template-rows:0fr;transition:grid-template-rows .4s ease-in-out}
.faq-item.open .faq-answer{grid-template-rows:1fr}
.faq-answer > div{overflow:hidden}
.faq-answer p{padding:0 24px 20px;color:#64748b;line-height:1.8;font-size:15px}

/* ===== CTA ===== */
.cta{padding:0 20px 80px}
.cta-box{
    max-width:1200px;margin:0 auto;border-radius:20px;
    background:linear-gradient(135deg,#1e40af 0%,#3363ff 100%);
    padding:60px 40px;text-align:center;color:#fff;
    position:relative;overflow:hidden;
}
.cta-box::before{
    content:'';position:absolute;top:-50%;right:-20%;width:400px;height:400px;
    background:radial-gradient(circle,rgba(255,255,255,.08) 0%,transparent 70%);
    border-radius:50%;
}
.cta-box::after{
    content:'';position:absolute;bottom:-50%;left:-10%;width:300px;height:300px;
    background:radial-gradient(circle,rgba(255,255,255,.06) 0%,transparent 70%);
    border-radius:50%;
}
.cta-box h2{font-size:28px;font-weight:700;margin-bottom:12px;position:relative;z-index:1}
.cta-box p{color:#dbeafe;margin-bottom:24px;position:relative;z-index:1}
.cta-box .btn-primary{position:relative;z-index:1}

/* ===== 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 p{font-size:14px;line-height:1.8;color:#94a3b8;margin-top:8px}
.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}
.footer-bottom a{color:#94a3b8;transition:color .2s}
.footer-bottom a:hover{color:#fff}
.footer-links{
    max-width:1200px;margin:30px auto 0;display:flex;flex-wrap:wrap;
    align-items:center;gap:6px 4px;font-size:13px;
}
.footer-links-label{color:#64748b;flex-shrink:0}
.footer-links a{color:#94a3b8;padding:2px 8px;transition:color .2s}
.footer-links a:hover{color:#fff}

/* ===== 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);border:none;cursor:pointer;font-size:0}
.float-btn.wechat{background:#07c160}

/* 微信二维码弹窗 */
.wechat-modal{display:none;position:fixed;inset:0;z-index:9999}
.wechat-modal.show{display:block}
.wechat-modal-mask{position:absolute;inset:0;background:rgba(0,0,0,.6)}
.wechat-modal-box{
    position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);
    background:#fff;border-radius:12px;padding:32px;text-align:center;
    box-shadow:0 20px 60px rgba(0,0,0,.3);max-width:340px;width:90%;
}
.wechat-modal-close{
    position:absolute;top:12px;right:16px;background:none;border:none;
    font-size:28px;color:#94a3b8;cursor:pointer;line-height:1;
}
.wechat-modal-close:hover{color:#333}
.wechat-modal-box h3{font-size:18px;font-weight:700;margin-bottom:20px;color:#1e293b}
.wechat-qrcode{
    width:200px;height:200px;margin:0 auto 16px;
    border:1px solid #e2e8f0;border-radius:8px;overflow:hidden;
    display:flex;align-items:center;justify-content:center;background:#f8fafc;
}
.wechat-qrcode img{width:100%;height:100%;object-fit:cover}
.wechat-tip{font-size:14px;color:#64748b}

/* ===== Page Hero (Inner Pages) ===== */
.page-hero{margin-top:72px;background:linear-gradient(135deg,rgb(0 31 124 / 90%) 0%,rgb(24 57 165 / 76%) 75%,rgb(36 63 153 / 51%) 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:#94a3b8;transition:color .2s}
.breadcrumb a:hover{color:#fff}

/* ===== Service Items ===== */
.services-section{padding:60px 20px}
.service-item{max-width:1200px;margin:0 auto 40px;display:grid;grid-template-columns:1fr 1fr;gap:40px;background:#fff;border-radius:12px;overflow:hidden;border:1px solid #e2e8f0}
.service-item:nth-child(even) .service-img{order:2}
.service-img{aspect-ratio:4/3;overflow:hidden}
.service-img img{width:100%;height:100%;object-fit:cover}
.service-content{padding:40px;display:flex;flex-direction:column;justify-content:center}
.service-content h2{font-size:24px;font-weight:700;margin-bottom:12px;color:#1e293b}
.service-content p{color:#64748b;line-height:1.8;margin-bottom:16px}
.service-tags{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:20px}
.service-tags span{background:#e8effd;color:#1e40af;padding:4px 12px;border-radius:4px;font-size:13px}
.service-content a{color:#1e40af;font-weight:600;font-size:14px}

/* ===== Case Tabs ===== */
.case-tab{background:#e2e8f0;border:none;padding:8px 20px;border-radius:20px;font-size:14px;cursor:pointer;transition:all .2s}
.case-tab.active{background:#1e40af;color:#fff}
.case-tab:hover{background:#cbd5e1}
.case-tab.active:hover{background:#1e40af}

/* ===== Contact Page ===== */
.contact-grid{display:grid;grid-template-columns:1fr 1fr;gap:40px;align-items:start}
.contact-info h2{font-size:28px;font-weight:700;margin-bottom:24px}
.contact-item{display:flex;gap:16px;margin-bottom:24px;align-items:flex-start}
.contact-icon{width:44px;height:44px;background:#e8effd;color:#1e40af;border-radius:10px;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.contact-item h3{font-size:15px;font-weight:600;margin-bottom:4px;color:#1e293b}
.contact-item p{color:#64748b;font-size:14px;line-height:1.6}
.contact-value{font-size:18px!important;font-weight:600!important;color:#1e40af!important}
.contact-form-box{background:#fff;padding:32px;border-radius:12px;border:1px solid #e2e8f0}
.contact-form-box h2{font-size:22px;font-weight:700;margin-bottom:20px}
.placeholder-form{display:flex;flex-direction:column;gap:12px}
.placeholder-form input,.placeholder-form textarea{
    padding:12px 16px;border:1px solid #e2e8f0;border-radius:8px;font-size:14px;
    font-family:inherit;outline:none;transition:border-color .2s;
}
.placeholder-form input:focus,.placeholder-form textarea:focus{border-color:#1e40af}
.placeholder-form textarea{resize:vertical}
.placeholder-form button[type="submit"]{
    background:#1e40af!important;color:#fff!important;padding:14px 32px;
    border:none;border-radius:8px;font-size:16px;font-weight:600;
    cursor:pointer;transition:background .2s;
}
.placeholder-form button[type="submit"]:hover{background:#1e3a8a!important}
.form-tip{color:#94a3b8;font-size:13px;margin-top:12px;text-align:center}

/* ===== Pagination ===== */
.pagination-wrap{text-align:center;margin-top:40px}
.pagination-wrap .page-numbers{
    display:inline-block;padding:8px 16px;margin:0 4px;
    border:1px solid #e2e8f0;border-radius:6px;font-size:14px;
    color:#475569;transition:all .2s;
}
.pagination-wrap .page-numbers.current{background:#1e40af;color:#fff;border-color:#1e40af}
.pagination-wrap .page-numbers:hover:not(.current){background:#e8effd;color:#1e40af}

/* ===== 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,
    .service-item,.page-hero-inner,.contact-grid,.footer-links{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}
    .header-inner{padding:0 20px}
    .container{padding:0}
    .section{padding:50px 20px}
    .service-item{grid-template-columns:1fr;gap:0}
    .service-item:nth-child(even) .service-img{order:0}
    .service-content{padding:24px}
    .contact-grid{grid-template-columns:1fr;gap:24px}
    .factory-grid,.about-grid,.about-split{grid-template-columns:1fr!important;gap:24px!important}
    .gallery-grid{grid-template-columns:1fr 1fr!important;gap:12px!important}
    .page-hero h1{font-size:26px}
    .cta{padding:0 20px 50px}
    .cta-box{padding:40px 20px;border-radius:16px}
    .cta-box h2{font-size:22px}
    .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}
}
