* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft YaHei", sans-serif;
}

body {
    background: #ffffff;
    transition: all 0.3s ease;
    color: #333;
}

body.dark {
    background: #000000;
    color: #fff;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 15px;
}

/* 顶部导航 */
.top-nav {
    background: #ffffff;
    border-radius: 10px;
    padding: 16px 26px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.15);
    margin-bottom: 16px;
    transition: 0.3s;
}

body.dark .top-nav {
    background: #2b2b2b;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
}

.top-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.top-btn {
    padding: 9px 16px;
    background: #ffffff;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
    transition: 0.2s;
    font-size: 14px;
}

body.dark .top-btn {
    background: #444;
}

.top-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    width: 145px;
    margin-top: 8px;
    display: none;
    overflow: hidden;
}

body.dark .dropdown-menu {
    background: #333;
}

.dropdown-menu div {
    padding: 11px 15px;
    cursor: pointer;
    font-size: 14px;
}

.dropdown-menu div:hover {
    background: #f2f2f2;
}

body.dark .dropdown-menu div:hover {
    background: #4a4a4a;
}

.dropdown.show .dropdown-menu {
    display: block;
}

/* 中间布局 */
.content {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

/* 左侧菜单 */
.left-menu {
    width: 270px;
    background: #fff;
    border-radius: 10px;
    padding: 18px;
    height: 800px;
    overflow-y: auto;
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.15);
    transition: 0.3s;
}

body.dark .left-menu {
    background: #2b2b2b;
}

.menu-btn {
    background: #fff;
    border-radius: 8px;
    padding: 13px;
    margin-bottom: 10px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
    cursor: pointer;
    transition: 0.2s;
    font-size: 14px;
}

body.dark .menu-btn {
    background: #3a3a3a;
}

.menu-btn:hover {
    transform: translateX(2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 右侧内容 */
.right-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-height: 800px;
    overflow-y: auto;
    padding-right: 8px;
}

.card {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.15);
    transition: 0.3s;
}

body.dark .card {
    background: #2b2b2b;
}

.card-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 16px;
}

.card-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.item-btn {
    flex: 1;
    min-width: 22%;
    max-width: 24%;
    background: #fff;
    border-radius: 8px;
    padding: 12px 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
    cursor: pointer;
    transition: 0.2s;
    font-size: 14px;
}

body.dark .item-btn {
    background: #444;
}

.item-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.item-icon {
    height: 100%;
    max-height: 24px;
    /* 图标大小 */
    width: auto;
    vertical-align: middle;
    margin-right: 6px;
    /* 控制图标和文字的间距 */
}

/* 底部 */
.footer {
    background: #fff;
    border-radius: 10px;
    padding: 20px 26px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.12);
    transition: 0.3s;
    font-size: 14px;
}

body.dark .footer {
    background: #2b2b2b;
}

.footer span {
    cursor: pointer;
    font-weight: 500;
}

/* 鼠标悬浮提示窗 */
.tooltip {
    position: absolute;
    background: #fff;
    color: #333;
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 12px;
    white-space: nowrap;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    pointer-events: none;
    display: none;
}

body.dark .tooltip {
    background: #333;
    color: #fff;
}

/* 弹窗 —— 固定宽高 + 内部滚动 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.modal-box {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    width: 90%;
    max-width: 850px;
    max-height: 80vh;
    overflow-y: auto;
    text-align: center;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    transition: 0.3s;
}

body.dark .modal-box {
    background: #2b2b2b;
}

.modal-large .modal-box {
    max-width: 1000px;
    padding: 45px;
}

.modal-tip {
    font-size: 15px;
    color: #666;
    text-align: justify;
    text-indent: 2em;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
    margin-bottom: 25px;
    line-height: 1.6;
}

body.dark .modal-tip {
    color: #ccc;
    border-color: #444;
}

.modal-img {
    max-width: 260px;
    margin: 15px auto;
    display: block;
}

.modal-title {
    font-size: 20px;
    margin-bottom: 20px;
    font-weight: bold;
}

.modal-links {
    display: flex;
    gap: 16px;
    margin-top: 20px;
    justify-content: center;
    padding-bottom: 20px;
}

.modal-link {
    width: 140px;
    background: #fff;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
    cursor: pointer;
    font-size: 14px;
    transition: 0.2s;
}

body.dark .modal-link {
    background: #444;
}

/* 独立软件页面专用样式 */
.soft-page {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.back-btn {
    margin-top: 25px;
    padding: 10px 22px;
    background: #007bff;
    color: #fff;
    border-radius: 8px;
    cursor: pointer;
    display: inline-block;
}

/* ================= 手机专属适配（电脑完全不变） ================= */
@media only screen and (max-width: 768px) {
    .content {
        flex-direction: column !important;
    }

    .left-menu {
        width: 100% !important;
        height: auto !important;
        max-height: 300px !important;
    }

    .right-content {
        max-height: none !important;
        padding-right: 0 !important;
    }

    .item-btn {
        min-width: 48% !important;
        max-width: 48% !important;
    }

    .top-nav {
        flex-direction: column !important;
        gap: 12px !important;
    }

    .footer {
        flex-direction: column !important;
        gap: 8px !important;
        text-align: center !important;
    }
}

@media only screen and (max-width: 400px) {
    .item-btn {
        min-width: 100% !important;
        max-width: 100% !important;
    }
}