@charset "utf-8";
/*!
 * hillabc PC 前台视觉增强层 v1.0
 * ---------------------------------------------------------------
 * 定位：叠加在原有各页面 css（home.css / teachers.css ...）之后，
 *      只做「现代感」增强，不改动任何布局结构，避免老页面错位。
 * 内容：
 *   1. 统一字体栈与排版基线（原为 2015 年前后的默认字体）
 *   2. 品牌色令牌（与原 css 中已替换的色值保持一致）
 *   3. 按钮圆角 / 阴影 / 动效
 *   4. 顶部导航：白底毛玻璃 + 滚动浮起
 *   5. 卡片、图片、输入框的圆角与描边
 * ---------------------------------------------------------------
 */

:root {
    /* 与后台 HillBoard 同一套品牌橙（原为墨绿，已统一） */
    --brand: #FF6A00;
    --brand-600: #E85F00;
    --brand-400: #FF8A3D;
    --brand-soft: rgba(255, 106, 0, .10);
    --brand-100: #FFE4D2;
    --accent: #FF6A00;
    --accent-soft: rgba(255, 106, 0, .12);
    --ink: #1F2430;
    --ink-2: #5A6272;
    --ink-3: #9AA3AF;
    --line: #E8ECF2;
    --line-soft: #F0F3F8;
    --bg: #F5F7FA;
    --card: #FFFFFF;
    --shadow-sm: 0 2px 8px rgba(31, 36, 48, .05);
    --shadow-md: 0 8px 28px -8px rgba(31, 36, 48, .14);
    --shadow-lg: 0 24px 60px -20px rgba(31, 36, 48, .22);
    --radius: 14px;
    --radius-lg: 18px;
}

/* ------------------------------------------------ 1. 字体与基线 */
html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
        "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif !important;
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    letter-spacing: .1px;
}

/* 标题收紧字距，更像现代排版 */
h1, h2, h3, h4 {
    letter-spacing: -.2px;
}

h1 { letter-spacing: -.6px; }

/* 图片默认不拖出容器、不出现锯齿 */
img {
    max-width: 100%;
}

/* 链接过渡 */
a {
    transition: color .16s ease, opacity .16s ease;
}

/* ------------------------------------------------ 3. 按钮统一 */
/* 主按钮：实心品牌色 */
.submit,
.apply,
.btn-submit,
a.submit,
a.apply,
input.submit,
input[type="submit"].submit {
    border-radius: 10px !important;
    border: none !important;
    background: var(--brand) !important;
    color: #fff !important;
    font-weight: 600 !important;
    letter-spacing: .6px;
    box-shadow: 0 10px 22px -10px rgba(15, 110, 86, .8);
    transition: background .18s ease, transform .18s ease, box-shadow .18s ease;
}

.submit:hover,
.apply:hover,
.btn-submit:hover,
a.submit:hover,
a.apply:hover,
input.submit:hover {
    background: var(--brand-600) !important;
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 14px 26px -12px rgba(15, 110, 86, .9);
}

.submit:active,
.apply:active {
    transform: translateY(0);
}

/* 次级按钮：描边 */
.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 0 20px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    color: var(--ink);
    font-size: 14px;
}

.btn-ghost:hover {
    border-color: var(--brand);
    color: var(--brand);
}

/* ---------------------------------------- 4. 顶部导航浮起 */
.header-info-pc,
.header-info-ipad {
    background: rgba(255, 255, 255, .92) !important;
    backdrop-filter: saturate(160%) blur(10px);
    -webkit-backdrop-filter: saturate(160%) blur(10px);
    border-bottom: 1px solid var(--line);
}

/* 导航文字 hover 用品牌色 */
.header-info-pc a:hover,
.header-info-ipad a:hover {
    color: var(--brand) !important;
}

/* 语言切换器与导航对齐 */
.top-lang {
    display: inline-flex;
    align-items: center;
    height: 100%;
}

/* ------------------------------------------- 5. 卡片与容器 */
/* 常见卡片容器：给圆角与柔和阴影 */
.course-item,
.teacher-item,
.news-item,
.advantage-item,
.step-item,
.card,
.box-item {
    border-radius: var(--radius) !important;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform .2s ease, box-shadow .2s ease;
}

.course-item:hover,
.teacher-item:hover,
.news-item:hover,
.advantage-item:hover,
.card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* 圆角图片 */
.course-item img,
.teacher-item img,
.news-item img {
    border-radius: var(--radius);
}

/* 输入框统一 */
input[type="text"],
input[type="password"],
input[type="tel"],
input[type="email"],
textarea,
select {
    border-radius: 10px;
    transition: border-color .16s ease, box-shadow .16s ease;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="tel"]:focus,
input[type="email"]:focus,
textarea:focus,
select:focus {
    border-color: var(--brand) !important;
    box-shadow: 0 0 0 3px var(--brand-soft);
    outline: 0;
}

/* ------------------------------------------------ 页脚/分隔 */
.footer,
.footer-box {
    border-top: 1px solid var(--line);
    background: #FFF;
}

/* ------------------------------------------------ 滚动条 */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #D8D5CC;
    border-radius: 6px;
    border: 2px solid transparent;
    background-clip: content-box;
}

::-webkit-scrollbar-thumb:hover {
    background: #C2BFB5;
    background-clip: content-box;
}

/* 回到顶部按钮 */
.scroll-top-fixed-img,
.back {
    border-radius: 50%;
    transition: transform .2s ease, box-shadow .2s ease;
}

.scroll-top-fixed-img:hover,
.back:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* -------------------------------------------- 选中文字配色 */
::selection {
    background: var(--brand-soft);
    color: var(--brand-600);
}

/* ---------------------------------------------- RTL 兼容 */
[dir="rtl"] body,
[dir="rtl"] .header-info-pc,
[dir="rtl"] .header-info-ipad {
    text-align: right;
}

[dir="rtl"] .fl { float: right; }
[dir="rtl"] .fr { float: left; }

/* ============================================================ 6. 顶部「已登录」状态 */
/* 原来顶部只有「登录 / 免费注册」两个按钮，登录后依然是游客态。
   现在登录后换成 头像 + 昵称 + 个人中心 + 退出 一组元素。 */
.header-box .login-apply {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 90px;
    line-height: 1;
}

.header-box .login-apply .user-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 190px;
    padding: 5px 12px 5px 5px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    text-decoration: none;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.header-box .login-apply .user-chip:hover {
    border-color: var(--brand-100);
    box-shadow: var(--shadow-sm);
    text-decoration: none;
}

.header-box .login-apply .user-avatar {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    overflow: hidden;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-400), var(--brand));
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
}

.header-box .login-apply .user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.header-box .login-apply .user-name {
    overflow: hidden;
    max-width: 130px;
    color: var(--ink);
    font-size: 14px;
    line-height: 1.2;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.header-box .login-apply .user-center {
    display: inline-flex;
    align-items: center;
    height: 34px;
    padding: 0 16px;
    border-radius: 999px;
    background: var(--brand);
    color: #fff;
    font-size: 14px;
    text-decoration: none;
    transition: background .18s ease, box-shadow .18s ease;
}

.header-box .login-apply .user-center:hover {
    background: var(--brand-600);
    color: #fff;
    box-shadow: 0 6px 16px rgba(255, 106, 0, .28);
    text-decoration: none;
}

.header-box .login-apply .user-out {
    color: var(--ink-3);
    font-size: 13px;
    text-decoration: none;
    transition: color .18s ease;
}

.header-box .login-apply .user-out:hover {
    color: var(--brand-600);
    text-decoration: none;
}

/* 窄屏（iPad 头）尺寸收一点，避免撑破 */
.header-info-ipad .login-apply {
    height: auto;
    gap: 8px;
}

.header-info-ipad .login-apply .user-chip { padding: 4px 10px 4px 4px; }
.header-info-ipad .login-apply .user-avatar { width: 28px; height: 28px; font-size: 13px; }
.header-info-ipad .login-apply .user-name { max-width: 90px; font-size: 13px; }
.header-info-ipad .login-apply .user-center { height: 30px; padding: 0 12px; font-size: 13px; }

/* 1366 及以下：顶部空间紧张，去掉重复的「个人中心」按钮（头像胶囊本身就跳个人中心） */
@media screen and (max-width: 1366px) {
    .header-box .login-apply .user-center { display: none; }
    .header-box .login-apply .user-name { max-width: 100px; }
}
