/* ============================================================
 * frame.css — 相框页样式（iOS 9 Safari 兼容）
 * 深色简约 · 半透明深灰卡片 · 白色信息 · 圆角20 · 1px 描边
 * 无 backdrop-filter（iOS 9 无毛玻璃）· Flexbox + 绝对定位
 * ============================================================ */

* { margin: 0; padding: 0; -webkit-box-sizing: border-box; box-sizing: border-box; }

html, body {
  width: 100%; height: 100%;
  overflow: hidden;
  background: #0a0c0f;
  font-family: -apple-system, "Helvetica Neue", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #fff;
  -webkit-user-select: none; user-select: none;
  -webkit-touch-callout: none;
  -webkit-text-size-adjust: 100%;
}

/* ---------- 照片层：A/B 双缓冲转场 ----------
   动画只施加在 .pf-slot 上（transform + opacity 由 frame.js 用内联样式驱动，
   故此处不写 transition，避免与内联冲突）。
   slot 用 translate3d(0,0,0) 常驻提升为 GPU 合成层，
   使内部背景层的合成结果缓存成纹理 —— 否则老设备逐帧重算必然掉帧。 */
.pf-slot {
  position: absolute; left: 0; top: 0; width: 100%; height: 100%;
  overflow: hidden;
  -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0);
  -webkit-backface-visibility: hidden; backface-visibility: hidden;
}
/* 备用 slot：默认不可见、透明（切图前的静默态） */
.pf-slot-idle { visibility: hidden; opacity: 0; }

.pf-bg, .pf-fg {
  position: absolute; left: 0; top: 0; width: 100%; height: 100%;
  background-repeat: no-repeat;
  background-position: center center;
}
.pf-bg {
  background-size: cover;
  background-color: #0a0c0f;   /* 兜底色：照片暗部用纯黑垫底 */
  /* ⚠️ 刻意不加模糊滤镜：背景源图是 240×320 缩略图，cover 放大到全屏（约 4 倍）后，
   * 浏览器双线性插值本身就已足够柔化，视觉接近模糊而**零卷积成本**。
   * 实测（iPad mini 1，512MB）：转场期间若带大半径模糊，老 WebKit 会每帧重算卷积、
   * 占满主线程 → 时钟停摆，且**卡住时长 = 动画时长**；小半径仍偏重。
   * 2026-09-05 彻底移除卷积，只留 brightness（逐像素乘法，成本可忽略）。
   * ⚠️ 注释里不要写形如 blur(Npx) 的字样 —— 会被 grep -o 抓到，误判为生效值。 */
  -webkit-filter: brightness(0.55);
  filter: brightness(0.55);
  /* 不再需要 scale(1.25)：那是用来抵消 blur 边缘淡出的；去掉后放大倍数更小、
   * 像素块更细，合成开销也少一层。末尾 translate3d 保证背景层自身也是合成层。 */
  -webkit-transform: translate3d(0, 0, 0);
  transform: translate3d(0, 0, 0);
}
.pf-fg { background-size: contain; }

.photo-loading {
  position: absolute; left: 50%; top: 50%;
  width: 46px; height: 46px; margin: -23px 0 0 -23px;
  border: 4px solid rgba(255,255,255,0.18);
  border-top-color: rgba(255,255,255,0.9);
  border-radius: 50%;
  -webkit-animation: spin 0.9s linear infinite; animation: spin 0.9s linear infinite;
}
@-webkit-keyframes spin { from { -webkit-transform: rotate(0deg);} to { -webkit-transform: rotate(360deg);} }
@keyframes spin { from { transform: rotate(0deg);} to { transform: rotate(360deg);} }

/* ---------- 等比缩放画布（1024×768 基准，JS 计算 scale 适配任意屏幕） ---------- */
.stage {
  position: fixed;
  left: 50%; top: 50%;
  width: 1024px; height: 768px;
  /* 必须显式高于照片层：转场结束后前台 .pf-slot 会被内联置为 z-index:2，
     若此处留 auto(≈0)，切换一次照片后时钟/卡片就被照片盖住。
     同时须低于 .edit-tip(90) 与 .login-mask(100)。 */
  z-index: 10;
  /* transform: translate(-50%, -50%) scale(s) 由 frame.js 的 fitStage() 设置 */
}

/* ---------- 通用卡片 ---------- */
.card {
  position: absolute;
  display: -webkit-flex; display: flex;
  -webkit-flex-direction: column; flex-direction: column;
  -webkit-align-items: center; align-items: center;
  -webkit-justify-content: center; justify-content: center;
  background: rgba(13, 16, 20, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  overflow: hidden;
  -webkit-transition: -webkit-transform 0.15s ease, box-shadow 0.15s ease;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card.hidden { display: none !important; }

/* 编辑模式高亮 */
body.edit-mode .card {
  border-color: rgba(255, 255, 255, 0.55);
  box-shadow: 0 0 0 2px rgba(64, 156, 255, 0.5);
}

/* ---------- 时钟：翻页时钟（HH : MM : SS，每位独立翻页）---------- */
.clock-body {
  text-align: center; width: 100%; height: 100%;
  display: -webkit-flex; display: flex;
  -webkit-flex-direction: column; flex-direction: column;
  -webkit-justify-content: center; justify-content: center;
  -webkit-box-sizing: border-box; box-sizing: border-box;
  padding: 0 8px;
}
.clock-main {
  display: -webkit-flex; display: flex;
  -webkit-align-items: center; align-items: center;   /* v9 修正：baseline→center。baseline 会让冒号按文本基线对齐（冒号字形沉在基线附近），视觉中心比数字低 ~0.1em；center 让 flip/冒号/秒按盒子中心同轴 */
  -webkit-justify-content: center; justify-content: center;
  font-weight: 500; letter-spacing: 1px;   /* v11：600→500 减轻笔画，更轻盈；字体用等宽/方正数字更有翻页钟质感 */
  font-family: "DIN Alternate", "SF Pro Display", "Helvetica Neue", "Arial", "Avenir Next", sans-serif;
  font-variant-numeric: tabular-nums;      /* 数字等宽，避免字距抖动 */
  line-height: 1;            /* 关键：行高 1 让 1em 高度等于一个字高 */
  white-space: nowrap;      /* 防止换行 */
  -webkit-flex-wrap: nowrap; flex-wrap: nowrap;
  -webkit-flex-shrink: 0; flex-shrink: 0;  /* 关键：自身不被父容器压缩 */
  max-width: 100%;           /* 关键：最大不超过父容器（卡片内宽） */
  box-sizing: border-box;
}
.clock-main > * { -webkit-flex-shrink: 0; flex-shrink: 0; }  /* 关键：所有直接子元素不被压缩 */
.clock-colon {
  display: inline-block;
  margin: 0 0.04em;              /* 收紧：0.08→0.04（em 随 scale 等比） */
  line-height: 1;
  vertical-align: baseline;
  color: rgba(255,255,255,0.7);
  -webkit-flex-shrink: 0;
          flex-shrink: 0;
}
.flip {
  position: relative;
  display: -webkit-flex; display: flex;
  -webkit-justify-content: center; justify-content: center;
  -webkit-align-items: center; align-items: center;
  -webkit-perspective: 800px;
  perspective: 800px;
  line-height: 1;
  height: 1em;
  min-width: 1.15em;        /* 两位数字的最小宽度（em 相对当前字号，会随 scale 等比缩放） */
  text-align: center;
  -webkit-flex-shrink: 0;
          flex-shrink: 0;
}
.flip-inner {
  position: relative;
  display: inline-block;
  height: 1em;                          /* 整体高度 = 1 个行高 */
  min-width: 1.0em;                     /* 1.2→1.0：贴合两位数字宽度，盒子不再多余留白 */
  padding: 0 0.05em;                    /* 收紧：0.08→0.05，让 flip 整体更紧 */
  border-radius: 10px;          /* 大字号适配：190px 下 5px 圆角太生硬 */
  background: rgba(255,255,255,0.06);
  overflow: hidden;
  line-height: 1em;
  text-align: center;
  vertical-align: top;
  -webkit-flex-shrink: 0;               /* 关键：不被父 .flip (flex) 压缩，否则两位数字变 1 位 */
          flex-shrink: 0;
  white-space: nowrap;                  /* 关键：两位数字不换行 */
}
.flip-top, .flip-bottom {
  position: absolute;
  left: 0; right: 0;
  height: 0.5em;                        /* 各占半行高 */
  overflow: hidden;
  line-height: 1em;
}
.flip-top    { top: -1px; height: calc(0.5em + 2px); }   /* v10.3: 上半多占 1px 顶, 1px 底, 覆盖接缝避免背景透出 */
.flip-bottom { bottom: -1px; height: calc(0.5em + 2px); }/* v10.3: 下半对称多占, 互相覆盖 1px */
.flip-top  > .digit,
.flip-bottom > .digit {
  display: block;
  line-height: 1em;
  text-align: center;
  white-space: nowrap;
}
.flip-bottom > .digit { margin-top: -0.5em; }  /* 关键：把数字顶拉出容器，露出下半截 */
/* v10.2 实验：彻底删除中缝线（猜测"右边被遮盖"是缝线穿过字形） */
.flip-top::after,
.flip-bottom::before {
  content: '';
  position: absolute; left: 0; right: 0;
  height: 0;
}
.flip-flap {
  position: absolute; left: 0; right: 0;
  top: 0; bottom: 50%;
  overflow: hidden;
  -webkit-transform-origin: 50% 100%;
          transform-origin: 50% 100%;
  -webkit-transform: rotateX(0deg);
          transform: rotateX(0deg);
  -webkit-backface-visibility: hidden;
          backface-visibility: hidden;
  opacity: 0;
  line-height: 1em;
}
.flip-flap .flip-top {
  position: static;            /* 不再 absolute，让自然流 */
  height: 100%;                /* 占满 flap 高度 = 0.5em */
  border-bottom: none;
}
.flip-flap .flip-bottom { display: none; }
.flip-flap .digit { display: block; line-height: 1em; text-align: center; }
.flip.anim .flip-flap {
  -webkit-transition: -webkit-transform 0.5s cubic-bezier(0.4,0,0.2,1), opacity 0.5s linear;
          transition:         transform 0.5s cubic-bezier(0.4,0,0.2,1), opacity 0.5s linear;
  -webkit-transform: rotateX(-90deg);
          transform: rotateX(-90deg);
  opacity: 1;
}
/* 秒容器：两位独立 flip，相对主时钟 0.50 倍字号（之前 0.42 被裁切） */
.clock-sec {
  display: inline-flex;         /* 关键：flex 容器让 2 个 flip 横排（否则 .flip 是 block 强制换行） */
  -webkit-flex-shrink: 0;
          flex-shrink: 0;       /* 关键：不被父 .clock-main 的 flex 压缩 */
  margin-left: 0.08em;          /* 收紧：0.18→0.08 */
  font-size: 0.50em;            /* 略放大：0.42→0.50（仍小于主时钟，但保证两位数字可读） */
  font-weight: 300;
  color: rgba(255,255,255,0.78);
  line-height: 1;
  vertical-align: baseline;
  -webkit-align-items: baseline; align-items: baseline;
}
.clock-sec .flip { margin: 0 1px; -webkit-flex-shrink: 0; flex-shrink: 0; }
.clock-date {
  margin-top: 0.55em;
  font-size: 0.20em; font-weight: 300;
  color: rgba(255,255,255,0.78);
  letter-spacing: 2px;
}

/* ---------- 日历 ---------- */
.cal-head {
  font-size: 0.24em; font-weight: 500; letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 4px;
}
.cal-grid { border-collapse: collapse; width: 92%; table-layout: fixed; }
.cal-grid th, .cal-grid td {
  text-align: center; vertical-align: middle;
  font-size: 0.19em; font-weight: 300;
  padding: 1px 0;
  color: rgba(255, 255, 255, 0.85);
}
.cal-grid th { color: rgba(255, 255, 255, 0.45); font-weight: 400; font-size: 0.16em; }
.cal-grid td.today {
  color: #0a0c0f; font-weight: 600;
  background: #ffffff;
  border-radius: 50%;
}
.cal-grid td.dim { color: rgba(255, 255, 255, 0.22); }

/* ---------- 天气 ---------- */
.weather-icon {
  width: 42%; height: 38%;
  position: relative;
}
.weather-temp { font-size: 0.30em; font-weight: 600; margin-top: 2px; }
.weather-text { font-size: 0.17em; font-weight: 300; color: rgba(255,255,255,0.8); }

/* 天气动画（CSS 简化版：太阳旋转 / 云飘 / 雨滴） */
.w-icon { position: absolute; left: 50%; top: 50%; width: 62%; height: 62%; margin: -31% 0 0 -31%; }
.w-sun {
  position: absolute; left: 22%; top: 18%; width: 46%; height: 46%;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ffe9a8, #ffcf5c 60%, #f5a623);
  -webkit-animation: spin-slow 18s linear infinite; animation: spin-slow 18s linear infinite;
}
.w-sun::after {
  content: ''; position: absolute; left: -18%; top: -18%; width: 136%; height: 136%;
  border: 2px solid rgba(255, 207, 92, 0.55);
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(255, 207, 92, 0.12), 0 0 0 12px rgba(255, 207, 92, 0.08);
}
.w-cloud {
  position: absolute; left: 10%; top: 30%; width: 80%; height: 40%;
  background: #e8eef4;
  border-radius: 40px;
  -webkit-animation: drift 6s ease-in-out infinite alternate; animation: drift 6s ease-in-out infinite alternate;
}
.w-cloud::before, .w-cloud::after {
  content: ''; position: absolute; background: #e8eef4; border-radius: 50%;
}
.w-cloud::before { width: 55%; height: 150%; left: 12%; top: -75%; }
.w-cloud::after  { width: 38%; height: 110%; left: 46%; top: -45%; }
.w-rain, .w-snow {
  position: absolute; left: 8%; top: 12%; width: 84%; height: 76%;
}
.w-rain i, .w-snow i {
  position: absolute; top: 0; width: 6%; height: 34%;
  border-radius: 3px;
  -webkit-animation: fall 1.1s linear infinite; animation: fall 1.1s linear infinite;
}
.w-rain i { background: rgba(120, 180, 255, 0.85); }
.w-snow i { background: rgba(255, 255, 255, 0.9); border-radius: 50%; width: 8%; height: 8%; }
.w-fog .w-cloud { opacity: 0.75; }
.w-thunder .w-cloud { background: #9aa6b2; -webkit-animation: none; animation: none; }
.w-thunder .w-cloud::before, .w-thunder .w-cloud::after { background: #9aa6b2; }

@-webkit-keyframes spin-slow { from { -webkit-transform: rotate(0);} to { -webkit-transform: rotate(360deg);} }
@keyframes spin-slow { from { transform: rotate(0);} to { transform: rotate(360deg);} }
@-webkit-keyframes drift { from { -webkit-transform: translateX(-6%);} to { -webkit-transform: translateX(6%);} }
@keyframes drift { from { transform: translateX(-6%);} to { transform: translateX(6%);} }
@-webkit-keyframes fall {
  0%   { -webkit-transform: translateY(-20%); opacity: 0; }
  30%  { opacity: 1; }
  100% { -webkit-transform: translateY(320%); opacity: 0; }
}
@keyframes fall {
  0%   { transform: translateY(-20%); opacity: 0; }
  30%  { opacity: 1; }
  100% { transform: translateY(320%); opacity: 0; }
}

/* ---------- 登录遮罩 ---------- */
.login-mask {
  position: fixed; left: 0; top: 0; width: 100%; height: 100%;
  background: rgba(8, 10, 13, 0.92);
  display: -webkit-flex; display: flex;
  -webkit-align-items: center; align-items: center;
  -webkit-justify-content: center; justify-content: center;
  z-index: 100;
}
.login-box {
  width: 76%; max-width: 420px;
  background: rgba(20, 24, 30, 0.92);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 20px;
  padding: 34px 30px;
  text-align: center;
}
.login-title { font-size: 20px; font-weight: 600; margin-bottom: 26px; }
.login-input {
  width: 100%; height: 46px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 10px;
  color: #fff; font-size: 18px; text-align: center;
  letter-spacing: 4px;
  outline: none;
  -webkit-appearance: none;
}
.login-btn {
  width: 100%; height: 46px; margin-top: 16px;
  background: #fff; color: #0a0c0f;
  border: none; border-radius: 10px;
  font-size: 17px; font-weight: 600;
  cursor: pointer;
}
.login-err { margin-top: 12px; color: #ff7a7a; font-size: 14px; min-height: 18px; }

/* ---------- 编辑模式提示 ---------- */
.edit-tip {
  position: fixed; left: 50%; top: 18px;
  -webkit-transform: translateX(-50%); transform: translateX(-50%);
  background: rgba(13,16,20,0.85);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 20px;
  padding: 10px 22px;
  font-size: 13px; color: rgba(255,255,255,0.85);
  z-index: 90; white-space: nowrap;
}

/* 卡片内部文字：以 1024px 基准画布换算的固定 px（配合 .stage 等比缩放，
 * 任意屏幕上组件构图与 iPad 4:3 完全一致；不再依赖 vw 视口单位） */
.clock-card .clock-main { font-size: 225px; line-height: 1; }   /* 210→225（v8）：用户明确 240px 大小满意，问题在数字块内裁切而非整行宽度 */
.clock-card .clock-date { font-size: 20px; }   /* v5：缩小放右上角，不占主体空间 */
.calendar-card .cal-head { font-size: 20px; }
.calendar-card .cal-grid th { font-size: 14px; }
.calendar-card .cal-grid td { font-size: 17px; }
.weather-card .weather-temp { font-size: 31px; }
.weather-card .weather-text { font-size: 15px; }

/* ---------- 首页时钟卡片：透明叠在照片上（photo 模式默认形态） ---------- */
.clock-card {
  /* v11 视觉优化：软光晕再减淡（中心 0.40→0.28），减少对照片的遮挡，突出照片主体
   * 同时保留一个极淡的"落点"让白字有依托、不与照片糊在一起 */
  background: radial-gradient(ellipse 62% 58% at 50% 50%, rgba(0, 0, 0, 0.28) 0%, rgba(0, 0, 0, 0.16) 48%, rgba(0, 0, 0, 0) 76%);
  border: none;
  border-radius: 0;
}
/* v5：clock-body 作为日期的绝对定位锚点 */
.clock-card .clock-body { position: relative; }
/* v6：时分秒同排 240px 后主行 ≈4.0em，冒号 margin 收紧 0.04→0.02 给秒腾宽度 */
.clock-card .clock-colon { margin: 0 0.02em; }
/* v8 关键修复：flip-inner 是 inline-block 且内部 flip-top/bottom/flap 全 absolute（正常流无内容），
 * 宽度完全由 min-width 决定；digit 是 block 跟随父宽，数字文字超宽时被 .flip-top overflow:hidden 裁左右边缘。
 * 真机 iOS Helvetica 两位数字 ≈1.112em（"09"/"00" 最宽组合）> 基础 1.0em → 小时/分钟左右各被裁 ~13px（"显示不全"）。
 * min-width 1.0em → 1.15em 兜住所有时刻组合 + 余量；秒是单字符 0.556em ≈ 0.55em 刚好放下所以一直没问题 */
.clock-card .clock-main .flip { min-width: 1.05em; }
.clock-card .clock-main .flip-inner { min-width: 1.20em; padding: 0 0.02em; overflow-x: visible; }  /* v10.8：overflow 拆成横向 visible + 纵向 hidden —— 真机 iOS Safari 的 overflow:hidden 在 inline-block 里有 bug，会把字符左右两边都裁一点（Helvetica side-bearing 计算异常），导致 5/9 这种字符左侧也被裁 */
.clock-card .clock-main .flip-inner > .flip-top > .digit,
.clock-card .clock-main .flip-inner > .flip-bottom > .digit { letter-spacing: 0.05em; }  /* v10.7：两位数字间加间距，避免右凸字形视觉重叠 */
body.edit-mode .clock-card {    /* 编辑模式恢复底色/描边，方便看清卡片范围 */
  background: rgba(13, 16, 20, 0.55);
  border: 1px dashed rgba(255, 255, 255, 0.7);
  border-radius: 20px;
}
/* 浮雕阴影：紧贴的深色边缘让白字像"刻/嵌"进照片，而不是浮在上面。
 * 上方深影制造凹陷感、下方深影保边缘对比、最外层环境柔光与照片融合。
 * 不再用大范围软投影（那是"浮起"的观感）。 */
.clock-card .flip .digit {
  color: rgba(255, 255, 255, 0.82);   /* v11：纯白→半透明白，降低对比、突出照片 */
  text-shadow: 0 -1px 1px rgba(0, 0, 0, 0.55), 0 1px 1px rgba(0, 0, 0, 0.40);
}
.clock-card .clock-colon,
.clock-card .clock-sec {
  color: rgba(255, 255, 255, 0.70);   /* v11：冒号/秒比数字更淡，弱化配角感 */
  text-shadow: 0 -1px 1px rgba(0, 0, 0, 0.55), 0 1px 1px rgba(0, 0, 0, 0.40);
}
.clock-card .clock-date { text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9), 0 0 6px rgba(0, 0, 0, 0.6); }

/* v5：去掉数字块后面的"框"（背景/边框/阴影）—— 只有时钟数字本身 */
.clock-card:not(.fullscreen) .flip-inner {
  background: transparent;
  border: none;
  box-shadow: none;
}
.clock-card:not(.fullscreen) .flip-top::after { background: rgba(0, 0, 0, 0.75); }
.clock-card:not(.fullscreen) .flip-bottom::before { background: rgba(255, 255, 255, 0.28); }
.clock-card:not(.fullscreen) .clock-colon { color: rgba(255, 255, 255, 0.70); }

/* v6：秒回到主行，与时分一样大（1em）、一样粗细/颜色；不再拆到右下角 */
.clock-card .clock-sec {
  position: static;
  margin-left: 0.08em;
  font-size: 1em;                 /* v5 的 0.24em → v6 1em：时分秒一样大 */
  font-weight: 500;               /* v11：与时分一致 500，视觉统一 */
  color: rgba(255, 255, 255, 0.82);
  -webkit-align-items: baseline; align-items: baseline;
}
/* v5：日期 → 右上角小字，不占主体 */
.clock-card .clock-date {
  position: absolute; top: 6px; right: 16px;
  margin: 0;
  letter-spacing: 1px;
}

/* 秒位单字符紧凑：默认 .flip min-width:1.15em 让 flip 容器 57.5px，
 * flip-inner 0.55em 仅 27.5px → inner 在容器内居中两侧各 15px 留白，
 * 两个 flip 之间视觉空 32px，单字符秒位像"散开"。贴合内部宽度即可 */
.clock-card .clock-sec .flip {
  min-width: 0;
  width: auto;
}
/* v8：秒位下限 0.55em 比 Helvetica 单字符 0.556em 窄 2px（probe2 实测 CLIPPED +2px）→ 提到 0.58em 兜住 + 余量 */
.clock-card .clock-sec .flip-inner {
  min-width: 0.58em;
  padding: 0 0.02em;
}

/* ---------- 全屏时钟模式（时段策略 mode=clock）：占满画布、纯大时钟 ---------- */
/* v11.1 复刻参考图（原版 APP 翻页时钟）：
 * 三段 HH/MM/SS 同字号实心深紫蓝卡片 + 强字重纯白数字 + 腰部中缝线 + 严格居中。
 * 深色实心卡是"翻页质感"的来源（半透明下翻页中缝几乎不可见）。 */
.clock-card.fullscreen {
  left: 0 !important; top: 0 !important;
  width: 100% !important; height: 100% !important;
  border-radius: 0;
  border: none;
  background: transparent;         /* 纯黑底（body #0a0c0f），卡片自身无框无边 */
}
.clock-card.fullscreen .clock-body {
  width: 100%; height: 100%;
  display: -webkit-flex; display: flex;
  -webkit-flex-direction: column; flex-direction: column;
  -webkit-align-items: center; align-items: center;
  -webkit-justify-content: center; justify-content: center;
  padding: 0 0.5%;                /* v11.7：1%→0.5%。左右边距 10px→5px，再释放 10px 给字号+gap（用户："左右两边空隙还有很多"）*/
}
.clock-card.fullscreen .clock-main {
  font-size: 230px;                /* v11.8：保持 230px。分段间隙改用 margin 实现（见下方 #flipMM），不再用 gap */
  letter-spacing: 0;               /* v11.4：2px→0。字间距不再人为撑宽，避免"胖子"观感 */
  font-weight: 700;                /* v11.4：900→700。900 太重像 Black，回 DIN Bold 的"工业粗"（原版字重约 700-800）*/
  line-height: 1;
  font-family: "DIN Alternate", "DIN Condensed", "Helvetica Neue", "Arial", "Avenir Next", sans-serif;  /* v11.4 去掉 Arial Rounded MT Bold / Arial Black（iPad 没有，落到 Helvetica 再 900 字重=胖子）。DIN 优先，落到 Helvetica 也不圆不胖 */
}
/* v11.8 分段间隙改用 margin（关键修复）：iOS 9 Safari 不支持 flexbox 的 gap 属性，
 * 之前的 gap 在真机 iPad mini 1 上完全没生效，导致时分秒一直贴在一起（"165803"）。
 * 给中间的 flipMM 加左右 margin，HH↔MM 和 MM↔SS 两处间隙都靠它实现（margin 是 iOS 9 兼容的基础属性）*/
.clock-card.fullscreen #flipMM {
  margin-left: 0.35em;             /* v11.9：0.40→0.35em。分段间隙 92→80px（用户："间隙缩小一点点"），整行变窄后左右边距自动增大 */
  margin-right: 0.35em;
}
/* v11.3 去冒号：机械翻页时钟 HH MM SS 三段靠间距分隔，无冒号 */
.clock-card.fullscreen .clock-colon { display: none; }
.clock-card.fullscreen .clock-sec { font-size: 1em; }   /* v11.1：0.52→1，秒与时分同字号（参考图 16/06/29 三段一样大） */
.clock-card.fullscreen .clock-date { display: none; }   /* 全屏不摆日期（参考图仅有日期小字，暂不加） */
/* v11.5 秒位两张窄卡视觉贴合：原版 APP 秒位是一个大卡片（两位数字在同一个 flip-inner 里），
 * 我们实现是 2 个独立 flip，所以视觉上"割裂"。缩小两个 flip 之间的 margin 让两张卡视觉上"贴"在一起 */
.clock-card.fullscreen .clock-sec { margin-left: 0 !important; }
.clock-card.fullscreen .clock-sec .flip { margin: 0 !important; }

/* v11.3 全屏实心卡片：机械翻页钟质感——卡片是"有厚度的实体片"，
 * 上亮下暗 + 中缝处强烈色阶跳变 + 内阴影模拟纸片厚度 + 金属高光边。 */
.clock-card.fullscreen .flip-inner {
  background: linear-gradient(to bottom,
    #5a5478 0%, #4a4365 30%, #3a3550 48%,   /* 上半：受光，由亮到中 */
    #1f1a2e 52%, #241f30 70%, #181420 100%); /* 下半：背光，由暗到更暗（52% 处色阶骤降 = 折角）*/
  border: 1px solid rgba(0, 0, 0, 0.7);
  border-radius: 22px;
  box-shadow:
    0 14px 34px rgba(0, 0, 0, 0.65),          /* 卡片投影：离背景浮起 */
    inset 0 3px 2px rgba(255, 255, 255, 0.14), /* 顶部高光边：金属受光 */
    inset 0 -4px 6px rgba(0, 0, 0, 0.55),      /* 底部内影：厚度感 */
    inset 2px 0 4px rgba(0, 0, 0, 0.25),       /* 左侧内影 */
    inset -2px 0 4px rgba(0, 0, 0, 0.25);      /* 右侧内影 */
}
/* v11.3 上下半明暗对比（机械翻页折角光影的灵魂）：
 * 上半片受光（亮白 + 顶部高光）、下半片背光（暗 + 冷灰紫）。
 * 折角处 = 0.5em 接缝，上下反差越大越有"翻片"实体感 */
.clock-card.fullscreen .flip .digit {
  color: #ffffff;
  font-weight: 700;                /* v11.4：900→700。跟随主时钟 700，避免字体被推胖 */
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.85);
}
.clock-card.fullscreen .flip-top > .digit {
  color: #ffffff;
  text-shadow:
    0 3px 4px rgba(0, 0, 0, 0.7),          /* 底部投影：上半片在光下 */
    0 0 10px rgba(255, 255, 255, 0.22);    /* 白色柔光：受光面的亮 */
}
.clock-card.fullscreen .flip-bottom > .digit {
  color: #c9c2de;                  /* 下半背光：暗 + 冷灰紫，与上半形成强反差 */
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.9),
    inset 0 0 0 rgba(0,0,0,0);      /* 无高光：背光面无光 */
}
.clock-card.fullscreen .clock-colon,
.clock-card.fullscreen .clock-sec {
  color: #ffffff;
  font-weight: 900;
}
/* v11.3 中缝线：机械翻页钟的"折角缝"——上黑下白 2px + 一道极亮高光，
 * 模拟纸片折叠处的棱。这是机械质感最强的视觉锚点 */
.clock-card.fullscreen .flip-top::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.0), rgba(0,0,0,0.9));
  box-shadow: 0 1px 1px rgba(255,255,255,0.22);
}
.clock-card.fullscreen .flip-bottom::before {
  content: '';
  position: absolute; left: 0; right: 0; top: 0;
  height: 2px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.38), rgba(0,0,0,0.6));
}
/* v11.3 翻页 flap（正在翻的那半片）也做明暗，翻页瞬间更立体 */
.clock-card.fullscreen .flip-flap .digit {
  color: #ffffff;
  font-weight: 700;
  text-shadow: 0 1px 3px rgba(0,0,0,0.85);
}
/* v11.3 全屏冒号已 display:none，无需再设间距（gap 由 .clock-main 统一控制） */