/*
Theme Name: toolrunoob2
Theme URI: http://tool.runoob.com/
Version: 2.0
Author: 菜鸟工具
Author URI: http://www.runoob.com/
Description:菜鸟工具 -- 提供在线的编译与测试环境
Tags: 绿色,一栏
*/
body {
    padding-top: 98px;
    margin: 0;
    font-size: 14px;
    font-family: Dosis,Open Sans,pingfang SC,helvetica neue,arial,hiragino sans gb,microsoft yahei ui,microsoft yahei,simsun,sans-serif;
    -webkit-font-smoothing: antialiased;
    line-height: 2em;
    background: linear-gradient(to bottom right, #f6e7fc, #e3f4fc);
    color: #333;
}

/* 导航栏样式 */
.navbar {
    background: rgb(75, 81, 104);
    border-width: 0px 0px 3px;
    border-bottom: 3px solid transparent;
    border-image: linear-gradient(90deg, rgb(141, 66, 108) 16%, rgb(81, 153, 211) 16%, rgb(81, 153, 211) 32%, rgb(34, 201, 148) 32%, rgb(34, 201, 148) 48%, rgb(240, 198, 18) 48%, rgb(240, 198, 18) 64%, rgb(255, 171, 77) 64%, rgb(255, 171, 77) 82%, rgb(210, 70, 93) 82%) 1 / 1 / 0 stretch;
}

.navbar-dark .navbar-brand {
    font-weight: bold;
    font-size: 20px;
}

.navbar-dark .navbar-nav .nav-link {
    color: #f6f6f6;
    font-size: 16px;
    word-spacing: 2px;
    padding-left: .5rem;
    padding-right: .5rem;
    letter-spacing: 1px;
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: #fff;
    font-size: 16px;
    font-weight: bold;
}

.navbar-nav .nav-item {
    white-space: nowrap;
}

.navbar-nav .nav-link {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 响应式导航栏 */
@media (max-width: 991.98px) {
  .offcanvas-collapse {
    position: fixed;
    top: 56px;
    bottom: 0;
    left: 100%;
    width: 100%;
    padding-right: 1rem;
    padding-left: 1rem;
    overflow-y: auto;
    visibility: hidden;
    background-color: #343a40;
    transition: visibility .3s ease-in-out, transform .3s ease-in-out;
  }
  
  .offcanvas-collapse.open {
    visibility: visible;
    transform: translateX(-100%);
    -webkit-transform: translateX(-100%);
  }
}

/* 自定义卡片样式 */
.custom-card {
    border: none;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    background-color: #ffffff;
    color: #495057;
}

.custom-card-header {
    border-bottom: none;
    border-radius: 15px 15px 0 0;
    background-color: #e9ecef;
    font-size: 20px;
}

.custom-card-header .badge {
    font-size: 14px;
}

.custom-card-body {
    padding: 20px;
    font-size: 10vw;
}

.custom-card-footer {
    border-top: none;
    border-radius: 0 0 15px 15px;
    background-color: #e9ecef;
}

/* 渐变色文本 */
.custom-gradient-text {
    background: linear-gradient(to right, #ff6361, #ffa600, #3cb371, #4a90e2, #c71585);
    -webkit-background-clip: text;
    color: transparent;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    font-family: "Share Tech Mono", monospace;
    font-weight: bold;
    margin: auto;
}

/* 当前日期样式 */
#curDate {
    letter-spacing: 0.05em;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    font-family: "Share Tech Mono", "Microsoft YaHei Mono", monospace;
}

/* 时间线样式 */
.timeline {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: auto;
    padding: 20px 0;
    width: 100%;
    flex-wrap: wrap;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 3px;
    background-color: #ddd;
    z-index: 1;
}

.timeline-item {
    position: relative;
    text-align: center;
    width: 12%;
    min-width: 120px;
    z-index: 2;
    margin-bottom: 20px;
}

.timeline-item .time-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin: 0 auto;
    position: relative;
    z-index: 3;
    margin-top: 16px;
}

.timeline-item .time-box {
    margin-top: 15px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.timeline-item .time-title {
    font-weight: bold;
    color: #fff;
}

.timeline-item .time-desc {
    margin-top: 5px;
    font-size: 14px;
    color: #fff;
}

.timeline-difference {
    font-size: 1.2em;
    font-weight: bold;
    margin-top: 10px;
}

/* 相关城市卡片样式 */
#related-post-section .grid-wrap {
    padding: 20px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    background: rgba(247, 247, 247, 0.6);
    transition: all 0.5s ease;
    height: 100%;
    position: relative;
}

#related-post-section .grid-wrap:hover {
    transform: scale(1.05);
    background: #eee;
}

#related-post-section .grid-wrap .related-icon {
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

#related-post-section .grid-wrap .related-icon span {
    width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    position: relative;
    transition: all 0.5s ease;
}

#related-post-section .grid-wrap .related-icon p {
    font-size: 20px;
    line-height: 24px;
    margin-bottom: 0px;
    transition: all 0.5s ease;
}

/* 搜索框样式 */
.search {
    position: relative;
    box-shadow: 0 0 40px rgba(51, 51, 51, .1)
}

.search input {
    height: 60px;
    text-indent: 25px;
    border: 2px solid #d6d4d4;
    padding-left: 18px;
    font-size: 18px;
    font-weight: bold;
    color: #183153;
}

.search input:focus {
    box-shadow: none;
    border: 2px solid #f47c3c;
}

/* 表格样式 */
.table {
    width: 100%;
    margin-bottom: 1rem;
    color: #212529;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(0, 0, 0, 0.05);
}

.table-bordered {
    border: 1px solid #dee2e6;
}

.table-bordered th,
.table-bordered td {
    border: 1px solid #dee2e6;
}

/* 更多国家与地区样式 */
.nav-moredata ul {
    list-style-type: none;
    display: flex;
    flex-wrap: wrap;
    padding-bottom: 10px;
    line-height: 36px;
    padding-left: 0;
}

.nav-moredata li {
    padding: 0 15px 0 10px;
    margin: 0 10px 0 0;
    cursor: pointer;
}

.nav-moredata li img {
    width: 24px;
    margin-right: 12px;
    height: 24px;
    position: relative;
    top: -2px;
}

.nav-moredata li a {
    padding: 7px 0;
    font-size: 14px;
    overflow: hidden;
    color: #183153;
    font-weight: 500;
    text-overflow: ellipsis;
    display: -webkit-box !important;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    word-break: break-all;
    text-decoration: none;
}

.nav-moredata li:hover {
    box-shadow: 0 1px 8px #ddd;
    background: #ffd43b;
    font-weight: bold;
}

/* 响应式布局调整 */
@media screen and (min-width: 1200px) {
    .nav-moredata li {
        width: calc(100% / 8 - 10px);
    }
}

@media screen and (max-width: 1200px) {
    .nav-moredata li {
        width: calc(100% / 6 - 10px);
    }
}

@media screen and (max-width: 960px) {
    .nav-moredata li {
        width: calc(100% / 4 - 10px);
    }
}

@media screen and (max-width: 720px) {
    .nav-moredata li {
        width: calc(100% / 3 - 10px);
    }
}

@media screen and (max-width: 540px) {
    .nav-moredata li {
        width: calc(100% / 2 - 10px);
    }
    
    .custom-card-body {
        font-size: 8vw;
    }
    
    .timeline-item {
        width: 45%;
    }
}

/* 页脚样式 */
.page-footer {
    background: #222c3c;
    color: #818394;
    border-top: 3px solid transparent;
    border-width: 3px 0px 0px;
    border-image: linear-gradient(90deg, rgb(141, 66, 108) 16%, rgb(81, 153, 211) 16%, rgb(81, 153, 211) 32%, rgb(34, 201, 148) 32%, rgb(34, 201, 148) 48%, rgb(240, 198, 18) 48%, rgb(240, 198, 18) 64%, rgb(255, 171, 77) 64%, rgb(255, 171, 77) 82%, rgb(210, 70, 93) 82%) 1 / 1 / 0 stretch;
}

.footer-copyright a {
    color: #818394;
    text-decoration: none;
}

.footer-copyright a:hover {
    color: #fff;
}

/* 工具类 */
.font-weight-bold {
    font-weight: 700 !important;
}

.text-center {
    text-align: center !important;
}

.mt-1 {
    margin-top: 0.25rem !important;
}

.mt-2 {
    margin-top: 0.5rem !important;
}

.mb-1 {
    margin-bottom: 0.25rem !important;
}

.mb-2 {
    margin-bottom: 0.5rem !important;
}

.p-0 {
    padding: 0 !important;
}

.p-1 {
    padding: 0.25rem !important;
}

.p-2 {
    padding: 0.5rem !important;
}

.ml-2 {
    margin-left: 0.5rem !important;
}

.d-inline {
    display: inline !important;
}

.d-none {
    display: none !important;
}

.d-sm-block {
    display: block !important;
}

@media (max-width: 575.98px) {
    .d-sm-block {
        display: none !important;
    }
}

.img-fluid {
    max-width: 100%;
    height: auto;
}

/* 按钮样式 */
.btn {
    font-size: 14px;
}

.btn-dark {
    color: #fff;
    background-color: #343a40;
    border-color: #343a40;
}

.btn-dark:hover {
    color: #fff;
    background-color: #23272b;
    border-color: #1d2124;
}

/* 徽章样式 */
.badge {
    display: inline-block;
    padding: 0.25em 0.4em;
    font-size: 75%;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 0.25rem;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.badge-warning {
    color: #212529;
    background-color: #ffc107;
}

/* 响应式调整 */
@media (max-width: 768px) {
    body {
        padding-top: 80px;
    }
    
    .custom-card-body {
        font-size: 6vw;
    }
}

/* 加载动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.custom-card {
    animation: fadeIn 0.5s ease-out;
}

.timeline-item {
    animation: fadeIn 0.5s ease-out;
    animation-delay: calc(var(--index) * 0.1s);
    animation-fill-mode: both;
}