/* 基础重置与全局样式 */
* {
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
}
div, h1, h2, h3, label, time {
  clear: both;
}
div, img, form {
  float: left;
}
body {
  background: #fff;
}
span a, .nw, #clock {
  white-space: nowrap;
}
body, select, input, textarea {
  font: 18px/26px 'Times New Roman', Times, FreeSerif, serif;
  color: #333;
  letter-spacing: 2px;
}

/* 字体定义（保留所有 Montserrat 变体及 TimeTraveler） */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: local('Montserrat SemiBold'), local('Montserrat-SemiBold'), url(./fonts/JTURjIg1_i6t8kCHKm45_bZF3gnD_g.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: local('Montserrat Regular'), local('Montserrat-Regular'), url(./fonts/JTUSjIg1_i6t8kCHKm459Wdhyzbi.woff2) format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: local('Montserrat Black'), local('Montserrat-Black'), url(./fonts/JTURjIg1_i6t8kCHKm45_epG3gfD_u50.woff2) format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: local('Montserrat Regular'), local('Montserrat-Regular'), url(./fonts/JTUSjIg1_i6t8kCHKm459Wlhyw.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: local('Montserrat Black'), local('Montserrat-Black'), url(./fonts/JTURjIg1_i6t8kCHKm45_epG3gnD_g.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'TimeTraveler';
  font-style: normal;
  font-weight: 400;
  src: url('./fonts/TimeTravelerPal-Normal-Regular.ttf') format('truetype');
}
.mt #clock {
  font-family: 'TimeTraveler', Arial, sans-serif;
}

/* 布局容器 */
#mainwrapper {
  width: 100%;
  z-index: 1;
  position: relative;
  min-height: 50vh;
}
#top {
  width: 90%;
  margin: 0 5%;
  position: relative;
  z-index: 8;
}
.w90 {
  margin-left: 5%;
  width: 90%;
}

/* Logo 区域 */
.lg {
  margin-bottom: 20px;
}
.lg a:link, .lg a:visited {
  text-transform: uppercase;
  font-weight: 600;
  font-size: 16px;
  padding: 20px 30px;
  letter-spacing: 3px;
  background: #c35;
  float: left;
  display: block;
  color: #fff;
  border: 0;
  font: 26px/20px Montserrat, Arial, sans-serif;
  font-weight: 900;
  letter-spacing: 2px;
}
.lg a:hover {
  background: #e57;
}

/* 菜单按钮 */
.icon-nav {
  padding-top: 15px;
  float: right;
  clear: none;
}
.icon-nav a {
  border: none;
  color: #999;
  display: block;
  float: left;
  clear: none;
  width: 28px;
  margin-left: 30px;
}
#menubutton div {
  border-color: #aaa;
  border-style: solid;
}
#menubutton div {
  margin-top: 2px;
  width: 100%;
  border-top-width: 5px;
  padding: 3px 0 2px 0;
  border-bottom-width: 5px;
  margin-bottom: 5px;
}
#menubutton div:last-child {
  width: 100%;
  border-top-width: 5px;
  padding: 2px 0;
  margin-bottom: 4px;
}
#menubutton:hover div {
  border-color: #000;
}

/* 用户图标 */
#user {
  position: absolute;
  top: 15px;
  right: 60px;
  width: 25px;
  height: 25px;
}
#user a:link, #user a:visited {
  border: none;
}
#user svg {
  fill: #aaa;
}
#user a svg:hover {
  fill: #000;
}

/* 搜索框 */
#qbox {
  display: block;
  position: absolute;
  right: 118px;
  width: 40px;
  overflow: hidden;
  transition: all .5s ease;
  z-index: 42;
}
#q {
  width: 0;
  font-weight: 900;
  font-family: 'Arial Black', sans-serif;
  transition: all .5s ease, padding .5s ease;
}
#q.txtin {
  margin-top: 8px;
  padding: 2px 20px 2px 60px;
  border: none;
  background: #eee url('/img/magnifying_glass_grey.png') 10px center no-repeat;
  height: 40px;
}
#q.blr {
  font-size: 26px;
  line-height: 30px;
  background-color: #fff;
  color: #fff;
}
#q:focus {
  font-size: 26px;
  line-height: 26px;
  width: 600px;
  line-height: 40px;
  padding-top: 10px;
  padding-bottom: 10px;
  margin-top: 0;
  color: #000;
}
#qbox.fcs {
  right: 0;
  width: 680px;
}
.susdiv {
  z-index: 9;
  clear: both;
  position: relative;
  margin-top: 0;
  transition: height .5s ease;
}
.susdiv, .susdiv table {
  width: 100%;
}
#qbox .susdiv {
  height: 0px;
  overflow: hidden;
}
#qbox.fcs .susdiv {
  height: 500px;
}
.susdiv a {
  display: block;
  text-decoration: none;
  padding: 15px 20px;
  border: 0;
}
.susdiv a span {
  display: block;
  float: none;
  color: #fff;
  padding: 0;
  white-space: normal;
  font-size: 20px;
  line-height: 26px;
  border: 0;
}
.susdiv tr {
  background: #333;
  padding: 0;
}
.susdiv td {
  padding: 0;
  border-top: 1px solid #fff;
}
.susdiv td.t {
  width: 115px;
  white-space: nowrap;
}
.susdiv td.t span {
  text-align: right;
  width: 95px;
}
.susdiv .chosen {
  background: #c35;
}

/* 输入框通用样式 */
.txtin, .dateinput {
  background: #eee;
  border: 1px solid #ddd;
  width: 138px;
  padding: 10px;
  color: #333;
}
.mout {
  border-color: #eee;
}
.focused .txtin {
  border-color: #aaa;
}
div .hovered {
  border-color: #ccc;
  background: #f8f8f8;
}
input.focused, textarea.focused {
  background: #fff;
  border-color: #999;
  color: #000;
}

/* 时间区域 */
#time_section {
  width: 100%;
  margin-top: 0px;
  position: relative;
}
#clock0_bg {
    width: 100%;
    
    text-align: left;      /* 原为 center，现改为 left */
    clear: both;
    transition: all 0.1s ease;
    overflow-x: visible;
}
#clock {
  font-weight: bold;
  white-space: nowrap;
  display: inline-block;
  text-align: left;
  float: none !important;
  font-size: 100px;
  line-height: 1.2;

}
#clock span {
  display: inline-block;

  vertical-align: baseline;
}
@media only screen and (max-width: 768px) {
  #clock0_bg {
    margin: 30px 0;
  }
}
@media only screen and (max-width: 640px) {
  #clock0_bg {
    margin: 20px 0;
  }
}

/* 日期和附加信息 */
#msgs {
  position: relative;
}
#msgs h1 {
  margin-right: 30px;
  float: left;
}
#msgdiv {
  float: left;
}
#syncH.hide, .hide {
  display: none;
}
.clockdate {
  font-size: 36px;
  line-height: 40px;
  font-weight: normal;
  letter-spacing: 1px;
  cursor: pointer;
}
#dd, #daydiv, #lC {
  text-align: right;
}
#daydiv {
  cursor: pointer;
}
#lC a:link, #lC a:visited {
  color: #333;
}
.noprint {
  /* 保留类名 */
}

/* 城市列表 */
#favs {
  width: 100%;
  list-style: none;
  margin: 0 0 10px 0;
  padding: 0;
  float: right;
  position: relative;
  margin-top: 20px;
  display: block;
}
#favs li {
  position: relative;
  list-style: none;
  float: right;
  clear: none;
  display: block;
  line-height: 22px;
  font-weight: bold;
}
.mt #favs li {
  font-weight: 900;
}
#favs li a {
  text-align: right;
}
.tbx a {
  display: block;
  margin: 0 0 10px 10px;
  padding: 10px 20px;
  border: 1px solid #eee;
  background: #eee;
  text-decoration: none;
}
.tbx a:hover, .tbx a.chosen, .tbx a.chosen:hover {
  border-color: #999;
  background: #999;
  color: #fff;
}
#favs.tbx a:hover span, #favs.tbx a.chosen span {
  color: #fff;
}
.tbx span.time {
  color: #999;
}
#favs li .time span {
  display: inline-block;
  text-align: center;
  width: 13px;
}
.mon {
  display: inline-block;
  text-align: center;
  width: 13px;
}
@media only screen and (max-width: 639px) {
  .mon {
    width: 10px;
  }
}
#favsXpandr {
  float: right;
  display: none;
}
@media only screen and (max-width: 560px) {
  .withA #favs.collapsible {
    height: 68px;
    overflow: hidden;
  }
  .withA #favsXpandr {
    display: block;
    margin-top: -15px;
  }
}

/* 链接通用样式 */
a:link, a:visited {
  color: #333;
  text-decoration: none;
  border-bottom: 1px solid #ccc;
}
a:hover {
  color: #000;
  border-color: #c35;
}

/* 辅助类 */
.tr {
  /* 保留类名 */
}
.hide {
  display: none;
}
.nw {
  white-space: nowrap;
}
.divider {
  color: #ccc;
}

/* 字体主题覆盖 (body.mt) */
body.mt, body.mt .clockdate, body.mt .clockplace {
  font-family: Montserrat, 'Arial Black', 'Arial-BoldMT', 'Arial Bold', Arial, Helvetica, sans-serif;
}
.mt time#clock, .mt .countdown .number {
  font-family: TimeTraveler, Arial, Helvetica, sans-serif;
  font-weight: 400;
}
.mt h1, .mt h2, .mt h3, .mt .clockdate {
  font-weight: 900;
  font-style: normal;
}
.mt .clockdate, .mt .clockplace {
  font-weight: normal;
}
.mt div, .mt select, .mt .txtin, .mt .button, .mt textarea, .mt .clockdate, .mt .clockplace {
  font-family: Montserrat, Arial, Helvetica, sans-serif;
}
.mt #favs li span {
  color: #000;
  font-weight: 400;
  font-size: 20px;
}
.mt #favs li .time, .mt .event_summary, .mt #msgdiv h1 {
  font-weight: 400;
}
.mt #msgdiv h1 span, .mt #msgdiv h1#syncH {
  font-weight: 900;
}
body.mt, .mt select, .mt input, .mt textarea, .mt h1, .mt h2, body.mt .clockdate, .mt .tbx div {
  letter-spacing: 0;
}
.mt #nav h3 {
  letter-spacing: 0;
  font-weight: 400;
}
.mt nav .logo {
  font-family: Montserrat;
  font-weight: 900;
}
.mt nav .slogan {
  font-weight: 900;
}

/* 响应式补充（针对搜索框、菜单等元素的屏幕适配） */
@media only screen and (max-width: 915px) {
  #qbox.fcs, .minihdr #qbox.fcs, .suswrp .susdiv {
    width: 100%;
  }
}
@media only screen and (max-width: 639px) {
  .susdiv a {
    padding: 10px;
  }
  .susdiv a span {
    font-size: 16px;
    line-height: 18px;
  }
  .larger {
    font-size: 18px;
    line-height: 24px;
  }
}
@media only screen and (max-width: 500px) {
  body {
    letter-spacing: 1;
  }
  .lg a:link, .lg a:visited {
    padding: 15px;
    font-size: 22px;
  }
  #q.txtin {
    height: 30px;
  }
  .clockdate {
    font-size: 16px;
    line-height: 20px;
  }
  .icon-nav {
    padding-top: 10px;
  }
  .icon-nav a {
    margin-left: 20px;
  }
  #user {
    top: 10px;
  }
}
/* 基础样式重置与保留原有风格 */
*{margin:0;padding:0;border:0;outline:0}
div,h1,h2,h3,label,time{clear:both}
div,img,form{float:left}
body{background:#fff}
span a,.nw,#clock{white-space:nowrap}
body,select,input,textarea{font:18px/26px 'Times New Roman',Times,FreeSerif,serif;color:#333;letter-spacing:2px}
@font-face {
font-family: 'Montserrat';
font-style: normal;
font-weight: 600;
font-display: swap;
src: local('Montserrat SemiBold'), local('Montserrat-SemiBold'), url(./fonts/JTURjIg1_i6t8kCHKm45_bZF3gnD_g.woff2) format('woff2');
}
@font-face {
font-family: 'Montserrat';
font-style: normal;
font-weight: 400;
font-display: swap;
src: local('Montserrat Regular'), local('Montserrat-Regular'), url(./fonts/JTUSjIg1_i6t8kCHKm459Wdhyzbi.woff2) format('woff2');
}
@font-face {
font-family: 'Montserrat';
font-style: normal;
font-weight: 900;
font-display: swap;
src: local('Montserrat Black'), local('Montserrat-Black'), url(./fonts/JTURjIg1_i6t8kCHKm45_epG3gfD_u50.woff2) format('woff2');
}
@font-face{font-family:'TimeTraveler';font-style:normal;font-weight:400;src:url('/fonts/TimeTravelerPal-Normal-Regular.ttf') format('truetype')}
.mt #clock{font-family:'TimeTraveler',Arial,sans-serif}

/* 时钟容器 */
#clock0_bg {
    width: 100%;
    margin: 40px 0;
    text-align: left;
    clear: both;
    overflow-x: visible;
    cursor: pointer;
}
#clock {
    font-weight: bold;
    white-space: nowrap;
    display: inline-block;
    text-align: center;
    float: none !important;
    font-size: 100px;
    line-height: 1.2;
}
#clock span {
    display: inline-block;
    vertical-align: baseline;
}
@media only screen and (max-width: 768px) {
    #clock0_bg { margin: 30px 0; }
}
@media only screen and (max-width: 640px) {
    #clock0_bg { margin: 20px 0; }
}

/* 原有样式 */
div.lg a:link,div.lg a:visited{text-transform:uppercase;font-weight:600;font-size:16px;padding:20px 30px;letter-spacing:3px}
.lg a:link,.lg a:visited{background:#c35;float:left;display:block;color:#fff;border:0;padding:20px;font:26px/20px Montserrat,Arial,sans-serif;font-weight:900;letter-spacing:2px}
.lg{z-index:9;position:relative}
#top{width:90%;margin:0 5%}
#time_section{width:100%}
#favs{width:100%;list-style:none;margin:0 0 10px 0;padding:0;float:right}
.tbx a{display:block;margin:0 0 10px 10px;padding:10px 20px;border:1px solid #eee;background:#eee;text-decoration:none}
.icon-nav { display: none; }
#user { right: 0 !important; top: 15px; position: absolute; }
#qbox, #user { position: relative; }

/* 全屏时钟模式样式 - 隐藏除 .lg 和 #clock0_bg 以外的所有元素 */
body.full-clock-mode {
    overflow: hidden;
}
.full-clock-mode #mainwrapper > *:not(#top):not(#time_section) {
    display: none !important;
}
.full-clock-mode #top > *:not(.lg) {
    display: none !important;
}
.full-clock-mode #time_section > *:not(#clock0_bg) {
    display: none !important;
}
/* 全屏模式下，确保时钟容器没有外边距，且父容器不影响 */
.full-clock-mode #clock0_bg {
    margin: 0 !important;
    position: fixed;
    transition: top 0.3s ease, left 0.3s ease;
    will-change: top, left;
}
.full-clock-mode .lg {
    position: relative;
    z-index: 1001;
}

/* ========== 顶部栏 Flex 布局修复 ========== */
#top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    margin-bottom: 20px;
}
.lg {
    float: none;
    margin-bottom: 0;
}
.lg a:link,
.lg a:visited {
    float: none !important;
    display: inline-block !important;
}
#user {
    position: static !important;
    top: auto !important;
    right: auto !important;
    margin: 0;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
#user svg {
    vertical-align: middle;
    display: block;
}
@media only screen and (max-width: 560px) {
    .lg a:link, .lg a:visited {
        padding: 12px 18px;
        font-size: 20px;
    }
}
@media only screen and (max-width: 420px) {
    .lg a:link, .lg a:visited {
        padding: 8px 14px;
        font-size: 18px;
    }
}


/* ========== 固定底部备案信息（整体居中） ========== */
.footer-icp {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0);
    backdrop-filter: blur(4px);
    padding: 8px 20px;
    font-size: 14px;
    font-family: 'Montserrat', 'Times New Roman', serif;
    z-index: 1000;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: center;  /* 水平居中 */
    align-items: center;
}

.footer-icp-inner {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
}

.beian-icon {
    height: 16px;
    width: auto;
    vertical-align: middle;
}

.footer-icp a {
    color: #555;
    text-decoration: none;
   # border-bottom: 1px dotted #ccc;
    border-bottom: none;
}

.footer-icp a:hover {
    color: #c35;
    border-bottom-color: #c35;
}

.sep {
    color: #aaa;
    margin: 0 4px;
}

/* 全屏时钟模式下隐藏 */
body.full-clock-mode .footer-icp {
    display: none;
}

/* 避免内容被遮挡 */
body {
    padding-bottom: 48px;
}

/* 小屏幕适配 */
@media only screen and (max-width: 640px) {
    .footer-icp {
        padding: 6px 12px;
        font-size: 12px;
    }
    .footer-icp-inner {
        gap: 4px;
    }
    .beian-icon {
        height: 14px;
    }
    .sep {
        margin: 0 2px;
    }
    body {
        padding-bottom: 50px;
    }
}

@media only screen and (max-width: 480px) {
    .footer-icp {
        padding: 5px 10px;
        font-size: 11px;
    }
    .footer-icp-inner {
        flex-wrap: wrap;
    }
    body {
        padding-bottom: 48px;
    }
}
