/* ===== 三才灵算 全局样式（古风） ===== */
:root {
  --red: #8b0000;
  --red-dark: #6b0000;
  --red-light: #a00000;
  --gold: #d4af37;
  --gold-light: #f5e6c8;
  --gold-dark: #b8860b;
  --beige: #f5f0e6;
  --beige-dark: #e8d9b8;
  --beige-light: #fffbf0;
  --text: #3d2914;
  --text-light: #8b6914;
  --border: #d4af37;
  --white: #fffbf0;
  --shadow: 0 2px 8px rgba(139,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(139,0,0,0.15);
}

* { margin:0; padding:0; box-sizing:border-box; }
body, button, input, select, textarea {
  font-family: "Noto Serif SC", "SimSun", "宋体", "STSong", "Microsoft YaHei", serif;
}
h1,h2,h3,.brand-title,.form-title,.page-title,.card-title,.tool-name,.stat-num,.mobile-tool-name {
  font-family: "Noto Serif SC", "SimSun", "宋体", "STZhongsong", "Microsoft YaHei", serif;
  font-weight: 700;
}
body {
  background: #f5f0e6;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(139,0,0,0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(212,175,55,0.05) 0%, transparent 50%);
  color: var(--text);
  font-size: 14px;
  min-height: 100vh;
}

/* ===== 登录页 ===== */
.login-page { min-height:100vh; display:flex; align-items:center; justify-content:center; background:var(--beige); padding:20px; }
.login-container { display:flex; width:100%; max-width:900px; min-height:520px; border-radius:12px; overflow:hidden; box-shadow:var(--shadow-lg); }
.login-left { flex:1; background:linear-gradient(180deg,#8b0000 0%,#6b0000 100%); color:var(--gold-light); display:flex; align-items:center; justify-content:center; padding:40px; position:relative; }
.login-left::before { content:''; position:absolute; top:15px; left:15px; right:15px; bottom:15px; border:1px solid rgba(212,175,55,0.4); border-radius:8px; pointer-events:none; }
.brand-content { text-align:center; position:relative; z-index:1; }
.brand-logo { font-size:64px; margin-bottom:16px; }
.brand-title { font-size:36px; color:var(--gold-light); letter-spacing:8px; margin-bottom:8px; font-weight:normal; }
.brand-subtitle { font-size:16px; color:var(--gold); letter-spacing:6px; opacity:0.9; margin-bottom:20px; }
.brand-divider { font-size:13px; color:var(--gold); opacity:0.7; margin-bottom:30px; letter-spacing:2px; }
.brand-features { text-align:left; display:inline-block; }
.feature-item { font-size:14px; line-height:2; letter-spacing:1px; color:var(--gold-light); opacity:0.85; }
.login-right { flex:1; background:var(--beige-light); display:flex; align-items:center; justify-content:center; padding:40px; }
.login-form-wrap { width:100%; max-width:320px; }
.form-title { text-align:center; font-size:24px; color:var(--red); margin-bottom:8px; letter-spacing:4px; }
.form-subtitle { text-align:center; font-size:13px; color:var(--text-light); margin-bottom:24px; }
.form-item { margin-bottom:16px; }
.form-item label { display:block; font-size:13px; color:var(--red); margin-bottom:6px; }
.form-item input { width:100%; padding:10px 14px; border:1px solid #c9a96e; border-radius:4px; font-size:14px; background:#fff; color:var(--text); transition:all .3s; }
.form-item input:focus { outline:none; border-color:var(--red); box-shadow:0 0 5px rgba(139,0,0,0.2); }
.form-options { display:flex; justify-content:space-between; align-items:center; margin-bottom:20px; font-size:13px; }
.remember { color:var(--text-light); cursor:pointer; }
.btn-primary {
  width:100%; padding:12px;
  background:linear-gradient(180deg,#8b0000 0%,#6b0000 100%);
  color:var(--gold-light); border:1px solid var(--gold);
  border-radius:4px; font-size:16px; letter-spacing:6px;
  cursor:pointer; transition:all .3s; font-family:inherit;
}
.btn-primary::before, .btn-primary::after { content:'◆'; color:var(--gold); margin:0 8px; font-size:0.7em; display:inline-block; }
.btn-primary:hover { background:linear-gradient(180deg,#a00000 0%,#7b0000 100%); box-shadow:0 3px 10px rgba(139,0,0,0.4); }
.login-error { color:#c0392b; font-size:13px; margin-top:12px; text-align:center; min-height:18px; }
.login-hint { margin-top:16px; padding-top:16px; border-top:1px solid var(--beige-dark); font-size:12px; color:var(--text-light); line-height:1.8; }

/* ===== 主应用 ===== */
.main-app { min-height:100vh; }
.top-header { background:linear-gradient(180deg,#8b0000 0%,#6b0000 100%); color:var(--gold-light); padding:0 20px; height:56px; display:flex; align-items:center; justify-content:space-between; box-shadow:0 4px 15px rgba(139,0,0,0.3); border-bottom:3px solid var(--gold); position:sticky; top:0; z-index:100; }
.header-logo { font-size:18px; font-weight:bold; letter-spacing:2px; white-space:nowrap; display:inline-flex; align-items:center; }
.header-org { display:none; align-items:center; gap:4px; margin-left:16px; padding-left:16px; border-left:1px solid rgba(212,175,55,0.3); font-size:13px; color:#d4af37; letter-spacing:1px; white-space:nowrap; }
.header-org::before { content:'🏥'; font-size:14px; }
.top-nav { display:flex; gap:4px; flex:1; justify-content:center; overflow-x:auto; }
.nav-item { padding:8px 16px; color:rgba(245,230,200,0.7); cursor:pointer; border-radius:4px; font-size:14px; white-space:nowrap; transition:all .2s; }
.nav-item:hover { color:var(--gold-light); background:rgba(255,255,255,0.08); }
.nav-item.active { color:var(--gold-light); background:rgba(212,175,55,0.2); }
.header-right { display:flex; align-items:center; gap:12px; white-space:nowrap; }
.user-info { font-size:13px; opacity:0.8; }
.btn-logout { padding:6px 14px; background:transparent; border:1px solid rgba(212,175,55,0.4); color:var(--gold-light); border-radius:4px; cursor:pointer; font-size:13px; font-family:inherit; }
.btn-logout:hover { background:rgba(255,255,255,0.1); }

.content-area { padding:20px; max-width:1400px; margin:0 auto; }

/* ===== 页面通用 ===== */
.page-title { font-size:20px; color:var(--red); margin-bottom:20px; padding-bottom:12px; border-bottom:1px solid var(--gold); display:flex; align-items:center; justify-content:space-between; letter-spacing:2px; }
.page-title .actions { display:flex; gap:8px; }
.card { background:var(--beige-light); border:1px solid var(--gold); border-radius:8px; padding:20px; box-shadow:var(--shadow); margin-bottom:16px; }
.card-sticky { width:240px; flex-shrink:0; position:sticky; top:80px; }
.card-flex { flex:1; min-width:300px; }
.stat-grid-4 { grid-template-columns:repeat(4,1fr); }
.card-title { font-size:16px; color:var(--red); margin-bottom:16px; padding-bottom:10px; border-bottom:1px solid var(--gold); letter-spacing:2px; font-weight:bold; }
.card-title::before { content:'◆'; color:var(--red); margin-right:8px; font-size:0.7em; }

/* 按钮 */
.btn { padding:8px 18px; border-radius:4px; cursor:pointer; font-size:13px; border:1px solid var(--gold); background:var(--beige-light); color:var(--red); transition:all .2s; font-family:inherit; }
.btn:hover { background:var(--gold-light); }
.btn-gold { background:linear-gradient(180deg,#8b0000 0%,#6b0000 100%); color:var(--gold-light); border:1px solid var(--gold); }
.btn-gold:hover { background:linear-gradient(180deg,#a00000 0%,#7b0000 100%); }
.btn-red { background:var(--red); color:var(--gold-light); border:1px solid var(--gold); }
.btn-sm { padding:4px 10px; font-size:12px; }

/* 表格 */
.table-wrap { overflow-x:auto; }
table { width:100%; border-collapse:collapse; font-size:13px; }
th { background:var(--gold-light); color:var(--red); padding:10px 12px; text-align:left; font-weight:normal; white-space:nowrap; border:1px solid var(--gold); }
td { padding:10px 12px; border:1px solid var(--beige-dark); }
tr:hover td { background:rgba(245,230,200,0.3); }

/* 表单 */
.form-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(240px,1fr)); gap:16px; }
.form-group label { display:block; font-size:13px; color:var(--red); margin-bottom:6px; }
.form-group input,.form-group select,.form-group textarea { width:100%; padding:10px 12px; border:1px solid #c9a96e; border-radius:4px; font-size:14px; background:#fff; color:var(--text); font-family:inherit; }
.form-group input:focus,.form-group select:focus,.form-group textarea:focus { outline:none; border-color:var(--red); box-shadow:0 0 5px rgba(139,0,0,0.2); }

/* 统计卡片 */
.stat-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(160px,1fr)); gap:16px; margin-bottom:20px; }
.stat-card { background:var(--beige-light); border:1px solid var(--gold); border-radius:8px; padding:20px; text-align:center; box-shadow:var(--shadow); transition:all .2s; }
.stat-card:hover { border-color:var(--red); box-shadow:0 4px 12px rgba(139,0,0,0.15); transform:translateY(-1px); }
.stat-num { font-size:32px; color:var(--red); font-weight:bold; }
.stat-label { font-size:13px; color:var(--text-light); margin-top:6px; }

/* 工具卡片 */
.tool-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(240px,1fr)); gap:20px; }
.tool-card { background:var(--beige-light); border:1px solid var(--gold); border-radius:8px; padding:30px 20px; text-align:center; cursor:pointer; transition:all .3s; box-shadow:var(--shadow); }
.tool-card:hover { transform:translateY(-2px); box-shadow:0 4px 15px rgba(139,0,0,0.15); border-color:var(--red); }
.tool-icon { font-size:48px; margin-bottom:12px; }
.tool-name { font-size:18px; color:var(--red); margin-bottom:8px; letter-spacing:2px; font-weight:bold; }
.tool-desc { font-size:13px; color:var(--text-light); line-height:1.6; }

/* 结果区 */
.result-box { display:none; }
.result-box.show { display:block; }
.result-item { padding:8px 0; border-bottom:1px dashed var(--beige-dark); line-height:1.8; }
.result-item .label { color:var(--text-light); font-weight:bold; margin-right:8px; }

/* 客户信息栏 */
.customer-bar { background:var(--gold-light); border:1px solid var(--gold); border-radius:8px; padding:16px 20px; margin-bottom:20px; display:flex; align-items:center; gap:20px; flex-wrap:wrap; }
.customer-bar .cust-name { font-size:18px; font-weight:bold; color:var(--red); }
.customer-bar .cust-info { color:var(--text-light); font-size:13px; }
.customer-bar .cust-complaint { width:100%; color:var(--text); font-size:14px; padding-top:8px; border-top:1px dashed var(--beige-dark); margin-top:4px; }

/* 弹窗 */
.modal-overlay { position:fixed; top:0; left:0; right:0; bottom:0; background:rgba(0,0,0,0.4); z-index:200; display:flex; align-items:center; justify-content:center; padding:20px; }
.modal { background:var(--beige-light); border:1px solid var(--gold); border-radius:8px; width:100%; max-width:560px; max-height:90vh; overflow-y:auto; box-shadow:var(--shadow-lg); }
.modal-header { padding:16px 20px; border-bottom:1px solid var(--gold); background:linear-gradient(90deg,var(--gold-light),var(--beige-light)); display:flex; align-items:center; justify-content:space-between; }
.modal-header h3 { color:var(--red); font-size:16px; letter-spacing:2px; }
.modal-close { background:none; border:none; font-size:20px; cursor:pointer; color:var(--text-light); }
.modal-body { padding:20px; }
.modal-footer { padding:16px 20px; border-top:1px solid var(--beige-dark); display:flex; justify-content:flex-end; gap:10px; }

/* 接待/档案表格 */
.record-table { width:100%; border-collapse:collapse; }
.record-table td { border:1px solid var(--beige-dark); padding:0; vertical-align:middle; }
.record-label { width:100px; text-align:center; background:rgba(245,230,200,0.3); color:var(--red); font-weight:bold; font-size:14px; padding:10px !important; white-space:nowrap; }
.record-label.required::before { content:'*'; color:var(--red); margin-right:4px; }
.record-value { padding:0 !important; }
.record-value input, .record-value textarea { width:100%; border:none; padding:10px 12px; font-size:14px; background:transparent; font-family:inherit; color:var(--text); resize:vertical; }
.record-value input:focus, .record-value textarea:focus { outline:none; background:rgba(245,230,200,0.15); }
.photo-upload { width:60px; height:60px; border:1px dashed var(--gold); border-radius:6px; display:flex; align-items:center; justify-content:center; font-size:24px; color:var(--text-light); cursor:pointer; margin:8px; }
.photo-upload:hover { border-color:var(--red); color:var(--red); }

/* 占位页 */
.placeholder-page { text-align:center; padding:80px 20px; }
.placeholder-icon { font-size:64px; margin-bottom:20px; opacity:0.3; }
.placeholder-page h3 { color:var(--red); font-size:20px; margin-bottom:10px; letter-spacing:4px; }
.placeholder-page p { color:var(--text-light); }

/* 手机端首页卡片网格 */
.mobile-home-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; }
.mobile-tool-item { background:var(--beige-light); border:1px solid var(--gold); border-radius:10px; padding:16px 8px; text-align:center; cursor:pointer; transition:all .2s; }
.mobile-tool-item:active { background:var(--gold-light); }
.mobile-tool-icon { width:44px; height:44px; margin:0 auto 8px; background:rgba(139,0,0,0.08); border-radius:10px; display:flex; align-items:center; justify-content:center; font-size:22px; }
.mobile-tool-name { font-size:12px; color:var(--text); }

/* ===== 手机端适配 ===== */
@media (max-width:768px) {
  .login-page { flex-direction:column; padding:0; align-items:stretch; justify-content:flex-start; }
  .login-container { flex-direction:column; min-height:auto; border-radius:0; box-shadow:none; flex:1; }
  .login-left { display:none; }
  .login-left::before { display:none; }
  .brand-logo { font-size:48px; }
  .brand-title { font-size:28px; letter-spacing:6px; }
  .brand-features { display:none; }
  .login-right { padding:30px 20px; }

  .top-header { display:none; }
  .mobile-header { display:flex !important; }
  .content-area { padding:10px 8px; }

  .stat-grid { grid-template-columns:repeat(2,1fr); gap:10px; }
  .stat-card { padding:14px; }
  .stat-num { font-size:24px; }

  .tool-grid { grid-template-columns:1fr 1fr; gap:12px; }
  .tool-card { padding:20px 12px; }
  .tool-icon { font-size:36px; }
  .tool-name { font-size:15px; }

  /* 工作站手机端适配 */
  .page-title { font-size:18px; }
  .card { width:100% !important; position:static !important; }
  .card-sticky { width:100% !important; position:static !important; }
  .card-flex { width:100% !important; }
  .stat-grid-4 { grid-template-columns:repeat(2,1fr) !important; }
  table { font-size:12px; }
  th, td { padding:6px 8px !important; }
  .tool-desc { font-size:12px; }

  .form-grid { grid-template-columns:1fr; gap:12px; }
  .card { padding:14px; }
  .page-title { font-size:17px; flex-wrap:wrap; gap:8px; }

  .modal-overlay { padding:10px; }
  table { font-size:12px; }
  th, td { padding:8px 6px; }

  /* 工作站侧栏手机端全宽 */
  .card-sticky { width:100% !important; position:static !important; }
}

.mobile-header { display:none; background:linear-gradient(180deg,#8b0000 0%,#6b0000 100%); color:var(--gold-light); padding:12px 15px; align-items:center; justify-content:space-between; border-bottom:3px solid var(--gold); position:sticky; top:0; z-index:100; }
.mobile-header .back-btn { background:rgba(212,175,55,0.2); border:1px solid var(--gold); color:var(--gold-light); padding:6px 14px; border-radius:4px; cursor:pointer; font-size:14px; font-family:inherit; }
.mobile-header .title { font-size:17px; letter-spacing:2px; }
.mobile-header .right { width:60px; }

/* ===== 手机端登录页头 ===== */
.m-login-header { display:none; }
.m-login-footer { display:none; }

/* ===== 手机端首页页头页尾 ===== */
.m-home-header {
  background:linear-gradient(180deg,#8b0000 0%,#6b0000 100%);
  padding:16px 16px 14px;
  position:relative;
  overflow:hidden;
}
.m-home-header::before {
  content:'';
  position:absolute;
  top:-30px;right:-30px;
  width:120px;height:120px;
  border-radius:50%;
  background:radial-gradient(circle,rgba(212,175,55,0.08) 0%,transparent 70%);
}
.m-home-header::after {
  content:'';
  position:absolute;
  bottom:0;left:0;right:0;
  height:2px;
  background:linear-gradient(90deg,transparent,#d4af37 20%,#d4af37 80%,transparent);
}
.m-home-brand {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  position:relative;
}
.m-home-logo {
  width:42px;height:42px;
  border-radius:50%;
  background:rgba(212,175,55,0.12);
  border:1px solid rgba(212,175,55,0.3);
  display:flex;align-items:center;justify-content:center;
  flex-shrink:0;
}
.m-home-brand-text {
  display:flex;
  flex-direction:column;
  line-height:1.2;
}
.m-home-appname {
  font-size:20px;
  color:#f5e6c8;
  letter-spacing:3px;
  font-weight:700;
}
.m-home-tag {
  font-size:10px;
  color:rgba(245,230,200,0.6);
  letter-spacing:2px;
  margin-top:2px;
}
.m-home-org {
  margin-top:10px;
  font-size:12px;
  color:#d4af37;
  letter-spacing:1px;
  position:relative;
  text-align:center;
}
.m-home-footer {
  text-align:center;
  padding:24px 16px 32px;
  color:#b8a070;
  font-size:12px;
  letter-spacing:2px;
}
.m-home-footer .border-pattern {
  width:60%;
  margin:0 auto 12px;
  height:1px;
  background:linear-gradient(90deg,transparent,#d4af37,transparent);
  position:relative;
}
.m-home-footer .border-pattern::before {
  content:'◆';
  position:absolute;
  top:50%;
  left:50%;
  transform:translate(-50%,-50%);
  background:var(--beige);
  padding:0 8px;
  color:#d4af37;
  font-size:10px;
}

@media (max-width:768px) {
  /* 手机端登录页头 */
  .m-login-header {
    display:block;
    background:linear-gradient(180deg,#8b0000 0%,#6b0000 100%);
    padding:30px 20px 24px;
    text-align:center;
    position:relative;
    overflow:hidden;
  }
  .m-login-header::before {
    content:'☯';
    position:absolute;
    font-size:140px;
    opacity:0.06;
    top:50%;left:50%;
    transform:translate(-50%,-50%);
    color:#f5e6c8;
  }
  .m-login-pattern {
    height:2px;
    background:linear-gradient(90deg,transparent,rgba(212,175,55,0.5),transparent);
    margin:8px 0;
  }
  .m-login-brand { position:relative; text-align:center; width:100%; }
  .m-login-taiji {
    width:56px;height:56px;
    border-radius:50%;
    margin:0 auto 8px;
    display:block;
    border:2px solid rgba(212,175,55,0.5);
    box-shadow:0 2px 12px rgba(0,0,0,0.3);
  }
  .m-login-title {
    font-size:28px;
    color:#f5e6c8;
    letter-spacing:8px;
    font-weight:700;
    text-shadow:0 2px 8px rgba(0,0,0,0.3);
  }
  .m-login-sub {
    font-size:13px;
    color:rgba(245,230,200,0.7);
    letter-spacing:5px;
    margin-top:6px;
  }
  .m-login-couplet {
    margin-top:10px;
    font-size:12px;
    color:rgba(212,175,55,0.8);
    letter-spacing:3px;
  }
  .m-login-couplet .dot { margin:0 6px; opacity:0.5; }

  /* 手机端登录页尾 */
  .m-login-footer {
    display:block;
    text-align:center;
    padding:20px 16px 30px;
    color:#b8a070;
    font-size:12px;
    letter-spacing:2px;
  }
  .m-footer-pattern {
    width:50%;
    margin:0 auto 10px;
    height:1px;
    background:linear-gradient(90deg,transparent,#d4af37,transparent);
    position:relative;
  }
  .m-footer-pattern::before {
    content:'◆';
    position:absolute;
    top:50%;left:50%;
    transform:translate(-50%,-50%);
    background:var(--beige);
    padding:0 8px;
    color:#d4af37;
    font-size:10px;
  }
  .m-footer-ver { margin-top:4px; font-size:11px; opacity:0.6; }
}

/* 医案分类侧栏 */
.case-cat-item {
  display:flex;justify-content:space-between;align-items:center;
  padding:8px 12px;border-radius:4px;cursor:pointer;font-size:14px;
  color:var(--text);margin-bottom:2px;transition:all .2s;
}
.case-cat-item:hover { background:var(--gold-light); }
.case-cat-item.active { background:var(--red);color:#fff;font-weight:500; }
.case-cat-del {
  display:none;width:20px;height:20px;line-height:18px;text-align:center;
  border-radius:50%;font-size:14px;color:#999;
}
.case-cat-item:hover .case-cat-del { display:block; }
.case-cat-del:hover { background:rgba(0,0,0,.1);color:#c0392b; }

/* 手机端医案页面适配 */
@media (max-width: 768px) {
  .case-cat-item { padding:10px 12px;font-size:15px; }
}

/* 手机端首页红点提醒 */
.m-badge {
  position:absolute;top:-4px;right:-4px;
  background:#c0392b;color:#fff;
  font-size:10px;min-width:16px;height:16px;line-height:16px;
  text-align:center;border-radius:8px;padding:0 4px;
  font-family:Arial,sans-serif;
}
.mobile-tool-icon { position:relative; }

/* 手机端退出按钮 */
.m-exit-btn {
  background:none;border:none;color:var(--gold);font-size:13px;
  padding:4px 10px;cursor:pointer;white-space:nowrap;
}
.m-exit-btn:active { opacity:0.7; }

/* ===== 症状选择弹窗 ===== */
.symptom-overlay {
  display:none;position:fixed;top:0;left:0;right:0;bottom:0;
  background:rgba(0,0,0,0.45);z-index:10000;
  align-items:flex-end;justify-content:center;
}
.symptom-panel {
  background:#fffbf0;width:100%;max-width:600px;max-height:75vh;
  border-radius:12px 12px 0 0;display:flex;flex-direction:column;
  box-shadow:0 -4px 20px rgba(0,0,0,0.2);
  animation:symptomSlideUp 0.2s ease;
}
@keyframes symptomSlideUp { from{transform:translateY(100%)} to{transform:translateY(0)} }
.symptom-header {
  display:flex;justify-content:space-between;align-items:center;
  padding:14px 18px;border-bottom:2px solid #d4af37;
  font-size:16px;font-weight:bold;color:#8b0000;letter-spacing:2px;
}
.symptom-close {
  background:none;border:none;font-size:18px;cursor:pointer;color:#999;padding:4px 8px;
}
.symptom-body { flex:1;overflow-y:auto;padding:12px 16px; }
.symptom-group { margin-bottom:14px; }
.symptom-cat-label {
  display:block;font-size:14px;font-weight:bold;color:#8b0000;
  margin-bottom:8px;padding-left:4px;border-left:3px solid #d4af37;padding-left:8px;
}
.symptom-tags { display:flex;flex-wrap:wrap;gap:8px; }
.symptom-tag {
  display:inline-block;padding:6px 14px;border:1px solid #d4af37;border-radius:20px;
  font-size:13px;color:#3d2914;background:#fff;cursor:pointer;transition:all 0.15s;
  user-select:none;
}
.symptom-tag:hover,.symptom-tag:active {
  background:linear-gradient(180deg,#8b0000,#6b0000);color:#f5e6c8;border-color:#8b0000;
}
.symptom-duration {
  padding:10px 16px;border-top:1px solid #e8d9b8;background:#faf6ec;
}
.symptom-footer {
  display:flex;gap:8px;padding:12px 16px;border-top:1px solid #e8d9b8;
}
.symptom-footer input {
  flex:1;padding:8px 12px;border:1px solid #c9a96e;border-radius:6px;
  font-size:14px;font-family:inherit;background:#fff;
}
.symptom-btn-clear {
  padding:8px 16px;background:#f5f0e6;border:1px solid #c9a96e;border-radius:6px;
  cursor:pointer;font-size:14px;color:#8b6914;font-family:inherit;
}
.symptom-btn-ok {
  padding:8px 20px;background:linear-gradient(180deg,#8b0000,#6b0000);color:#f5e6c8;
  border:1px solid #d4af37;border-radius:6px;cursor:pointer;font-size:14px;font-family:inherit;
}

/* ===== 自定义日期选择器 ===== */
.dp-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:rgba(0,0,0,0.45);z-index:99999;display:flex;align-items:flex-end;justify-content:center}
.dp-overlay.dp-center{align-items:center}
.dp-box{background:#fffbf0;border-radius:12px 12px 0 0;width:100%;max-width:420px;box-shadow:0 -4px 20px rgba(0,0,0,0.15);font-family:inherit;user-select:none}
.dp-center .dp-box{border-radius:12px;max-width:360px}
.dp-header{display:flex;align-items:center;justify-content:space-between;padding:14px 16px;border-bottom:1px solid #e8d9b8}
.dp-nav-btn{width:36px;height:36px;display:flex;align-items:center;justify-content:center;font-size:20px;color:#8b0000;cursor:pointer;border-radius:50%;background:none;border:none}
.dp-nav-btn:active{background:#f5e6c8}
.dp-title{display:flex;gap:8px;align-items:center}
.dp-title span{font-size:16px;font-weight:700;color:#3d2914;cursor:pointer;padding:4px 10px;border-radius:6px}
.dp-title span:active{background:#f5e6c8}
.dp-title span.dp-active{background:#8b0000;color:#f5e6c8}
.dp-weekdays{display:grid;grid-template-columns:repeat(7,1fr);text-align:center;padding:8px 0 4px;font-size:13px;color:#8b6914;font-weight:600}
.dp-days{display:grid;grid-template-columns:repeat(7,1fr);gap:2px;padding:4px 8px 8px}
.dp-day{text-align:center;padding:8px 0;font-size:14px;color:#3d2914;cursor:pointer;border-radius:50%;width:38px;height:38px;line-height:22px;margin:0 auto;display:flex;align-items:center;justify-content:center}
.dp-day:active{background:#f5e6c8}
.dp-day.dp-other{color:#ccc}
.dp-day.dp-today{color:#8b0000;font-weight:700;position:relative}
.dp-day.dp-today::after{content:'';position:absolute;bottom:2px;left:50%;transform:translateX(-50%);width:4px;height:4px;border-radius:50%;background:#8b0000}
.dp-day.dp-selected{background:linear-gradient(180deg,#8b0000,#6b0000);color:#f5e6c8;font-weight:700}
.dp-day.dp-selected.dp-today::after{background:#f5e6c8}
.dp-footer{display:flex;border-top:1px solid #e8d9b8}
.dp-footer button{flex:1;padding:12px;border:none;background:none;font-size:14px;cursor:pointer;color:#8b6914;font-family:inherit}
.dp-footer button:active{background:#f5e6c8}
.dp-footer .dp-ok{color:#8b0000;font-weight:700;border-left:1px solid #e8d9b8}
.dp-footer .dp-today-btn{border-left:1px solid #e8d9b8}
/* 年月选择视图 */
.dp-month-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;padding:16px}
.dp-month-item{text-align:center;padding:12px 0;font-size:14px;color:#3d2914;cursor:pointer;border-radius:8px;border:1px solid #e8d9b8}
.dp-month-item:active{background:#f5e6c8}
.dp-month-item.dp-selected{background:linear-gradient(180deg,#8b0000,#6b0000);color:#f5e6c8;border-color:#8b0000}
.dp-year-list{max-height:240px;overflow-y:auto;padding:8px}
.dp-year-item{text-align:center;padding:10px;font-size:15px;color:#3d2914;cursor:pointer;border-radius:6px}
.dp-year-item:active{background:#f5e6c8}
.dp-year-item.dp-selected{background:linear-gradient(180deg,#8b0000,#6b0000);color:#f5e6c8;font-weight:700}
.dp-year-nav{display:flex;justify-content:space-between;padding:8px 16px;border-bottom:1px solid #e8d9b8}
.dp-year-nav button{background:none;border:none;font-size:16px;color:#8b0000;cursor:pointer;padding:6px 16px;border-radius:6px}
.dp-year-nav button:active{background:#f5e6c8}
@media(min-width:768px){
  .dp-box{max-width:380px}
}
