/* ============================================================
   Zepp Security Center — V2
   Design language aligned with zepp.com
   Font: Noto Sans | Primary: #1e1b3a | Footer: #c6dade
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:wght@400;500;600;700&display=swap');

/* ---- Reset ---- */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{font-size:16px;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;scroll-behavior:smooth}

body{
  font-family:"Noto Sans",sans-serif;
  color:#1e1b3a;
  background:#fff;
  line-height:1.7;
  min-height:100vh;
  display:flex;
  flex-direction:column;
}

a{color:#1e1b3a;text-decoration:none;transition:color .2s}
a:hover{color:#f9423a}
a:focus-visible,button:focus-visible{outline:3px solid rgba(249,66,58,.4);outline-offset:3px}
img{max-width:100%;height:auto}

.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.skip-link{position:fixed;top:8px;left:12px;z-index:1000;padding:8px 16px;background:#1e1b3a;color:#fff;border-radius:4px;transform:translateY(-150%);transition:transform .2s}
.skip-link:focus{transform:translateY(0)}

/* ---- Layout ---- */
.container{width:100%;max-width:1200px;margin:0 auto;padding:0 32px}

/* ---- Header / Nav ---- */
.site-header{
  position:fixed;top:0;left:0;right:0;z-index:100;
  height:64px;
  background:rgba(255,255,255,.95);
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
  border-bottom:1px solid rgba(30,27,58,.06);
  display:flex;align-items:center;
  transition:box-shadow .3s,background .3s;
}
.site-header.scrolled{
  background:#fff;
  box-shadow:0 4px 24px rgba(30,27,58,.08);
}
.header-inner{
  width:100%;max-width:1200px;margin:0 auto;padding:0 32px;
  display:flex;align-items:center;justify-content:space-between;
}
.header-logo{display:flex;align-items:center}
.header-logo img{height:26px;width:auto}

.main-nav{display:flex;gap:2px}
.main-nav a{
  padding:8px 16px;font-size:14px;font-weight:500;
  color:#555;border-radius:6px;transition:all .2s;
}
.main-nav a:hover{color:#1e1b3a;background:rgba(30,27,58,.04)}
.main-nav a.active{color:#1e1b3a;font-weight:600;background:rgba(30,27,58,.06)}

.mobile-toggle{display:none;flex-direction:column;gap:5px;cursor:pointer;padding:8px;background:none;border:none}
.mobile-toggle span{display:block;width:22px;height:2px;background:#1e1b3a;border-radius:1px;transition:all .2s}

/* ---- Hero Section ---- */
.page-hero{
  padding:calc(64px + 64px) 0 48px;
  position:relative;
}
.page-hero::after{
  content:'';position:absolute;bottom:0;left:0;right:0;height:1px;
  background:linear-gradient(90deg,transparent,rgba(30,27,58,.08),transparent);
}
.page-hero h1{
  font-size:36px;font-weight:700;color:#1e1b3a;
  margin-bottom:12px;letter-spacing:-.02em;line-height:1.2;
  animation:fadeUp .6s ease-out;
}
.page-hero .subtitle{
  font-size:16px;color:#666;max-width:700px;line-height:1.8;
  animation:fadeUp .6s ease-out .1s both;
}

@keyframes fadeUp{
  from{opacity:0;transform:translateY(16px)}
  to{opacity:1;transform:translateY(0)}
}

/* ---- Content Sections ---- */
.content-section{padding:56px 0}
.content-section.bg-alt{background:#f5f7fa}
.section-title{
  font-size:24px;font-weight:700;color:#1e1b3a;
  margin-bottom:16px;letter-spacing:-.01em;
}
.section-subtitle{
  font-size:15px;color:#666;max-width:700px;
  line-height:1.8;margin-bottom:28px;
}

/* ---- Cards ---- */
.cards-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:24px}
.card{
  padding:28px;
  background:#fff;
  border:1px solid rgba(30,27,58,.08);
  border-radius:12px;
  transition:transform .25s,box-shadow .25s,border-color .25s;
}
.card:hover{
  transform:translateY(-2px);
  box-shadow:0 12px 32px rgba(30,27,58,.08);
  border-color:rgba(30,27,58,.14);
}
.card .card-icon{
  width:44px;height:44px;margin-bottom:16px;
  display:flex;align-items:center;justify-content:center;
  background:rgba(198,218,222,.3);border-radius:10px;
}
.card .card-icon svg{width:24px;height:24px}
.card h3{font-size:18px;font-weight:600;margin-bottom:8px;color:#1e1b3a}
.card p{font-size:14px;color:#666;line-height:1.7}

/* ---- Process Steps ---- */
.process-steps{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:20px;counter-reset:step}
.process-step{
  padding:24px;
  background:#fff;
  border:1px solid rgba(30,27,58,.08);
  border-radius:12px;
  transition:transform .25s,box-shadow .25s;
}
.process-step:hover{
  transform:translateY(-2px);
  box-shadow:0 8px 24px rgba(30,27,58,.06);
}
.process-step::before{
  counter-increment:step;content:counter(step);
  display:inline-flex;align-items:center;justify-content:center;
  width:36px;height:36px;border-radius:50%;
  background:#1e1b3a;color:#fff;
  font-weight:700;font-size:15px;margin-bottom:12px;
}
.process-step h3{font-size:16px;font-weight:600;margin-bottom:6px;color:#1e1b3a}
.process-step p{font-size:13px;color:#666;line-height:1.6}

/* ---- Info Cards ---- */
.info-card{
  border:1px solid rgba(30,27,58,.08);
  border-radius:12px;padding:24px;margin-bottom:16px;
  background:#fff;
  transition:box-shadow .2s;
}
.info-card:hover{box-shadow:0 4px 16px rgba(30,27,58,.05)}
.info-card .info-label{
  font-size:11px;font-weight:600;text-transform:uppercase;
  letter-spacing:.08em;color:#f9423a;margin-bottom:8px;
}
.info-card h3{font-size:17px;margin-bottom:8px;color:#1e1b3a}
.info-card p,.info-card ul{font-size:14px;color:#555;line-height:1.8}
.info-card ul{padding-left:20px;list-style:disc}
.info-card ul li{margin-bottom:3px}

/* ---- Note / Warning Boxes ---- */
.note-box{
  background:rgba(198,218,222,.15);
  border-left:3px solid #1e1b3a;
  padding:14px 20px;margin:16px 0;
  font-size:14px;color:#555;line-height:1.7;
  border-radius:0 8px 8px 0;
}
.note-box strong{color:#1e1b3a}
.warning-box{
  background:#fff8ee;border-left:3px solid #f59e0b;
  padding:14px 20px;margin:16px 0;
  font-size:14px;line-height:1.7;
  border-radius:0 8px 8px 0;
}

/* ---- Email Link ---- */
.email-link{
  display:inline-block;padding:10px 24px;
  border:2px solid #1e1b3a;border-radius:8px;
  font-size:16px;font-weight:600;color:#1e1b3a;
  margin:12px 0;transition:all .2s;
}
.email-link:hover{
  background:#1e1b3a;color:#fff;
  border-color:#1e1b3a;text-decoration:none;
}

/* ---- Data Table ---- */
.table-wrapper{
  overflow-x:auto;
  border:1px solid rgba(30,27,58,.08);
  border-radius:12px;
  box-shadow:0 4px 16px rgba(30,27,58,.04);
}
.data-table{width:100%;border-collapse:collapse;font-size:14px}
.data-table thead{background:#f5f7fa}
.data-table th{
  padding:14px 16px;text-align:left;
  font-weight:600;font-size:12px;text-transform:uppercase;
  letter-spacing:.04em;color:#595959;white-space:nowrap;
  border-bottom:2px solid rgba(30,27,58,.06);
}
.data-table td{padding:14px 16px;border-bottom:1px solid rgba(30,27,58,.04)}
.data-table tbody tr:last-child td{border-bottom:none}
.data-table tbody tr:hover{background:rgba(198,218,222,.08)}
.data-table .product-name{font-weight:600;color:#1e1b3a}
.data-table .doc-link{font-size:13px;color:#1e1b3a;text-decoration:underline;text-decoration-color:rgba(30,27,58,.2);text-underline-offset:2px;transition:text-decoration-color .2s}
.data-table .doc-link:hover{color:#f9423a;text-decoration-color:#f9423a}
.doc-label{
  display:inline-block;padding:2px 8px;border-radius:4px;
  font-size:11px;font-weight:600;letter-spacing:.03em;
  background:rgba(30,27,58,.08);color:#1e1b3a;margin-right:4px;
}

/* ---- EOL Grid ---- */
.eol-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:8px}
.eol-item{
  padding:8px 14px;
  border:1px solid rgba(30,27,58,.08);
  border-radius:8px;font-size:13px;color:#555;
  background:#fff;
  transition:border-color .2s,box-shadow .2s;
}
.eol-item:hover{border-color:rgba(30,27,58,.16);box-shadow:0 2px 8px rgba(30,27,58,.04)}

/* ---- Rewards Table ---- */
.rewards-table{
  width:100%;border-collapse:collapse;
  border:1px solid rgba(30,27,58,.08);
  border-radius:12px;overflow:hidden;
  box-shadow:0 4px 16px rgba(30,27,58,.04);
}
.rewards-table th{
  background:#1e1b3a;color:#fff;
  padding:14px 16px;text-align:left;
  font-size:13px;font-weight:600;letter-spacing:.02em;
}
.rewards-table td{padding:14px 16px;border-bottom:1px solid rgba(30,27,58,.04)}
.rewards-table tbody tr:last-child td{border-bottom:none}
.rewards-table tbody tr:hover{background:rgba(198,218,222,.08)}

.level-badge{
  display:inline-block;padding:3px 12px;
  border-radius:20px;font-size:12px;font-weight:600;
}
.level-critical{background:#fef2f2;color:#dc2626}
.level-high{background:#fff7ed;color:#ea580c}
.level-medium{background:#fefce8;color:#ca8a04}
.level-low{background:#f0fdf4;color:#16a34a}
.level-invalid{background:#f5f5f5;color:#5f5f5f}

/* ---- Status Badges ---- */
.status-badge{
  display:inline-block;padding:3px 12px;
  border-radius:20px;font-size:12px;font-weight:600;
  white-space:nowrap;
}
.status-fixed{background:rgba(16,185,129,.1);color:#16a34a}
.status-mitigated{background:rgba(30,27,58,.08);color:#1e1b3a}
.status-investigating{background:rgba(245,158,11,.1);color:#ea580c}

/* ---- Bounty Specs ---- */
.bounty-specs{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:16px;margin-bottom:24px}
.bounty-spec{
  text-align:center;padding:28px 16px;
  border:1px solid rgba(30,27,58,.08);
  border-radius:12px;background:#fff;
  transition:transform .25s,box-shadow .25s;
}
.bounty-spec:hover{transform:translateY(-2px);box-shadow:0 8px 24px rgba(30,27,58,.06)}
.bounty-spec .spec-value{font-size:32px;font-weight:700;color:#1e1b3a;margin-bottom:4px;letter-spacing:-.02em}
.bounty-spec .spec-label{font-size:13px;color:#666}

/* ---- Tags ---- */
.tag{display:inline-block;padding:3px 12px;border-radius:20px;font-size:12px;font-weight:500}
.tag-red{background:rgba(239,68,68,.1);color:#dc2626}
.tag-orange{background:rgba(245,158,11,.1);color:#ea580c}
.tag-blue{background:rgba(30,27,58,.08);color:#1e1b3a}
.tag-green{background:rgba(16,185,129,.1);color:#16a34a}

/* ---- Role Table ---- */
.role-table{
  width:100%;border-collapse:collapse;
  background:#fff;border-radius:12px;overflow:hidden;
  box-shadow:0 1px 4px rgba(30,27,58,.06);
}
.role-table thead th{
  background:#1e1b3a;color:#fff;
  font-size:14px;font-weight:600;text-align:left;
  padding:14px 24px;letter-spacing:.02em;
}
.role-table tbody td{
  padding:18px 24px;font-size:14px;line-height:1.7;color:#555;
  border-bottom:1px solid rgba(30,27,58,.06);
  vertical-align:top;
}
.role-table tbody tr:last-child td{border-bottom:none}
.role-table .role-name{
  font-weight:600;color:#1e1b3a;white-space:nowrap;width:200px;
}
.role-table tbody tr:hover{background:rgba(198,218,222,.12)}

/* ---- Report Form Section ---- */
.report-section{border-top:1px solid rgba(30,27,58,.06);background:#f5f7fa}
.report-container{width:100%}
.report-heading{max-width:900px;margin-bottom:20px}
.report-heading .section-title{margin-bottom:8px}
.report-heading .section-subtitle{margin-bottom:0}
.report-heading .info-label{
  font-size:11px;font-weight:600;text-transform:uppercase;
  letter-spacing:.08em;color:#f9423a;margin-bottom:8px;
}
.report-notice{
  margin-bottom:16px;padding:14px 20px;
  border-left:3px solid #1e1b3a;
  background:#fff;color:#555;font-size:14px;line-height:1.7;
  border-radius:0 8px 8px 0;
}
.report-notice strong{color:#1e1b3a}
.report-frame-wrap{
  position:relative;overflow:hidden;width:100%;
  height:clamp(680px,78dvh,860px);
  border:1px solid rgba(30,27,58,.08);
  border-radius:12px;background:#fff;
  box-shadow:0 8px 32px rgba(30,27,58,.06);
}
.report-frame{display:block;width:100%;height:100%;border:0;background:#fff}
.report-help,.report-fallback{margin-top:14px;color:#666;font-size:13px;line-height:1.7}
.report-help a,.report-fallback a{font-weight:600;color:#1e1b3a;text-decoration:underline;text-underline-offset:2px}
.report-help a:hover,.report-fallback a:hover{color:#f9423a}

/* ---- Footer (zepp.com style: mint background) ---- */
.site-footer{
  background:#c6dade;
  color:#1e1b3a;
  padding:64px 0 32px;
  margin-top:auto;
  font-size:14px;
}
.footer-inner{max-width:1200px;margin:0 auto;padding:0 32px}
.footer-top{
  display:flex;justify-content:space-between;gap:40px;
  padding-bottom:32px;
  border-bottom:1px solid rgba(30,27,58,.1);
  flex-wrap:wrap;
}
.footer-brand{max-width:260px}
.footer-brand img{display:block;width:92px;height:28px;max-width:none;object-fit:contain;object-position:left center;margin-bottom:12px}
.footer-brand p{font-size:13px;color:rgba(30,27,58,.7);line-height:1.7}
.footer-social{display:flex;gap:10px;margin-top:14px}
.footer-social a{
  display:flex;align-items:center;justify-content:center;
  width:36px;height:36px;border-radius:50%;
  background:rgba(30,27,58,.08);
  transition:background .2s,transform .2s;
}
.footer-social a:hover{background:rgba(30,27,58,.16);transform:translateY(-1px)}
.footer-social svg{width:16px;height:16px}
.footer-links{display:grid;grid-template-columns:repeat(6,1fr);gap:24px;flex:1}
.footer-col h4{
  font-size:14px;font-weight:700;
  color:#1e1b3a;margin-bottom:14px;
}
.footer-col a{
  display:block;font-size:14px;
  color:rgba(30,27,58,.6);
  padding:4px 0;transition:color .2s;
}
.footer-col a:hover{color:#1e1b3a;text-decoration:none}
.footer-bottom{
  padding-top:24px;
  display:flex;align-items:center;justify-content:space-between;
  flex-wrap:wrap;gap:10px;
}
.footer-bottom p{font-size:13px;color:rgba(30,27,58,.6)}
.footer-icp a{font-size:13px;color:rgba(30,27,58,.7)}
.footer-icp a:hover{color:#1e1b3a;text-decoration:none}

/* ---- Vulnerability Rating Rules (v4.0 + Hanshow-style table) ---- */
.cvss-mark{
  display:inline-block;
  background:linear-gradient(180deg,transparent 62%,#fde68a 62%,#fde68a 92%,transparent 92%);
  padding:0 4px;font-weight:700;color:#1e1b3a;border-radius:2px;
}
.assessment-panel{
  background:linear-gradient(135deg,#f5f7fa 0%,rgba(198,218,222,.18) 100%);
  border:1px solid rgba(30,27,58,.08);
}
.factor-list{list-style:none;padding:0;margin:12px 0 0}
.factor-list li{
  position:relative;padding:10px 0 10px 28px;
  font-size:14px;color:#555;line-height:1.7;
  border-bottom:1px dashed rgba(30,27,58,.08);
}
.factor-list li:last-child{border-bottom:none}
.factor-list li::before{
  content:'';position:absolute;left:0;top:18px;
  width:18px;height:2px;background:#f9423a;border-radius:1px;
}
.rating-table{
  width:100%;border-collapse:collapse;font-size:14px;
  background:#fff;border-radius:12px;overflow:hidden;
  box-shadow:0 4px 16px rgba(30,27,58,.04);
}
.rating-table thead{background:#1e1b3a;color:#fff}
.rating-table thead th{
  padding:14px 16px;text-align:left;font-weight:600;font-size:13px;
  letter-spacing:.02em;white-space:nowrap;color:#fff;
}
.rating-table td{
  padding:16px;border-bottom:1px solid rgba(30,27,58,.06);
  vertical-align:top;color:#555;line-height:1.7;
}
.rating-table tbody tr:last-child td{border-bottom:none}
.rating-table tbody tr:hover{background:rgba(198,218,222,.10)}
.rating-table td:nth-child(2),
.rating-table td:nth-child(4){white-space:nowrap;color:#1e1b3a;font-weight:600}

/* ---- Responsive ---- */
@media(max-width:1024px){
  .footer-links{grid-template-columns:repeat(3,1fr)}
}
@media(max-width:768px){
  .mobile-toggle{display:flex}
  .main-nav{
    position:fixed;top:64px;left:0;right:0;
    background:#fff;flex-direction:column;padding:16px;
    border-bottom:1px solid rgba(30,27,58,.08);
    transform:translateY(-100%);opacity:0;visibility:hidden;pointer-events:none;
    transition:transform .3s,opacity .3s,visibility 0s linear .3s;
    box-shadow:0 8px 24px rgba(30,27,58,.06);
  }
  .main-nav.open{transform:translateY(0);opacity:1;visibility:visible;pointer-events:auto;transition-delay:0s}
  .main-nav a{width:100%;padding:12px 16px}
  .cards-grid,.process-steps{grid-template-columns:1fr}
  .role-table .role-name{width:auto;white-space:normal}
  .footer-top{flex-direction:column}
  .footer-links{grid-template-columns:repeat(2,1fr);width:100%}
  .footer-bottom{flex-direction:column;text-align:center}
  .page-hero{padding-top:calc(64px + 32px)}
  .page-hero h1{font-size:28px}
  .content-section{padding:32px 0}
  .container{padding:0 20px}
  .header-inner{padding:0 20px}
  .footer-inner{padding:0 20px}
  .report-frame-wrap{height:clamp(640px,78dvh,760px)}
}
@media(max-width:480px){
  .container{padding:0 16px}
  .header-inner{padding:0 16px}
  .footer-inner{padding:0 16px}
  .report-frame-wrap{height:680px;border-radius:8px}
  .page-hero h1{font-size:24px}
}
