@charset "utf-8";
/* ============================================
   枫红科师大新生手册
   ============================================ */

/* ---------- 全局重置 ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color1: #DC3023;
    --color2: #FF6420;
    --color3: #FFC23F;
    --color4: #4AB9A3;
    --color5: #4187FF;
    --bg: #f4f6fc;
    --surface: #ffffff;
    --surface2: #eef1f6;
    --text: #1a1a2e;
    --text-secondary: #5a5a7a;
}

body {
    font-family: -apple-system, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
    background: #f7fbfc;
    color: #1a2a3a;
    line-height: 1.7;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

a {
    text-decoration: none;
    color: #0d7c7a;
    transition: color 0.2s;
}
a:hover {
    color: #064e4b;
}

/* ---------- 青色波浪头部（修复下拉可见） ---------- */
.site-header {
    background: linear-gradient(180deg, #e0f7f5 0%, #f0fbf9 100%);
    padding: 0px 20px 12px 20px;
    position: relative;
    z-index: 10;
}

.site-header .wave {
    position: relative;
    width: 100%;
    height: 48px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 48'%3E%3Cpath d='M0,24 C300,0 600,48 900,24 C1050,12 1150,28 1200,24 L1200,48 L0,48 Z' fill='%232dd4bf' opacity='0.12'/%3E%3C/svg%3E") repeat-x bottom;
    background-size: 1200px 48px;
    animation: waveMove 14s linear infinite;
    overflow: hidden;
}

@keyframes waveMove {
    0% { background-position-x: 0px; }
    100% { background-position-x: 1200px; }
}

.site-header .header-inner {
    max-width: 1200px;
    margin: 0px auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 8px 0px 0px 0px;
}

.site-header .logo {
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
}
.site-header .logo h1 {
    font-size: 24px;
    font-weight: 700;
    color: #0d7c7a;
    letter-spacing: 0.5px;
}
.site-header .logo .sub {
    font-size: 14px;
    color: #4b6a6a;
    font-weight: 400;
}

/* ---------- 主导航（确保下拉可见） ---------- */
.main-nav {
    max-width: 1200px;
    margin: 0px auto;
    padding: 6px 0px 0px 0px;
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    border-top: 2px solid rgba(45, 212, 191, 0.20);
    position: relative;
    z-index: 100;
}

.main-nav .nav-item {
    padding: 8px 20px;
    font-size: 15px;
    font-weight: 500;
    color: #1a3a3a;
    border-radius: 30px 30px 0px 0px;
    transition: all 0.25s;
    background: transparent;
    cursor: pointer;
    position: relative;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}
.main-nav .nav-item:hover {
    background: rgba(45, 212, 191, 0.15);
    color: #0d7c7a;
}
.main-nav .nav-item.active {
    background: rgba(45, 212, 191, 0.22);
    color: #0d7c7a;
    font-weight: 600;
}

/* 下拉菜单 */
.main-nav .nav-item .nav-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    transform: translateY(6px);
    background: #fff;
    border-radius: 12px;
    padding: 8px 0;
    min-width: 150px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.3s ease;
    box-shadow: 0 12px 32px rgba(0,0,0,0.08);
    border: 1px solid rgba(45, 212, 191, 0.15);
    z-index: 200;
}
.main-nav .nav-item:hover .nav-dropdown,
.main-nav .nav-item .nav-dropdown.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(2px);
}
.main-nav .nav-item .nav-dropdown a {
    display: block;
    padding: 10px 20px;
    color: #1a3a3a;
    font-size: 14px;
    font-weight: 400;
    border-radius: 0;
    transition: background 0.2s;
}
.main-nav .nav-item .nav-dropdown a:hover {
    background: #e8f5f3;
    color: #0d7c7a;
}

/* ---------- 锚定按钮（独立，图标占位） ---------- */
.anchor-btn-float {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1100;
    padding: 10px 18px;
    background: var(--color5);
    color: #fff;
    border: none;
    border-radius: 24px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(65,135,255,0.3);
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s cubic-bezier(0.34,1.56,0.64,1);
}
.anchor-btn-float {
    /* 原有样式保持不变，仅修改 padding 和 gap */
    padding: 10px 14px;   /* 原 18px 右内边距缩小 4px，补偿图标放大 */
    gap: 4px;             /* 原 6px，减小图标与文字间距 */
}

.anchor-icon {
    display: inline-block;
    width: 20px;          /* 原 18px，稍微放大 */
    height: 20px;
    vertical-align: middle;
    /* 其他 mask 或背景属性保持不变 */
}
/* ---------- 主内容 ---------- */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 20px 20px;
    position: relative;
    z-index: 1;
}

/* 欢迎语（初版样式） */
.page-title {
    font-size: 30px;
    font-weight: 700;
    color: #0a2a2a;
    margin-bottom: 4px;
}
.page-subtitle {
    font-size: 16px;
    color: #5a7a7a;
    margin-bottom: 10px;
    border-left: 4px solid #2dd4bf;
    padding-left: 16px;
    line-height: 1.5;
}

/* ---------- 校区区域 ---------- */
.campus-area {
    position: relative;
    width: 100%;
    height: 640px;
    margin-top: -20px;
    margin-bottom: 10px;
}
.campus-bg-canvas {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}
.campus-section {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 100px;
    height: 100%;
    flex-wrap: wrap;
    pointer-events: none;
}
.campus-card-wrapper {
    position: relative;
    width: 260px;
    height: 260px;
    pointer-events: auto;
}
.campus-card {
    width: 100%;
    height: 100%;
    background: transparent;
    border-radius: 20px;
    cursor: pointer;
    position: relative;
}
.campus-card .hover-border {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 20px;
    border: 3px solid transparent;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}
.campus-card:hover .hover-border,
.campus-card:active .hover-border {
    opacity: 1;
}
.campus-card.fenglin .hover-border { border-color: var(--color4); }
.campus-card.hongjiao .hover-border { border-color: var(--color2); }
.campus-card.taihao .hover-border { border-color: var(--color5); }

.campus-name {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.4rem;
    font-weight: 700;
    color: #1a1a2e;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(6px);
    padding: 6px 18px;
    border-radius: 30px;
    white-space: nowrap;
    z-index: 10;
    pointer-events: none;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}

.college-tag {
    position: absolute;
    font-size: 0.7rem;
    color: #5a5a7a;
    background: rgba(255,255,255,0.95);
    padding: 4px 12px;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.06);
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
    z-index: 5;
    pointer-events: none;
}

/* ---------- 快捷方式等 ---------- */
.shortcuts-section {
    margin-top: -10px;
    margin-bottom: 32px;
}
.section-label {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text);
}
.section-label::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 20px;
    background: var(--color2);
    border-radius: 2px;
}
.shortcuts-grid { display: flex; flex-wrap: wrap; gap: 12px; min-height: 60px; }
.shortcut-block {
    width: 72px; height: 72px;
    background: #fff;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: var(--text);
    text-align: center;
    border: 1px solid rgba(0,0,0,0.06);
    transition: all 0.3s;
    position: relative;
    word-break: break-all;
    padding: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.shortcut-block:hover { border-color: var(--color3); transform: translateY(-3px); }
/* 不再需要 empty-add 样式，但保留以防其他地方使用 */
.shortcut-block.empty-add {
    border-style: dashed;
    border-color: rgba(0,0,0,0.2);
    color: var(--text-secondary);
    font-size: 1.5rem;
}
.context-menu {
    position: fixed;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    border: 1px solid rgba(0,0,0,0.06);
    z-index: 2000;
    padding: 6px 0;
    min-width: 120px;
    opacity: 0;
    transform: scale(0.9);
    pointer-events: none;
    transition: opacity 0.2s, transform 0.2s;
}
.context-menu.show { opacity: 1; transform: scale(1); pointer-events: auto; }
.context-menu-item {
    padding: 8px 20px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: background 0.2s;
}
.context-menu-item:hover { background: var(--surface2); color: var(--color2); }

.recommend-section { margin-bottom: 40px; }
.recommend-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.recommend-tags { display: flex; gap: 8px; flex-wrap: wrap; flex: 1; }
.recommend-tag {
    padding: 7px 16px;
    background: #fff;
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--text);
    cursor: pointer;
    border: 1px solid rgba(0,0,0,0.06);
    transition: all 0.25s;
    white-space: nowrap;
}
.recommend-tag:hover { background: rgba(65,135,255,0.05); border-color: var(--color5); color: var(--color5); }
.refresh-btn {
    padding: 7px 16px;
    background: transparent;
    border: 1px solid rgba(0,0,0,0.2);
    border-radius: 20px;
    color: var(--text);
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s;
    white-space: nowrap;
    flex-shrink: 0;
}
.refresh-btn:hover { background: rgba(0,0,0,0.03); border-color: var(--color4); color: var(--color4); }

/* ---------- 页脚（初版） ---------- */
.site-footer {
    background: #dcece9;
    color: #1a4a4a;
    text-align: center;
    padding: 24px 20px;
    font-size: 14px;
    border-top: 2px solid rgba(45, 212, 191, 0.15);
}
.site-footer a {
    color: #0a5a5a;
}
.site-footer a:hover {
    color: #033a3a;
}

.toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--text);
    color: #fff;
    padding: 10px 24px;
    border-radius: 24px;
    font-size: 0.85rem;
    z-index: 3000;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.34,1.56,0.64,1);
    pointer-events: none;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* 响应式 */
@media (max-width: 820px) {
    .campus-section { gap: 40px; }
}