﻿/* ═══════════════════════════════════════
   家谱树样式
═══════════════════════════════════════ */

.tree-page {
  display: flex; flex-direction: column;
  height: calc(100vh - 60px);
  overflow: hidden;
}

/* 工具栏 */
.tree-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: .75rem 1.5rem;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  gap: 1rem; flex-wrap: wrap;
}
.tree-toolbar-left { display: flex; align-items: center; gap: 1rem; }
.tree-toolbar-right { display: flex; align-items: center; gap: .7rem; }
.tree-toolbar-title-block {
  min-width: 0;
}
.tree-toolbar-title-block h3 {
  margin: 0;
}
.tree-toolbar-meta {
  margin-top: 4px;
  font-size: .82rem;
  color: var(--text-muted);
}


/* 画布包裹（可拖拽缩放） */
.tree-canvas-wrap {
  flex: 1; overflow: auto;
  background:
    radial-gradient(circle at center, transparent 0%, transparent 100%),
    repeating-linear-gradient(0deg, transparent, transparent 39px, rgba(0,0,0,.04) 40px),
    repeating-linear-gradient(90deg, transparent, transparent 39px, rgba(0,0,0,.04) 40px);
  background-color: var(--bg);
  position: relative;
  cursor: grab;
}
.tree-canvas-wrap:active { cursor: grabbing; }
.tree-canvas {
  position: relative;
  display: block;
  margin: 0 auto;
  transform-origin: top left;
  min-width: 0;
  min-height: 100%;
}

/* ── 主树沿用旁系结构排版 ───────────────── */
.tree-stage {
  min-width: 1020px;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 1.3rem 0 1.5rem;
}

.tree-generation-block {
  width: 100%;
}

.tree-level-row {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 1.25rem;
}

.tree-level-row-self {
  width: min(100%, 1680px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: flex-start;
  gap: 1rem;
}

.tree-level-side {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 1rem 1.25rem;
}

.tree-level-side.is-left {
  justify-content: flex-end;
}

.tree-level-side.is-right {
  justify-content: flex-start;
}

.tree-level-center {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.tree-generation-flow {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 1rem 1.25rem;
  max-width: min(100%, 1680px);
}

.tree-generation-unit {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.tree-generation-unit.is-couple {
  flex-shrink: 0;
}

.tree-couple-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.tree-couple-row.has-spouse::before {
  content: '';
  position: absolute;
  left: calc(50% - 46px);
  right: calc(50% - 46px);
  top: 50%;
  height: 3px;
  transform: translateY(-50%);
  border-radius: 999px;
  background: #D64545;
  opacity: .95;
}

.tree-stage-link {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .2rem;
  margin: -.1rem 0 .05rem;
}

.tree-stage-link.is-summary {
  opacity: .72;
}

.tree-level-rail {
  position: relative;
  width: min(78%, 720px);
  height: 20px;
  margin: 0 auto;
}

.tree-level-rail::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 2px;
  transform: translateY(-50%);
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(201,168,76,.08), rgba(201,168,76,.85), rgba(201,168,76,.08));
}

.tree-connector {
  position: relative;
  width: 2px;
  height: 42px;
  margin: -.1rem auto 0;
  background: linear-gradient(180deg, rgba(201,168,76,.12), rgba(201,168,76,.95), rgba(201,168,76,.12));
  border-radius: 999px;
}

.tree-connector::before,
.tree-connector::after {
  content: '';
  position: absolute;
  left: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  transform: translateX(-50%);
  background: #C9A84C;
  box-shadow: 0 0 0 4px rgba(201,168,76,.14);
}

.tree-connector::before { top: -2px; }
.tree-connector::after { bottom: -2px; }

.tree-stage .tree-node-wrap {
  min-width: 190px;
}

.tree-stage .node-card {
  min-width: 176px;
  max-width: 230px;
  padding-right: 1rem;
}

.tree-stage .node-name {
  max-width: 110px;
}

.tree-stage .tree-level-summary-row {
  width: 100%;
}

.tree-stage .generation-summary-card {
  max-width: min(760px, 100%);
}


/* ── 家谱节点 ────────────────────────── */

.tn-col {
  display: flex; flex-direction: column;
  align-items: center;
  gap: 2rem;
}
.tn-row {
  display: flex; align-items: flex-start;
  gap: 2rem;
}

/* 节点外层包裹（用于定位操作按钮） */
.tree-node-wrap {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
}

.tree-node {
  position: relative;
  display: flex; flex-direction: column;
  align-items: center;
  gap: .3rem;
  cursor: pointer;
}

.tree-node.is-focused .node-card {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,.18), 0 10px 24px rgba(139,26,26,.18);
}


.node-card {
  display: flex; flex-direction: row; align-items: center;
  gap: .5rem;
  padding: .5rem .9rem;
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  transition: all .2s;
  min-width: 130px;
  position: relative;
}
.node-card:hover { border-color: var(--primary); box-shadow: 0 4px 16px rgba(139,26,26,.18); }
.node-card.self  { border-color: var(--gold); background: linear-gradient(135deg, #FFF8EC, #FFF); }
.node-card.deceased { border-color: #aaa; background: #f5f5f5; }
/* 家谱封顶成员特殊样式（2026-04-05） */
.node-card.ceiling-member { border-color: #888; background: linear-gradient(135deg,#f0f0f0,#e8e8e8); }

.node-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
  flex-shrink: 0;
}
.node-avatar-placeholder {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--bg-dark);
  border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; font-weight: 700;
  color: #C9A84C;
  flex-shrink: 0;
}

.node-info { flex: 1; min-width: 0; }
.node-relation {
  font-size: .7rem; color: var(--text-muted);
  margin-bottom: 1px;
}
.tree-node-relation-text,
.relation-intro-trigger {
  display: inline-flex;
  align-items: center;
  cursor: help;
  text-decoration: underline dotted rgba(139, 26, 26, .32);
  text-underline-offset: 2px;
}
.relation-intro-popover {
  position: fixed;
  z-index: 9999;
  width: min(360px, calc(100vw - 32px));
  padding: .82rem .9rem;
  border-radius: 14px;
  border: 1px solid rgba(201, 168, 76, .42);
  background: rgba(255, 251, 244, .98);
  box-shadow: 0 16px 38px rgba(92, 48, 14, .16);
  color: #5a3d22;
  line-height: 1.8;
  font-size: .74rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity .18s ease, transform .18s ease;
}
.relation-intro-popover.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.relation-intro-popover-title {
  margin-bottom: .35rem;
  color: #8B1A1A;
  font-size: .82rem;
  font-weight: 700;
}
.relation-intro-popover-body {
  white-space: pre-wrap;
}
.spouse-marker {

  margin-left: 4px;
  font-size: .9rem;
  opacity: .8;
}
.node-name {
  font-size: .92rem; font-weight: 700;
  color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 80px;
}
.node-name.gender-name-male,
.tree-view-member-name.gender-name-male {
  color: #2F6FD6 !important;
}
.node-name.gender-name-female,
.tree-view-member-name.gender-name-female {
  color: #C6284D !important;
}
.node-name .gen-hidden {
  color: #C0B0A0; font-weight: 400;
}
.node-gender {
  font-size: .65rem;
  color: var(--text-muted);
}

.node-years {
  font-size: .62rem;
  color: #8B5E3C;
  margin-top: 1px;
  white-space: nowrap;
}
.node-extra-actions {
  margin-top: 6px;
  display: flex;
  justify-content: flex-start;
}
.node-collateral-actions {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.node-collateral-btn {

  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 26px;
  padding: 0 6px 0 9px;
  border-radius: 999px;
  border: 1px solid rgba(201, 168, 76, .72);
  background: linear-gradient(135deg, rgba(253, 248, 240, .98), rgba(250, 242, 227, .98));
  color: #8B1A1A;
  font-size: .68rem;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s;
}
.node-collateral-label {
  letter-spacing: .02em;
}
.node-collateral-count {
  display: inline-flex;
  align-items: center;
  min-height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(139, 26, 26, .08);
  color: #8B5E3C;
  font-weight: 700;
}
.node-collateral-btn.has-count {
  border-color: #C9A84C;
  box-shadow: 0 3px 12px rgba(201, 168, 76, .18);
}
.node-collateral-btn.is-empty {
  border-style: dashed;
  opacity: .92;
}
.node-collateral-btn:hover {
  background: #8B1A1A;
  color: #fff;
  border-color: #8B1A1A;
  transform: translateY(-1px);
}
.node-collateral-btn:hover .node-collateral-count {
  background: rgba(255,255,255,.16);
  color: rgba(255,255,255,.94);
}
.node-direct-collateral-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(139, 26, 26, .22);
  background: rgba(255,255,255,.96);
  color: #8B1A1A;
  font-size: .68rem;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s;
}
.node-direct-collateral-btn:hover {
  background: linear-gradient(135deg, #8B1A1A, #6f1414);
  color: #fff;
  border-color: #8B1A1A;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(139, 26, 26, .16);
}
.node-generation {


  font-size: .68rem;
  color: var(--primary);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 0 3px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* 添加按钮（↑ ↓ → ）*/
.node-add-btn {
  display: flex; align-items: center; justify-content: center;
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 1.5px dashed var(--border);
  background: var(--white);
  color: var(--text-muted);
  font-size: 1rem;
  cursor: pointer; transition: all .2s;
  flex-shrink: 0;
}
.node-add-btn:hover {
  border-color: var(--primary); color: var(--primary);
  background: var(--bg-dark);
}

/* 删除按钮（定位在 tree-node 右上角，绕开 node-card overflow） */
.node-del-btn {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 1.5px solid #e74c3c;
  background: #fff;
  color: #e74c3c;
  font-size: .9rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transition: opacity .2s;
  z-index: 20;
  padding: 0;
}
.tree-node:hover .node-del-btn,
.tree-node-wrap:hover .node-del-btn {
  opacity: 1;
}
.node-del-btn:hover {
  background: #e74c3c; color: #fff;
}

/* "设为自己"按钮（内联在名字后面） */
.node-name-row {
  display: flex;
  align-items: center;
  gap: 3px;
}
.node-set-self-btn-inline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 1.5px solid var(--primary);
  background: var(--white);
  color: var(--primary);
  font-size: .6rem;
  cursor: pointer;
  transition: all .2s;
  opacity: 0;
  padding: 0;
  flex-shrink: 0;
  line-height: 1;
}
.tree-node-wrap:hover .node-set-self-btn-inline {
  opacity: 1;
}
.node-set-self-btn-inline:hover {
  background: var(--primary);
  color: var(--white);
  transform: scale(1.15);
}

/* 夫妻节点等高：通过 JS 对夫妻对设置相同 min-height */
.node-card.spouse-sync {
  align-items: flex-start; /* 内容顶部对齐，高度由 min-height 控制 */
}

/* 上/下按钮在 wrap 内垂直排列 */
.node-btn-top    { order: 0; }
.tree-node       { order: 1; }
.node-btn-bottom { order: 2; }

/* 右边按钮绝对定位在 wrap 右侧中间 */
.node-btn-right {
  position: absolute;
  right: -34px;
  top: 50%;
  transform: translateY(-50%);
}

/* 连接线（用 SVG 绝对定位覆盖，由 JS 绘制） */
.tree-svg-lines {
  position: absolute; inset: 0;
  pointer-events: none; z-index: 0;
}
.tree-node-wrap { z-index: 1; }

/* 折叠代际摘要 */
.tree-level-summary-row {
  z-index: 1;
  display: flex;
  justify-content: center;
}


.generation-summary-card {
  width: 100%;
  max-width: 560px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .9rem 1rem;
  border-radius: 14px;
  border: 1.5px solid #D9C2A4;
  background: rgba(253, 248, 240, .96);
  box-shadow: 0 6px 20px rgba(139, 26, 26, .08);
}

.generation-summary-main {
  flex: 1;
  min-width: 0;
  text-align: left;
}


.generation-summary-title {
  font-size: .98rem;
  font-weight: 700;
  color: var(--primary);
}

.generation-summary-meta {
  margin-top: 4px;
  font-size: .78rem;
  color: var(--text-muted);
}

.generation-expand-btn {
  flex-shrink: 0;
  min-width: 74px;
  height: 34px;
  padding: 0 .9rem;
  border-radius: 999px;
  border: 1px solid var(--primary);
  background: var(--white);
  color: var(--primary);
  font-weight: 700;
  cursor: pointer;
  transition: all .2s;
}

.generation-expand-btn:hover {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(139, 26, 26, .2);
}

.family-summary-card {
  width: min(100%, 360px);
  padding: .82rem .92rem;
  border-radius: var(--radius-sm);
  border: 2px solid rgba(157, 123, 70, .5);
  background: linear-gradient(135deg, rgba(246, 241, 233, .98), rgba(233, 225, 214, .98));
  box-shadow: var(--shadow);
}

.family-summary-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .6rem;
}

.family-summary-title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text);
}

.family-summary-toggle {
  flex-shrink: 0;
  min-width: auto;
  height: 32px;
  padding: 0 .82rem;
  border-radius: 6px;
  border: 1px solid rgba(60, 52, 48, .06);
  background: #d8d3ce;
  color: #3c3430;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s;
}

.family-summary-toggle:hover {
  background: #c8c2bc;
  color: #241d1a;
}

.family-summary-list {
  margin-top: .72rem;
  display: flex;
  flex-direction: column;
  gap: .42rem;
}

.family-summary-entry {
  display: flex;
  flex-direction: column;
  gap: .26rem;
}

.family-summary-person-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .8rem;
}

.family-summary-person-text {
  flex: 1;
  min-width: 0;
  font-size: .84rem;
  line-height: 1.55;
  color: var(--text);
  word-break: break-all;
}

.family-summary-name {
  font-size: .84rem;
  font-weight: 700;
}

.family-summary-inline-count {
  flex-shrink: 0;
  font-size: .78rem;
  line-height: 1.4;
  font-weight: 600;
  white-space: nowrap;
  color: #7d746b;
}

.family-summary-inline-count.is-direct {
  color: #6f6660;
}

.family-summary-inline-count.is-collateral {
  color: #8a8178;
}

.family-summary-fallback-label {
  color: var(--text-muted);
}

.family-summary-card.is-merged {
  width: min(100%, 360px);
}

.tree-level-side.is-merged-summary {
  align-items: flex-start;
  justify-content: flex-start;
}


.tree-level-summary-row-inline {
  margin-top: .95rem;
  justify-content: center;
}


.family-summary-collapse-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0 .82rem;
  border-radius: 999px;
  border: 1px solid rgba(139, 26, 26, .22);
  background: rgba(255, 248, 236, .96);
  color: var(--primary);
  font-weight: 700;
  cursor: pointer;
  transition: all .2s;
}

.family-summary-collapse-chip:hover {
  background: var(--primary);
  color: #fff;
}


/* ── 图例 ── */

.tree-legend {
  position: fixed; bottom: 1rem; left: 50%; transform: translateX(-50%);
  background: rgba(0,0,0,.55); color: #ddd;
  border-radius: 20px; padding: .35em 1.2em;
  font-size: .78rem; backdrop-filter: blur(4px);
  pointer-events: none;
}

/* ── 弹窗 ── */
.modal-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 1000;
  align-items: center; justify-content: center;
}
.modal-overlay.show { display: flex; }
.modal-box {
  background: #fff;
  border-radius: 10px;
  padding: 1.8rem;
  width: 90%; max-width: 520px;
  max-height: 90vh; overflow-y: auto;
  box-shadow: 0 16px 48px rgba(0,0,0,.3);
}
.modal-box h3 { margin-bottom: 1.2rem; color: #8B1A1A; }

/* ── 响应式 ── */
@media (max-width: 768px) {
  .tree-toolbar {
    padding: .75rem 1rem;
    align-items: flex-start;
  }
  .tree-toolbar-left,
  .tree-toolbar-right {
    width: 100%;
  }
  .tree-toolbar-right {
    flex-wrap: wrap;
  }
  .tree-toolbar-right .btn {
    white-space: nowrap;
  }
  .tree-canvas { margin: 0 auto; }

  .node-card {
    min-width: 110px;
    max-width: 168px;
    padding: .45rem .7rem;
  }
  .node-name {
    max-width: 66px;
  }
  .node-btn-right {
    right: -30px;
  }
  .generation-summary-card {
    flex-direction: column;
    align-items: flex-start;
  }
  .generation-expand-btn {
    width: 100%;
  }
  .family-summary-card {
    width: 100%;
  }
  .family-summary-head {
    flex-wrap: wrap;
    align-items: center;
  }
  .family-summary-toggle {
    width: auto;
  }
  .family-summary-person-line {
    flex-wrap: wrap;
    gap: .25rem .6rem;
  }

  .tree-legend {
    bottom: .8rem;
    font-size: .72rem;
  }
}

@media (max-width: 520px) {
  .tree-page {
    height: auto;
    min-height: calc(100vh - 60px);
  }
  .tree-canvas-wrap {
    min-height: calc(100vh - 180px);
  }
  .tree-legend {
    display: none;
  }
}

/* ═══════════════════════════════════════
   日期选择器（阳历/农历滚轮）
══════════════════════════════════════ */
.gearDate {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 8px;
  display: block;
  position: fixed;
  top: 220px;
  left: 0;
  width: 100%;
  height: 240px;
  z-index: 9900;
  overflow: hidden;
  -webkit-animation-fill-mode: both;
  animation-fill-mode: both;
  -webkit-transform: translateZ(0);
}
.date_ctrl {
  vertical-align: middle;
  background-color: #fff;
  border: 1px solid #eedba1;
  border-radius: 5px;
  color: #363837;
  margin: 0;
  height: auto;
  width: 96%;
  max-width: 600px;
  position: absolute;
  left: 50%;
  top: 0;
  z-index: 9902;
  overflow: hidden;
  -webkit-transform: translate(-50%, 0);
  transform: translate(-50%, 0);
}
.bounceInUp {
  animation: bounceInUp .3s ease-in;
  -webkit-animation: bounceInUp .3s ease-in;
}
@keyframes bounceInUp {
  from { -webkit-transform: translate(-50%, -100%); transform: translate(-50%, -100%); }
  to   { -webkit-transform: translate(-50%, 0);    transform: translate(-50%, 0); }
}
.date_head_info {
  text-align: center;
  font-size: 2em;
  color: #fe5b00;
  border-bottom: 1px solid #f6f6f6;
  padding: .5em 0;
  font-weight: 700;
}
.date_class_box {
  text-align: center;
  padding: .8em 2em;
}
.date_class {
  display: inline-block;
  font-size: 2em;
  width: 40%;
  height: 24px;
  line-height: 24px;
  text-align: center;
  color: #cc9952;
  border: 1px solid #cc9952;
  cursor: pointer;
}
.date_class_box .date_class:first-child { border-top-left-radius: .2em; border-bottom-left-radius: .2em; }
.date_class_box .date_class:last-child  { border-top-right-radius: .2em; border-bottom-right-radius: .2em; }
.date_class_box .active { background-color: #cc9952; color: #fff; }
.date_btn_wrap {
  overflow: hidden;
  position: relative;
  border-top: 1px solid #d4d4d4;
  margin: 0 auto;
  padding: .8em 2em;
  width: 90%;
  height: 39px;
}
.lcalendar_finish {
  background-color: #cc9952;
  color: #fff;
  font-size: 1.6em;
  line-height: 1em;
  text-align: center;
  padding: .8em 1em;
  cursor: pointer;
  float: left;
  width: 40%;
  box-sizing: border-box;
  border: 1px solid #cc9952;
}
.lcalendar_cancel {
  background-color: #fff;
  color: #cc9952;
  font-size: 1.6em;
  line-height: 1em;
  text-align: center;
  padding: .8em 1em;
  cursor: pointer;
  float: left;
  width: 40%;
  box-sizing: border-box;
  border: 1px solid #cc9952;
  margin-left: 10%;
}
.date_confirm_wrap { display: none; }
.confirm_tit { font-size: 1.8em; text-align: center; padding: .5em; font-weight: 700; }
.confirm_tip { font-size: 1.2em; text-align: center; color: #888; padding-bottom: .5em; }
.confirm_info { padding: .5em 1.5em 1em; }
.confirm_info_p { font-size: 1.4em; padding: .3em 0; }
.confirm_info_gongli { color: #d44; }
.confirm_info_nongli { color: #4a8; }
.confirm_btn { display: flex; gap: 1em; padding: 0 1.5em 1em; }
.confirm_btn_cancel, .confirm_btn_finish {
  flex: 1;
  text-align: center;
  font-size: 1.4em;
  padding: .6em;
  border-radius: .2em;
  cursor: pointer;
}
.confirm_btn_cancel  { background: #fff; color: #cc9952; border: 1px solid #cc9952; }
.confirm_btn_finish  { background: #cc9952; color: #fff; border: 1px solid #cc9952; }

.gear {
  float: left;
  position: absolute;
  z-index: 9902;
  width: 5.5em;
  margin-top: -6em;
  cursor: pointer;
}
.date_roll > div .gear { width: 100%; }
.tooth, .tooth2 {
  height: 2em;
  line-height: 2em;
  text-align: center;
}
.date_roll {
  position: relative;
  width: 100%;
  height: auto;
  overflow: hidden;
  font-weight: bold;
  background-color: transparent;
  -webkit-mask: -webkit-gradient(linear, 0% 50%, 0% 100%, from(#debb47), to(rgba(36, 142, 36, 0)));
  -webkit-mask: -webkit-linear-gradient(top, #debb47 50%, rgba(36, 142, 36, 0));
}
.date_roll_mask {
  padding: 0 1em;
  -webkit-mask: -webkit-gradient(linear, 0% 40%, 0% 0%, from(#debb47), to(rgba(36, 142, 36, 0)));
  -webkit-mask: -webkit-linear-gradient(bottom, #debb47 50%, rgba(36, 142, 36, 0));
}
.date_grid {
  position: relative;
  top: 2em;
  width: 100%;
  height: 2em;
  margin: 0;
  box-sizing: border-box;
  z-index: 0;
  background-color: #e8e8e8;
  border-top: 1px solid #d4d4d4;
  border-bottom: 1px solid #d4d4d4;
}
.datesc {
  font-size: 2em;
  height: 6em;
  float: left;
  background-color: transparent;
  position: relative;
  overflow: hidden;
  width: 16.9%;
}
.datehh {
  font-size: 2em;
  height: 6em;
  float: left;
  background-color: transparent;
  position: relative;
  overflow: hidden;
  width: 46.5%;
}
.date_roll.date_roll_hhii > div:last-child { width: 50%; }

/* 成员表单内的日期输入 */
.date-input-trigger {
  width: 100%;
  height: 30px;
  line-height: 30px;
  border-radius: 5px;
  border: 1px solid #d0ad9a;
  background: #fff;
  font-size: 13px;
  color: #3e4144;
  padding: 0 8px;
  box-sizing: border-box;
  cursor: pointer;
}
.date-input-trigger:hover { border-color: #cc9952; }
.date-type-badge {
  display: inline-block;
  font-size: 10px;
  padding: 1px 4px;
  border-radius: 3px;
  margin-right: 4px;
  vertical-align: middle;
}
.date-type-badge.solar { background: #7b2ff7; color: #fff; }
.date-type-badge.lunar { background: #8B1A1A; color: #fff; }


