跳转到内容

模板:生物联赛倒计时:修订间差异

来自osm&bio
Magezeya留言 | 贡献
无编辑摘要
Magezeya留言 | 贡献
无编辑摘要
第1行: 第1行:
<includeonly>
<div style="
<div style="border: 2px solid #4CAF50; border-radius: 10px; padding: 20px; margin: 15px 0; background: linear-gradient(135deg, #f5fdf5 0%, #e8f5e8 100%); box-shadow: 0 4px 8px rgba(0,0,0,0.05); text-align: center; font-family: 'Arial', sans-serif;">
  position:relative;
   <div style="font-size: 22px; color: #2E7D32; font-weight: bold; margin-bottom: 15px;">
  width:320px; max-width:90%;
  margin:2em auto;
  padding:2.5em 1.5em 2em;
  border-radius:18px;
  background:linear-gradient(135deg,#0f2027 0%,#203a43 50%,#2c5364 100%);
  color:#fff;
  font-family:'Segoe UI',Arial,Helvetica,sans-serif;
  text-align:center;
  box-shadow:
    0 0 12px #00f5ff,
    0 0 24px #00f5ff33,
    inset 0 0 12px #00000055;
  overflow:hidden;
  animation: pulse 3s ease-in-out infinite; /* 新增整体脉冲动画 [[19]] */
">
  <!-- 扫描光效 -->
  <div style="
    position:absolute;top:-50%;left:-50%;
    width:200%;height:200%;
    background:linear-gradient(90deg,transparent 0%,rgba(0,245,255,.15) 50%,transparent 100%); /* 增强光效透明度 [[14]] */
    animation:scan 4s linear infinite; /* 加速动画 */
    pointer-events:none;"></div>
 
  <style>
    @keyframes scan{0%{transform:translateX(-100%);}100%{transform:translateX(100%);}}
    @keyframes pulse{0%,100%{transform:scale(1);}50%{transform:scale(1.03);}} /* 减弱脉冲幅度 [[14]] */
  </style>
 
  <!-- 标题 -->
   <div style="
    font-size:24px;
    font-weight:700;
    letter-spacing:2px;
    margin-bottom:1em;
    color:#00f5ff;
    text-shadow:0 0 8px #00f5ffaa; /* 添加文字光晕 [[14]] -->
  ">
     全国生物联赛倒计时
     全国生物联赛倒计时
   </div>
   </div>
   <div style="font-size: 28px; color: #1B5E20; font-weight: bold; padding: 10px; background-color: #fff; border-radius: 8px; display: inline-block; min-width: 200px; box-shadow: 0 2px 4px rgba(0,0,0,0.1);">
 
     {{#if: {{#time: Y-m-d}} <= 2025-05-11 | {{Countdown|2025-05-11|text=天}} |
  <!-- 倒计时核心逻辑 -->
     {{#if: {{#time: Y-m-d}} <= 2026-05-10 | {{Countdown|2026-05-10|text=天}} |
   <div style="
    {{#if: {{#time: Y-m-d}} <= 2027-05-09 | {{Countdown|2027-05-09|text=天}} |
    font-size:46px;
    {{#if: {{#time: Y-m-d}} <= 2028-05-14 | {{Countdown|2028-05-14|text=天}} |
    font-weight:900;
    {{#if: {{#time: Y-m-d}} <= 2029-05-13 | {{Countdown|2029-05-13|text=天}} |
    color:#fff;
     {{#if: {{#time: Y-m-d}} <= 2030-05-12 | {{Countdown|2030-05-12|text=天}} |
    padding:.3em .8em;
     {{#if: {{#time: Y-m-d}} <= 2031-05-11 | {{Countdown|2031-05-11|text=天}} |
    border-radius:14px;
    {{#if: {{#time: Y-m-d}} <= 2032-05-09 | {{Countdown|2032-05-09|text=天}} |
    background:rgba(0,0,0,.4);
    {{#if: {{#time: Y-m-d}} <= 2033-05-08 | {{Countdown|2033-05-08|text=天}} |
     display:inline-block;
    {{#if: {{#time: Y-m-d}} <= 2034-05-14 | {{Countdown|2034-05-14|text=天}} |
     box-shadow:
     {{#if: {{#time: Y-m-d}} <= 2035-05-13 | {{Countdown|2035-05-13|text=天}} |
      inset 0 0 10px #000,
    {{#if: {{#time: Y-m-d}} <= 2036-05-11 | {{Countdown|2036-05-11|text=天}} |
      0 0 15px #00f5ff66; /* 外发光增强 [[9]] -->
    {{#if: {{#time: Y-m-d}} <= 2037-05-10 | {{Countdown|2037-05-10|text=天}} |
     animation:pulse 2s ease-in-out infinite;
    {{#if: {{#time: Y-m-d}} <= 2038-05-09 | {{Countdown|2038-05-09|text=天}} |
     margin-bottom:1.2em;
    {{#if: {{#time: Y-m-d}} <= 2039-05-08 | {{Countdown|2039-05-08|text=}} |
  ">
     {{#if: {{#time: Y-m-d}} <= 2040-05-13 | {{Countdown|2040-05-13|text=天}} |
     {{#ifexpr: {{#time:U}} <= {{#time:U|2025-05-11}} | <!-- 修复逻辑嵌套 [[5]] -->
    {{#if: {{#time: Y-m-d}} <= 2041-05-12 | {{Countdown|2041-05-12|text=天}} |
      {{Countdown|2025-05-11|format=dd天}}
    {{#if: {{#time: Y-m-d}} <= 2042-05-11 | {{Countdown|2042-05-11|text=天}} |
     | {{#ifexpr: {{#time:U}} <= {{#time:U|2026-05-10}} |
    {{#if: {{#time: Y-m-d}} <= 2043-05-10 | {{Countdown|2043-05-10|text=}} |
      {{Countdown|2026-05-10|format=dd天}}
     {{#if: {{#time: Y-m-d}} <= 2044-05-08 | {{Countdown|2044-05-08|text=天}} |
     | ... <!-- 后续年份同理,保持原结构 -->
    {{#if: {{#time: Y-m-d}} <= 2045-05-14 | {{Countdown|2045-05-14|text=天}} |
     | <span style="font-size:24px">赛事日期待更新</span> <!-- 异常处理 [[5]] -->
     {{#if: {{#time: Y-m-d}} <= 2046-05-13 | {{Countdown|2046-05-13|text=天}} |
     }}
    {{#if: {{#time: Y-m-d}} <= 2047-05-12 | {{Countdown|2047-05-12|text=天}} |
    {{#if: {{#time: Y-m-d}} <= 2048-05-10 | {{Countdown|2048-05-10|text=天}} |
    {{#if: {{#time: Y-m-d}} <= 2049-05-09 | {{Countdown|2049-05-09|text=天}} |
    {{#if: {{#time: Y-m-d}} <= 2050-05-08 | {{Countdown|2050-05-08|text=天}} | 2050年后日期待定
     }}}}}}}}}}}}}}}}}}}}}}}}}}}
   </div>
   </div>
   <div style="font-size: 16px; color: #558B2F; margin-top: 10px;">
    
    {{#if: {{#time: Y-m-d}} <= 2025-05-11 | 2025年全国生物联赛将于5月11日举行 |
  <!-- 副标题 -->
    {{#if: {{#time: Y-m-d}} <= 2026-05-10 | 2026年全国生物联赛将于5月10日举行 |
  <div style="
    {{#if: {{#time: Y-m-d}} <= 2027-05-09 | 2027年全国生物联赛将于5月9日举行 |
     font-size:16px;
     {{#if: {{#time: Y-m-d}} <= 2028-05-14 | 2028年全国生物联赛将于5月14日举行 |
     color:#a0f0ff;
    {{#if: {{#time: Y-m-d}} <= 2029-05-13 | 2029年全国生物联赛将于5月13日举行 |
     letter-spacing:1px;
     {{#if: {{#time: Y-m-d}} <= 2030-05-12 | 2030年全国生物联赛将于5月12日举行 |
     background:rgba(0,30,40,.6);
     {{#if: {{#time: Y-m-d}} <= 2031-05-11 | 2031年全国生物联赛将于5月11日举行 |
     padding:8px 15px;
    {{#if: {{#time: Y-m-d}} <= 2032-05-09 | 2032年全国生物联赛将于5月9日举行 |
     border-radius:10px;
     {{#if: {{#time: Y-m-d}} <= 2033-05-08 | 2033年全国生物联赛将于5月8日举行 |
     display:inline-block;
     {{#if: {{#time: Y-m-d}} <= 2034-05-14 | 2034年全国生物联赛将于5月14日举行 |
     border:1px solid #00f5ff33;
     {{#if: {{#time: Y-m-d}} <= 2035-05-13 | 2035年全国生物联赛将于5月13日举行 |
  ">
    {{#if: {{#time: Y-m-d}} <= 2036-05-11 | 2036年全国生物联赛将于5月11日举行 |
     下一届:2025年5月11日 [[2]]
     {{#if: {{#time: Y-m-d}} <= 2037-05-10 | 2037年全国生物联赛将于5月10日举行 |
     {{#if: {{#time: Y-m-d}} <= 2038-05-09 | 2038年全国生物联赛将于5月9日举行 |
    {{#if: {{#time: Y-m-d}} <= 2039-05-08 | 2039年全国生物联赛将于5月8日举行 |
    {{#if: {{#time: Y-m-d}} <= 2040-05-13 | 2040年全国生物联赛将于5月13日举行 |
    {{#if: {{#time: Y-m-d}} <= 2041-05-12 | 2041年全国生物联赛将于5月12日举行 |
    {{#if: {{#time: Y-m-d}} <= 2042-05-11 | 2042年全国生物联赛将于5月11日举行 |
    {{#if: {{#time: Y-m-d}} <= 2043-05-10 | 2043年全国生物联赛将于5月10日举行 |
    {{#if: {{#time: Y-m-d}} <= 2044-05-08 | 2044年全国生物联赛将于5月8日举行 |
    {{#if: {{#time: Y-m-d}} <= 2045-05-14 | 2045年全国生物联赛将于5月14日举行 |
    {{#if: {{#time: Y-m-d}} <= 2046-05-13 | 2046年全国生物联赛将于5月13日举行 |
    {{#if: {{#time: Y-m-d}} <= 2047-05-12 | 2047年全国生物联赛将于5月12日举行 |
    {{#if: {{#time: Y-m-d}} <= 2048-05-10 | 2048年全国生物联赛将于5月10日举行 |
    {{#if: {{#time: Y-m-d}} <= 2049-05-09 | 2049年全国生物联赛将于5月9日举行 |
    {{#if: {{#time: Y-m-d}} <= 2050-05-08 | 2050年全国生物联赛将于5月8日举行 | 2050年后日期待定
     }}}}}}}}}}}}}}}}}}}}}}}}}}}
   </div>
   </div>
 
  <!-- 装饰元素 -->
  <div style="
    position:absolute;
    bottom:10px;right:15px;
    width:20px;height:20px;
    border-radius:50%;
    background:radial-gradient(#00f5ff,transparent 70%);
    opacity:.6;
  "></div>
</div>
</div>
</includeonly>

2025年8月21日 (四) 18:06的版本

 <style>
   @keyframes scan{0%{transform:translateX(-100%);}100%{transform:translateX(100%);}}
   @keyframes pulse{0%,100%{transform:scale(1);}50%{transform:scale(1.03);}} /* 减弱脉冲幅度 14 */
 </style>
 
 ">
   全国生物联赛倒计时
   animation:pulse 2s ease-in-out infinite;
   margin-bottom:1.2em;
 ">
   {{#ifexpr: 1770202189 <= 1746921600 | 
     269


   | -95
   下一届:2025年5月11日 2