/* ============================================================
   易特科技官网 - 前台样式
   品牌色：黑 #111111 + 橙 #FF6600
   ============================================================ */
:root {
  --brand: #FF6600;
  --brand-dark: #E05A00;
  --brand-light: #FFF1E8;
  --ink: #111111;
  --ink-soft: #2a2a2a;
  --text: #333333;
  --muted: #777777;
  --line: #e8e5e0;
  --bg: #ffffff;
  --bg-alt: #f8f6f3;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(17, 17, 17, 0.06);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { max-width: 1160px; margin: 0 auto; padding: 0 20px; }

/* ---------------- 顶部导航 ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 40px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text b { font-size: 20px; color: var(--ink); letter-spacing: 2px; }
.brand-text small { font-size: 12px; color: var(--muted); }
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  padding: 8px 14px; border-radius: 8px; font-size: 15px; color: var(--ink-soft);
  transition: background .2s, color .2s;
}
.main-nav a:hover { background: var(--brand-light); color: var(--brand-dark); }
.main-nav a.active { color: var(--brand-dark); font-weight: 600; background: var(--brand-light); }
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: 0; cursor: pointer; padding: 8px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; }

/* ---------------- 按钮 ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 28px; border-radius: 10px; font-size: 15px; font-weight: 600;
  border: 1px solid transparent; cursor: pointer; transition: all .2s; line-height: 1.4;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-ghost { background: #fff; color: var(--ink); border-color: #d9d5cf; }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand-dark); }
.btn-block { width: 100%; margin-top: 10px; }

/* ---------------- Hero ---------------- */
.hero {
  background: linear-gradient(135deg, #171717 0%, var(--ink) 55%, #2b2200 100%);
  color: #fff; padding: 90px 0 70px; overflow: hidden; position: relative;
}
.hero::after {
  content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px;
  border-radius: 50%; background: radial-gradient(circle, rgba(255,102,0,.28), transparent 65%);
}
.hero-inner { position: relative; z-index: 1; }
.hero-eyebrow { color: var(--brand); letter-spacing: 4px; font-size: 14px; margin-bottom: 18px; }
.hero h1 { font-size: 46px; line-height: 1.25; font-weight: 800; }
.hero h1 span { color: var(--brand); }
.hero-sub { margin-top: 18px; color: rgba(255,255,255,.82); font-size: 17px; }
.hero-actions { margin-top: 30px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero-actions .btn-primary { background: var(--brand); }
.hero-actions .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.hero-actions .btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.hero-stats {
  margin-top: 46px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  border-top: 1px solid rgba(255,255,255,.14); padding-top: 26px;
}
.hero-stats b { display: block; font-size: 28px; color: var(--brand); }
.hero-stats span { font-size: 13px; color: rgba(255,255,255,.72); }

/* ---------------- 区块 ---------------- */
.section { padding: 70px 0; }
.section-alt { background: var(--bg-alt); }
.section-title { font-size: 30px; color: var(--ink); font-weight: 800; text-align: center; }
.section-sub { text-align: center; color: var(--muted); margin-top: 8px; margin-bottom: 38px; }

/* ---------------- 卡片 ---------------- */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow);
}
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.biz-card { text-align: center; }
.biz-icon { display: inline-flex; font-size: 30px; margin-bottom: 12px; }
.biz-card h3 { font-size: 19px; color: var(--ink); margin-bottom: 8px; }
.biz-card p { color: var(--muted); font-size: 14px; }
.sol-card { display: block; transition: transform .2s, border-color .2s; }
.sol-card:hover { transform: translateY(-4px); border-color: var(--brand); }
.sol-card .biz-icon { font-size: 26px; }
.sol-card h3 { font-size: 19px; color: var(--ink); margin: 10px 0 8px; }
.sol-card p { color: var(--muted); font-size: 14px; }
.sol-card .more { color: var(--brand); font-size: 14px; font-weight: 600; display: inline-block; margin-top: 10px; }
.tag {
  display: inline-block; padding: 2px 10px; border-radius: 20px; font-size: 12px;
  background: var(--brand-light); color: var(--brand-dark); font-weight: 600;
}

/* ---------------- 合作模式/服务流程 ---------------- */
.mode-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.mode-step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.mode-step b { font-size: 26px; color: var(--brand); font-weight: 800; }
.mode-step h3 { font-size: 17px; color: var(--ink); margin: 10px 0 6px; }
.mode-step p { font-size: 14px; color: var(--muted); }

/* ---------------- 案例 ---------------- */
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.case-card { display: block; transition: transform .2s, border-color .2s; }
.case-card:hover { transform: translateY(-4px); border-color: var(--brand); }
.case-card h3 { font-size: 18px; color: var(--ink); margin-bottom: 8px; }
.case-card p { color: var(--muted); font-size: 14px; }
.case-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.case-meta span {
  font-size: 12px; color: var(--muted); background: var(--bg-alt);
  padding: 3px 10px; border-radius: 20px; border: 1px solid var(--line);
}

/* ---------------- 新闻 ---------------- */
.news-list { max-width: 860px; margin: 0 auto; }
.news-item {
  display: flex; gap: 18px; padding: 20px 8px; border-bottom: 1px solid var(--line);
  transition: background .2s;
}
.news-item:hover { background: var(--bg-alt); }
.news-date { flex-shrink: 0; color: var(--brand); font-size: 13px; font-weight: 600; padding-top: 4px; }
.news-item h3 { font-size: 17px; color: var(--ink); }
.news-item p { color: var(--muted); font-size: 14px; margin-top: 4px; }
.news-meta { font-size: 12px; color: var(--muted); }
.news-title { font-size: 26px; color: var(--ink); line-height: 1.4; }
.news-summary { color: var(--muted); border-left: 3px solid var(--brand); padding-left: 12px; margin: 12px 0; }

/* ---------------- CTA ---------------- */
.cta { background: var(--ink); color: #fff; text-align: center; padding: 60px 20px; }
.cta h2 { font-size: 26px; }
.cta p { color: rgba(255,255,255,.75); margin: 12px 0 22px; }
.cta-phone { margin-top: 18px !important; font-size: 14px; }

/* ---------------- 页头横幅 ---------------- */
.page-banner {
  background: linear-gradient(135deg, #171717 0%, var(--ink) 55%, #2b2200 100%);
  color: #fff; padding: 60px 20px; text-align: center;
}
.page-banner h1 { font-size: 32px; font-weight: 800; }
.page-banner p { color: rgba(255,255,255,.78); margin-top: 8px; }
.page-banner .banner-title { font-size: 24px; font-weight: 800; color: var(--brand); margin: 10px 0 10px; }
.page-banner .banner-sub { color: rgba(255,255,255,.72); font-size: 14px; margin-bottom: 30px; }

/* ---------------- AI 用电优化（banner 内，自动轮播） ---------------- */
.ai-carousel { position: relative; overflow: hidden; }
.carousel-track {
  display: flex; align-items: stretch;
  transition: transform .6s cubic-bezier(.4,0,.2,1);
  will-change: transform;
}
.carousel-slide { flex: 0 0 100%; min-width: 100%; display: flex; }
.ai-carousel .ai-card { width: 100%; height: 100%; min-height: 300px; }
.carousel-dots {
  display: flex; justify-content: center; gap: 10px; margin-top: 20px;
}
.carousel-dots .dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: rgba(255,255,255,.28); cursor: pointer;
  transition: background .2s, transform .2s;
}
.carousel-dots .dot.on { background: var(--brand); transform: scale(1.25); }
.ai-card {
  position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
  padding: 30px 26px 28px; display: flex; flex-direction: column; align-items: flex-start;
  text-align: left; transition: transform .2s, border-color .2s, box-shadow .2s;
}
.ai-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; }
.ai-card:hover { transform: translateY(-5px); box-shadow: 0 12px 30px rgba(17,17,17,.10); }
.ai-card.buy::before, .ai-card.buy .ai-tag { background: var(--brand); }
.ai-card.use::before, .ai-card.use .ai-tag { background: #1baf7a; }
.ai-card.safe::before, .ai-card.safe .ai-tag { background: #2f6fed; }
.ai-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.ai-tag { font-size: 12px; font-weight: 700; letter-spacing: 1px; color: #fff; padding: 3px 12px; border-radius: 999px; }
.ai-ico { font-size: 34px; line-height: 1; }
.ai-card h3 { font-size: 20px; color: var(--ink); margin-bottom: 10px; }
.ai-card p { color: var(--muted); font-size: 14px; line-height: 1.9; text-align: left; }
.ai-card p b { color: var(--ink); }
.ai-slogan {
  margin-top: 44px; text-align: center;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--radius); padding: 28px 26px;
}
.ai-slogan .ai-s1 { font-size: 22px; font-weight: 800; color: var(--brand); letter-spacing: 3px; }
.ai-slogan .ai-s2 { display: block; margin-top: 8px; color: rgba(255,255,255,.9); font-size: 16px; letter-spacing: 6px; }

/* ---------------- 详情页布局 ---------------- */
.detail-layout { display: grid; grid-template-columns: 1fr 300px; gap: 26px; align-items: start; }
.detail-main h2 { font-size: 20px; color: var(--ink); margin: 24px 0 10px; }
.detail-main h2:first-child { margin-top: 0; }
.detail-cta { margin-top: 28px; display: flex; gap: 12px; flex-wrap: wrap; }
.side-list { list-style: none; }
.side-list li { padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.side-list a:hover { color: var(--brand-dark); }
.detail-side .card h3 { font-size: 16px; color: var(--ink); margin-bottom: 6px; }

/* ---------------- 富文本/参数 ---------------- */
.rich-text p { margin: 10px 0; }
.rich-text strong { color: var(--ink); }
.rich-text h3, .rich-text h4 { color: var(--ink); margin: 18px 0 8px; }
.spec-block {
  background: var(--bg-alt); border: 1px solid var(--line); border-radius: 10px;
  padding: 16px 18px; font-size: 14px; line-height: 2; color: var(--ink-soft);
}
.meta-table { width: 100%; border-collapse: collapse; margin-bottom: 18px; font-size: 14px; }
.meta-table th, .meta-table td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); }
.meta-table th { color: var(--muted); width: 120px; font-weight: 500; }

/* ---------------- 筛选标签 ---------------- */
.filter-tabs { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 30px; }
.filter-tabs a {
  padding: 8px 20px; border-radius: 24px; border: 1px solid var(--line); color: var(--ink-soft); font-size: 14px;
}
.filter-tabs a.active, .filter-tabs a:hover { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ---------------- 分页 ---------------- */
.pagination { display: flex; justify-content: center; align-items: center; gap: 14px; margin-top: 34px; }
.pagination a { color: var(--brand-dark); font-weight: 600; }
.page-info { color: var(--muted); font-size: 14px; }
.empty-tip { text-align: center; color: var(--muted); padding: 40px 0; }

/* ---------------- 测算页 ---------------- */
.calc-results { margin-bottom: 40px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 22px; }
.stat { background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.stat .k { font-size: 13px; color: var(--muted); }
.stat .v { font-size: 26px; font-weight: 800; color: var(--ink); margin-top: 2px; }
.stat .d { font-size: 12px; color: var(--muted); margin-top: 2px; }
.stat.hl .v { color: var(--brand-dark); }
.calc-summary { font-size: 14px; color: var(--text); margin-top: 6px; }
.calc-table { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 8px; }
.calc-table th, .calc-table td { text-align: left; padding: 7px 6px; border-bottom: 1px solid var(--line); }
.calc-table th { color: var(--muted); font-weight: 500; }
.tbl-wrap { overflow-x: auto; }
.dispatch-table { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 10px; }
.dispatch-table th, .dispatch-table td { padding: 6px 8px; border-bottom: 1px solid var(--line); text-align: right; }
.dispatch-table th:first-child, .dispatch-table td:first-child { text-align: left; }
.dispatch-table th { color: var(--muted); font-weight: 500; }
.dispatch-table .t-尖峰 { color: #d14; font-weight: 700; }
.dispatch-table .t-高峰 { color: #2a78d6; font-weight: 700; }
.dispatch-table .t-平段 { color: var(--muted); }
.dispatch-table .t-低谷 { color: #1baf7a; font-weight: 700; }
.bar-chart {
  display: flex; align-items: flex-end; gap: 3px; height: 180px;
  padding: 12px 0 0; margin-top: 10px; border-bottom: 1px solid var(--line);
}
.bar-col { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; gap: 2px; }
.bar { width: 100%; max-width: 14px; border-radius: 3px 3px 0 0; }
.bar-load { background: #9aa0a6; }
.bar-grid { background: var(--brand); }
.bar-col i { font-size: 10px; color: var(--muted); font-style: normal; padding-top: 4px; }
.legend-line { margin-top: 14px; font-size: 13px; color: var(--muted); }
.lg { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 5px; vertical-align: -2px; }
.lg-load { background: #9aa0a6; }
.lg-grid { background: var(--brand); }
.section-note { font-size: 12.5px; color: var(--muted); margin-top: 14px; }

/* 更多设置（储能与财务）折叠 */
.more-settings { margin-top: 20px; border-top: 1px dashed var(--line); padding-top: 12px; }
.more-settings summary {
  cursor: pointer; color: var(--brand-dark); font-weight: 600; font-size: 14px;
  user-select: none; outline: none; display: inline-block;
}
.more-settings summary:hover { color: var(--brand); }
.more-settings summary::before { content: "＋ "; color: var(--brand); font-weight: 700; }
.more-settings[open] summary::before { content: "－ "; }
.more-settings .form-sec { margin-top: 14px; }

/* ---------------- 表单 ---------------- */
.form-sec { font-size: 17px; color: var(--ink); margin: 22px 0 12px; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.form-row { display: flex; flex-direction: column; gap: 6px; }
.form-row label { font-size: 14px; color: var(--ink-soft); font-weight: 600; }
.form-row input[type=text], .form-row input[type=tel], .form-row input[type=email],
.form-row input[type=number], .form-row input[type=password], .form-row select, .form-row textarea {
  width: 100%; padding: 11px 13px; border: 1px solid #d9d5cf; border-radius: 10px;
  font-size: 15px; background: #fff; color: var(--ink); font-family: inherit;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: 2px solid var(--brand); outline-offset: 1px; border-color: transparent;
}
.radio-row { display: flex; gap: 16px; flex-wrap: wrap; }
.radio-row label { display: flex; align-items: center; gap: 6px; font-weight: 400; font-size: 15px; cursor: pointer; }
.hint, .hint-inline { font-size: 12px; color: var(--muted); }
.req { color: #d33; }
.inquiry-form { display: flex; flex-direction: column; gap: 14px; }
.sms-row { display: flex; gap: 8px; align-items: center; }
.sms-row input { flex: 1; }
.sms-row .btn { flex-shrink: 0; }
.form-success { background: #e9f7ef; color: #1a7a3c; padding: 12px 16px; border-radius: 10px; margin-bottom: 14px; }
.form-error { background: #fdeeee; color: #c0392b; padding: 12px 16px; border-radius: 10px; margin-bottom: 14px; }
.contact-info { list-style: none; font-size: 15px; }
.contact-info li { padding: 8px 0; border-bottom: 1px dashed var(--line); }
.hint-text { font-size: 13px; color: var(--muted); margin-top: 12px; }

/* ---------------- 账单 AI 分析 ---------------- */
.bill-ai-section { background: var(--bg-alt); }
.bill-result { margin-bottom: 22px; }
.bill-result h3 { font-size: 19px; color: var(--ink); margin: 18px 0 8px; }
.bill-result h4 { font-size: 16px; color: var(--ink); margin: 14px 0 6px; }
.bill-result h5 { font-size: 15px; color: var(--ink); margin: 12px 0 5px; }
.bill-result p { font-size: 14.5px; color: var(--text); margin: 6px 0; }
.bill-result ul, .bill-result ol { margin: 8px 0 8px 22px; font-size: 14.5px; }
.bill-result li { margin: 4px 0; }
.bill-result b { color: var(--ink); }
.bill-result .calc-table { margin: 10px 0 16px; }

.bill-upload-card { margin-top: 4px; }
.bill-drop { position: relative; }
.bill-drop input[type=file] {
  position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; z-index: 2;
}
.bill-drop-label {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  border: 2px dashed #d9d5cf; border-radius: var(--radius);
  text-align: center; cursor: pointer; transition: border-color .2s, background .2s;
}
.bill-drop-label:hover, .bill-drop.has-file .bill-drop-label { border-color: var(--brand); background: var(--brand-light); }
.bill-drop-ico { font-size: 34px; }
.bill-drop-label b { font-size: 16px; color: var(--ink); }
.bill-drop-label small { font-size: 12.5px; color: var(--muted); }
.bill-contact { margin-top: 18px; }
.bill-msg { color: #c0392b; font-size: 13px; min-height: 18px; margin-top: 6px; }
.bill-status {
  display: flex; align-items: center; gap: 10px;
  background: var(--brand-light); border: 1px solid var(--brand);
  border-radius: 10px; padding: 14px 18px; margin-top: 18px;
  font-size: 14.5px; color: var(--ink-soft); font-weight: 500;
}
.bill-status[hidden] { display: none; }
.spinner {
  width: 18px; height: 18px; flex: none;
  border: 3px solid rgba(255,102,0,.25); border-top-color: var(--brand);
  border-radius: 50%; animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.btn:disabled { opacity: .6; cursor: not-allowed; pointer-events: none; }

/* ---------------- 底部 ---------------- */
.site-footer { background: var(--ink); color: #d8d5d0; margin-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1.4fr; gap: 34px; padding: 48px 20px 34px; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.footer-brand img {
  height: 34px; width: auto; background: #fff; padding: 4px 6px; border-radius: 6px;
}
.footer-brand b { color: #fff; font-size: 16px; }
.footer-col h4 { color: #fff; font-size: 15px; margin-bottom: 12px; }
.footer-col ul { list-style: none; }
.footer-col li { padding: 4px 0; font-size: 14px; }
.footer-col a:hover { color: var(--brand); }
.footer-about p { font-size: 13px; color: #aaa; }
.footer-contact li { color: #bbb; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 16px 20px; font-size: 12.5px; color: #999; text-align: center; }
.footer-bottom a { color: #999; }
.footer-bottom a:hover { color: var(--brand); }

/* ---------------- 响应式 ---------------- */
@media (max-width: 960px) {
  .card-grid, .case-grid, .mode-steps { grid-template-columns: repeat(2, 1fr); }
  .detail-layout { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: absolute; top: 100%; left: 0; right: 0; z-index: 200;
    flex-direction: column; align-items: stretch;
    background: #ffffff; padding: 16px 20px; gap: 4px;
    transform: translateY(-10px); opacity: 0; visibility: hidden;
    transition: transform .2s ease, opacity .2s ease, visibility .2s;
    box-shadow: 0 10px 30px rgba(0,0,0,.15);
  }
  .main-nav.open { transform: translateY(0); opacity: 1; visibility: visible; }
  .main-nav a { width: 100%; padding: 14px; font-size: 17px; }
  .hero { padding: 60px 0 50px; }
  .hero h1 { font-size: 32px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 48px 0; }
  .section-title { font-size: 24px; }
  .card-grid, .case-grid, .mode-steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
}

/* ---------------- 前台登录/注册/个人中心 ---------------- */
.auth-wrap { max-width: 420px; margin: 48px auto; }
.auth-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 30px; box-shadow: var(--shadow); }
.auth-card h1 { font-size: 20px; color: var(--ink); text-align: center; margin-bottom: 6px; }
.auth-sub { text-align: center; color: var(--muted); font-size: 13px; margin-bottom: 18px; }
.auth-foot { text-align: center; font-size: 13px; color: var(--muted); margin-top: 16px; }
.auth-foot a { color: var(--brand-dark); font-weight: 600; }
.account-layout { display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: start; }
.account-tabs { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.account-tabs a { display: block; padding: 14px 20px; border-bottom: 1px solid var(--line); color: var(--ink-soft); font-size: 15px; }
.account-tabs a:hover { background: var(--brand-light); color: var(--brand-dark); }
.account-tabs a.active { background: var(--brand-light); color: var(--brand-dark); font-weight: 600; border-right: 3px solid var(--brand); }
.account-main .card { margin-bottom: 18px; }
.account-main .card h3 { font-size: 16px; color: var(--ink); margin-bottom: 12px; }
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; vertical-align: 1px; }
.badge-read { background: #eef2f5; color: #55606b; }
.badge-unread { background: #fdeeee; color: #c0392b; }
.report-item, .msg-item { padding: 14px 0; border-bottom: 1px solid var(--line); }
.report-item:last-child, .msg-item:last-child { border-bottom: 0; }
.report-item h3, .msg-item h3 { font-size: 15px; color: var(--ink); margin-bottom: 4px; }
.report-item .meta, .msg-item .meta { font-size: 12px; color: var(--muted); margin: 0; }
@media (max-width: 900px) {
  .account-layout { grid-template-columns: 1fr; }
  .account-tabs { display: flex; flex-wrap: wrap; }
  .account-tabs a { border-bottom: 0; border-right: 1px solid var(--line); }
}

/* ---------------- 个人中心 - 电费账单台账 ---------------- */
.account-main .bill-drop { margin-top: 4px; }
.account-main .bill-drop-label { padding: 28px 16px; }
.bill-file-list { list-style: none; margin: 12px 0 0; padding: 0; }
.bill-status-line { font-size: 13.5px; color: var(--ink-soft); }
.bill-table-wrap { overflow-x: auto; }
.bill-table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 640px; }
.bill-table th, .bill-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.bill-table th { background: var(--brand-light); color: var(--ink); font-weight: 600; white-space: nowrap; }
.bill-table tr:last-child td { border-bottom: 0; }
.bill-fname { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; color: var(--ink); }
.bill-fmeta { font-size: 12px; color: var(--muted); margin-top: 2px; }
.bill-reason { font-size: 12px; color: #c0392b; margin-top: 3px; max-width: 200px; }
.bill-ops { white-space: nowrap; }
.bill-ops .bill-link { margin-right: 10px; }
.bill-link { display: inline-block; background: none; border: none; padding: 0; font-size: 13px; color: var(--brand-dark); cursor: pointer; text-decoration: none; }
.bill-link:hover { text-decoration: underline; }
.bill-link.danger { color: #c0392b; }
.bill-del-form { display: inline-block; }
.badge-ok { background: #e7f7ee; color: #1e8e5a; }
.badge-no { background: #fdeeee; color: #c0392b; }

/* ================= 智能电表（个人中心 · 详情页） ================= */
.meter-bread { margin-bottom: 10px; font-size: 13.5px; }
.meter-bread a { color: var(--brand-dark); text-decoration: none; }
.meter-bread a:hover { text-decoration: underline; }

.meter-detail-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.meter-detail-title { font-size: 26px; color: var(--ink); margin: 0 0 4px; }
.meter-detail-side { text-align: right; }

.meter-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 18px; }
.meter-card {
  display: flex; flex-direction: column; background: #fff; border: 1px solid #ece9e4; border-radius: 16px;
  padding: 18px 20px; color: inherit; text-decoration: none;
  box-shadow: 0 1px 3px rgba(17,17,17,.05); transition: box-shadow .15s, border-color .15s, transform .15s;
}
.meter-card:hover { box-shadow: 0 10px 28px rgba(17,17,17,.10); border-color: #ffd9bf; transform: translateY(-2px); }
.meter-list-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.meter-list-head h3 { font-size: 18px; color: var(--ink); margin: 0; }
.meter-list-head .muted { font-size: 13px; }
.meter-card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; min-width: 0; }
.meter-status { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.meter-status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: 0 0 auto; }
.meter-status.on { background: #e7f7ee; color: #1e8e5a; }
.meter-status.off { background: #fdeeee; color: #c0392b; }
.meter-name { font-size: 17px; font-weight: 700; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.meter-card-meta { font-size: 12.5px; color: #8a857f; margin: 0 0 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.meter-metrics { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 8px; margin: 0 0 12px; }
.metric-tile { background: #faf9f7; border: 1px solid #f0ede7; border-radius: 10px; padding: 10px 12px; min-width: 0; }
.metric-tile span { display: block; font-size: 12px; color: #8a857f; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.metric-tile b { display: inline-block; max-width: 100%; font-size: 22px; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; line-height: 1.3; margin: 2px 0 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: baseline; }
.metric-tile small { display: inline-block; font-size: 12px; color: #8a857f; margin-left: 3px; }
.meter-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12.5px; margin-top: auto; padding-top: 12px; border-top: 1px dashed #ece9e4; }
.meter-upd { color: #8a857f; white-space: nowrap; }
.meter-go { color: var(--brand-dark); font-weight: 600; white-space: nowrap; }

.meter-kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(152px, 1fr)); gap: 12px; }
.meter-kpis .metric-tile b { font-size: 18px; }

.muted { color: #8a857f; }
.small { font-size: 12px; }

.trend-head { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.trend-head label { font-size: 13px; color: #555; display: flex; align-items: center; gap: 6px; }
.trend-head select { padding: 6px 10px; border: 1px solid #d9d5cf; border-radius: 8px; font-size: 13px; background: #fff; color: var(--ink); }
.chart-wrap { position: relative; height: 320px; }

.meter-alarm-list { list-style: none; margin: 0; padding: 0; }
.meter-alarm-list li { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 9px 0; border-bottom: 1px dashed #ece9e4; font-size: 13.5px; }
.meter-alarm-list li:last-child { border-bottom: 0; }
.meter-alarm-list time { margin-left: auto; white-space: nowrap; }
.badge-warn { display: inline-block; background: #fff2e8; color: #e05a00; padding: 2px 8px; border-radius: 4px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.alert-warning { background: #fff7e6; border: 1px solid #ffd591; color: #8a5300; border-radius: 10px; padding: 11px 14px; font-size: 13.5px; margin: 0 0 14px; }

.report-list { margin-top: 14px; }
.report-md { border: 1px solid #ece9e4; border-radius: 12px; margin-bottom: 12px; background: #fff; overflow: hidden; }
.report-md summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 16px; font-weight: 600; color: var(--ink); }
.report-md summary::-webkit-details-marker { display: none; }
.report-md summary:hover { background: #faf9f7; }
.report-md summary time { margin-left: auto; font-weight: 400; }
.report-md-body { border-top: 1px solid #f0ede7; padding: 14px 18px; font-size: 14px; line-height: 1.85; color: #333; max-height: 520px; overflow: auto; }
.report-md-body h1, .report-md-body h2 { font-size: 16px; color: var(--ink); margin: 14px 0 6px; }
.report-md-body h2:first-child, .report-md-body h3:first-child { margin-top: 0; }
.report-md-body h3 { font-size: 14.5px; color: var(--ink-soft); margin: 12px 0 4px; }
.report-md-body p { margin: 6px 0; }
.report-md-body ul, .report-md-body ol { margin: 6px 0 6px 20px; padding: 0; }
.report-md-body li { margin: 3px 0; }
.report-md-body table { border-collapse: collapse; width: 100%; font-size: 13px; margin: 8px 0; }
.report-md-body th, .report-md-body td { border: 1px solid #ece9e4; padding: 6px 9px; text-align: left; }
.report-md-body th { background: #faf9f7; }
.report-md-body code { background: #f4f1ec; border-radius: 4px; padding: 1px 5px; font-size: 12.5px; }
.report-md-body blockquote { border-left: 3px solid #ffd9bf; margin: 8px 0; padding: 2px 12px; color: #666; }

@media (max-width: 560px) {
  .meter-grid { grid-template-columns: 1fr; }
  .meter-kpis { grid-template-columns: repeat(2, 1fr); }
  .meter-detail-side { text-align: left; }
  .trend-head { flex-direction: column; align-items: flex-start; }
}
