/* 横幅样式 */
.banner-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 20px;
    padding: 0 15px;
    box-sizing: border-box;
}

.banner-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .banner-container {
        padding: 0 10px;
        margin-bottom: 15px;
    }
    
    .banner-image {
        border-radius: 4px;
    }
}

/* 原有CSS内容保持不变 */
body {
    background-color: #e0d5c0;
    background-image: 
        url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" opacity="0.08"><path d="M10,10 L90,10 L90,90 L10,90 Z" fill="none" stroke="%235c3a21" stroke-width="1.5"/></svg>'),
        linear-gradient(to bottom, rgba(139, 90, 43, 0.05), rgba(139, 90, 43, 0.15));
    color: #5c3a21;
    font-family: 'SimSun', 'STKaiti', serif;
    font-weight: bold;
    min-height: 100vh;
    padding: 20px 0;
}

.container {
    width: 100%;
    max-width: 800px;
    margin: 20px auto;
    padding: 25px;
    box-sizing: border-box;
    background-color: #f8f1e0;
    background-image: 
        linear-gradient(to right, #e8d9b5 1px, transparent 1px),
        linear-gradient(to bottom, #e8d9b5 1px, transparent 1px);
    background-size: 20px 20px;
    border: 3px solid #8b5a2b;
    border-top: 6px solid #8b5a2b;
    border-radius: 8px;
    box-shadow: 
        0 0 0 4px rgba(139, 90, 43, 0.1),
        0 10px 25px rgba(0, 0, 0, 0.3),
        inset 0 0 15px rgba(139, 90, 43, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.container::before {
    content: "";
    position: absolute;
    top: -3px;
    left: 20%;
    right: 20%;
    height: 10px;
    background: linear-gradient(to right, 
        rgba(212, 175, 55, 0), 
        rgba(212, 175, 55, 0.8),
        rgba(212, 175, 55, 0));
    border-radius: 0 0 50% 50%;
    z-index: 2;
}

.container:hover {
    box-shadow: 
        0 0 0 4px rgba(139, 90, 43, 0.2),
        0 15px 40px rgba(0, 0, 0, 0.4),
        inset 0 0 20px rgba(212, 175, 55, 0.3);
    transform: translateY(-3px);
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 20px;
    overflow: hidden;
    border-radius: 5px;
    background-color: #f8f1e0;
    background-image: 
        linear-gradient(to right, rgba(139, 90, 43, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(139, 90, 43, 0.05) 1px, transparent 1px);
    background-size: 20px 20px;
    box-shadow: 
        0 2px 8px rgba(139, 90, 43, 0.3),
        inset 0 0 0 1px rgba(139, 90, 43, 0.2);
    position: relative;
}

th, td {
    padding: 12px 15px;
    border: 1px solid rgba(139, 90, 43, 0.5);
    background-color: rgba(248, 241, 224, 0.9);
    transition: all 0.3s ease;
    position: relative;
}

th {
    background: 
        linear-gradient(to bottom, 
            rgba(92, 58, 33, 0.9), 
            rgba(58, 36, 20, 0.9)),
        url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="10" height="10" opacity="0.3"><rect width="5" height="5" fill="%23d4af37"/></svg>');
    color: #f8f1e0;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    border-bottom: 2px solid #d4af37;
    letter-spacing: 0.5px;
}

tr:hover td {
    background-color: rgba(212, 175, 55, 0.15);
    transform: scale(1.01);
    box-shadow: 
        inset 0 0 10px rgba(212, 175, 55, 0.2),
        0 2px 4px rgba(0,0,0,0.1);
    z-index: 1;
}

tr:hover td::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), transparent);
    pointer-events: none;
}

.nav {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 25px;
}

.button {
    flex: 1;
    background: linear-gradient(to bottom, #8b5a2b, #5c3a21);
    border: 1px solid #d4af37;
    color: #f8f1e0;
    cursor: pointer;
    font-size: 15px;
    padding: 12px 0;
    border-radius: 3px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3), 
               inset 0 1px 0 rgba(255,255,255,0.1);
    text-align: center;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.3);
    position: relative;
    overflow: hidden;
}

.button:hover {
    transform: translateY(-2px);
    background: linear-gradient(to bottom, #5c3a21, #3a2414);
    box-shadow: 0 4px 8px rgba(0,0,0,0.4);
}

.button.active {
    background: linear-gradient(to bottom, #d4af37, #a67c52);
    color: #5c3a21;
    border: 1px solid #f8f1e0;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.6);
    text-shadow: none;
}

.progress-container {
    height: 8px;
    background-color: #5c3a21;
    background-image: 
        linear-gradient(to right, rgba(0,0,0,0.2) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0,0,0,0.2) 1px, transparent 1px);
    background-size: 10px 10px;
    border: 1px solid #8b5a2b;
    border-radius: 4px;
    margin-top: 5px;
    overflow: hidden;
    box-shadow: inset 0 0 5px rgba(0,0,0,0.3);
}
.progress-bar {
    height: 100%;
    background: linear-gradient(to bottom, #d4af37, #a67c52);
    border-radius: 4px;
    transition: width 0.5s ease;
    box-shadow: inset 0 0 5px rgba(255,255,255,0.2);
}

/* 古代战争风格文本 */
.header-text {
    font-size: 14px;
    font-weight: bold;
    color: #ffffff;
    text-shadow: 1px 1px 1px rgba(139, 90, 43, 0.3);
    letter-spacing: 0.5px;
}

.header-text1 {
    font-size: 10px;
    color: #ffffff;
    text-shadow: 0.5px 0.5px 0.5px rgba(139, 90, 43, 0.2);
}

.header-text2 {
    font-size: 13px;
    color: #ffffff;
    text-shadow: 1px 1px 1px rgba(139, 90, 43, 0.2);
}

.data-text {
    font-size: 12px;
    color: #5c3a21;
}

/* 古代风格输入框 */
input[type="text"],
input[type="number"],
select {
    width: 100%;
    padding: 8px;
    margin: 5px 0;
    border: 1px solid #8b5a2b;
    border-radius: 3px;
    box-sizing: border-box;
    background-color: #f8f1e0;
    box-shadow: inset 0 0 5px rgba(139, 90, 43, 0.2);
    font-family: 'SimSun', 'STKaiti', serif;
    color: #5c3a21;
    transition: all 0.3s ease;
}

input[type="text"]:focus,
input[type="number"]:focus,
select:focus {
    outline: none;
    border-color: #d4af37;
    box-shadow: 0 0 5px rgba(212, 175, 55, 0.5);
}

/* 针对小屏幕设备的媒体查询 */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    th, td {
        padding: 20px 10px;
        font-size:12px;
    }

    .data-text {
        font-size: 11px;
    }

    input[type="text"],
    input[type="number"],
    select {
        padding: 6px;
        font-size: 14px;
    }
}