/* ============================================================
   极方优秀学员展示系统 — 首页专属样式
   home.css
   设计语言：深色 Hero + 浅色卡片区，Inter 字体，品牌蓝主色
   ============================================================ */

/* ── 引入 Inter 字体后覆盖全局字体 ── */
body.home-page {
    font-family: 'Inter', 'Microsoft YaHei', 'PingFang SC', sans-serif;
    background: #f4f6fb;
}

/* ============================================================
   HERO 区域
   ============================================================ */
.home-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #0a1628 0%, #0d2045 40%, #1a3a6b 100%);
    padding: 100px 24px 120px;
}

/* 装饰光球 */
.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    animation: orbFloat 12s ease-in-out infinite alternate;
}
.hero-orb-1 {
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(30, 136, 229, 0.25) 0%, transparent 70%);
    top: -200px; left: -100px;
    animation-duration: 14s;
}
.hero-orb-2 {
    width: 380px; height: 380px;
    background: radial-gradient(circle, rgba(66, 165, 250, 0.18) 0%, transparent 70%);
    bottom: -100px; right: -80px;
    animation-duration: 10s;
    animation-delay: -4s;
}
.hero-orb-3 {
    width: 260px; height: 260px;
    background: radial-gradient(circle, rgba(100, 181, 246, 0.15) 0%, transparent 70%);
    top: 30%; left: 55%;
    animation-duration: 16s;
    animation-delay: -8s;
}
@keyframes orbFloat {
    from { transform: translate(0, 0) scale(1); }
    to   { transform: translate(30px, -20px) scale(1.08); }
}

.hero-inner {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* 徽章标签 */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(90deg, rgba(37, 99, 235, 0.25), rgba(59, 130, 246, 0.15));
    border: 1px solid rgba(96, 165, 250, 0.35);
    color: #93c5fd;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 3px;
    padding: 10px 28px;
    border-radius: 100px;
    margin-bottom: 32px;
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 24px rgba(37, 99, 235, 0.25);
    animation: fadeInDown 0.6s ease both;
    text-transform: uppercase;
}

/* 标题 */
.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.hero-title {
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    font-weight: 800;
    line-height: 1.2;
    color: #fff;
    letter-spacing: -0.5px;
    margin-bottom: 20px;
    animation: fadeInDown 0.6s 0.1s ease both;
}
.hero-title-gradient {
    background: linear-gradient(90deg, #64b5f6, #42a5f5, #90caf9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 副标题 */
.hero-subtitle {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.6);
    max-width: 520px;
    margin: 0 auto 32px;
    text-align: center;
    line-height: 1.7;
    animation: fadeInDown 0.6s 0.2s ease both;
}

/* 首页联系名师 CTA 按钮 */
.hero-cta {
    margin-bottom: 48px;
    animation: fadeInDown 0.6s 0.25s ease both;
}
.btn-contact-staff {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #1e3a8a, #1e40af);
    color: #fff;
    padding: 14px 32px;
    border-radius: 100px;
    font-size: 1.05rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2), inset 0 1px 1px rgba(255, 255, 255, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.btn-contact-staff:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.2);
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff;
}
.btn-contact-staff svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 2.2;
    fill: none;
}

/* 统计数字行 */
.hero-stats {
    display: inline-flex;
    align-items: center;
    gap: 32px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    border-radius: 20px;
    padding: 20px 36px;
    animation: fadeInDown 0.6s 0.3s ease both;
}
.hero-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
.hero-stat-num {
    font-size: 1.7rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}
.hero-stat-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
    white-space: nowrap;
}
.hero-stat-divider {
    width: 1px;
    height: 36px;
    background: rgba(255, 255, 255, 0.12);
    flex-shrink: 0;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-16px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   筛选栏 — 毛玻璃卡片，从 Hero 底部浮出
   ============================================================ */
.home-filter-wrap {
    max-width: 900px;
    margin: -36px auto 0;
    padding: 0 24px;
    position: relative;
    z-index: 20;
    animation: fadeInUp 0.5s 0.35s ease both;
}

.home-filter {
    display: flex;
    align-items: flex-end;
    gap: 16px;
    background: #fff;
    border-radius: 16px;
    padding: 20px 24px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
    flex-wrap: wrap;
}

.filter-field {
    flex: 1;
    min-width: 180px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.filter-field label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0;
}
.filter-field label svg {
    stroke: #aaa;
}
.filter-field input {
    border: 1.5px solid #e8eaf0;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 0.92rem;
    font-family: inherit;
    color: #333;
    background: #f8f9fc;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    outline: none;
    width: 100%;
}
.filter-field input:focus {
    border-color: #1565C0;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(21, 101, 192, 0.08);
}
.filter-field input::placeholder {
    color: #c0c4cc;
}

.filter-actions {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    flex-shrink: 0;
    padding-top: 22px; /* align with input bottom */
}
.filter-btn-search {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 22px;
    background: linear-gradient(135deg, #1565C0, #1E88E5);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 16px rgba(21, 101, 192, 0.3);
    white-space: nowrap;
}
.filter-btn-search:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(21, 101, 192, 0.38);
}
.filter-btn-search:active {
    transform: translateY(0);
}

.filter-btn-clear {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 10px 14px;
    border: 1.5px solid #e8eaf0;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #888;
    background: transparent;
    text-decoration: none;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
    white-space: nowrap;
}
.filter-btn-clear:hover {
    border-color: #e57373;
    color: #e53935;
    background: #fff5f5;
}

/* 筛选结果提示栏 */
.filter-result-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    font-size: 0.88rem;
    color: #666;
    background: #EFF6FF;
    border: 1px solid #BFDBFE;
    border-radius: 10px;
    padding: 10px 16px;
    margin-bottom: 28px;
}
.filter-result-bar svg { stroke: #1565C0; flex-shrink: 0; }
.filter-result-bar strong { color: #1565C0; }
.filter-result-bar em { font-style: normal; color: #333; font-weight: 600; }

/* ============================================================
   主内容区
   ============================================================ */
.home-main {
    padding-top: 48px;
    padding-bottom: 60px;
}

/* ============================================================
   学员卡片网格
   ============================================================ */
.student-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

/* 学员卡片 */
.stu-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s cubic-bezier(.34,1.56,.64,1),
                box-shadow 0.3s ease;
    animation: cardFadeUp 0.5s ease both;
    border: 1px solid rgba(0, 0, 0, 0.04);
}
.stu-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
    color: inherit;
    text-decoration: none;
}
.stu-card:active {
    transform: translateY(-4px) scale(1.005);
}

@keyframes cardFadeUp {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* 照片区 */
.stu-card-photo {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: linear-gradient(135deg, #E3F2FD, #f0f6ff);
    flex-shrink: 0;
}
.stu-card-photo::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent);
    animation: skeletonLoading 1.5s infinite;
    z-index: 1;
}
@keyframes skeletonLoading {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}
.stu-card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, opacity 0.5s ease;
    display: block;
    opacity: 0;
    position: relative;
    z-index: 2;
}
.stu-card-photo img.loaded {
    opacity: 1;
}
.stu-card:hover .stu-card-photo img.loaded {
    transform: scale(1.06);
}

/* 学校徽章（叠加在照片底部） */
.stu-card-school-badge {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 28px 14px 10px;
    background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.3) 60%, transparent 100%);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.4;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}
.uni-logo-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.9);
    padding: 2px;
}

/* 内容区 */
.stu-card-body {
    display: flex;
    flex-direction: column;
    padding: 18px 20px 16px;
    flex: 1;
    gap: 10px;
}

.stu-card-top {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stu-card-name {
    font-size: 1.12rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0;
    line-height: 1.3;
}

.stu-card-highschool {
    font-size: 0.8rem;
    color: #888;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 寄语摘要 */
.stu-card-message {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-style: italic;
    border-left: 3px solid #E3F2FD;
    padding-left: 10px;
}

/* 分数胶囊 */
.stu-card-scores {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.score-pill {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    padding: 5px 12px;
    border-radius: 100px;
    line-height: 1;
}
.score-pill-zk {
    background: #E8F5E9;
}
.score-pill-gk {
    background: #E3F2FD;
}
.score-pill-num {
    font-size: 1rem;
    font-weight: 800;
    color: #1a1a2e;
}
.score-pill-tag {
    font-size: 0.72rem;
    font-weight: 600;
    color: #888;
}

/* 卡片底部 */
.stu-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 10px;
    border-top: 1px solid #f0f2f7;
    margin-top: auto;
}
.stu-card-date {
    font-size: 0.78rem;
    color: #bbb;
    white-space: nowrap;
}
.stu-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #1565C0;
    transition: gap 0.2s;
    white-space: nowrap;
}
.stu-card:hover .stu-card-cta {
    gap: 6px;
}
.stu-card-cta svg {
    stroke: #1565C0;
    transition: transform 0.2s;
}
.stu-card:hover .stu-card-cta svg {
    transform: translateX(2px);
}

/* ============================================================
   空状态
   ============================================================ */
.home-empty {
    text-align: center;
    padding: 80px 20px;
    color: #aaa;
}
.home-empty-icon {
    margin-bottom: 20px;
}
.home-empty h3 {
    font-size: 1.2rem;
    color: #666;
    font-weight: 600;
    margin-bottom: 8px;
}
.home-empty p {
    font-size: 0.9rem;
    margin-bottom: 20px;
}
.home-empty-reset {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 22px;
    border: 1.5px solid #1565C0;
    border-radius: 10px;
    color: #1565C0;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}
.home-empty-reset:hover {
    background: #1565C0;
    color: #fff;
}

/* ============================================================
   页脚
   ============================================================ */
.home-footer {
    background: #fff;
    border-top: 1px solid #eef0f5;
    padding: 24px 20px;
    margin-top: 0;
}
.home-footer-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 0.83rem;
    color: #bbb;
}
.home-footer-brand {
    font-weight: 700;
    color: #888;
}
.home-footer-sep {
    color: #ddd;
}

/* ============================================================
   悬浮邀请卡
   ============================================================ */
.invite-card {
    position: fixed;
    bottom: 36px;
    right: 32px;
    z-index: 999;
    width: 210px;
    background: linear-gradient(145deg, #1a3a7c 0%, #1565C0 55%, #1E88E5 100%);
    border-radius: 20px;
    padding: 20px 18px 16px;
    box-shadow:
        0 8px 32px rgba(21, 101, 192, 0.38),
        0 2px 8px rgba(0, 0, 0, 0.14),
        inset 0 1px 0 rgba(255,255,255,0.12);
    overflow: hidden;
    animation: inviteEntrance 0.7s 0.8s cubic-bezier(.34,1.56,.64,1) both;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.invite-card:hover {
    transform: translateY(-6px);
    box-shadow:
        0 16px 48px rgba(21, 101, 192, 0.45),
        0 4px 16px rgba(0, 0, 0, 0.16);
}
.invite-card.hidden {
    animation: inviteExit 0.35s ease forwards;
    pointer-events: none;
}

@keyframes inviteEntrance {
    from { opacity: 0; transform: translateY(32px) scale(0.88); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes inviteExit {
    from { opacity: 1; transform: translateY(0) scale(1); }
    to   { opacity: 0; transform: translateY(20px) scale(0.9); }
}

/* 装饰光斑 */
.invite-orb {
    position: absolute;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.12) 0%, transparent 70%);
    top: -40px;
    right: -40px;
    pointer-events: none;
    animation: orbPulse 4s ease-in-out infinite alternate;
}
@keyframes orbPulse {
    from { transform: scale(1); opacity: 0.8; }
    to   { transform: scale(1.15); opacity: 1; }
}

/* 关闭按钮 */
.invite-close {
    position: absolute;
    top: 9px;
    right: 10px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.14);
    color: rgba(255,255,255,0.7);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background 0.2s, color 0.2s;
    z-index: 2;
}
.invite-close:hover {
    background: rgba(255,255,255,0.26);
    color: #fff;
}

/* 钢笔图标 */
.invite-icon-wrap {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}
.invite-pen {
    width: 22px;
    height: 22px;
    stroke: #fff;
    animation: penWiggle 3.5s ease-in-out infinite;
}
@keyframes penWiggle {
    0%, 100% { transform: rotate(0deg); }
    20%       { transform: rotate(-6deg) translateY(-1px); }
    40%       { transform: rotate(5deg); }
    60%       { transform: rotate(-3deg); }
}

/* 文字内容 */
.invite-body {
    position: relative;
    z-index: 1;
    margin-bottom: 14px;
}
.invite-main {
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.45;
    margin: 0 0 6px;
    letter-spacing: 0.2px;
}
.invite-main em {
    font-style: normal;
    background: linear-gradient(90deg, #ffd54f, #ffb300);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.invite-sub {
    font-size: 0.76rem;
    color: rgba(255,255,255,0.62);
    line-height: 1.6;
    margin: 0;
}

/* CTA 按钮 */
.invite-cta {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 18px;
    border-radius: 100px;
    border: 1.5px solid rgba(255,255,255,0.55);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.3px;
    transition: background 0.2s, border-color 0.2s, transform 0.15s;
    background: rgba(255,255,255,0.1);
}
.invite-cta:hover {
    background: rgba(255,255,255,0.22);
    border-color: rgba(255,255,255,0.85);
    transform: scale(1.04);
    color: #fff;
    text-decoration: none;
}
.invite-cta svg {
    transition: transform 0.2s;
}
.invite-cta:hover svg {
    transform: translateX(2px);
}

/* ============================================================
   响应式 — 移动端邀请卡折叠为紧凑横条
   ============================================================ */
@media (max-width: 600px) {
    .invite-card {
        bottom: 20px;
        right: 16px;
        left: 16px;
        width: auto;
        border-radius: 16px;
        padding: 14px 16px;
        display: flex;
        align-items: center;
        gap: 12px;
    }
    .invite-orb {
        width: 90px;
        height: 90px;
        top: -30px;
        right: -20px;
    }
    .invite-icon-wrap {
        width: 36px;
        height: 36px;
        border-radius: 10px;
        flex-shrink: 0;
        margin-bottom: 0;
    }
    .invite-pen { width: 18px; height: 18px; }
    .invite-body {
        flex: 1;
        margin-bottom: 0;
    }
    .invite-main {
        font-size: 0.9rem;
        margin: 0;
    }
    .invite-main br { display: none; }
    .invite-sub { display: none; }
    .invite-cta {
        flex-shrink: 0;
        padding: 7px 14px;
        font-size: 0.78rem;
    }
    .invite-close {
        top: 6px;
        right: 8px;
    }
}

/* 平板 */
@media (max-width: 900px) {

    .home-hero {
        padding: 72px 20px 100px;
    }
    .hero-stats {
        gap: 20px;
        padding: 16px 24px;
    }
    .student-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }
}

/* 手机 */
@media (max-width: 600px) {
    .home-hero {
        padding: 56px 16px 88px;
    }
    .hero-title { font-size: 2rem; }
    .hero-subtitle { font-size: 0.95rem; }
    .hero-stats {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
        padding: 14px 20px;
    }
    .hero-stat-divider { display: none; }
    .hero-stat-num { font-size: 1.35rem; }

    .home-filter-wrap {
        margin-top: -28px;
        padding: 0 14px;
        position: sticky;
        top: 12px;
        z-index: 100;
    }
    .home-filter {
        flex-direction: column;
        gap: 12px;
        padding: 16px 18px;
        background: rgba(255, 255, 255, 0.85);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
    }
    .filter-field { min-width: 100%; }
    .filter-actions {
        width: 100%;
        padding-top: 0;
    }
    .filter-btn-search { flex: 1; justify-content: center; }

    /* 移动端瀑布流布局 (Masonry) */
    .student-grid {
        display: block;
        column-count: 2;
        column-gap: 12px;
    }
    .student-grid .stu-card {
        display: inline-flex;
        width: 100%;
        margin-bottom: 12px;
        break-inside: avoid;
        -webkit-column-break-inside: avoid;
        page-break-inside: avoid;
        border-radius: 14px;
    }
    .stu-card-photo { height: auto; }
    .stu-card-photo img { height: auto; max-height: 280px; }
    .stu-card-body { padding: 10px 12px 12px; gap: 6px; }
    .stu-card-name { font-size: 0.95rem; }
    .stu-card-highschool { font-size: 0.72rem; }
    .stu-card-school-badge { padding: 20px 10px 8px; font-size: 0.75rem; }
    .stu-card-message {
        font-size: 0.78rem;
        -webkit-line-clamp: 3;
        padding-left: 6px;
        border-left-width: 2px;
    }
    .score-pill { padding: 3px 8px; font-size: 0.75rem; }
    .stu-card-footer { padding-top: 8px; }
    .stu-card-date { font-size: 0.7rem; }
    .stu-card-cta { font-size: 0.75rem; }
    .stu-card-cta svg { width: 12px; height: 12px; }

    .home-main { padding-top: 36px; }
}

/* 大屏 */
@media (min-width: 1200px) {
    .student-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* 通用动画（供 home.css 内部使用） */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* 返回顶部按钮 */
.btn-back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    color: #1d4ed8;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.btn-back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    background: #fff;
}
@media (max-width: 600px) {
    .btn-back-to-top {
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
    }
}

/* ====== 自定义下拉选择框 (Autocomplete) ====== */
.autocomplete-wrapper {
    position: relative;
    width: 100%;
}
.autocomplete-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    z-index: 1000;
    max-height: 240px;
    overflow-y: auto;
    margin-top: 6px;
    padding: 8px 0;
    display: none;
    list-style: none;
}
.autocomplete-list.active {
    display: block;
    animation: fadeInUp 0.2s ease;
}
.autocomplete-item {
    padding: 12px 18px;
    font-size: 0.95rem;
    color: #334155;
    cursor: pointer;
    transition: background 0.1s;
}
.autocomplete-item:hover, .autocomplete-item.focused {
    background: #eff6ff;
    color: #1d4ed8;
    font-weight: 500;
}
.autocomplete-hint {
    padding: 10px 18px;
    font-size: 0.85rem;
    color: #64748b;
    background: #f8fafc;
    border-top: 1px solid #f1f5f9;
    text-align: center;
    pointer-events: none;
}
