/* 更新现有样式以使用变量 */
.footer {
    background-color: rgba(0, 0, 0, 0.8);
    color: #999;
    padding: 20px 0;
    text-align: center;
    font-size: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.footer-info {
    margin-bottom: 10px;
}

.footer-info span {
    margin: 0 10px;
    white-space: nowrap;
}

.footer-copyright {
    margin-bottom: 10px;
}

.footer-links {
    margin-bottom: 10px;
}

.footer-links a {
    color: #999;
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #fff;
}

.footer-notice {
    color: #666;
    font-size: 12px;
}

/* 添加备案链接样式 */
.footer-info a {
    color: #999;
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.footer-info a:hover {
    color: #fff;
}

.footer-info img {
    vertical-align: middle;
}

.footer-copyright a {
    color: #999;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.footer-copyright a:hover {
    color: #fff;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px;
    box-sizing: border-box;
}

.modal.show {
    opacity: 1;
}

.modal-content {
    position: relative;
    background: #fff;
    margin: 3vh auto;
    padding: 25px;
    width: 90%;
    max-width: 800px;
    max-height: 94vh;
    overflow-y: auto;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
    transform: translateY(-20px);
    opacity: 0;
    transition: all 0.3s ease;
    color: #333;
}

.modal.show .modal-content {
    transform: translateY(0);
    opacity: 1;
}

.close-button {
    position: absolute;
    right: 15px;
    top: 15px;
    color: #666;
    font-size: 24px;
    font-weight: normal;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.05);
}

.close-button:hover {
    color: #333;
    background-color: rgba(0, 0, 0, 0.1);
}

#modal-content {
    line-height: 1.6;
    padding-right: 10px;
}

#modal-content::-webkit-scrollbar {
    width: 8px;
}

#modal-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
}

#modal-content::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
}

#modal-content::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.2);
}

#modal-content h1 {
    margin: 0 0 20px;
    font-size: 20px;
    text-align: center;
}

#modal-content h2 {
    margin: 15px 0 10px;
    font-size: 16px;
}

.section {
    padding: 15px;
    margin-bottom: 15px;
}

.section:last-child {
    margin-bottom: 0;
}

#modal-content p {
    margin-bottom: 10px;
    line-height: 1.6;
}

#modal-content p:last-child {
    margin-bottom: 0;
}

.language-options .language-item {
    cursor: pointer;
    padding: 12px 16px;
    margin-bottom: 8px;
    border-radius: 8px;
    transition: background 0.2s ease;
}
.language-options .language-item:hover {
    background: #f5f5f5;
}
.language-options .language-item.active {
    color: #2d8cf0;
    font-weight: 600;
    background: rgba(45, 140, 240, 0.08);
}

.language-options-list {
    max-height: 60vh;
    overflow-y: auto;
}

/* 设置模态框样式 */
.settings-modal {
    padding: 20px 0;
}

.settings-modal h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
    font-size: 24px;
}

.settings-section {
    margin-bottom: 30px;
    padding: 0 20px;
}

.settings-section h3 {
    font-size: 18px;
    color: #666;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.setting-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding: 10px;
    box-shadow: 0 2px 8px #ff5722 !important;
    border-radius: 8px;
}

.setting-item label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 10px;
    cursor: pointer;
}

.setting-item span {
    color: #333;
    font-size: 15px;
}

/* 开关样式 */
.switch-input {
    position: relative;
    width: 50px;
    height: 24px;
    appearance: none;
    background: #eee;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.switch-input:checked {
    background: #4CAF50;
}

.switch-input::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: white;
    top: 2px;
    left: 2px;
    transition: all 0.3s ease;
}

.switch-input:checked::before {
    left: 28px;
}

/* 下拉框样式 */
.setting-item select {
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #ddd;
    background: white;
    color: #333;
    font-size: 14px;
    cursor: pointer;
    outline: none;
    transition: all 0.3s ease;
}

.setting-item select:hover {
    border-color: #999;
}

.setting-item select:focus {
    border-color: #4CAF50;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.1);
}

/* 底部按钮 */
.settings-footer {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
    padding: 0 20px;
}

.settings-footer button {
    padding: 10px 25px;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.save-settings {
    background: #4CAF50;
    color: white;
}

.save-settings:hover {
    background: #45a049;
}

.reset-settings {
    background: #f8f9fa;
    color: #666;
    border: 1px solid #ddd;
}

.reset-settings:hover {
    background: #e9ecef;
    border-color: #999;
}

@media (max-width: 768px) {
    .footer {
        padding: 8px 0;
        font-size: 12px;
    }

    .footer-content {
        padding: 0 8px;
    }

    .footer-info {
        margin-bottom: 4px;
    }

    .footer-info span {
        display: block;
        margin: 1px 0;
        font-size: 12px;
    }

    .footer-info img {
        width: 12px;
        height: 12px;
        margin-right: 2px;
    }

    .footer-copyright {
        margin-bottom: 4px;
        font-size: 12px;
    }

    .footer-links {
        margin-bottom: 4px;
    }
    
    .footer-links a {
        display: inline-block;
        margin: 1px 4px;
        font-size: 12px;
    }

    .footer-notice {
        font-size: 11px;
        color: #777;
    }

    .footer-stats {
        margin-top: 3px;
        flex-direction: column;
        gap: 8px;
        align-items: center;
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
    }

    .footer-stats span {
        font-size: 13px;
        padding: 0 2px;
        display: inline-flex;
        align-items: center;
        color: #999;
    }

    .footer-stats i {
        font-size: 13px;
        margin-right: 1px;
        color: #ff6b6b;
    }

    .modal-content {
        padding: 20px;
        margin: 2vh auto;
    }
    
    .section {
        padding: 12px;
        margin-bottom: 12px;
    }

    .hide-mobile {
        display: none !important;
    }

    .language-switch select {
        font-size: 12px;
        padding: 3px 6px;
    }
}

/* 工具按钮 */
.back-to-top {
    position: fixed;
    right: 20px;
    width: 36px;
    height: 36px;
    background-color: rgba(0, 0, 0, 0.6);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#backToTop {
    bottom: 168px;
    opacity: 0;
    visibility: hidden;
}

#backToTop.show {
    opacity: 1;
    visibility: visible;
}

#leaveMessage {
    bottom: 120px;
}

#zh_tw {
    bottom: 72px;
}

#settings {
    bottom: 24px;
}

/* 悬停效果 */
.back-to-top:hover {
    background-color: rgba(0, 0, 0, 0.8);
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* 图标样式 */
.back-to-top i {
    font-size: 20px;
    transition: transform 0.3s ease;
}

/* 图片懒加载占位样式 */
.lazy-image {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lazy-image.loaded {
    opacity: 1;
}

/* 本站统计样式 */
.stat-item {
    padding: 10px;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.stat-label {
    color: #666;
    font-size: 14px;
}

.stat-value {
    color: #ff6b6b;
    font-weight: bold;
}

/* 统计信息样式 */
.footer-stats {
    margin-top: 3px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
   /* gap: 15px; */
}

.footer-stats span {
    display: inline-flex;
    align-items: center;
    color: #999;
    font-size: 14px;
    padding: 0 2px;
}

.footer-stats i {
    margin-right: 8px;
    color: #00a1d6;
    font-size: 14px;
}

/* 水印样式：降低透明度，避免遮挡卡片内容 */
.watermark {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background-repeat: repeat;
    z-index: 9999;
    opacity: 0.55;
}

/* 复制提示框样式 */
.copy-notice {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.9);
    color: #fff;
    padding: 20px 30px;
    border-radius: 8px;
    z-index: 10000;
    display: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: fadeInOut 2s ease-in-out;
    min-width: 200px;
}

.copy-notice-content {
    text-align: center;
}

.copy-notice-content p {
    margin: 8px 0;
    line-height: 1.5;
}

.copy-notice-content p:first-child {
    font-size: 16px;
    font-weight: bold;
    color: #4CAF50;
}

.copy-notice-content a {
    color: #4CAF50;
    text-decoration: none;
    font-weight: bold;
}

.copy-notice-content a:hover {
    text-decoration: underline;
}

@keyframes fadeInOut {
    0% { opacity: 0; transform: translate(-50%, -40%); }
    15% { opacity: 1; transform: translate(-50%, -50%); }
    85% { opacity: 1; transform: translate(-50%, -50%); }
    100% { opacity: 0; transform: translate(-50%, -60%); }
}

/* 添加一个小箭头 */
.qr-code::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    border-left: 6px solid #fff;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
}

/* 日历卡片样式 */
.calendar-header {
    padding: 8px;
    text-align: center;
    font-size: 15px;
    font-weight: bold;
    color: #333;
    background: #fff;
    border-bottom: 1px solid #eee;
    border-radius: 8px 8px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.calendar-header .prev-month,
.calendar-header .next-month {
    cursor: pointer;
    padding: 0 10px;
    color: #666;
    transition: all 0.2s ease;
}

.calendar-header .prev-month:hover,
.calendar-header .next-month:hover {
    color: #1890ff;
}

.calendar-header .current-month {
    flex: 1;
}

.weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    padding: 6px 0;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
}

.weekdays span {
    text-align: center;
    font-size: 12px;
    color: #666;
}

.days-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: #fff;
    border-radius: 0 0 8px 8px;
    gap: 1px;
}

.day {
    position: relative;
    aspect-ratio: 1;
    padding: 2px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 2px;
    transition: all 0.2s ease;
    background: #fff;
    min-width: 0;
    overflow: hidden;
}

.day:hover {
    background-color: #f0f7ff;
}

.solar-day {
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 1px;
    color: #333;
}

.lunar-day {
    font-size: 10px;
    color: #888;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    text-align: center;
}

.holiday-mark,
.workday-mark {
    position: absolute;
    top: 1px;
    font-size: 9px;
    color: #fff;
    padding: 0 2px;
    border-radius: 2px;
    line-height: 1.2;
}

.holiday-mark {
    right: 1px;
    background-color: #ff4d4f;
}

.today-mark {
    position: absolute;
    top: -0px;
    right: -1px;
    font-size: 9px;
    color: #fff;
    padding: 0 2px;
    border-radius: 2px;
    line-height: 1.2;
    background-color: #1e9fff;
}

.workday-mark {
    right: 1px;
    background-color: #52c41a;
}

.day.weekend:not(.holiday) {
    background-color: #fff8f8;
}

.day.weekend:not(.holiday) .solar-day {
    color: #ff4d4f;
}

.day:hover {
    background-color: #f0f7ff;
    cursor: pointer;
}

.day[title]:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 8px;
    background-color: rgba(0, 0, 0, 0.75);
    color: #fff;
    font-size: 12px;
    border-radius: 4px;
    white-space: nowrap;
    z-index: 1000;
}

.today {
    background: #e6f7ff;
    border: 1px solid #1890ff;
}

.today .solar-day {
    color: #1890ff;
}

/* 周末和节假日样式 */
.days-grid .day:nth-child(7n) .solar-day,
.days-grid .day:nth-child(7n-6) .solar-day {
    color: #ff4d4f;
}

.holiday {
    background-color: #fff8f8;
}

.holiday .solar-day {
    color: #ff4d4f;
}

.prev-month,
.next-month {
    opacity: 0.35;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .calendar-header {
        padding: 6px;
        font-size: 14px;
    }
    
    .weekdays span {
        font-size: 11px;
    }
    
    .solar-day {
        font-size: 12px;
    }
    
    .lunar-day {
        font-size: 9px;
    }
    
    .holiday-mark {
        font-size: 8px;
    }
}

/* 天气容器样式 */
.weather-container {
    max-width: 400px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
}

.weather-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.weather-header .location {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    display: flex;
    align-items: center;
    gap: 5px;
}

.weather-header .location i {
    color: #1890ff;
}

.weather-header .update-time {
    font-size: 12px;
    color: #999;
}

.current-weather {
    display: flex;
    align-items: center;
    padding: 20px;
    background: linear-gradient(to right, #f0f7ff, #e6f7ff);
}

.temperature {
    font-size: 48px;
    font-weight: 300;
    color: #333;
    margin-right: 20px;
    line-height: 1;
}

.weather-desc {
    flex: 1;
}

.weather-text {
    font-size: 16px;
    color: #333;
    margin-bottom: 5px;
}

.weather-detail {
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
}

.air-quality {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    color: #fff;
}

.forecast-tabs {
    display: flex;
    padding: 12px 15px;
    border-bottom: 1px solid #f0f0f0;
    background: #fafafa;
}

.forecast-tabs span {
    padding: 4px 12px;
    font-size: 14px;
    color: #666;
    cursor: pointer;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.forecast-tabs span.active {
    background: #1890ff;
    color: #fff;
}

.hourly-forecast {
    display: flex;
    overflow-x: auto;
    padding: 15px;
    gap: 20px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.hourly-forecast::-webkit-scrollbar {
    display: none;
}

.forecast-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    min-width: 45px;
}

.forecast-item span {
    font-size: 12px;
    color: #666;
}

.forecast-item i {
    font-size: 18px;
    color: #1890ff;
}

.weather-indices {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 15px;
    background: #fafafa;
}

.indices-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.indices-item i {
    font-size: 20px;
    color: #1890ff;
}

.indices-info {
    flex: 1;
}

.indices-name {
    font-size: 13px;
    color: #666;
    margin-bottom: 2px;
}

.indices-value {
    font-size: 14px;
    color: #333;
}

.weather-error {
    padding: 20px;
    text-align: center;
    color: #ff4d4f;
    font-size: 14px;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .weather-container {
        margin: 10px;
        border-radius: 8px;
    }

    .weather-header {
        padding: 12px;
    }

    .current-weather {
        padding: 15px;
    }

    .temperature {
        font-size: 36px;
    }

    .weather-text {
        font-size: 14px;
    }

    .weather-detail {
        font-size: 12px;
    }

    .forecast-tabs {
        padding: 10px;
    }

    .forecast-tabs span {
        padding: 3px 10px;
        font-size: 13px;
    }

    .hourly-forecast {
        padding: 12px;
        gap: 15px;
    }

    .weather-indices {
        grid-template-columns: 1fr;
        padding: 12px;
    }
}

/* 举报弹窗样式 */
.layui-layer-prompt {
    border-radius: 8px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

.layui-layer-prompt .layui-layer-title {
    background-color: #fff !important;
    border-bottom: 1px solid #eee !important;
    padding-left: 20px !important;
    font-size: 16px !important;
    color: #333 !important;
    height: 50px !important;
    line-height: 50px !important;
}

.layui-layer-prompt .layui-layer-content {
    padding: 20px !important;
    background-color: #fff !important;
}

.layui-layer-prompt textarea.layui-layer-input {
    min-height: 120px !important;
    padding: 12px !important;
    border: 1px solid #e6e6e6 !important;
    border-radius: 8px !important;
    resize: none !important;
    font-size: 14px !important;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05) !important;
}

.layui-layer-prompt .layui-layer-btn {
    padding: 15px 20px !important;
    text-align: right !important;
    border-top: 1px solid #eee !important;
    background-color: #fff !important;
}

.layui-layer-prompt .layui-layer-btn a {
    height: 36px !important;
    line-height: 36px !important;
    padding: 0 25px !important;
    margin: 0 0 0 10px !important;
    border-radius: 18px !important;
    font-size: 14px !important;
    transition: all 0.3s !important;
}

.layui-layer-prompt .layui-layer-btn .layui-layer-btn0 {
    background-color: #52c41a !important;
    border-color: #52c41a !important;
    color: #fff !important;
}

.layui-layer-prompt .layui-layer-btn .layui-layer-btn0:hover {
    background-color: #49ad18 !important;
    border-color: #49ad18 !important;
}

.layui-layer-prompt .layui-layer-btn .layui-layer-btn1 {
    background-color: #f7f7f7 !important;
    color: #666 !important;
    border: 1px solid #ddd !important;
}

.layui-layer-prompt .layui-layer-btn .layui-layer-btn1:hover {
    background-color: #f0f0f0 !important;
}

/* 弹窗遮罩层 */
.layui-layer-shade {
    background-color: rgba(0, 0, 0, 0.45) !important;
}

/* PC端显示 */
.pc-only {
    display: block;
}

/* 手机端隐藏 */
@media screen and (max-width: 768px) {
    .pc-only {
        display: none;
    }
    
    /* 功能按钮移动端适配 */
    .back-to-top {
        width: 36px;
        height: 36px;
        right: 15px;
    }
    
    #backToTop {
        bottom: 164px;
    }
    #leaveMessage {
        bottom: 116px;
    }
    #zh_tw {
        bottom: 68px;
    }
    #settings {
        bottom: 20px;
    }
    
    .back-to-top i {
        font-size: 16px;
    }
}