/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
        "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial,
        sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ec 100%);
    min-height: 100vh;
}

/* ========== 顶部菜单栏 ========== */
.navbar {
    background-color: #2c3e50;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* 左侧栏目菜单、右侧徽章 + HDIBS */
.nav-menu {
    display: flex;
    justify-content: flex-start;
}

.nav-menu > ul {
    list-style: none;
    display: flex;
    gap: 8px;
    align-items: stretch;
    justify-content: flex-start;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
    flex-shrink: 0;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.nav-brand:hover {
    opacity: 0.85;
}

.nav-badge {
    display: block;
    width: 42px;
    height: 42px;
    border-radius: 9px;
    background-color: #ffffff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

.nav-brand-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.2;
}

.nav-brand-name {
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.nav-brand-sub {
    color: #cfd8dc;
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 0.2px;
    white-space: nowrap;
}

.nav-menu > ul > li {
    position: relative;
}

.nav-link {
    display: block;
    color: #ecf0f1;
    text-decoration: none;
    padding: 10px 18px;
    border-radius: 6px;
    font-size: 16px;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
    background-color: #3498db;
    color: #ffffff;
    transform: translateY(-1px);
}

/* ========== 两级下拉菜单 ========== */
.dropdown-menu {
    list-style: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 180px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.15);
    padding: 6px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.2s ease;
    z-index: 200;
}

/* 桌面端：hover 展开 */
@media (min-width: 769px) {
    .nav-menu > ul > li.dropdown:hover > .dropdown-menu.level-1,
    .dropdown-menu > li.submenu:hover > .dropdown-menu.level-2 {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}

/* 移动端/点击态：用 open class 展开 */
.dropdown.open > .dropdown-menu.level-1,
.submenu.open > .dropdown-menu.level-2 {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu.level-2 {
    top: -6px;
    left: 100%;
    margin-left: 4px;
}

.dropdown-menu li {
    position: relative;
}

.dropdown-item {
    display: block;
    padding: 10px 18px;
    color: #2c3e50;
    text-decoration: none;
    font-size: 15px;
    transition: background-color 0.18s ease;
    white-space: nowrap;
}

.dropdown-item:hover {
    background-color: #ecf4fb;
    color: #3498db;
}

/* ========== 首页中间欢迎区域 ========== */
.hero-section {
    min-height: calc(100vh - 64px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
}

.hero-content {
    text-align: center;
    max-width: 900px;
}

.hero-title {
    font-size: clamp(24px, 4vw, 44px);
    font-weight: 600;
    color: #2c3e50;
    line-height: 1.6;
    letter-spacing: 1px;
    padding: 40px 32px;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(6px);
}

.hero-line {
    display: block;
}

/* ========== 通用内页容器 ========== */
.page-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 56px 24px 80px;
}

/* ========== 关于我们页面 ========== */
.page-section {
    margin-bottom: 64px;
}

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

.section-title {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
    padding-left: 14px;
    border-left: 4px solid #3498db;
    margin-bottom: 0;
}

.section-placeholder {
    /* 小标题下空一段距离 */
    height: 240px;
}

.section-body {
    /* "关于我们" 等内页正文文字 */
    margin-top: 24px;
    padding: 0 4px;
    font-size: 16px;
    line-height: 2;
    color: #34495e;
    letter-spacing: 0.3px;
    /* 保留换行符，支持多行文本 */
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* ========== 社团成员页面 ========== */
.members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 28px;
}

.member-card {
    background-color: #ffffff;
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.member-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
}

.member-photo {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 10px;
    background: linear-gradient(135deg, #dfe6e9 0%, #b2bec3 100%);
    border: 2px dashed #b2bec3;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.member-photo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.member-photo-placeholder {
    font-size: 14px;
    color: #95a5a6;
}

.member-info {
    flex: 1;
    min-height: 80px;
    border-radius: 8px;
    background-color: #f7f9fb;
    border: 2px dashed #d6dde3;
    padding: 14px 16px;
}

.member-name {
    font-size: 17px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 6px;
}

.member-intro {
    font-size: 14px;
    line-height: 1.7;
    color: #636e72;
    margin: 0;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* ========== 资助者栏目：子栏目标题 ========== */
.sponsor-group-title {
    font-size: 20px;
    font-weight: 700;
    color: #34495e;
    margin: 32px 0 18px;
    padding-bottom: 8px;
    border-bottom: 2px solid #ecf0f1;
}

/* ========== 资源空白页 ========== */
.resource-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 80px 24px;
    text-align: center;
}

.resource-page h2 {
    font-size: 32px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 20px;
}

.resource-body {
    display: block;
}

/* ========== 资源详情页：小主题 (topic) 卡片 ========== */
.resource-topic-card {
    max-width: 900px;
    margin: 0 auto 40px;
    background: #ffffff;
    border-radius: 14px;
    padding: 28px 32px;
    box-shadow: 0 4px 16px rgba(44, 62, 80, 0.07);
    text-align: left;
}

.resource-topic-title {
    font-size: 20px;
    font-weight: 700;
    font-style: italic;
    color: #2c3e50;
    margin: 0 0 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ecf0f1;
    white-space: pre-wrap;
    word-break: break-word;
    line-height: 1.7;
}

.resource-text-item {
    font-size: 16px;
    line-height: 2;
    color: #34495e;
    margin: 0 0 18px;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.resource-media-item {
    margin: 0 0 20px;
    text-align: center;
}

.resource-media-item img {
    max-width: 100%;
    max-height: 480px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    display: inline-block;
}

.resource-media-item video {
    max-width: 100%;
    max-height: 480px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    background: #000;
}

/* ========== 资源页文字编辑与视频信息 ========== */
.edit-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0 auto 24px;
    text-align: left;
}

.edit-btn {
    appearance: none;
    border: 1px solid #3498db;
    border-radius: 7px;
    background: #ffffff;
    color: #2980b9;
    padding: 8px 15px;
    font: inherit;
    font-size: 14px;
    line-height: 1.4;
    cursor: pointer;
    transition: background-color 0.18s ease, color 0.18s ease;
}

.edit-btn:hover {
    background: #3498db;
    color: #ffffff;
}

.edit-save {
    background: #3498db;
    color: #ffffff;
}

.edit-save:hover {
    background: #2980b9;
}

.edit-hint {
    flex-basis: 100%;
    max-width: 680px;
    color: #7f8c8d;
    font-size: 13px;
    line-height: 1.7;
    text-align: center;
}

.res-edit-field {
    display: block;
    margin: 0 0 16px;
    text-align: left;
}

.res-edit-label {
    display: block;
    margin-bottom: 6px;
    color: #34495e;
    font-size: 14px;
    font-weight: 600;
}

.res-edit-input,
.res-edit-textarea {
    display: block;
    width: 100%;
    border: 1px solid #d6dde3;
    border-radius: 7px;
    background: #fbfcfd;
    color: #2c3e50;
    padding: 10px 12px;
    font: inherit;
    font-size: 15px;
    line-height: 1.6;
}

.res-edit-input:focus,
.res-edit-textarea:focus {
    outline: 2px solid rgba(52, 152, 219, 0.2);
    border-color: #3498db;
    background: #ffffff;
}

.res-edit-textarea {
    min-height: 110px;
    resize: vertical;
}

.res-video-note {
    margin: 4px 0 16px;
    color: #7f8c8d;
    font-size: 13px;
    overflow-wrap: anywhere;
}

.video-block {
    text-align: left;
}

.video-meta-title {
    margin: 0 0 4px;
    color: #2c3e50;
    font-size: 20px;
    line-height: 1.5;
}

.video-meta-creator {
    margin: 0 0 12px;
    color: #5d6d7e;
    font-size: 14px;
}

.video-block video {
    display: block;
    width: 100%;
    margin: 0;
}

.video-meta-desc {
    min-height: 48px;
    margin: 14px 0 0;
    padding: 12px 14px;
    border-radius: 8px;
    background: #f7f9fb;
    color: #34495e;
    font-size: 15px;
    line-height: 1.8;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.video-meta-empty {
    color: #95a5a6;
    font-weight: 400;
}

/* ========== 首页：推荐视频网格 ========== */
.home-feed {
    padding: 40px 40px 90px;
    width: 100%;
}

.feed-slogan {
    text-align: center;
    font-size: clamp(17px, 2vw, 24px);
    font-weight: 600;
    color: #2c3e50;
    line-height: 1.9;
    letter-spacing: 0.5px;
    padding: 26px 28px;
    margin-bottom: 34px;
    background-color: rgba(255, 255, 255, 0.72);
    border-radius: 14px;
    box-shadow: 0 6px 22px rgba(44, 62, 80, 0.07);
    backdrop-filter: blur(6px);
}

.feed-title {
    font-size: 26px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 26px;
    padding-left: 14px;
    border-left: 4px solid #3498db;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
    align-items: start;
}

.video-card {
    background: #ffffff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(44, 62, 80, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
    display: flex;
    flex-direction: column;
}

.video-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 26px rgba(44, 62, 80, 0.13);
}

.video-card-player {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: #000;
    display: block;
}

.video-card-body {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-height: 84px;
}

.video-card-title {
    font-size: 16px;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1.4;
    margin: 0;
    word-break: break-word;
}

.video-card-creator {
    font-size: 13px;
    color: #636e72;
    margin: 0;
}

.video-card-category {
    align-self: flex-start;
    font-size: 12px;
    color: #636e72;
    background: #f1f3f5;
    border-radius: 999px;
    padding: 3px 10px;
    margin-top: 2px;
}

.video-card-category .cat-level {
    font-weight: 700;
}

.video-card-category .cat-basic {
    color: #27ae60;
}

.video-card-category .cat-advanced {
    color: #e67e22;
}

.video-card-category .cat-contest {
    color: #e74c3c;
}

.video-edit-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

@media (max-width: 1100px) {
    .video-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .home-feed {
        padding: 28px 16px 80px;
    }
    .video-grid {
        grid-template-columns: 1fr;
    }
}

/* ========== 鸣谢小字 ========== */
.thanks-line {
    text-align: center;
    color: #95a5a6;
    font-size: 13px;
    line-height: 1.8;
    margin: 40px 0 16px;
    letter-spacing: 0.2px;
}

/* 通用 back-link 按钮样式（资源页 / 关于我们 / 社团成员 共用） */
.back-link {
    display: inline-block;
    padding: 10px 22px;
    background-color: #3498db;
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.back-link:hover {
    background-color: #2980b9;
}

.resource-page .back-link {
    margin-top: 40px;
}

/* 关于我们 / 社团成员 页底返回按钮容器：水平居中 */
.back-wrapper {
    text-align: center;
    margin-top: 56px;
}

@media (max-width: 768px) {
    .back-wrapper {
        margin-top: 36px;
    }
}

/* ========== 登录页样式 ========== */
.login-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #3498db 50%, #2c3e50 100%);
    padding: 24px;
    line-height: 1.6;
}

.login-wrapper {
    width: 100%;
    max-width: 420px;
}

.login-card {
    background-color: #ffffff;
    border-radius: 16px;
    padding: 40px 32px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.22);
}

.login-logo {
    text-align: center;
    font-size: 32px;
    font-weight: 800;
    letter-spacing: 4px;
    color: #2c3e50;
    margin-bottom: 6px;
}

.login-title {
    text-align: center;
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 6px;
}

.login-subtitle {
    text-align: center;
    font-size: 14px;
    color: #7f8c8d;
    margin-bottom: 28px;
}

/* 登录页展示的「进入客户端的密码」提示条 */
.login-password-hint {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: -10px 0 24px;
    padding: 12px 16px;
    background-color: #eef6fc;
    border: 1px solid #cfe6f7;
    border-radius: 10px;
}

.login-password-hint-label {
    font-size: 14px;
    font-weight: 600;
    color: #34495e;
}

.login-password-hint-value {
    font-size: 16px;
    letter-spacing: 0.5px;
    color: #2c7bb6;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, monospace;
    user-select: all;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.login-field {
    position: relative;
}

.login-label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
}

.login-input {
    width: 100%;
    padding: 12px 72px 12px 14px; /* 右侧留给显示按钮 */
    font-size: 16px;
    border: 2px solid #dfe6e9;
    border-radius: 10px;
    outline: none;
    background-color: #f8fafc;
    color: #2c3e50;
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
    letter-spacing: 1px;
    font-family: inherit;
}

.login-input:focus {
    border-color: #3498db;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.18);
}

.login-input::placeholder {
    color: #b2bec3;
    letter-spacing: 0;
}

.login-toggle {
    position: absolute;
    right: 8px;
    bottom: 7px;
    padding: 6px 10px;
    border: none;
    background-color: #ecf4fb;
    color: #3498db;
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
    transition: background-color 0.18s ease;
}

.login-toggle:hover {
    background-color: #d6e8f6;
}

.login-error {
    display: none;
    background-color: #fdecea;
    color: #c0392b;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 14px;
    margin-top: -2px;
}

.login-btn {
    width: 100%;
    padding: 12px 20px;
    background-color: #3498db;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 2px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
    font-family: inherit;
}

.login-btn:hover:not(:disabled) {
    background-color: #2980b9;
}

.login-btn:active:not(:disabled) {
    transform: translateY(1px);
}

.login-btn:disabled {
    background-color: #8bbde0;
    cursor: not-allowed;
}

.login-tip {
    margin-top: 24px;
    text-align: center;
    font-size: 12px;
    color: #95a5a6;
    line-height: 1.7;
}

/* 登录页底部备案信息 */
.login-footer {
    margin-top: 20px;
    text-align: center;
}

.login-footer a {
    display: inline-block;
    font-size: 13px;
    color: #ffffff;
    text-decoration: none;
    letter-spacing: 0.3px;
    padding: 6px 14px;
    background-color: rgba(0, 0, 0, 0.25);
    border-radius: 999px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.login-footer a:hover,
.login-footer a:focus {
    color: #ffffff;
    background-color: rgba(0, 0, 0, 0.4);
    text-decoration: underline;
}

/* 首页底部备案信息 */
.site-footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 14px;
    text-align: center;
    pointer-events: none;
}

.site-footer a {
    pointer-events: auto;
    display: inline-block;
    font-size: 13px;
    color: #5d6d7e;
    text-decoration: none;
    letter-spacing: 0.3px;
    padding: 6px 14px;
    background-color: rgba(255, 255, 255, 0.75);
    border-radius: 999px;
    box-shadow: 0 2px 8px rgba(44, 62, 80, 0.08);
}

.site-footer a:hover,
.site-footer a:focus {
    color: #2c3e50;
    background-color: rgba(255, 255, 255, 0.95);
    text-decoration: underline;
}

@media (max-width: 480px) {
    .login-card {
        padding: 28px 20px;
    }

    .login-logo {
        font-size: 26px;
    }

    .login-title {
        font-size: 17px;
    }
}

/* ========== 控制端通用样式 ========== */
/* 控制端专用 Hero 欢迎区（用于 admin/index.html 中央卡片） */
.admin-hero {
    min-height: calc(100vh - 72px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
    background: linear-gradient(135deg, #dfe9f3 0%, #ffffff 45%, #e8f6f0 100%);
}

.admin-hero-card {
    max-width: 720px;
    width: 100%;
    background-color: #ffffff;
    border-radius: 18px;
    padding: 56px 48px 44px;
    box-shadow: 0 20px 40px rgba(44, 62, 80, 0.10);
    text-align: center;
}

.admin-hero-title {
    font-size: 44px;
    font-weight: 800;
    color: #2c3e50;
    margin: 0 0 12px;
    letter-spacing: 1px;
    line-height: 1.2;
}

.admin-hero-sub {
    font-size: 22px;
    color: #34495e;
    margin: 0 0 40px;
    line-height: 1.7;
    letter-spacing: 0.5px;
}

.admin-hero-actions {
    margin-bottom: 20px;
}

.admin-cta-btn {
    display: inline-block;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    background: linear-gradient(135deg, #2c3e50, #3498db);
    color: #ffffff;
    border-radius: 12px;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.2s ease, opacity 0.2s ease;
    box-shadow: 0 8px 22px rgba(52, 152, 219, 0.28);
    letter-spacing: 1px;
}

.admin-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(52, 152, 219, 0.36);
    opacity: 0.97;
}

.admin-cta-btn:active {
    transform: translateY(0);
}

.admin-hero-tip {
    margin-top: 32px;
    padding: 16px 18px;
    background-color: #f5f9fc;
    border-radius: 10px;
    color: #687885;
    font-size: 14px;
    line-height: 1.8;
    text-align: left;
}

/* 返回登录页面链接 */
.hero-actions {
    margin-top: 28px;
}

.logout-link {
    display: inline-block;
    padding: 8px 22px;
    font-size: 14px;
    font-weight: 500;
    color: #7f8c8d;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid #d5dbdb;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.logout-link:hover {
    color: #e74c3c;
    border-color: #fadbd8;
    background: #fdf2f1;
}

/* 导航栏里的「进入修改」按钮可以做得更明显一点（可选，保持默认蓝也行） */
.admin-cta-link {
    font-weight: 700 !important;
    letter-spacing: 1px;
}

/* 控制端编辑页（admin/edit.html）的占位卡片 */
.page-container {
    max-width: 980px;
    margin: 48px auto 72px;
    padding: 0 24px;
}

.page-title {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 10px;
}

.page-subtitle {
    color: #5e7483;
    font-size: 15px;
    line-height: 1.8;
    margin: 0 0 28px;
}

.edit-placeholder {
    margin-bottom: 28px;
}

.edit-placeholder-card {
    background-color: #ffffff;
    border: 1px dashed #cbd5dd;
    border-radius: 14px;
    padding: 28px 24px;
    color: #34495e;
    line-height: 1.7;
    box-shadow: 0 6px 18px rgba(44, 62, 80, 0.05);
}

.edit-placeholder-card h3 {
    margin: 0 0 14px;
    color: #2c3e50;
    font-size: 18px;
    font-weight: 700;
}

.edit-todo-list {
    margin: 0;
    padding-left: 18px;
    color: #34495e;
}

.edit-todo-list li {
    margin: 6px 0;
    font-size: 14px;
}

/* 控制端：响应式收缩 */
@media (max-width: 768px) {
    .admin-hero-card { padding: 36px 22px 30px; }
    .admin-hero-title { font-size: 30px; }
    .admin-hero-sub   { font-size: 17px; margin-bottom: 28px; }
    .admin-cta-btn    { padding: 12px 22px; font-size: 14px; }
    .page-container   { margin: 28px auto 48px; }
    .page-title       { font-size: 22px; }
    .edit-placeholder-card { padding: 20px 16px; }
}

/* ========== 响应式样式 ========== */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column-reverse;
        height: auto;
        padding: 12px 24px;
        gap: 10px;
    }

    /* 移动端：品牌区在上，栏目菜单在下 */
    .nav-brand {
        margin-left: 0;
    }

    .nav-menu > ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 4px;
    }

    .nav-link {
        font-size: 14px;
        padding: 8px 14px;
    }

    /* 移动端：下拉菜单改为静态展开，避免定位错位 */
    .dropdown-menu {
        position: static;
        opacity: 0;
        max-height: 0;
        overflow: hidden;
        visibility: hidden;
        box-shadow: none;
        background-color: #34495e;
        border-radius: 6px;
        margin-top: 6px;
        padding: 0;
        transform: none;
        transition: max-height 0.3s ease, opacity 0.3s ease;
    }

    .dropdown.open > .dropdown-menu.level-1,
    .submenu.open > .dropdown-menu.level-2 {
        opacity: 1;
        visibility: visible;
        max-height: 600px;
        padding: 6px 0;
    }

    .dropdown-menu.level-2 {
        margin: 6px 10px 0;
        background-color: #3d566e;
        border-radius: 6px;
    }

    .dropdown-menu .dropdown-item {
        color: #ecf0f1;
        padding: 8px 16px;
        font-size: 14px;
    }

    .dropdown-menu .dropdown-item:hover {
        background-color: #3498db;
        color: #ffffff;
    }

    .hero-section {
        min-height: calc(100vh - 100px);
    }

    .hero-title {
        padding: 28px 20px;
    }

    .page-wrapper {
        padding: 36px 20px 60px;
    }

    .section-title {
        font-size: 22px;
    }

    .section-placeholder {
        height: 180px;
    }

    .members-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .nav-badge {
        width: 36px;
        height: 36px;
    }

    .nav-brand-name {
        font-size: 18px;
    }

    .nav-brand-sub {
        display: none;
    }

    .nav-link {
        padding: 6px 10px;
        font-size: 13px;
    }

    .hero-title {
        font-size: 20px;
        padding: 20px 16px;
    }

    .members-grid {
        grid-template-columns: 1fr;
    }
}

/* ========== 左侧纵向导航 ========== */
body.with-sidebar {
    padding-left: 240px;
}

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 240px;
    padding: 20px 16px 24px;
    background-color: #2c3e50;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.15);
    overflow-y: auto;
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-brand {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.sidebar-brand:hover {
    opacity: 0.85;
}

.sidebar-brand .nav-brand-sub {
    white-space: normal;
    line-height: 1.3;
}

.sidebar-nav > ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.side-link,
.side-link-2,
.side-link-3 {
    display: block;
    color: #ecf0f1;
    text-decoration: none;
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 15px;
    white-space: nowrap;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.side-link-2 {
    font-size: 14px;
    padding: 8px 12px;
}

.side-link-3 {
    font-size: 14px;
    padding: 7px 12px;
    color: #dbe4ea;
}

.side-link:hover,
.side-link.active {
    background-color: #3498db;
    color: #ffffff;
}

.side-link-2:hover,
.side-link-3:hover {
    background-color: #3d566e;
    color: #ffffff;
}

.side-group,
.side-sub {
    position: relative;
}

.side-menu,
.side-sub-menu {
    display: none;
    list-style: none;
    position: static;
    margin: 2px 0 4px 10px;
    padding: 0 0 0 6px;
    min-width: 0;
    background-color: transparent;
    border-left: 2px solid rgba(255, 255, 255, 0.12);
    box-shadow: none;
    z-index: 110;
}

.side-sub-menu {
    margin: 2px 0 2px 12px;
}

.side-group.open > .side-menu,
.side-sub.open > .side-sub-menu {
    display: block;
}

body.with-sidebar .site-footer {
    left: 240px;
}

@media (max-width: 768px) {
    body.with-sidebar {
        padding-left: 0;
    }

    .sidebar {
        position: static;
        width: auto;
        height: auto;
        padding: 16px;
        gap: 14px;
    }

    .side-link-3 {
        padding: 6px 12px;
    }

    body.with-sidebar .site-footer {
        left: 0;
    }
}
