/* world-time: scoped styles for cron-tools */
.world-time-center {
    text-align: left;
}

.world-time-search-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.world-time-search-input {
    flex: 1 1 12rem;
    min-width: 10rem;
    max-width: 22rem;
}

/* 白底国旗与表格/卡片背景区分 */
.world-time-center img[src*="/flags/"] {
    box-sizing: border-box;
    border: 1px solid #d8dde3;
    border-radius: 2px;
    background: #f6f8fa;
}

/* 数字等宽，避免秒数变化时整列左右抖动 */
.world-time-center .mod-panel .bd .J_timezone,
.world-time-center .mod-panel .hd .current .J_timezone .time,
.world-time-center .mod-panel .list .item .J_timezone .time {
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum" 1;
}

.world-time-center .mod-panel .list .item .J_timezone .time span {
    min-width: 2ch;
    text-align: center;
    box-sizing: border-box;
}

.world-time-center .mod-panel {
    margin-bottom: 75px;
    text-align: left;
}

.world-time-center .mod-panel .hd {
    /* height: 450px; */
    margin-top: 0.25rem;
    margin-bottom: 0.25rem;
    /* height: 308px; */
    /* margin-bottom: 1rem; */
}

.world-time-center .mod-panel .hd .current h1 {
    margin-bottom: 40px;
    line-height: 48px;
    font-weight: bold;
    font-size: 36px;
    color: #1a2b3b;
}

.world-time-center .mod-panel .hd .current h1 span.tag {
    display: inline-block;
    padding: 0 8px;
    margin: 0 5px;
    background: rgba(255, 255, 255, 0.8);
    line-height: 26px;
    vertical-align: middle;
    font-size: 13px;
    color: rgb(110, 119, 129);
    border-radius: 4px;
    box-shadow: 0 1px 5px 0 rgba(0, 0, 0, 0.03);
}

.world-time-center .mod-panel .hd .current p {
    line-height: 32px;
    font-size: 16px;
}

.world-time-center .mod-panel .hd .current .title {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin: 0 0 0.5rem;
    line-height: 1.4;
    font-size: 18px;
}

.world-time-center .mod-panel .hd .current .title img,
.world-time-center .mod-panel .hd .current .title span {
    display: block;
}

.world-time-center .mod-panel .hd .current .title img {
    flex-shrink: 0;
}

.world-time-center .mod-panel .hd .current .J_timezone {
    /* display: flex; */
    margin-bottom: 20px;
}

.world-time-center .mod-panel .hd .current .J_timezone .time {
    /* flex: 1; */
    min-width: 0;
    color: #666;
    line-height: 3.25rem;
    vertical-align: middle;
    font-size: 2.75rem;
    font-weight: bold;
    font-family: LineSeedSans, Arial, Helvetica, sans-serif;
}

.world-time-center .mod-panel .hd .current .J_timezone .date {
    /* width: 270px; */
    /* padding-top: 70px; */
}

.world-time-center .mod-panel .hd .current .J_timezone .date p {
    line-height: 24px;
    text-align: left;
    font-size: 18px;
    color: #666;
}

/* 
.world-time-center .mod-panel .list .current .J_timezone{
    display:flex;
    margin-bottom: 20px;
}
.world-time-center .mod-panel .list .current .J_timezone .time{
    flex:1;
    min-width:0;
    color:#666;
    line-height:136px;
    vertical-align:middle;
    font-size:136px;
    font-weight:bold;
    font-family:LineSeedSans,Arial,Helvetica,sans-serif;
}
.world-time-center .mod-panel .list .current .J_timezone .date{
    width:270px;
    padding-top:70px;
}
.world-time-center .mod-panel .list .current .J_timezone .date p{
    line-height:24px;
    text-align:right;
    font-size:18px;
    color:#666;
} */


.world-time-center .mod-panel .hd ul {
    display: flex;
    /* display:grid; */
    /* grid-template-columns:repeat(4, 1fr); */
    /* gap:10px; */
}

.world-time-center .mod-panel .hd .item {
    flex: 1;
    padding: 10px;
    background: #f6f8fa;
    border-radius: 8px;
    line-height: 30px;
    text-align: center;
    max-width: 200px;
}

.world-time-center .mod-panel .hd .item .title {
    font-size: 18px;
}

.world-time-center .mod-panel .hd .item .title img,
.world-time-center .mod-panel .hd .item .title span {
    /* vertical-align: middle; */
}

.world-time-center .mod-panel .hd .item .date {
    color: #666;
}

.world-time-center .mod-panel .hd .item .time {
    font-size: 22px;
    font-weight: 200;
}

.world-time-center .mod-panel .hd .item .time span {
    display: inline-block;
    border-radius: 5px;
    padding: 0 3px;
    line-height: 30px;
    color: #fff;
    margin: 0 1px;
    background: #222;
    background: linear-gradient(to bottom, #555, #000);
    background: linear-gradient(to bottom, #666, #111);
    /* background:linear-gradient(to bottom, #666, #333); */
}

.world-time-center .mod-panel .hd .item .time span:nth-child(3) {
    color: #333;
    background: #ddd;
    background: linear-gradient(to bottom, #eee, #fff);
}

/*有名的世界时间*/
.world-time-center .list {
    margin-bottom: 1rem;
}

.world-time-center .mod-panel .list {
    display: flex;
    flex-wrap: wrap;
    /* 让元素换行 */
    gap: 6.8px;
    /* 元素之间的间隔 */
}

.world-time-center .mod-panel .list .item {
    flex: 1 1 180px;
    /* 每个小div的宽度为 180px，且可自适应 */
    padding: 10px;
    background: #f6f8fa;
    border: 1px solid #ecedef;
    border-radius: 8px;
    line-height: 30px;
    text-align: center;
    max-width: 196px;
}

.world-time-center caption {
    font-size: 18px !important;
    background: #fcfcfc;
    border: 1px solid #ecedef;
    margin-bottom: -1px;
    line-height: 36px;
    font-weight: bold;
    text-align: center;
    padding-top: 2px;
    padding-bottom: 2px;

    /* margin-bottom: 6px; */
}

.world-time-center .mod-panel .list .item .title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    margin: 0 0 0.35rem;
    line-height: 1.4;
    font-size: 18px;
}

.world-time-center .mod-panel .list .item .title img,
.world-time-center .mod-panel .hd .item .title span {
    display: block;
}

.world-time-center .mod-panel .list .item .title img {
    flex-shrink: 0;
}

.world-time-center .mod-panel .list .item .time {
    font-size: 22px;
    font-weight: 200;
}

.world-time-center .mod-panel .list .item .time span {
    display: inline-block;
    border-radius: 5px;
    padding: 0 3px;
    line-height: 30px;
    color: #fff;
    margin: 0 1px;
    background: #222;
    background: linear-gradient(to bottom, #555, #000);
    background: linear-gradient(to bottom, #666, #111);
    /* background:linear-gradient(to bottom, #666, #333); */
}

.world-time-center .mod-panel .list .item .time span:nth-child(3) {
    color: #333;
    background: #ddd;
    background: linear-gradient(to bottom, #eee, #fff);
}



.world-time-center .mod-panel .list .item .J_timezone {}

.world-time-center .mod-panel .list .item .J_timezone .date {
    color: #666;
    /* width:270px; */
    /* padding-top:70px; */
}

.world-time-center .mod-panel .list .item .J_timezone .date p {
    line-height: 24px;
    text-align: right;
    font-size: 18px;
    color: #666;
}

.world-time-center .mod-panel .list .item .J_timezone .time {
    flex: 1;
    min-width: 0;
    color: #666;
    line-height: 30px;
    vertical-align: middle;
    font-size: 22px;
    font-weight: bold;
    font-family: LineSeedSans, Arial, Helvetica, sans-serif;
}



.world-time-center .mod-panel .buttons {
    margin-bottom: 20px;
    padding: 10px;
    border-radius: 6px;
    line-height: 32px;
    text-align: center;
}

.world-time-center .mod-panel .btn {
    display: inline-block;
    height: 44px;
    min-width: 120px;
    padding: 0 20px;
    margin: 0 5px;
    background: #2095f2;
    border: medium none;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.05);
    line-height: 42px;
    text-align: center;
    vertical-align: middle;
    font-size: 16px;
    color: #fff;
    cursor: pointer;
    outline: none;
    border-radius: 21px;
    text-decoration: none;
}

.world-time-center .mod-panel .btn img,
.world-time-center .mod-panel .btn span {
    /* vertical-align: middle; */
}

.world-time-center .mod-panel .btn:hover {
    background: #1b85da;
}

.world-time-center .mod-panel .btn-green {
    background: #4bae4f;
    color: #fff;
}

.world-time-center .mod-panel .btn-green:hover {
    background: #47a04b;
}

.world-time-center .mod-panel .bd .btn-red {
    background: #f56954;
    color: #fff;
}

.world-time-center .mod-panel .btn-red:hover {
    background: #f4543c;
    ;
}

.world-time-center .mod-panel .btn-orange {
    background: #ff9000;
    color: #fff;
}

.world-time-center .mod-panel .btn-orange:hover {
    background: #e18309;
}

.world-time-center .mod-panel .table-outer {
    position: relative;
    margin-bottom: 20px;
}

.world-time-center .mod-panel .table-outer h3 {
    position: sticky;
    top: 0;
    z-index: 9;
    background: #fcfcfc;
    border: 1px solid #ecedef;
    margin-bottom: -1px;
    line-height: 36px;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
}

.world-time-center .mod-panel .table-outer table {
    width: 100%;
    table-layout: fixed;
}

.world-time-center .mod-panel .table-outer table caption {
    line-height: 30px;
    font-size: 15px;
    font-weight: bold;
}

.world-time-center .mod-panel .table-outer table thead {
    position: sticky;
    top: 37px;
    background: #f6f8fa;
    box-shadow: 0 1px 0 #ecedefcc;
}

.world-time-center .mod-panel .table-outer table th,
.world-time-center .mod-panel .table-outer table td {
    padding: 8px 12px;
    border: 1px solid #ecedef;
    line-height: 24px;
    vertical-align: middle;
}

.world-time-center .mod-panel .table-outer table td[rowspan] {
    vertical-align: top;
}

.world-time-center .mod-panel .table-outer table td img {
    display: inline-block;
    width: 24px;
    height: 18px;
    object-fit: contain;
    vertical-align: middle;
    margin-right: 0.35rem;
}

.world-time-center .mod-panel .table-outer table td span {
    vertical-align: middle;
}

.world-time-center .mod-panel .table-outer table th.th,
.world-time-center .mod-panel .table-outer table td.th {
    background: #f5f5f5;
}

.world-time-center .mod-panel .table-outer table .timezone span.code {
    float: right;
    font-size: 13px;
    color: #999;
}

.mod-article {
    margin-bottom: 65px;
}

.mod-article .bd {
    position: relative;
    padding: 30px 0;
}

.mod-article .bd::before {
    position: absolute;
    top: 0;
    left: 0;
    content: '“';
    font-size: 60px;
    border-radius: 6px;
}

.mod-article .bd::after {
    position: absolute;
    bottom: -10px;
    right: 0;
    content: '”';
    font-size: 60px;
    border-radius: 6px;
}

.mod-article .bd p {
    margin-bottom: 12px;
    line-height: 28px;
    font-size: 15px;
    text-indent: 2em;
}

.mod-copy {
    margin-bottom: 65px;
    padding: 35px 0;
    background: rgb(246, 248, 250);
}

.mod-copy .hd {
    margin: 0 5px 5px;
    line-height: 30px;
}

.mod-copy .hd span {
    font-size: 18px;
    font-weight: bold;
    color: #646464;
}

.mod-copy .bd {
    margin: 0 5px;
}

.mod-copy .bd p {
    line-height: 26px;
    text-indent: 2em;
    font-size: 15px;
}

.mod-copy .bd .buttons {
    margin: 15px 0;
}

.mod-copy .bd .text-red {
    font-weight: bold;
    color: #fd7474;
}

.mod-copy .bd code {
    display: block;
    margin-bottom: 15px;
    padding: 8px 15px;
    line-height: 20px;
    background: #fff;
    border: 1px solid rgba(27, 31, 36, .15);
    border-radius: 5px;
    word-break: break-word;
}

.mod-foot .bd {
    padding: 10px 0;
    margin-bottom: 15px;
    text-align: center;
}

.mod-foot .bd p {
    line-height: 22px;
}

.mod-foot .bd p a,
.mod-foot .bd p span {
    vertical-align: middle;
}

.mod-foot .bd p.buttons {
    margin: 10px 0 5px;
}

.mod-foot .box {
    width: 200px;
    height: 180px;
    margin: 0 auto 20px;
    line-height: 30px;
    text-align: center;
    overflow: hidden;
}

.mod-foot p {
    line-height: 30px;
}

/* .mod-fixedbar .bd a {
    position: fixed;
    right: 20px;
    bottom: 20px;
    display: block;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 1px 1px 6px rgba(0, 0, 0, 0.1);
    line-height: 48px;
    text-align: center;
} */

@media screen and (max-width: 1020px) {
    .world-time-center .mod-panel {
        margin-bottom: 25px;
    }

    .world-time-center .mod-panel .hd {
        float: none;
        padding-top: 0;
        width: auto;
    }

    .world-time-center .mod-panel .hd h1 {
        margin-bottom: 15px;
        line-height: 26px;
        font-size: 20px;
    }

    .world-time-center .mod-panel .hd p {
        line-height: 22px;
        font-size: 13px;
        overflow: hidden;
    }

    .world-time-center .mod-panel .bd .table-inner {
        overflow-x: auto;
    }

    .world-time-center .mod-panel .bd table {
        table-layout: auto;
    }

    .world-time-center .mod-panel .bd table td {
        white-space: nowrap;
    }
}

@media screen and (max-width: 856px) {
    .world-time-center .mod-panel .hd {
        padding: 0 5px;
    }

    .world-time-center .mod-panel .hd .current .J_timezone .time {
        line-height: 2.5rem;
        font-size: 2rem;
    }

    .world-time-center .mod-panel .hd .current .J_timezone .date p {
        line-height: 26px;
        font-size: 14px;
        text-align: left;
    }

    .world-time-center .mod-panel .list .item {
        max-width: 174px;
    }

    .world-time-center .mod-panel .table-outer .table-inner {
        overflow-x: auto;
    }

    .world-time-center .mod-panel .table-outer table th,
    .world-time-center .mod-panel .table-outer table td {
        white-space: nowrap;
    }

    .world-time-search-row {
        flex-direction: column;
        align-items: stretch;
    }

    .world-time-search-input {
        max-width: 100%;
    }
}
