/* 引入OPPO Sans 4.0字体 */
@font-face {
    font-family: 'OPPO Sans 4.0';
    src: url('../字体/OPPO Sans 4.0.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* 基础样式 */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'OPPO Sans 4.0', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

body {
    background-color: #f5f5f5;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

/* 响应式容器调整 */
@media (max-width: 768px) {
    .container {
        padding: 10px;
        border-radius: 8px;
    }
}

/* 手机端进一步调整 */
@media (max-width: 480px) {
    .container {
        padding: 5px;
        box-shadow: none;
        border-radius: 0;
        border: none;
        background-color: #f5f5f5;
    }

    body {
        padding: 5px;
    }
}

/* 其他原有样式保持不变 */
h1 {
    text-align: center;
    color: #333;
    margin-bottom: 20px;
}

/* 响应式标题大小调整 */
@media (max-width: 768px) {
    h1 {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }

    h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.5rem;
        margin-bottom: 10px;
    }

    h2 {
        font-size: 1.2rem;
    }

    h3 {
        font-size: 1.1rem;
    }
}

/* 添加多种高亮样式 */
.highlight-red {
    color: #e74c3c;
    /* 红色 */
    font-weight: bold;
    background-color: rgba(231, 76, 60, 0.1);
    padding: 0 2px;
    border-radius: 3px;
}

.highlight-orange {
    color: #e67e22;
    /* 橙色 */
    font-weight: bold;
    background-color: rgba(230, 126, 34, 0.1);
    padding: 0 2px;
    border-radius: 3px;
}

.highlight-blue {
    color: #3498db;
    /* 蓝色 */
    font-weight: bold;
    background-color: rgba(52, 152, 219, 0.1);
    padding: 0 2px;
    border-radius: 3px;
}

.highlight-purple {
    color: #9b59b6;
    /* 紫色 */
    font-weight: bold;
    background-color: rgba(155, 89, 182, 0.1);
    padding: 0 2px;
    border-radius: 3px;
}

.highlight-green {
    color: #27ae60;
    /* 绿色 */
    font-weight: bold;
    background-color: rgba(39, 174, 96, 0.1);
    padding: 0 2px;
    border-radius: 3px;
}

/* 表格样式 */
table {
    border: 2px solid #333;
    border-collapse: collapse;
    margin: 30px auto;
    width: 90%;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
}

th,
td {
    border: 1px solid #333;
    padding: 12px;
    text-align: center;
    vertical-align: middle;
}

th {
    background-color: #f8f9fa;
    font-weight: bold;
}

/* 响应式表格 - 原有样式 */
@media (max-width: 768px) {
    table {
        width: 100%;
        margin: 15px 0;
    }

    th,
    td {
        padding: 8px 5px;
        font-size: 14px;
    }
}

/* 手机端表格优化 */
@media (max-width: 480px) {

    /* 为表格添加滚动容器 */
    .card {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding: 10px 5px;
        margin-bottom: 15px;
        border-radius: 8px;
    }

    table {
        min-width: 400px;
        width: 100%;
        font-size: 12px;
        border: 1px solid #333;
    }

    th, td {
        padding: 6px 3px;
        font-size: 12px;
        border: 1px solid #ddd;
        vertical-align: top;
    }

    .card table .activity-time,
    .card table .activity-countdown {
        font-size: 10px;
    }

    th {
        background-color: #f2f2f2;
    }
}

/* 卡池时间和倒计时样式 */
.card table .activity-time {
    font-size: 12px;
    margin-top: 5px;
    color: #666;
}

.card table .activity-countdown {
    font-size: 12px;
    font-weight: bold;
}

.countdown-expired {
    color: #dc3545;
}

.countdown-warning {
    color: #ffc107;
}

.countdown-normal {
    color: #28a745;
}

/* 状态颜色样式 */
.status-unstarted {
    background-color: #fff3cd;
}

/* 柔和的琥珀色 */
.status-ongoing {
    background-color: #d4edda;
}

/* 柔和的绿色 */
.status-ended {
    background-color: #f8d7da;
}

/* 柔和的红色 */
.status-header {
    background-color: #dc3545;
    color: #ffecdf;
    font-weight: bold;
    text-align: center;
    padding: 10px;
    margin: 15px 0;
    border-radius: 5px;
}

/* 图片样式 */
.img-container {
    max-width: 1200px;
    /* 与.container同宽 */
    margin: 10px auto;
    /* 上下保留间距，左右自动居中 */
    height: auto;
    display: flex;
    justify-content: center;
}

.img-container img {
    max-width: 100%;
    /* 图片最大宽度为容器宽度 */
    height: auto;
    /* 高度自动保持比例 */
    object-fit: contain;
    /* 保持图片比例不变形 */
    border-radius: 8px;
    /* 可选：添加圆角 */
}

.img-kuang1 {
    max-width: 30%;
    /* 图片最大宽度为容器宽度 */
    height: 30%;
    /* 高度自动保持比例 */
    object-fit: contain;
    /* 保持图片比例不变形 */
    border-radius: 8px;
    /* 可选：添加圆角 */
}

.img-kuang {
    max-width: 100%;
    /* 图片最大宽度为容器宽度 */
    height: auto;
    /* 高度自动保持比例 */
    object-fit: contain;
    /* 保持图片比例不变形 */
    border-radius: 8px;
    /* 可选：添加圆角 */
}


/* 卡片容器 */
.card {
    background-color: #fff;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.card-header {
    color: #dc3545;
    font-weight: bold;
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 1px solid #eee;
}

/* 响应式布局 */
.responsive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.responsive-item {
    background-color: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* 标题样式 */
.section-title {
    text-align: center;
    margin: 20px 0;
    color: #dc3545;
}

/* 页脚样式 */
footer {
    text-align: center;
    padding: 20px;
    margin-top: 30px;
    color: #666;
    border-top: 1px solid #eee;
}

/* 弹窗样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    max-width: 80%;
    max-height: 80%;
    overflow: auto;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
}

/* 图片点击放大效果 */
.img-preview {
    cursor: pointer;
    transition: transform 0.3s;
}

.img-preview:hover {
    transform: scale(1.05);
}


/* 分类框样式 */
.category-box {
    background-color: #f8f9fa;
    border-left: 4px solid #dc3545;
    padding: 8px 12px;
    margin: 10px 0;
    border-radius: 4px;
    font-weight: bold;
    color: #333;
    font-size: 14px;
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.1);
}

/* 活动列表样式 */
.activity-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
}

/* 专武列表样式 - 保持2列 */
.card:has(.special-weapon-item) .activity-list {
    grid-template-columns: repeat(2, 1fr);
}

.activity-item {
    display: flex;
    background-color: #fff;
    border-radius: 6px;
    padding: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-left: 3px solid #dc3545;
    transition: transform 0.3s;
    font-size: 14px;
    font-weight: bold;
}

.activity-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.activity-icon {
    min-width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
}

.activity-icon-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.activity-content {
    flex: 1;
    margin-left: 8px;
}

/* 重要活动标题加粗 */
.activity-content h3 {
    font-size: 12px;
    margin-bottom: 3px;
    color: #333;
    font-weight: bold;
}

/* 剩余时间加粗 */
.activity-countdown {
    font-weight: bold;
}

.activity-time {
    font-size: 10px;
    color: #666;
    margin-bottom: 1px;
}

.activity-countdown {
    font-size: 14px;
    font-weight: bold;
}

.countdown-unstarted {
    color: #e67e22;
}

.countdown-ongoing {
    color: #27ae60;
}

.countdown-ended {
    color: #e74c3c;
}

/* 添加图标样式类 */
.icon-drive {
    content: "🚗";
}

.icon-money {
    content: "💰";
}

.icon-dungeon {
    content: "🏆";
}

.icon-investigation {
    content: "🔍";
}

.icon-exploration {
    content: "🗺️";
}

.icon-normal {
    content: "🎮";
}

.icon-master {
    content: "👑";
}

.icon-dimension {
    content: "🌌";
}

.icon-gacha {
    content: "🎁";
}

/* 响应式活动列表 */
@media (max-width: 768px) {
    .activity-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }

    .activity-item {
        padding: 5px;
    }
}

@media (max-width: 480px) {
    .activity-item {
        padding: 5px;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    /* 保持专武列表在手机设备下为2列 */
    .card:has(.special-weapon-item) .activity-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .activity-icon {
        min-width: 30px;
        height: 30px;
        width: 30px;
        margin-bottom: 3px;
    }

    .activity-content {
        margin-left: 0;
    }

    .activity-content h3 {
        font-size: 12px;
        margin-bottom: 2px;
    }

    .activity-time,
    .activity-countdown {
        font-size: 10px;
    }
}

/* 图片样式优化 */
.img-container {
    max-width: 1200px;
    margin: 10px auto;
    height: auto;
    display: flex;
    justify-content: center;
}

.img-container img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
}

/* 手机端图片调整 */
@media (max-width: 480px) {
    .img-container {
        margin: 5px 0;
        padding: 0 5px;
    }

    .img-preview {
        transition: none;
    }

    .img-preview:hover {
        transform: none;
        /* 手机端移除悬停效果 */
    }
}

/* 专武建议样式 */
.activity-advice {
    margin-top: 5px;
    font-size: 12px;
    line-height: 1.4;
}

/* 手机端专武建议调整 */
@media (max-width: 480px) {
    .activity-advice {
        font-size: 11px;
    }
}

/* 专武部分样式调整 */
.special-weapon-item {
    padding: 15px;
}

.special-weapon-icon {
    min-width: 150px;
    height: 150px;
    width: 150px;
}

.special-weapon-content h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.special-weapon-time {
    font-size: 16px;
    margin-bottom: 5px;
}

.special-weapon-countdown {
    font-size: 16px;
    margin-bottom: 5px;
}

.special-weapon-advice {
    margin-top: 5px;
    font-size: 16px;
    line-height: 1.5;
}

/* 响应式媒体查询 - 平板设备 */
@media (max-width: 768px) {
    .special-weapon-icon {
        min-width: 120px;
        height: 120px;
        width: 120px;
    }

    .special-weapon-content h3 {
        font-size: 16px;
    }

    .special-weapon-time,
    .special-weapon-countdown,
    .special-weapon-advice {
        font-size: 14px;
    }
}

/* 响应式媒体查询 - 手机设备 */
@media (max-width: 480px) {
    .special-weapon-icon {
        min-width: 90px;
        height: 90px;
        width: 90px;
    }

    .special-weapon-content h3 {
        font-size: 14px;
    }

    .special-weapon-time,
    .special-weapon-countdown,
    .special-weapon-advice {
        font-size: 13px;
    }
}

/* 活动分类样式 */
.activity-category {
    margin-bottom: 15px;
    padding: 8px;
    border-radius: 5px;
    background-color: #f5f5f5;
}

.category-separator {
    height: 10px;
    background-color: #fff;
    margin-top: 8px;
    border-bottom: 1px dashed #ccc;
}

/* 调整活动项样式 */
.activity-item {
    margin-top: 8px;
    padding: 5px;
    border-radius: 6px;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
}

.activity-icon {
    margin-right: 15px;
}

.activity-icon-img {
    width: 50px;
    height: 50px;
    border-radius: 5px;
}

/* 专武图片样式 */
.special-weapon-icon .activity-icon-img {
    width: 100%;
    height: 100%;
}

.activity-content {
    flex: 1;
}

.activity-time {
    color: #666;
    font-size: 14px;
    margin: 5px 0;
}

.activity-countdown {
    font-weight: bold;
    padding: 3px 5px;
    border-radius: 3px;
}

.countdown-unstarted {
    color: #FE9900;
    background-color: #e6f2ff;
}

.countdown-ongoing {
    color: #008000;
    background-color: #e6ffe6;
}

.countdown-ended {
    color: #cc0000;
    background-color: #ffe6e6;
}
.activity-category h3 {
    text-align: center;
}
