/* ===== ywmixing.com — Global Styles ===== */
/* --- Design Tokens --- */
:root{
  --navy:#0f2e4e;--navy-light:#1a4a6e;--navy-dark:#0a1f33;
  --orange:#e87722;--orange-dark:#d06815;--orange-light:#f5a050;
  --grey-bg:#f4f6f8;--grey-border:#e2e8f0;--grey-text:#64748b;--grey-light:#94a3b8;
  --white:#fff;--black:#1e293b;
  --radius:8px;--radius-sm:4px;--radius-lg:12px;
  --shadow:0 2px 8px rgba(0,0,0,.08);--shadow-lg:0 8px 30px rgba(0,0,0,.12);
  --maxw:1200px;--maxw-narrow:800px;
  --font:'Inter',system-ui,-apple-system,sans-serif;
  --mono:'JetBrains Mono','Courier New',monospace;
  --space:1.5em;
}
/* --- Reset --- */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{font-size:16px;scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{font-family:var(--font);font-weight:400;line-height:1.7;color:var(--black);background:var(--grey-bg);-webkit-font-smoothing:antialiased}
img{max-width:100%;height:auto;display:block}
a{color:var(--navy);text-decoration:none;transition:color .2s}
a:hover{color:var(--orange)}
ul,ol{padding-left:1.5em}
h1,h2,h3,h4{font-weight:700;line-height:1.3;color:var(--navy);margin-bottom:.6em}
h1{font-size:2.2rem;font-weight:800}h2{font-size:1.6rem}h3{font-size:1.25rem}h4{font-size:1.05rem}
p{margin-bottom:1.2em}
/* --- Layout --- */
.container{max-width:var(--maxw);margin:0 auto;padding:0 24px}
.container-narrow{max-width:var(--maxw-narrow);margin:0 auto;padding:0 24px}
.section{padding:64px 0}
.section-sm{padding:40px 0}
.bg-white{background:var(--white)}
.bg-grey{background:var(--grey-bg)}
.bg-navy{background:var(--navy);color:var(--white)}
.bg-navy h1,.bg-navy h2,.bg-navy h3{color:var(--white)}
.grid{display:grid;gap:24px}
.grid-2{grid-template-columns:repeat(2,1fr)}
.grid-3{grid-template-columns:repeat(3,1fr)}
.grid-4{grid-template-columns:repeat(4,1fr)}
.grid-5{grid-template-columns:repeat(5,1fr)}
.flex{display:flex;gap:16px}
.flex-center{display:flex;align-items:center;gap:16px}
.flex-wrap{flex-wrap:wrap}
.justify-between{justify-content:space-between}
.items-center{align-items:center}
.text-center{text-align:center}
.mt-1{margin-top:1em}.mt-2{margin-top:2em}.mt-3{margin-top:3em}
.mb-1{margin-bottom:1em}.mb-2{margin-bottom:2em}
/* --- Header / Nav --- */
.header{background:var(--navy);position:sticky;top:0;z-index:100;box-shadow:0 2px 12px rgba(0,0,0,.15)}
.header-inner{display:flex;align-items:center;justify-content:space-between;height:72px;max-width:var(--maxw);margin:0 auto;padding:0 24px}
.header-logo{display:flex;align-items:center;gap:10px}
.header-logo img{height:56px;width:auto}
.header-logo span{font-size:1.25rem;font-weight:800;color:var(--white);letter-spacing:-.5px}
.header-logo span .light{font-weight:400;color:var(--grey-light)}
.header-nav{display:flex;align-items:center;gap:28px}
.header-nav a{color:rgba(255,255,255,.85);font-size:.92rem;font-weight:500;transition:color .2s}
.header-nav a:hover{color:var(--orange-light)}
.header-nav a.active{color:var(--orange-light)}
.menu-toggle{display:none;background:none;border:none;color:var(--white);font-size:1.5rem;cursor:pointer;padding:4px}
/* --- Buttons --- */
.btn{display:inline-flex;align-items:center;gap:8px;padding:12px 28px;font-size:.95rem;font-weight:600;border-radius:var(--radius);border:2px solid transparent;cursor:pointer;transition:all .2s;text-decoration:none;font-family:inherit}
.btn-primary{background:var(--orange);color:var(--white);border-color:var(--orange)}
.btn-primary:hover{background:var(--orange-dark);border-color:var(--orange-dark);color:var(--white)}
.btn-secondary{background:transparent;color:var(--white);border-color:rgba(255,255,255,.4)}
.btn-secondary:hover{border-color:var(--white);color:var(--white)}
.btn-outline{background:transparent;color:var(--navy);border-color:var(--navy)}
.btn-outline:hover{background:var(--navy);color:var(--white)}
.btn-large{padding:16px 36px;font-size:1.05rem}
.btn-small{padding:8px 18px;font-size:.85rem}
/* --- Hero --- */
.hero{position:relative;background:var(--navy);color:var(--white);padding:80px 0 64px;overflow:hidden}
.hero-bg{position:absolute;inset:0;opacity:.25;background-size:cover;background-position:center}
.hero-content{position:relative;z-index:1;max-width:720px}
.hero h1{color:var(--white);font-size:2.8rem;font-weight:800;margin-bottom:20px;line-height:1.2}
.hero p{font-size:1.15rem;color:rgba(255,255,255,.85);margin-bottom:32px;max-width:600px}
.hero-actions{display:flex;gap:16px;flex-wrap:wrap}
/* --- Trust Bar --- */
.trust-bar{background:var(--navy-dark);padding:24px 0;border-top:1px solid rgba(255,255,255,.08)}
.trust-bar .grid-5{gap:16px}
.trust-item{text-align:center}
.trust-item .num{font-size:1.8rem;font-weight:800;color:var(--orange-light);line-height:1}
.trust-item .label{font-size:.78rem;color:rgba(255,255,255,.7);text-transform:uppercase;letter-spacing:.08em;margin-top:6px}
/* --- Cards --- */
.card{background:var(--white);border-radius:var(--radius);box-shadow:var(--shadow);padding:28px;transition:transform .2s,box-shadow .2s}
.card:hover{transform:translateY(-3px);box-shadow:var(--shadow-lg)}
.card-icon{width:48px;height:48px;margin-bottom:16px}
.card h3{margin-bottom:10px}
.card p{color:var(--grey-text);font-size:.95rem}
.product-card{background:var(--white);border-radius:var(--radius);box-shadow:var(--shadow);padding:0;overflow:hidden;transition:transform .2s,box-shadow .2s;display:flex;flex-direction:column}
.product-card:hover{transform:translateY(-3px);box-shadow:var(--shadow-lg)}
.product-card-img{height:200px;background:var(--grey-bg);overflow:hidden}
.product-card-img img{width:100%;height:100%;object-fit:cover}
.product-card-body{padding:24px;flex:1;display:flex;flex-direction:column}
.product-card-body h3{margin-bottom:8px}
.product-card-body .tagline{color:var(--grey-text);font-size:.9rem;margin-bottom:16px;flex:1}
.product-card-body .specs{font-family:var(--mono);font-size:.8rem;color:var(--grey-text);margin-bottom:16px;line-height:1.8}
.product-card-body .specs span{display:inline-block;margin-right:12px}
.product-card-body .btn{align-self:flex-start}
/* --- Tables --- */
.spec-table{width:100%;border-collapse:collapse;font-size:.92rem;background:var(--white);border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow)}
.spec-table th,.spec-table td{padding:14px 18px;text-align:left;border-bottom:1px solid var(--grey-border)}
.spec-table th{background:var(--navy);color:var(--white);font-weight:600;font-size:.88rem;text-transform:uppercase;letter-spacing:.04em}
.spec-table tbody tr:nth-child(even){background:var(--grey-bg)}
.spec-table tbody tr:hover{background:#edf2f7}
.spec-table td:first-child{font-weight:600;color:var(--navy);white-space:nowrap}
.spec-table .mono{font-family:var(--mono);font-size:.85rem}
/* --- Breadcrumb --- */
.breadcrumb{padding:16px 0;font-size:.88rem;color:var(--grey-text)}
.breadcrumb a{color:var(--grey-text)}
.breadcrumb a:hover{color:var(--orange)}
.breadcrumb span{margin:0 8px;color:var(--grey-light)}
/* --- FAQ Accordion --- */
.faq-item{background:var(--white);border-radius:var(--radius);margin-bottom:12px;box-shadow:var(--shadow);overflow:hidden}
.faq-q{width:100%;background:none;border:none;padding:18px 24px;font-size:1rem;font-weight:600;color:var(--navy);text-align:left;cursor:pointer;display:flex;justify-content:space-between;align-items:center;font-family:inherit}
.faq-q::after{content:'+';font-size:1.4rem;color:var(--orange);transition:transform .2s;flex-shrink:0;margin-left:16px}
.faq-q.open::after{transform:rotate(45deg)}
.faq-a{max-height:0;overflow:hidden;transition:max-height .3s ease;padding:0 24px}
.faq-a.open{max-height:500px;padding:0 24px 18px}
.faq-a p{color:var(--grey-text);font-size:.95rem;margin:0}
/* --- Sticky CTA --- */
.sticky-cta{position:sticky;top:92px;background:var(--white);border-radius:var(--radius);box-shadow:var(--shadow-lg);padding:24px;margin-left:24px}
.sticky-cta h4{color:var(--navy);margin-bottom:8px}
.sticky-cta p{font-size:.88rem;color:var(--grey-text);margin-bottom:16px}
.sticky-cta .email{font-family:var(--mono);font-size:.82rem;color:var(--navy);background:var(--grey-bg);padding:8px 12px;border-radius:var(--radius-sm);margin-bottom:16px;word-break:break-all}
/* --- Copy Button --- */
.copy-wrap{display:inline-flex;align-items:center;gap:8px}
.copy-btn{background:var(--grey-bg);border:1px solid var(--grey-border);border-radius:var(--radius-sm);padding:6px 12px;font-size:.82rem;font-weight:500;color:var(--navy);cursor:pointer;transition:all .2s;font-family:inherit;display:inline-flex;align-items:center;gap:6px}
.copy-btn:hover{background:var(--navy);color:var(--white);border-color:var(--navy)}
.copy-btn.copied{background:var(--orange);color:var(--white);border-color:var(--orange)}
/* --- Decision Tree --- */
.decision-tree{background:var(--white);border-radius:var(--radius);box-shadow:var(--shadow);padding:32px}
.dt-step{margin-bottom:24px}
.dt-step .dt-label{font-size:.82rem;font-weight:600;text-transform:uppercase;letter-spacing:.06em;color:var(--orange);margin-bottom:8px}
.dt-step .dt-question{font-size:1.1rem;font-weight:600;color:var(--navy);margin-bottom:12px}
.dt-options{display:flex;gap:12px;flex-wrap:wrap}
.dt-option{background:var(--grey-bg);border:2px solid var(--grey-border);border-radius:var(--radius);padding:12px 20px;font-size:.92rem;font-weight:500;cursor:pointer;transition:all .2s;font-family:inherit;color:var(--navy)}
.dt-option:hover,.dt-option.selected{background:var(--navy);color:var(--white);border-color:var(--navy)}
.dt-result{background:var(--navy);color:var(--white);border-radius:var(--radius);padding:24px;margin-top:16px;display:none}
.dt-result.show{display:block}
.dt-result h4{color:var(--orange-light);margin-bottom:8px}
.dt-result p{color:rgba(255,255,255,.85);font-size:.92rem;margin-bottom:12px}
/* --- Article --- */
.article-meta{font-size:.85rem;color:var(--grey-text);margin-bottom:24px;display:flex;gap:16px;align-items:center}
.article-meta span{display:inline-flex;align-items:center;gap:4px}
.article-body p{margin-bottom:1.4em;line-height:1.8}
.article-body h2{margin-top:2em;margin-bottom:.8em}
.article-body h3{margin-top:1.6em;margin-bottom:.6em}
.article-body ul,.article-body ol{margin-bottom:1.4em;padding-left:1.8em}
.article-body li{margin-bottom:.5em;line-height:1.7}
.article-body code{font-family:var(--mono);background:var(--grey-bg);padding:2px 6px;border-radius:3px;font-size:.88em}
/* --- News List --- */
.news-item{display:flex;gap:24px;padding:24px 0;border-bottom:1px solid var(--grey-border)}
.news-item:last-child{border-bottom:none}
.news-item-img{width:200px;height:130px;flex-shrink:0;border-radius:var(--radius);overflow:hidden;background:var(--grey-bg)}
.news-item-img img{width:100%;height:100%;object-fit:cover}
.news-item-body h3{margin-bottom:6px}
.news-item-body .date{font-size:.82rem;color:var(--grey-text);margin-bottom:8px}
.news-item-body p{font-size:.92rem;color:var(--grey-text)}
/* --- Footer --- */
.footer{background:var(--navy-dark);color:rgba(255,255,255,.7);padding:48px 0 24px}
.footer h4{color:var(--white);font-size:.95rem;margin-bottom:16px;text-transform:uppercase;letter-spacing:.06em}
.footer a{color:rgba(255,255,255,.7)}
.footer a:hover{color:var(--orange-light)}
.footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:40px;margin-bottom:32px}
.footer-bottom{border-top:1px solid rgba(255,255,255,.1);padding-top:24px;font-size:.82rem;text-align:center}
.footer-logo{margin-bottom:16px}
.footer-logo img{height:40px}
.footer p{font-size:.88rem;line-height:1.6}
/* --- Page Header --- */
.page-header{background:var(--navy);color:var(--white);padding:48px 0 32px}
.page-header h1{color:var(--white);margin-bottom:8px}
.page-header p{color:rgba(255,255,255,.8);font-size:1.05rem;max-width:600px}
.page-header .breadcrumb{color:rgba(255,255,255,.6);padding:0 0 16px}
.page-header .breadcrumb a{color:rgba(255,255,255,.6)}
/* --- Product Layout --- */
.product-layout{display:grid;grid-template-columns:1fr 300px;gap:32px;align-items:start}
.product-content{min-width:0}
/* --- Info Box --- */
.info-box{background:#eef5fc;border-left:4px solid var(--navy);padding:16px 20px;border-radius:0 var(--radius) var(--radius) 0;margin:1.5em 0}
.info-box p{margin:0;color:var(--navy);font-size:.92rem}
/* --- Responsive --- */
@media(max-width:1024px){
  .grid-5{grid-template-columns:repeat(3,1fr)}
  .grid-4{grid-template-columns:repeat(2,1fr)}
  .product-layout{grid-template-columns:1fr}
  .sticky-cta{position:static;margin-left:0}
  .footer-grid{grid-template-columns:1fr 1fr}
}
@media(max-width:768px){
  h1{font-size:1.8rem}h2{font-size:1.3rem}
  .section{padding:40px 0}
  .container,.container-narrow{padding:0 16px}
  .header-nav{display:none;position:fixed;top:72px;left:0;right:0;background:var(--navy);flex-direction:column;padding:16px 24px;gap:12px;border-top:1px solid rgba(255,255,255,.1)}
  .header-nav.open{display:flex;top:72px}
  .menu-toggle{display:block}
  .hero{padding:48px 0 40px}
  .hero h1{font-size:2rem}
  .hero p{font-size:1rem}
  .grid-2,.grid-3,.grid-4,.grid-5{grid-template-columns:1fr}
  .trust-bar .grid-5{grid-template-columns:repeat(2,1fr);gap:12px}
  .footer-grid{grid-template-columns:1fr}
  .news-item{flex-direction:column}
  .news-item-img{width:100%;height:180px}
  .product-card-img{height:160px}
  .spec-table{font-size:.84rem}
  .spec-table th,.spec-table td{padding:10px 12px}
  .hero-actions{flex-direction:column}
  .hero-actions .btn{width:100%;justify-content:center}
}
