/*
Theme Name: QingRose
Theme URI: https://qingrose.com
Description: 晴璇科技（QingRose）企业官网主题。物联网（IoT）行业，中英双语预留。视觉对标 tractian.com 克制版式 + 晴璇专属色。
Version: 1.0.0
Author: QingRose
Author URI: https://qingrose.com
Text Domain: qingrose
Tags: corporate, business, custom-menu, translation-ready, one-column, two-columns
*/

/* ============================================================
   QingRose Design System
   专属色：青绿 #28926D（主）/ 玫红 #DB487E（CTA）
           黄 #FFE800（点缀）/ 靛蓝 #3F43AD（次级）
   ============================================================ */
:root {
  --qr-primary: #28926D;
  --qr-primary-dark: #1E7A5A;
  --qr-cta: #DB487E;
  --qr-cta-dark: #C23A6C;
  --qr-accent: #FFE800;
  --qr-secondary: #3F43AD;

  --qr-dark: #0E1116;
  --qr-dark-2: #161B22;
  --qr-dark-3: #1F2630;

  --qr-text: #1A1F2B;
  --qr-muted: #5B6472;
  --qr-muted-light: #9AA4B2;

  --qr-bg: #FFFFFF;
  --qr-bg-soft: #F5F7FA;
  --qr-border: #E4E8EE;

  --qr-radius: 14px;
  --qr-radius-sm: 10px;
  --qr-shadow: 0 1px 2px rgba(16,24,40,.04), 0 8px 24px rgba(16,24,40,.06);
  --qr-shadow-lg: 0 12px 40px rgba(16,24,40,.12);
  --qr-maxw: 1200px;
  --qr-header-h: 72px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  color: var(--qr-text);
  background: var(--qr-bg);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0; }

.container { width: 100%; max-width: var(--qr-maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section--soft { background: var(--qr-bg-soft); }
.section--dark { background: var(--qr-dark); color: #fff; }

.section-head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.section-head .eyebrow {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--qr-primary); margin-bottom: 14px;
}
.section-head h2 { font-size: clamp(28px, 4vw, 40px); color: var(--qr-text); }
.section--dark .section-head h2 { color: #fff; }
.section--dark .section-head .eyebrow { color: var(--qr-accent); }
.section-head p { margin-top: 16px; color: var(--qr-muted); font-size: 17px; }
.section--dark .section-head p { color: var(--qr-muted-light); }
.section-head--left { margin-left: 0; text-align: left; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px; font-weight: 600; font-size: 15px;
  border: 1.5px solid transparent; cursor: pointer; transition: all .2s ease; white-space: nowrap;
}
.btn--primary { background: var(--qr-cta); color: #fff; }
.btn--primary:hover { background: var(--qr-cta-dark); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(219,72,126,.32); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn--dark { background: var(--qr-dark); color: #fff; }
.btn--dark:hover { background: var(--qr-dark-3); transform: translateY(-2px); }
.btn--light { background: #fff; color: var(--qr-text); }
.btn--light:hover { transform: translateY(-2px); box-shadow: var(--qr-shadow-lg); }
.btn--lg { padding: 16px 34px; font-size: 16px; }

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 1000; height: var(--qr-header-h);
  background: rgba(255,255,255,.92); backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--qr-border);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: -.02em; }
.brand .brand-mark {
  width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--qr-primary), var(--qr-secondary)); color: #fff; font-size: 18px;
}
.brand .brand-cn { color: var(--qr-text); }
.brand .brand-en { color: var(--qr-primary); font-weight: 700; }

.main-nav ul { display: flex; align-items: center; gap: 30px; }
.main-nav a { font-size: 15px; font-weight: 500; color: var(--qr-text); position: relative; padding: 6px 0; }
.main-nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 2px;
  background: var(--qr-primary); transition: width .25s ease;
}
.main-nav a:hover { color: var(--qr-primary); }
.main-nav a:hover::after, .main-nav a.current-menu-item::after { width: 100%; }
.main-nav a.current-menu-item { color: var(--qr-primary); }

.header-actions { display: flex; align-items: center; gap: 18px; }
.lang-switch { display: inline-flex; align-items: center; border: 1px solid var(--qr-border); border-radius: 999px; overflow: hidden; }
.lang-switch a { padding: 6px 12px; font-size: 13px; font-weight: 600; color: var(--qr-muted); }
.lang-switch a.active { background: var(--qr-primary); color: #fff; }
.header-cta { padding: 10px 20px; font-size: 14px; }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--qr-text); margin: 5px 0; border-radius: 2px; transition: .3s; }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: radial-gradient(1200px 600px at 80% -10%, rgba(63,67,173,.35), transparent 60%),
              radial-gradient(900px 500px at 10% 110%, rgba(40,146,109,.28), transparent 60%),
              var(--qr-dark);
  padding: 120px 0 130px;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 48px 48px; mask-image: radial-gradient(circle at 50% 40%, #000, transparent 75%);
}
.hero .container { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600;
  letter-spacing: .08em; color: var(--qr-accent); background: rgba(255,232,0,.1);
  border: 1px solid rgba(255,232,0,.25); padding: 7px 14px; border-radius: 999px; margin-bottom: 24px;
}
.hero h1 { font-size: clamp(34px, 5.2vw, 58px); line-height: 1.08; letter-spacing: -.02em; }
.hero h1 .grad {
  background: linear-gradient(90deg, var(--qr-primary), #4FD1A8 55%, var(--qr-accent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .lead { margin-top: 22px; font-size: 19px; color: rgba(255,255,255,.72); max-width: 520px; }
.hero-actions { margin-top: 36px; display: flex; gap: 16px; flex-wrap: wrap; }
.hero-trust { margin-top: 40px; display: flex; align-items: center; gap: 24px; color: rgba(255,255,255,.5); font-size: 13px; }
.hero-trust .dot { width: 4px; height: 4px; border-radius: 50%; background: rgba(255,255,255,.4); }

/* Hero visual (CSS-drawn device dashboard, no external image) */
.hero-visual { position: relative; }
.dash {
  background: linear-gradient(160deg, rgba(255,255,255,.10), rgba(255,255,255,.03));
  border: 1px solid rgba(255,255,255,.14); border-radius: 18px; padding: 22px;
  box-shadow: 0 30px 80px rgba(0,0,0,.45); backdrop-filter: blur(6px);
}
.dash-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.dash-top .t { font-size: 13px; font-weight: 600; color: rgba(255,255,255,.85); }
.dash-top .live { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: #4FD1A8; }
.dash-top .live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #4FD1A8; box-shadow: 0 0 0 4px rgba(79,209,168,.2); }
.dash-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.dash-card { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); border-radius: 12px; padding: 16px; }
.dash-card .k { font-size: 12px; color: rgba(255,255,255,.55); }
.dash-card .v { font-size: 26px; font-weight: 800; margin-top: 6px; }
.dash-card .v.g { color: #4FD1A8; } .dash-card .v.b { color: #8B90F0; } .dash-card .v.y { color: var(--qr-accent); } .dash-card .v.p { color: #F08BB0; }
.dash-bar { margin-top: 16px; height: 8px; border-radius: 6px; background: rgba(255,255,255,.1); overflow: hidden; }
.dash-bar i { display: block; height: 100%; width: 72%; background: linear-gradient(90deg, var(--qr-primary), #4FD1A8); }

/* ============================================================
   Metrics
   ============================================================ */
.metrics { background: var(--qr-dark); padding: 0 0 96px; }
.metrics .grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.metric { text-align: center; padding: 30px 18px; border-radius: var(--qr-radius); background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08); }
.metric .num { font-size: clamp(34px, 4vw, 48px); font-weight: 800; letter-spacing: -.02em; }
.metric:nth-child(1) .num { color: #4FD1A8; }
.metric:nth-child(2) .num { color: #8B90F0; }
.metric:nth-child(3) .num { color: var(--qr-accent); }
.metric:nth-child(4) .num { color: #F08BB0; }
.metric .lbl { margin-top: 8px; color: rgba(255,255,255,.6); font-size: 15px; }

/* ============================================================
   Cards (solutions / industries)
   ============================================================ */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: #fff; border: 1px solid var(--qr-border); border-radius: var(--qr-radius);
  padding: 30px; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--qr-shadow-lg); border-color: transparent; }
.card .icon {
  width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 20px;
  background: rgba(40,146,109,.1); color: var(--qr-primary);
}
.card .icon svg { width: 26px; height: 26px; }
.card h3 { font-size: 19px; margin-bottom: 10px; }
.card p { color: var(--qr-muted); font-size: 15px; }
.card .more { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; color: var(--qr-primary); font-weight: 600; font-size: 14px; }
.card .more svg { width: 16px; height: 16px; transition: transform .2s; }
.card:hover .more svg { transform: translateX(4px); }

/* industry tiles */
.industry-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tile {
  display: flex; align-items: center; gap: 16px; padding: 24px; border-radius: var(--qr-radius);
  background: #fff; border: 1px solid var(--qr-border); transition: all .25s ease;
}
.tile:hover { border-color: var(--qr-primary); box-shadow: var(--qr-shadow); transform: translateY(-4px); }
.tile .t-ico { width: 46px; height: 46px; flex: none; border-radius: 11px; display: grid; place-items: center; background: var(--qr-bg-soft); color: var(--qr-secondary); }
.tile .t-ico svg { width: 24px; height: 24px; }
.tile h4 { font-size: 16px; }
.tile span { font-size: 13px; color: var(--qr-muted); }

/* ============================================================
   Testimonials
   ============================================================ */
.quote-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.quote { background: #fff; border: 1px solid var(--qr-border); border-radius: var(--qr-radius); padding: 30px; box-shadow: var(--qr-shadow); }
.quote .stars { color: var(--qr-accent); font-size: 15px; letter-spacing: 2px; margin-bottom: 16px; }
.quote p { font-size: 16px; color: var(--qr-text); }
.quote .who { margin-top: 22px; display: flex; align-items: center; gap: 12px; }
.quote .avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; background: linear-gradient(135deg, var(--qr-primary), var(--qr-secondary)); }
.quote .who .n { font-weight: 700; font-size: 15px; }
.quote .who .r { font-size: 13px; color: var(--qr-muted); }

/* ============================================================
   CTA band
   ============================================================ */
.cta-band {
  background: linear-gradient(120deg, var(--qr-primary-dark), var(--qr-primary) 45%, var(--qr-secondary));
  color: #fff; border-radius: 24px; padding: 64px; text-align: center; position: relative; overflow: hidden;
}
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 300px at 85% 20%, rgba(255,232,0,.25), transparent 60%); }
.cta-band > * { position: relative; }
.cta-band h2 { font-size: clamp(26px, 3.6vw, 38px); }
.cta-band p { margin: 16px auto 0; max-width: 560px; color: rgba(255,255,255,.85); font-size: 17px; }
.cta-band .btn { margin-top: 30px; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer { background: var(--qr-dark); color: rgba(255,255,255,.6); padding: 72px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-brand .brand { color: #fff; margin-bottom: 16px; }
.footer-brand p { font-size: 14px; max-width: 300px; line-height: 1.7; }
.footer-col h5 { color: #fff; font-size: 14px; letter-spacing: .04em; margin-bottom: 18px; text-transform: uppercase; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col a { font-size: 14px; color: rgba(255,255,255,.6); transition: color .2s; }
.footer-col a:hover { color: var(--qr-accent); }
.footer-contact li { display: flex; flex-direction: column; gap: 3px; font-size: 14px; margin-bottom: 14px; }
.footer-contact .fc-label { font-size: 12px; color: rgba(255,255,255,.45); letter-spacing: .02em; }
.footer-contact a { font-size: 14px; color: rgba(255,255,255,.78); }
.footer-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; align-items: center; font-size: 13px; flex-wrap: wrap; gap: 12px; }
.footer-bottom .socials { display: flex; gap: 14px; }
.footer-bottom .socials a { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.06); color: rgba(255,255,255,.7); transition: .2s; }
.footer-bottom .socials a:hover { background: var(--qr-primary); color: #fff; }

/* ============================================================
   Generic page / content
   ============================================================ */
.page-hero { background: var(--qr-dark); color: #fff; padding: 80px 0; }
.page-hero h1 { font-size: clamp(30px, 4vw, 46px); }
.page-hero .crumb { color: rgba(255,255,255,.5); font-size: 14px; margin-bottom: 14px; }
.entry-content { max-width: 820px; margin: 0 auto; padding: 64px 24px; }
.entry-content h2 { margin: 32px 0 16px; font-size: 26px; }
.entry-content p { margin-bottom: 18px; color: var(--qr-text); }
.entry-content a { color: var(--qr-primary); }

/* 404 */
.error-404 { text-align: center; padding: 120px 24px; }
.error-404 .code { font-size: 120px; font-weight: 800; background: linear-gradient(90deg, var(--qr-primary), var(--qr-secondary)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.error-404 h1 { font-size: 28px; margin: 12px 0; }
.error-404 p { color: var(--qr-muted); margin-bottom: 28px; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 960px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .metrics .grid { grid-template-columns: repeat(2, 1fr); }
  .card-grid, .industry-grid, .quote-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .section { padding: 64px 0; }
  .main-nav {
    position: fixed; inset: var(--qr-header-h) 0 auto 0; background: #fff; border-bottom: 1px solid var(--qr-border);
    padding: 12px 24px 20px; transform: translateY(-140%); transition: transform .3s ease; box-shadow: var(--qr-shadow);
  }
  .main-nav.open { transform: translateY(0); }
  .main-nav ul { flex-direction: column; align-items: flex-start; gap: 4px; }
  .main-nav a { display: block; padding: 12px 0; width: 100%; }
  .nav-toggle { display: block; }
  .header-cta { display: none; }
  .card-grid, .industry-grid, .quote-grid, .metrics .grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 44px 24px; }
  .hero { padding: 80px 0 90px; }
}
