* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: background-color 0.3s, color 0.3s;
    /* 禁用触摸缩放 */
    touch-action: manipulation;
}

html {
    overflow-x: hidden;
    /* 额外的缩放禁用设置 */
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    touch-action: manipulation;
}

body {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 0;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    font-size: 14px;
    /* 禁用双击缩放但保留文本选择 */
    touch-action: manipulation;
    font-family: "苹方","PingFang","\82f9\65b9","宋体","SimSun",'XinGothic-SinaWeibo',helvetica,arial,sans-serif;
}

body.dark-mode,
html.dark-mode body {
    background-color: #222;
    color: #eee;
}

.container {
    width: 1080px;
    max-width: 100%;
    margin: 0 auto;
}

/* 顶部模块 */
.header {
    width: 1080px;
    max-width: 100%;
    height: 90px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    background-color: #1e88e5;
    padding: 0 5px;
    box-sizing: border-box;
}

.dark-mode .header,
html.dark-mode .header {
    background-color: #0d47a1;
}

.logo {
    width: 80px;
    height: 80px;
    cursor: pointer;
    margin: 5px 0;
}

.header-buttons {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 80px;
    margin: 5px 0;
}

.header-btn {
    padding: 0 10px;
    background-color: #42a5f5;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 29px;
    min-height: 27px;
    font-family: "苹方","PingFang","\82f9\65b9","宋体","SimSun",'XinGothic-SinaWeibo',helvetica,arial,sans-serif;
}

.dark-mode .header-btn,
html.dark-mode .header-btn {
    background-color: #1565c0;
}

.header-btn:hover {
    background-color: #64b5f6;
}

.dark-mode .header-btn:hover,
html.dark-mode .header-btn:hover {
    background-color: #1976d2;
}

.banner {
    flex-grow: 1;
    text-align: center;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.2;
}

.banner-main {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 2px;
}

.banner-sub {
    font-size: 14px;
    font-weight: normal;
    opacity: 0.9;
}

/* 主要内容区 */
.main-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    width: 1080px;
    max-width: 100%;
    box-sizing: border-box;
}

/* 通用模块样式 */
.module {
    margin-bottom: 10px;
    background-color: white;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.dark-mode .module,
html.dark-mode .module {
    background-color: #333;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.module-header {
    padding: 10px 15px;
    background-color: #2196f3;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dark-mode .module-header,
html.dark-mode .module-header {
    background-color: #1565c0;
}

.collapse-btn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-family: "苹方","PingFang","\82f9\65b9","宋体","SimSun",'XinGothic-SinaWeibo',helvetica,arial,sans-serif;
}

.module-content {
    padding: 15px;
}

/* 移动端适配 - 平板样式 (768px以下) */
@media (max-width: 768px) {
    body {
        overflow-x: hidden;
        padding: 0 0;
    }

    .container {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .header {
        width: 100%;
        height: auto;
        flex-direction: column;
        text-align: center;
        padding: 15px;
    }

    .logo {
        width: 60px;
        height: 60px;
        margin-bottom: 10px;
    }

    .banner {
        margin: 10px 0;
    }

    .banner-main {
        font-size: 18px;
    }

    .banner-sub {
        font-size: 14px;
    }

    .header-buttons {
        flex-direction: row;
        gap: 10px;
        height: auto;
        justify-content: center;
    }

    .header-btn {
        margin-bottom: 0;
        padding: 10px 15px;
        font-size: 14px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        font-family: "Microsoft YaHei", Arial, sans-serif;
    }

    .collapse-btn {
        font-family: "Microsoft YaHei", Arial, sans-serif;
    }

    .main-content {
        width: 100%;
        flex-direction: column;
    }

    .module-content {
        padding: 12px;
    }

    .module-header {
        padding: 12px;
    }
}

/* 移动端适配 - 手机样式 (480px以下) */
@media (max-width: 480px) {
    body {
        overflow-x: hidden;
    }

    .header {
        padding: 10px;
        box-sizing: border-box;
    }

    .banner-main {
        font-size: 16px;
    }

    .banner-sub {
        font-size: 14px;
    }

    .header-btn {
        padding: 8px 12px;
        font-size: 14px;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        font-family: "Microsoft YaHei", Arial, sans-serif;
    }

    .collapse-btn {
        font-family: "Microsoft YaHei", Arial, sans-serif;
    }

    .module-content {
        padding: 10px;
    }

    .module-header {
        padding: 10px;
    }

    .module-title {
        font-size: 14px;
    }
}
