/* ===================================================================
   💻 股研 · 网站端研究报告样式 v6.0（藏蓝+金色系）
   基于《研股首次覆盖报告排版与写作规范 v1.1》
   色系：藏蓝 #1a3a5c + 金色 #c8a44e | 红涨绿跌（A股传统）
   =================================================================== */

:root {
  --navy: #1a3a5c;
  --navy-light: #2c5784;
  --navy-dark: #0f2742;
  --gold: #c8a44e;
  --gold-light: #e0c270;
  --rise: #c0392b;
  --rise-light: #e74c3c;
  --rise-bg: #fdeaea;
  --fall: #2d7d46;
  --fall-light: #3da658;
  --fall-bg: #e8f5ed;
  --gray: #7f8c8d;
  --gray-light: #bdc3c7;
  --gray-bg: #f4f4f4;
  --white: #fff;
  --dark: #1a1a2e;
  --radius: 8px;
  --shadow: 0 2px 12px rgba(0,0,0,.08);
}

*{margin:0;padding:0;box-sizing:border-box}
body{
  font-family:"PingFang SC","Microsoft YaHei","Helvetica Neue",Arial,sans-serif;
  background:#f5f6fa;
  color:#333;
  line-height:1.8;
  padding:20px
}
.report-container{
  max-width:900px;
  margin:0 auto;
  background:#fff;
  border-radius:12px;
  box-shadow:var(--shadow);
  overflow:hidden
}

/* ===== NAV ===== */
.nav-bar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:12px 24px;
  background:var(--gray-bg);
  border-bottom:1px solid #e8e8e8
}
.nav-bar a{font-size:13px;color:var(--navy);text-decoration:none}
.nav-bar a:hover{color:var(--gold);text-decoration:underline}
.nav-bar .btn-print{
  display:inline-block;
  background:var(--navy);
  color:#fff !important;
  padding:5px 14px;
  border-radius:4px;
  font-size:12px;
  text-decoration:none
}
.nav-bar .btn-print:hover{background:var(--navy-light);text-decoration:none}

/* ===== HEADER ===== */
.report-header{
  background:linear-gradient(135deg,var(--navy-dark),var(--navy),var(--navy-light));
  color:#fff;
  padding:36px 28px 28px;
  position:relative;
  overflow:hidden
}
.report-header::before{
  content:'';
  position:absolute;
  top:0;left:0;right:0;bottom:0;
  background:url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 5L35 25H55L38 37L45 57L30 45L15 57L22 37L5 25H25Z' fill='white' opacity='0.03'/%3E%3C/svg%3E") repeat;
  pointer-events:none
}
.report-header .tag{
  display:inline-block;
  background:rgba(200,164,78,.2);
  border:1px solid var(--gold);
  color:var(--gold-light);
  padding:3px 14px;
  border-radius:20px;
  font-size:11px;
  font-weight:600;
  letter-spacing:.5px;
  margin-bottom:10px;
  position:relative
}
.report-header h1{
  font-size:24px;
  font-weight:700;
  line-height:1.35;
  margin-bottom:6px;
  position:relative
}
.report-header .subtitle{
  font-size:14px;
  color:rgba(255,255,255,.7);
  line-height:1.6;
  max-width:800px;
  position:relative
}
.rating-box{
  display:flex;
  gap:1px;
  margin:16px 0 12px;
  max-width:600px;
  position:relative
}
.rating-item{
  flex:1;
  background:rgba(255,255,255,.1);
  padding:12px;
  text-align:center;
  min-width:80px
}
.rating-item:first-child{border-radius:6px 0 0 6px}
.rating-item:last-child{border-radius:0 6px 6px 0}
.rating-item .label{font-size:11px;color:rgba(255,255,255,.6);margin-bottom:4px}
.rating-item .value{font-size:22px;font-weight:700}
.rating-item .value.rise{color:var(--rise-light)}
.rating-item .value.gold{color:var(--gold-light)}
.rating-item .value.navy{color:#fff}
.report-header .meta{
  font-size:12px;
  color:rgba(255,255,255,.5);
  margin-top:4px;
  position:relative
}
.report-header .meta span{margin-right:16px}

/* ===== SECTION ===== */
.section{padding:28px 24px;border-bottom:2px solid var(--gray-bg)}
.section:last-child{border-bottom:none}

.section-title{
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom:20px;
  font-size:20px;
  font-weight:700;
  color:var(--navy)
}
.section-title .num{
  width:34px;height:34px;
  background:var(--navy);
  color:#fff;
  border-radius:6px;
  font-size:15px;
  font-weight:700;
  display:flex;align-items:center;justify-content:center;
  flex-shrink:0
}

.section-subtitle{
  font-size:16px;
  font-weight:600;
  color:var(--navy);
  margin:20px 0 10px;
  padding-left:12px;
  border-left:3px solid var(--gold);
  line-height:1.4
}

p{
  font-size:14px;
  color:#5a6c7d;
  line-height:1.8;
  margin:8px 0;
  text-align:justify
}
strong{color:var(--navy)}

/* ===== SUMMARY-GRID ===== */
.summary-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(140px,1fr));
  gap:10px;
  margin:14px 0
}
.summary-card{
  background:var(--gray-bg);
  border-radius:var(--radius);
  padding:14px;
  text-align:center
}
.summary-card .label{font-size:11px;color:var(--gray);margin-bottom:4px}
.summary-card .value{font-size:18px;font-weight:700;color:var(--navy)}
.summary-card .change{font-size:11px;margin-top:3px}
.summary-card .change.up{color:var(--rise)}
.summary-card .change.down{color:var(--fall)}

/* ===== THESIS-CARD ===== */
.thesis-card{
  background:linear-gradient(135deg,#f8fafc,#eef2f7);
  border-left:4px solid var(--gold);
  border-radius:0 var(--radius) var(--radius) 0;
  padding:18px 20px;
  margin:12px 0
}
.thesis-card h4{
  font-size:15px;
  font-weight:700;
  color:var(--navy);
  margin-bottom:6px;
  display:flex;align-items:center;gap:8px
}
.thesis-card .badge{
  background:var(--gold);
  color:#fff;
  font-size:10px;
  padding:2px 8px;
  border-radius:3px;
  font-weight:600
}
.thesis-card p{font-size:14px;color:#5a6c7d;line-height:1.7;margin:0}

/* ===== CALLOUT ===== */
.callout{
  background:#eef5fc;
  border-left:4px solid var(--navy);
  padding:14px 18px;
  margin:14px 0;
  border-radius:0 var(--radius) var(--radius) 0
}
.callout p{font-size:14px;color:#5a6c7d;margin:2px 0}
.callout strong{color:var(--navy)}
.callout-warn{
  background:#fefcf0;
  border-left-color:var(--gold)
}

/* ===== TABLE ===== */
.table-wrap{
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
  margin:14px 0;
  border-radius:var(--radius);
  border:1px solid #e0e0e0
}
table{
  width:100%;
  border-collapse:collapse;
  font-size:13px;
  min-width:500px
}
table thead{background:var(--navy);color:#fff}
table th{
  padding:9px 10px;
  text-align:left;
  font-weight:600;
  font-size:12px;
  white-space:nowrap
}
table td{
  padding:7px 10px;
  border-bottom:1px solid #eee;
  text-align:right;
  white-space:nowrap
}
table td:first-child,
table th:first-child{text-align:left}
table tbody tr:nth-child(even){background:var(--gray-bg)}
table tbody tr:hover{background:#eef5fc}
table .pos{color:var(--rise);font-weight:600}
table .neg{color:var(--fall);font-weight:600}
table .highlight{background:#fefcf0!important;font-weight:600}
.source{font-size:11px;color:var(--gray);margin-top:2px;text-align:left}

/* ===== KPI ===== */
.kpi-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(130px,1fr));
  gap:10px;
  margin:14px 0
}
.kpi-item{
  background:var(--gray-bg);
  border-radius:var(--radius);
  padding:12px 10px;
  text-align:center
}
.kpi-item .value{font-size:18px;font-weight:700;margin:3px 0}
.kpi-item .value.rise{color:var(--rise)}
.kpi-item .value.fall{color:var(--fall)}
.kpi-item .label{font-size:11px;color:var(--gray);line-height:1.3}

/* ===== TAG ===== */
.tag-navy{display:inline-block;background:var(--navy);color:#fff;padding:2px 10px;border-radius:4px;font-size:11px;font-weight:600;margin:1px}
.tag-gold{display:inline-block;background:var(--gold);color:#fff;padding:2px 10px;border-radius:4px;font-size:11px;font-weight:600;margin:1px}
.tag-red{display:inline-block;background:var(--rise);color:#fff;padding:2px 10px;border-radius:4px;font-size:11px;font-weight:600;margin:1px}
.tag-green{display:inline-block;background:var(--fall);color:#fff;padding:2px 10px;border-radius:4px;font-size:11px;font-weight:600;margin:1px}

/* ===== NOTICE ===== */
.notice{
  background:#fff8e1;
  border-left:4px solid var(--gold);
  padding:12px 16px;
  margin:14px 0;
  border-radius:0 var(--radius) var(--radius) 0;
  font-size:13px;line-height:1.7;color:#5a6c7d
}
.notice strong{color:var(--navy)}

/* ===== RISK ===== */
.risk-item{
  display:flex;gap:10px;
  padding:10px 0;
  border-bottom:1px solid #eee
}
.risk-item:last-child{border-bottom:none}
.risk-badge{
  display:inline-block;
  padding:1px 8px;border-radius:3px;
  font-size:10px;font-weight:600;color:#fff;
  flex-shrink:0;margin-top:2px
}
.risk-high{background:var(--rise)}
.risk-med{background:#e67e22}
.risk-low{background:var(--fall)}
.risk-content h5{font-size:14px;font-weight:600;color:var(--navy);margin-bottom:2px}
.risk-content p{font-size:13px;color:#5a6c7d;line-height:1.6;margin:0}

/* ===== CHARTS ===== */
.chart-img{width:100%;border-radius:var(--radius);margin:12px 0;border:1px solid #e0e0e0}

/* ===== DIVIDER ===== */
.section-divider{text-align:center;color:#ddd;font-size:12px;letter-spacing:6px;margin:18px 0}

/* ===== DISCLAIMER ===== */
.disclaimer{
  background:var(--navy-dark);
  color:rgba(255,255,255,.6);
  padding:28px 24px;
  font-size:12px;
  text-align:center;
  line-height:1.8
}
.disclaimer strong{color:rgba(255,255,255,.8)}
.disclaimer .qr-wrapper{text-align:center;margin:10px 0}
.disclaimer .qr-wrapper img{max-width:110px;border-radius:6px}
.disclaimer .qr-wrapper p{color:rgba(255,255,255,.5);font-size:11px;margin:2px 0}

/* ===== UP/DOWN COLORS ===== */
.up{color:var(--rise);font-weight:600}
.down{color:var(--fall);font-weight:600}
.neutral{color:var(--gray)}
.pos{color:var(--rise);font-weight:600}
.neg{color:var(--fall);font-weight:600}
.orange{color:#e67e22;font-weight:600}
.hl-red{color:var(--rise);font-weight:600}
.hl-blue{color:#2980b9;font-weight:600}

/* ===== STOCK LINK ===== */
.stock-link{color:var(--rise);text-decoration:none;font-weight:600;border-bottom:1.5px dashed #e8a0a0}

/* ===== MISC ===== */
ul{margin:6px 0 6px 18px}
ul li{font-size:14px;color:#5a6c7d;line-height:1.8;margin-bottom:2px}
.highlight-box{background:#fefcf0;border-left:4px solid var(--gold);padding:12px 16px;margin:12px 0;border-radius:0 var(--radius) var(--radius) 0}
.highlight-box p{font-size:14px;margin:3px 0;color:#5a6c7d}
.conclusion-box{background:var(--gray-bg);padding:12px 16px;margin:12px 0;border:1px solid #e0e0e0;border-radius:var(--radius)}
.key-takeaway{background:#eef5fc;border-left:4px solid var(--navy);padding:14px 18px;margin:14px 0;border-radius:0 var(--radius) var(--radius) 0;font-size:14px;line-height:1.7}
.key-takeaway strong{color:var(--navy)}
.key-takeaway p{font-size:14px;color:#5a6c7d;margin:2px 0}
.section-divider{text-align:center;color:#ddd;font-size:12px;letter-spacing:6px;margin:18px 0;user-select:none}
.risk-note{background:var(--gray-bg);padding:10px 14px;font-size:12px;color:var(--gray);line-height:1.6;border-top:2px solid var(--gold);margin-top:12px}
.risk-note strong{color:#555}

/* ===== RESPONSIVE ===== */
@media(max-width:768px){
  body{padding:0;background:#fff}
  .report-container{border-radius:0;box-shadow:none}
  .nav-bar{padding:10px 14px}
  .report-header{padding:24px 16px 20px}
  .report-header h1{font-size:20px}
  .report-header .subtitle{font-size:13px}
  .rating-box{flex-wrap:wrap}
  .rating-item{min-width:45%;padding:10px 8px}
  .rating-item:first-child{border-radius:6px 0 0 0}
  .rating-item:nth-child(2){border-radius:0 6px 0 0}
  .rating-item:nth-child(3){border-radius:0 0 0 6px}
  .rating-item:last-child{border-radius:0 0 6px 0}
  .rating-item .value{font-size:18px}
  .section{padding:20px 14px}
  .section-title{font-size:18px}
  .section-title .num{width:30px;height:30px;font-size:13px}
  .summary-grid{grid-template-columns:repeat(2,1fr);gap:8px}
  .summary-card{padding:10px}
  .summary-card .value{font-size:16px}
  .kpi-grid{grid-template-columns:repeat(2,1fr);gap:8px}
  .kpi-item .value{font-size:16px}
  .thesis-card{padding:14px 16px}
  table{font-size:12px;min-width:400px}
  table th,table td{padding:6px 8px}
  .disclaimer{padding:20px 14px;font-size:11px}
}
