/* ============================================================
 * 企业轻量智能助手 · 时钟面板
 *
 * 设计基调：简约商务科技 / 干净克制 / 低特效 / 2D 平面 UI
 *   · 问候语：稳重商务粗宋体 + 浅蓝短下划线
 *   · 时间：七段数码管（斜切端点）+ 白色 + 柔和外发光（不爆糊）
 *   · 秒数：缩小后置于面板最右
 *   · 日期/星期：深色半透明胶囊 + 右上角蓝色方形标记点
 * ============================================================ */

/* ---------- 七段数码管 ---------- */
.d7{
  position:relative;
  width:var(--d7w,34px);
  height:var(--d7h,60px);
  flex:0 0 auto;
}
/* 段条本体：灭掉的段**完全不可见**（不要半透明影子）——
   这样显示「1」时就只剩右侧两条竖线，其余 5 段彻底消失。 */
.d7 i{
  position:absolute;
  background:transparent;
  transition:background .2s;
}
/* 横段 a/g/d：两端斜切 */
.d7 i.h{
  left:11%;width:78%;height:8.5%;
  clip-path:polygon(14% 0,86% 0,100% 50%,86% 100%,14% 100%,0 50%);
}
.d7 i.a{top:0;}
.d7 i.g{top:calc(50% - 4.25%);}
.d7 i.d{bottom:0;}
/* 竖段 f/b/e/c：两端斜切 */
.d7 i.v{
  width:8.5%;height:38%;
  clip-path:polygon(50% 0,100% 14%,100% 86%,50% 100%,0 86%,0 14%);
}
.d7 i.f{left:0;top:5%;}
.d7 i.b{right:0;top:5%;}
.d7 i.e{left:0;bottom:5%;}
.d7 i.c{right:0;bottom:5%;}

/* 点亮态：纯白，无发光无阴影 */
.d7.lit i.on{
  background:var(--d7-on,#fff);
  box-shadow:none;
}
/* 灭态：彻底不显示 */
.d7.lit i.off{
  background:transparent;
  box-shadow:none;
}

/* ---------- 翻页动画（标准 4 层 flip clock） ----------
   静态层：显示新数字的上下两半
   动画层：旧数字上半向下盖 / 旧数字下半向上翻
   ⚠ 动画层 z-index 更高，翻完后旧数字完全让位给新数字。 */
@keyframes d7flipDown{
  0%{transform:rotateX(0deg);}
  100%{transform:rotateX(-90deg);}
}
@keyframes d7flipUp{
  0%{transform:rotateX(90deg);}
  100%{transform:rotateX(0deg);}
}
.d7 .half{position:absolute;left:0;right:0;height:50%;overflow:hidden;
  backface-visibility:hidden;-webkit-backface-visibility:hidden;}
.d7 .half.up{top:0;border-radius:3px 3px 0 0;transform-origin:bottom center;}
.d7 .half.dn{bottom:0;border-radius:0 0 3px 3px;transform-origin:top center;}
.d7 .half.up.st,.d7 .half.dn.st{z-index:1;}
.d7 .half.up.anim{transform-origin:bottom center;animation:d7flipDown .26s ease-in forwards;z-index:3;}
.d7 .half.dn.anim{transform-origin:top center;animation:d7flipUp .26s ease-out .26s both;z-index:3;}

/* 数字在各自半区内的定位：上半底部对齐、下半顶部对齐 */
.d7 .half .d7in{
  position:absolute;left:0;right:0;
  height:calc(var(--d7h,60px) * 2);
  display:flex;align-items:center;justify-content:center;
}
.d7 .half.up .d7in{bottom:0;}
.d7 .half.dn .d7in{top:0;}

/* ---------- 时钟容器 ----------
   2026-10-30 按需求去掉外围的框和背景色 —— 只留布局，不做任何装饰 */
.hero-clockpanel{
  position:relative;
  display:flex;align-items:center;
  margin-top:10px;
  padding:0;
  background:none;
  border:none;
  box-shadow:none;
  -webkit-backdrop-filter:none;
  backdrop-filter:none;
}

/* ---------- 面板内数字排布 ---------- */
.hero-flip{
  display:flex;align-items:center;
  width:100%;
  gap:clamp(3px,.55vw,8px);
  --d7w:clamp(30px,3.5vw,46px);
  --d7h:clamp(52px,6.2vw,82px);
}
.hero-flip .colon{
  font-size:clamp(24px,3.1vw,40px);font-weight:300;color:#fff;
  line-height:1;padding:0 2px 0 1px;
  text-shadow:none;
  font-variant-numeric:tabular-nums;
  animation:d7colon 1s steps(1,end) infinite;
}
@keyframes d7colon{0%,49%{opacity:1}50%,100%{opacity:.28}}

/* ---------- 问候语：粗宋体 + 浅蓝短下划线 ---------- */
.hero-greet{
  position:relative;
  display:inline-block;
  font-family:"Source Han Serif SC","Noto Serif SC","STZhongsong","华文中宋","宋体",SimSun,serif;
  font-size:24px;font-weight:700;letter-spacing:2px;line-height:1.25;
  color:#fff;
  text-shadow:0 2px 10px rgba(6,26,60,.26);
  padding-bottom:7px;
}
/* 浅蓝色短下划线装饰 */
.hero-greet::after{
  content:"";position:absolute;left:2px;bottom:0;
  width:44%;height:2px;border-radius:2px;
  background:linear-gradient(90deg,rgba(140,200,255,.92),rgba(140,200,255,0));
}

/* ---------- 日期 / 星期：深色半透明胶囊 + 右上角蓝点 ---------- */
/* 高度与问候语视觉齐平（问候语 27px 字号 + 下划线留白 ≈ 40px） */
.hero-pill{
  position:relative;
  display:inline-flex;align-items:center;
  height:41px;padding:0 17px;
  border-radius:21px;
  background:rgba(9,38,82,.30);
  border:1px solid rgba(150,200,255,.20);
  font-size:14.5px;font-weight:600;letter-spacing:.8px;
  color:rgba(255,255,255,.94);
  white-space:nowrap;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.07);
}
/* 右上角小蓝色方形标记点 */
.hero-pill .pill-dot{
  position:absolute;top:-2px;right:-2px;
  width:6px;height:6px;border-radius:1.5px;
  background:#5FB2FF;
  box-shadow:0 0 5px rgba(95,178,255,.6);
}

/* ---------- 顶行布局 ---------- */
.hero-hi{
  display:flex;flex-direction:column;align-items:flex-start;gap:7px;
  flex-wrap:wrap;
}
.hero-clockwrap{
  display:flex;flex-direction:column;gap:0;
  flex:1 1 auto;min-width:0;
}

@media(max-width:900px){
  .hero-greet{font-size:22px;letter-spacing:1.5px}
  .hero-clockpanel{padding:0;border-radius:0}
}
@media(max-width:560px){
  .hero-greet{font-size:19px;letter-spacing:1.5px;padding-bottom:5px}
  .hero-clockpanel{padding:0}
}

/* ---------- 农历 · 节日 · 节气（2026-10-31） ---------- */
.hero-cal{
  margin-top:10px;
  font-size:12px;font-weight:500;letter-spacing:.6px;
  color:rgba(255,255,255,.62);
  text-shadow:0 1px 6px rgba(6,26,60,.22);
  line-height:1.5;
}

/* ---------- 1116B：常规数字时钟 + 一行日期细字 ---------- */
.hero-time{
  display:inline-block;
  font-family:"Helvetica Neue",Arial,"PingFang SC","Microsoft YaHei",sans-serif;
  font-size:36px;font-weight:250;letter-spacing:1px;line-height:1.15;
  color:#fff;
  font-variant-numeric:tabular-nums;
  text-shadow:0 2px 14px rgba(6,26,60,.20);
}
.hero-dateline{
  display:inline-flex;align-items:center;flex-wrap:wrap;gap:7px;
  max-width:340px;
  font-size:13px;font-weight:400;letter-spacing:.3px;line-height:1.6;
  color:rgba(255,255,255,.80);
}
.hero-dateline i{font-style:normal;color:rgba(255,255,255,.45)}
.hero-sub{
  margin-top:8px;
  font-size:12px;font-weight:400;letter-spacing:.4px;
  color:rgba(255,255,255,.66);
}
.hero-clockwrap{max-width:340px}

/* 1116B2：断点规则必须排在上面基础规则之后，否则会被同特异性基础值覆盖 */
@media(max-width:900px){
  .hero-time{font-size:30px}
  .hero-dateline{max-width:280px}
}
@media(max-width:560px){
  .hero-time{font-size:26px}
  .hero-dateline{font-size:12px;max-width:240px}
}

