/* ═══════════════════════════════════════════════════════════════
   经典主题的装饰层：沿用原有绿色系，只加纸纹与细线，不改配色与排版。
   仅在 html[data-theme="classic"] 下生效。
   ═══════════════════════════════════════════════════════════════ */

html[data-theme="classic"] body { background-color: #f7f8fa; }

/* 纸纹 */
html[data-theme="classic"] body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.045'/%3E%3C/svg%3E");
}

/* 右上角光晕 */
html[data-theme="classic"] body::after {
  content: "";
  position: fixed;
  top: -300px;
  right: -240px;
  width: 760px;
  height: 760px;
  z-index: 0;
  pointer-events: none;
  opacity: .45;
  background:
    radial-gradient(circle, transparent 0 128px, rgba(7, 135, 95, .07) 128px 129px, transparent 129px),
    radial-gradient(circle, transparent 0 182px, rgba(7, 135, 95, .055) 182px 183px, transparent 183px),
    radial-gradient(circle, transparent 0 236px, rgba(7, 135, 95, .04) 236px 237px, transparent 237px),
    radial-gradient(circle, rgba(7, 135, 95, .05) 0, transparent 62%);
}
html[data-theme="classic"] .app-shell { position: relative; z-index: 1; }

/* 账簿横线与装订线 */
@media (min-width: 701px) {
  html[data-theme="classic"] .main-content {
    position: relative;
    background-image: repeating-linear-gradient(180deg, transparent 0 33px, rgba(7, 135, 95, .045) 33px 34px);
  }
  html[data-theme="classic"] .main-content::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 26px;
    width: 1px;
    background: linear-gradient(180deg, transparent, rgba(7, 135, 95, .18) 12%, rgba(7, 135, 95, .18) 88%, transparent);
  }
  html[data-theme="classic"] .main-content::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 31px;
    width: 1px;
    background: linear-gradient(180deg, transparent, rgba(7, 135, 95, .09) 12%, rgba(7, 135, 95, .09) 88%, transparent);
  }
}

/* 卡片内嵌细线 */
html[data-theme="classic"] .holding-card,
html[data-theme="classic"] .holding-distribution,
html[data-theme="classic"] .dca-panel,
html[data-theme="classic"] .overview-calendar,
html[data-theme="classic"] .planning-panel,
html[data-theme="classic"] .table-panel,
html[data-theme="classic"] .settings-panel,
html[data-theme="classic"] .transfer-panel,
html[data-theme="classic"] .metric-card,
html[data-theme="classic"] .net-worth-panel,
html[data-theme="classic"] .insight-panel {
  box-shadow: inset 0 0 0 4px #fff, inset 0 0 0 4.5px rgba(7, 135, 95, .16), 0 1px 2px rgba(19, 48, 37, .04);
}

/* 角饰 */
html[data-theme="classic"] .holding-distribution,
html[data-theme="classic"] .overview-calendar { position: relative; }
html[data-theme="classic"] .holding-distribution::before,
html[data-theme="classic"] .overview-calendar::before,
html[data-theme="classic"] .holding-distribution::after,
html[data-theme="classic"] .overview-calendar::after {
  content: "";
  position: absolute;
  width: 13px;
  height: 13px;
  pointer-events: none;
  opacity: .6;
}
html[data-theme="classic"] .holding-distribution::before,
html[data-theme="classic"] .overview-calendar::before {
  left: -1px; top: -1px;
  border-left: 1px solid #07875f;
  border-top: 1px solid #07875f;
}
html[data-theme="classic"] .holding-distribution::after,
html[data-theme="classic"] .overview-calendar::after {
  right: -1px; bottom: -1px;
  border-right: 1px solid #07875f;
  border-bottom: 1px solid #07875f;
}

/* 章节罗马序号与分隔纹 */
html[data-theme="classic"] .view { counter-reset: sec; }
html[data-theme="classic"] .section-head { counter-increment: sec; position: relative; }
html[data-theme="classic"] .section-head::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(7, 135, 95, .3) 16%, rgba(7, 135, 95, .3) 84%, transparent);
}
html[data-theme="classic"] .section-head h2::after {
  content: counter(sec, upper-roman);
  margin-left: 11px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .16em;
  color: rgba(7, 135, 95, .7);
  vertical-align: 2px;
}

/* 印章 */
html[data-theme="classic"] .brand-mark { position: relative; }
html[data-theme="classic"] .brand-mark::after {
  content: "";
  position: absolute;
  right: -4px;
  bottom: -4px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 1px solid rgba(7, 135, 95, .45);
  background: radial-gradient(circle at 68% 50%, transparent 0 46%, rgba(7, 135, 95, .4) 47% 100%);
}

/* 空状态 */
html[data-theme="classic"] .table-empty::before,
html[data-theme="classic"] .dca-empty::before,
html[data-theme="classic"] .holding-empty::before,
html[data-theme="classic"] .planning-empty::before {
  content: "";
  display: block;
  width: 52px;
  height: 52px;
  margin: 0 auto 12px;
  opacity: .2;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 54 54'%3E%3Ccircle cx='27' cy='27' r='17' fill='none' stroke='%2307875f' stroke-width='1'/%3E%3Cpath d='M27 10a17 17 0 0 1 0 34 21 17 0 0 0 0-34z' fill='%2307875f' opacity='.55'/%3E%3Ccircle cx='27' cy='27' r='24' fill='none' stroke='%2307875f' stroke-width='.5' stroke-dasharray='1 4'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* 进度条末端 */
html[data-theme="classic"] .planning-progress,
html[data-theme="classic"] .holding-target-progress {
  background-image: radial-gradient(circle at 4px 50%, rgba(7, 135, 95, .2) 1.4px, transparent 1.5px);
  background-size: 11px 100%;
}
html[data-theme="classic"] .planning-progress > span,
html[data-theme="classic"] .holding-target-progress > span { position: relative; }
html[data-theme="classic"] .planning-progress > span::after,
html[data-theme="classic"] .holding-target-progress > span::after {
  content: "";
  position: absolute;
  right: -5px;
  top: 50%;
  transform: translateY(-50%);
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: radial-gradient(circle at 70% 50%, #fff 0 42%, #07875f 43% 100%);
  box-shadow: 0 0 0 2px #fff;
}

@media (max-width: 700px) {
  html[data-theme="classic"] .main-content { background-image: none; }
  html[data-theme="classic"] .main-content::before,
  html[data-theme="classic"] .main-content::after { display: none; }
  html[data-theme="classic"] body::after { opacity: .28; width: 460px; height: 460px; top: -210px; right: -170px; }
  html[data-theme="classic"] .table-empty::before,
  html[data-theme="classic"] .dca-empty::before { width: 42px; height: 42px; }
  html[data-theme="classic"] .section-head h2::after { font-size: 10px; margin-left: 8px; }
  html[data-theme="classic"] .holding-card,
  html[data-theme="classic"] .holding-distribution,
  html[data-theme="classic"] .dca-panel,
  html[data-theme="classic"] .overview-calendar,
  html[data-theme="classic"] .planning-panel,
  html[data-theme="classic"] .table-panel,
  html[data-theme="classic"] .metric-card,
  html[data-theme="classic"] .net-worth-panel,
  html[data-theme="classic"] .insight-panel {
    box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 3.5px rgba(7, 135, 95, .16), 0 1px 2px rgba(19, 48, 37, .035);
  }
}
