/* 筝语课堂 · 电脑网站版
   中式配色：朱砂 #A2302B / 描金 #C8A06A / 宣纸 #FAF7F2
   与 H5 版共用同一套接口与设计语言，仅布局针对大屏重做 */
:root {
    --red: #A2302B;
    --red-d: #8a2723;
    --red-l: #c4463f;
    --gold: #C8A06A;
    --gold-l: #e0c391;
    --paper: #FAF7F2;
    --ink: #2b2b2b;
    --gray: #8a8a8a;
    --line: #ece7df;
    --w: 1200px;
}

* { box-sizing: border-box; }
html, body {
    margin: 0; padding: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Roboto, sans-serif;
    font-size: 14px; line-height: 1.7;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--red); }
img { max-width: 100%; display: block; }
ul, li { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; }
.wrap { max-width: var(--w); margin: 0 auto; padding: 0 16px; }

/* ==================== 顶部导航 ==================== */
.header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: saturate(180%) blur(8px);
    border-bottom: 1px solid var(--line);
}
.header .wrap { display: flex; align-items: center; height: 68px; gap: 28px; }
.logo { display: flex; align-items: center; gap: 10px; flex: none; }
.logo .seal {
    width: 38px; height: 38px; border-radius: 6px; color: #fff;
    background: linear-gradient(135deg, var(--red), var(--red-d));
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; font-weight: 700; letter-spacing: -1px;
    box-shadow: 0 2px 8px rgba(162, 48, 43, .3);
}
.logo .name { font-size: 19px; font-weight: 700; letter-spacing: 2px; color: var(--red-d); }
.logo .sub { font-size: 11px; color: var(--gray); letter-spacing: 1px; margin-top: -3px; }
/* 站点 LOGO 图片（替代文字印章，横版自适应高度） */
.logo .logo-img { height: 44px; width: auto; max-width: 200px; object-fit: contain; display: block; }
.logo.has-img { gap: 0; }

.nav { display: flex; gap: 26px; flex: none; }
.nav a { font-size: 15px; color: #444; padding: 4px 0; border-bottom: 2px solid transparent; }
.nav a.on, .nav a:hover { color: var(--red); border-bottom-color: var(--red); }

.search { flex: 1; max-width: 340px; position: relative; }
.search input {
    width: 100%; height: 38px; border: 1px solid var(--line); border-radius: 19px;
    padding: 0 40px 0 16px; outline: none; background: #fff; font-size: 14px;
}
.search input:focus { border-color: var(--gold); }
.search .sbtn {
    position: absolute; right: 4px; top: 4px; width: 30px; height: 30px; border: none;
    border-radius: 50%; background: var(--red); color: #fff; cursor: pointer; font-size: 14px;
}

.hd-user { margin-left: auto; display: flex; align-items: center; gap: 12px; flex: none; }
.hd-user .btn-line {
    border: 1px solid var(--red); color: var(--red); padding: 6px 16px; border-radius: 18px;
    font-size: 14px; transition: .2s;
}
.hd-user .btn-line:hover { background: var(--red); color: #fff; }
.hd-user .btn-solid { background: var(--red); color: #fff; padding: 6px 16px; border-radius: 18px; font-size: 14px; }
.hd-user .btn-solid:hover { background: var(--red-d); color: #fff; }
.avatar-sm {
    width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, var(--gold), #b98d4e);
    color: #fff; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 600;
}
.u-menu { position: relative; }
/* 悬停桥：覆盖头像与弹层之间的整个横向空档（与弹层等宽），鼠标斜向移到菜单项也不丢 hover */
.u-menu::after { content: ""; position: absolute; right: 0; top: 100%; width: 150px; height: 12px; }
.u-pop {
    display: none; position: absolute; right: 0; top: 42px; background: #fff;
    border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 8px 24px rgba(0, 0, 0, .1);
    min-width: 150px; padding: 6px 0; z-index: 110;
}
.u-menu:hover .u-pop, .u-menu.open .u-pop { display: block; }
.u-pop a { display: block; padding: 8px 16px; font-size: 14px; }
.u-pop a:hover { background: #faf6f0; }

/* ==================== Hero ==================== */
.hero {
    background: linear-gradient(120deg, #A2302B 0%, #7a2120 55%, #4d1617 100%);
    color: #fff; position: relative; overflow: hidden; padding: 66px 0 74px;
}
.hero::before {
    content: ''; position: absolute; right: 6%; top: -60px; width: 300px; height: 300px;
    border: 1px solid rgba(200, 160, 106, .3); border-radius: 50%;
}
.hero::after {
    content: ''; position: absolute; right: 16%; bottom: -110px; width: 220px; height: 220px;
    border: 1px solid rgba(200, 160, 106, .22); border-radius: 50%;
}
.hero .wrap { position: relative; z-index: 2; }
.hero .h-sub { font-size: 13px; color: var(--gold); letter-spacing: 6px; }
.hero h1 { font-size: 38px; letter-spacing: 3px; margin: 12px 0 10px; font-weight: 700; }
.hero .h-desc { font-size: 15px; opacity: .88; max-width: 560px; }
.hero-search {
    display: flex; margin-top: 26px; max-width: 520px; background: #fff;
    border-radius: 30px; padding: 5px; box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
}
.hero-search input {
    flex: 1; border: none; outline: none; padding: 0 18px; font-size: 15px; background: transparent;
}
.hero-search button {
    border: none; background: linear-gradient(135deg, var(--red), var(--red-d));
    color: #fff; padding: 0 30px; height: 42px; border-radius: 25px; font-size: 15px; cursor: pointer;
}
.hero-stats { display: flex; gap: 46px; margin-top: 34px; }
.hero-stats .n { font-size: 28px; font-weight: 700; color: var(--gold); }
.hero-stats .t { font-size: 12px; opacity: .8; }

/* ==================== 版块 ==================== */
.section { padding: 46px 0; }
.sec-head { display: flex; align-items: flex-end; margin-bottom: 24px; }
.sec-head h2 { font-size: 24px; letter-spacing: 1px; position: relative; padding-left: 14px; }
.sec-head h2::before {
    content: ''; position: absolute; left: 0; top: 6px; bottom: 6px; width: 4px;
    background: var(--red); border-radius: 2px;
}
.sec-head .more { margin-left: auto; font-size: 13px; color: var(--gray); }
.sec-head .more:hover { color: var(--red); }

/* 分类 */
.cat-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.cat-card {
    background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 20px 10px;
    text-align: center; cursor: pointer; transition: .2s;
}
.cat-card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(120, 90, 60, .1); border-color: var(--gold); }
.cat-card .ci { font-size: 26px; color: var(--red); }
.cat-card .cn { font-size: 15px; margin-top: 6px; font-weight: 600; }
.cat-card .cd { font-size: 12px; color: var(--gray); margin-top: 2px; }

/* 课程卡片 */
.course-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.course-card {
    background: #fff; border-radius: 12px; overflow: hidden; border: 1px solid var(--line);
    transition: .22s; display: flex; flex-direction: column;
}
.course-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(120, 90, 60, .14); border-color: #e3d5c0; }
.cc-cover {
    position: relative; aspect-ratio: 16 / 9; overflow: hidden;
    background: linear-gradient(135deg, #d9c3a5, #b8956a);
    display: flex; align-items: center; justify-content: center; color: #fff; text-align: center; padding: 16px;
}
.cc-cover img { width: 100%; height: 100%; object-fit: cover; }
.cc-cover .ph { font-size: 17px; font-weight: 600; letter-spacing: 1px; line-height: 1.4; }
.cc-badge {
    position: absolute; left: 10px; top: 10px; background: rgba(162, 48, 43, .92); color: #fff;
    font-size: 11px; padding: 2px 8px; border-radius: 4px;
}
.cc-body { padding: 14px 16px 16px; flex: 1; display: flex; flex-direction: column; }
.cc-title {
    font-size: 15px; font-weight: 600; line-height: 1.45; height: 43px; overflow: hidden;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.cc-intro { font-size: 12px; color: var(--gray); margin-top: 6px; height: 22px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.cc-meta { font-size: 12px; color: #aaa; margin-top: 10px; }
.cc-foot { display: flex; align-items: baseline; margin-top: 10px; }
.cc-price { color: var(--red); font-size: 20px; font-weight: 700; }
.cc-price small { font-size: 12px; font-weight: 400; }
.cc-o { font-size: 12px; color: #bbb; text-decoration: line-through; margin-left: 6px; }
.cc-sales { margin-left: auto; font-size: 12px; color: var(--gray); }
.cc-free { color: #2e9e5b; font-size: 20px; font-weight: 700; }

/* 优势区 */
.feat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feat {
    background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 26px 20px; text-align: center;
}
.feat .fi { font-size: 30px; color: var(--gold); }
.feat .ft { font-size: 16px; font-weight: 600; margin: 10px 0 4px; }
.feat .fd { font-size: 13px; color: var(--gray); }

/* ==================== 面包屑 ==================== */
.crumb { font-size: 13px; color: var(--gray); padding: 18px 0; }
.crumb a { color: var(--gray); }
.crumb a:hover { color: var(--red); }
.crumb span { margin: 0 6px; }

/* ==================== 课程列表页 ==================== */
.list-layout { display: grid; grid-template-columns: 200px 1fr; gap: 26px; align-items: start; padding-bottom: 50px; }
.side { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px; position: sticky; top: 84px; }
.side h3 { font-size: 15px; padding: 6px 10px 10px; border-bottom: 1px solid var(--line); }
.side a {
    display: block; padding: 8px 10px; border-radius: 8px; font-size: 14px; color: #555; margin-top: 2px;
}
.side a:hover { background: #faf6f0; color: var(--red); }
.side a.on { background: var(--red); color: #fff; }
.sort-bar {
    display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line);
    border-radius: 10px; padding: 10px 14px; margin-bottom: 18px;
}
.sort-bar .lbl { font-size: 13px; color: var(--gray); margin-right: 4px; }
.sort-bar a { padding: 4px 14px; border-radius: 14px; font-size: 13px; color: #666; }
.sort-bar a.on { background: var(--red); color: #fff; }
.sort-bar .cnt { margin-left: auto; font-size: 13px; color: var(--gray); }
.pager { display: flex; justify-content: center; gap: 8px; margin-top: 30px; }
.pager a, .pager span {
    min-width: 36px; height: 36px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px;
    background: #fff; display: flex; align-items: center; justify-content: center; font-size: 14px;
}
.pager a:hover { border-color: var(--red); color: var(--red); }
.pager .on { background: var(--red); color: #fff; border-color: var(--red); }

/* ==================== 课程详情页 ==================== */
.detail-layout { display: grid; grid-template-columns: 1fr 340px; gap: 26px; align-items: start; padding-bottom: 50px; }
.d-main { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.d-cover { aspect-ratio: 21 / 9; background: linear-gradient(135deg, #d9c3a5, #b8956a); display: flex; align-items: center; justify-content: center; color: #fff; }
.d-cover img { width: 100%; height: 100%; object-fit: cover; }
.d-cover .ph { font-size: 30px; font-weight: 700; letter-spacing: 2px; }
.d-body { padding: 22px 26px 30px; }
.d-title { font-size: 26px; font-weight: 700; line-height: 1.4; }
.d-sub { font-size: 13px; color: var(--gray); margin-top: 8px; }
.d-sub em { font-style: normal; color: var(--red); }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 22px 0 0; }
.tabs a { padding: 10px 20px; font-size: 15px; color: #666; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a.on { color: var(--red); border-bottom-color: var(--red); font-weight: 600; }
.tab-pane { padding: 20px 0 0; font-size: 14px; line-height: 1.9; color: #444; min-height: 160px; }
.tab-pane p { margin: 0 0 12px; }
.lesson-list { max-height: 520px; overflow-y: auto; }
.lsn {
    display: flex; align-items: center; gap: 12px; padding: 12px 4px;
    border-bottom: 1px solid #f5f2ec; font-size: 14px;
}
.lsn:last-child { border-bottom: none; }
.lsn .idx {
    width: 28px; height: 28px; flex: none; border-radius: 50%; background: #f3ede4; color: #8c7a5e;
    font-size: 12px; display: flex; align-items: center; justify-content: center;
}
.lsn .lt { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lsn .free { font-size: 11px; color: #2e9e5b; border: 1px solid #b7e3b7; border-radius: 3px; padding: 0 6px; }
.lsn .dur { font-size: 12px; color: #bbb; flex: none; }
.lsn:hover { background: #fdfaf5; }
.lsn.on { background: #fdf3ee; }
.lsn.on .idx { background: var(--red); color: #fff; }

/* 右侧购买卡 */
.buy-card {
    background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 22px;
    position: sticky; top: 84px; box-shadow: 0 4px 20px rgba(120, 90, 60, .07);
}
.buy-card .price-row { display: flex; align-items: baseline; gap: 8px; }
.buy-card .now { font-size: 34px; font-weight: 700; color: var(--red); }
.buy-card .now small { font-size: 14px; }
.buy-card .old { font-size: 14px; color: #bbb; text-decoration: line-through; }
.buy-card .tag {
    display: inline-block; background: #fdf1e8; color: var(--red); font-size: 12px;
    padding: 2px 8px; border-radius: 4px; margin-left: auto;
}
.buy-card .rows { margin: 16px 0; border-top: 1px dashed var(--line); padding-top: 14px; }
.buy-card .row { display: flex; font-size: 13px; color: #666; padding: 4px 0; }
.buy-card .row b { font-weight: 400; color: var(--ink); margin-left: auto; }
.btn-buy {
    display: block; width: 100%; height: 48px; line-height: 48px; text-align: center; border-radius: 24px;
    background: linear-gradient(135deg, var(--red), var(--red-d)); color: #fff; font-size: 17px; font-weight: 600;
    border: none; cursor: pointer; margin-top: 6px; transition: .2s;
}
.btn-buy:hover { color: #fff; box-shadow: 0 6px 18px rgba(162, 48, 43, .3); }
.btn-buy.ghost { background: #fff; color: var(--red); border: 1px solid var(--red); }
.btn-buy.ghost:hover { background: #fdf3ee; box-shadow: none; }
.buy-tip { font-size: 12px; color: var(--gray); text-align: center; margin-top: 12px; }

/* ==================== 播放页 ==================== */
.play-page { background: #14100e; min-height: 100vh; color: #eee; }
.play-page .header { background: rgba(20, 16, 14, .92); border-bottom-color: #2c2523; }
.play-page .header .name { color: #f0e2c8; }
.play-page .nav a { color: #bbb; }
.play-page .nav a:hover { color: var(--gold); }
.play-layout { display: grid; grid-template-columns: 1fr 340px; gap: 18px; padding: 18px 0 40px; }
.player-box { background: #000; border-radius: 10px; overflow: hidden; aspect-ratio: 16 / 9; position: relative; }
.player-box .prism-player { width: 100% !important; height: 100% !important; }
.play-info { padding: 16px 2px; }
.play-info h1 { font-size: 20px; font-weight: 600; }
.play-info .meta { font-size: 13px; color: #999; margin-top: 6px; }
.play-side {
    background: #1e1917; border: 1px solid #2c2523; border-radius: 10px; overflow: hidden;
    max-height: calc(100vh - 100px); display: flex; flex-direction: column;
}
.play-side .ps-head { padding: 14px 16px; border-bottom: 1px solid #2c2523; font-size: 15px; font-weight: 600; }
.play-side .ps-head span { font-size: 12px; color: #999; font-weight: 400; margin-left: 6px; }
.play-side .ps-list { overflow-y: auto; flex: 1; }
.play-side .ps-list::-webkit-scrollbar { width: 6px; }
.play-side .ps-list::-webkit-scrollbar-thumb { background: #3a3230; border-radius: 3px; }
.pl-item {
    display: flex; align-items: center; gap: 10px; padding: 12px 16px; font-size: 13px;
    border-bottom: 1px solid #251f1d; cursor: pointer; color: #bbb;
}
.pl-item:hover { background: #251f1d; color: #eee; }
.pl-item.on { background: #2e201c; color: var(--gold); }
.pl-item .idx { width: 22px; height: 22px; flex: none; border-radius: 50%; background: #302826; color: #999; font-size: 11px; display: flex; align-items: center; justify-content: center; }
.pl-item.on .idx { background: var(--red); color: #fff; }
.pl-item .t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-item .d { font-size: 11px; color: #777; }
.pl-item .free { font-size: 11px; color: var(--gold); border: 1px solid #554; border-radius: 3px; padding: 0 5px; }

/* ==================== 收银台 ==================== */
.pay-page { background: #f2efe9; min-height: 100vh; padding: 40px 0; }
.pay-card { max-width: 940px; margin: 0 auto; background: #fff; border-radius: 14px; box-shadow: 0 6px 30px rgba(120, 90, 60, .12); overflow: hidden; }
.pay-head { padding: 22px 30px; border-bottom: 1px solid var(--line); display: flex; align-items: center; }
.pay-head .pt { font-size: 17px; font-weight: 600; }
.pay-head .pb { margin-left: auto; font-size: 13px; color: var(--gray); }
.pay-body { display: grid; grid-template-columns: 1fr 340px; }
.pay-left { padding: 26px 30px 30px; border-right: 1px solid var(--line); }
.pay-ways { display: flex; gap: 14px; margin-bottom: 22px; }
.pay-way {
    flex: 1; border: 1px solid var(--line); border-radius: 10px; padding: 14px; cursor: pointer;
    display: flex; align-items: center; gap: 10px; transition: .18s; background: #fff;
}
.pay-way:hover { border-color: #d9cdb8; }
.pay-way.on { border-color: var(--red); background: #fdf6f2; box-shadow: 0 0 0 2px rgba(162, 48, 43, .08); }
.pay-way .ico { width: 34px; height: 34px; flex: none; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 17px; font-weight: 700; }
.pay-way .ico.wx { background: #07c160; }
.pay-way .ico.ali { background: #1677ff; }
.pay-way .nm { font-size: 15px; font-weight: 600; }
.pay-way .ds { font-size: 12px; color: var(--gray); }
.qr-area { text-align: center; padding: 10px 0 4px; }
.qr-box {
    width: 220px; height: 220px; margin: 0 auto; border: 1px solid var(--line); border-radius: 10px;
    padding: 10px; background: #fff; display: flex; align-items: center; justify-content: center;
}
.qr-box svg { width: 100%; height: 100%; }
.qr-box canvas { width: 100%; height: 100%; }
.qr-tip { font-size: 13px; color: var(--gray); margin-top: 14px; }
.qr-tip b { color: var(--red); }
.qr-mask {
    position: absolute; inset: 0; background: rgba(255, 255, 255, .94); display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 10px; border-radius: 10px; font-size: 14px; color: #555;
}
.qr-wrap { position: relative; width: 220px; margin: 0 auto; }
.qr-wrap .qr-box { width: 220px; height: 220px; }
.pay-right { padding: 26px 30px; background: #fdfbf8; }
.pay-right .amt { font-size: 32px; font-weight: 700; color: var(--red); }
.pay-right .amt small { font-size: 15px; }
.pay-right .orow { display: flex; font-size: 13px; color: #777; padding: 7px 0; border-bottom: 1px dashed var(--line); }
.pay-right .orow b { margin-left: auto; font-weight: 400; color: #444; max-width: 60%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pay-countdown { text-align: center; font-size: 13px; color: var(--gray); margin-top: 16px; }
.pay-countdown b { color: var(--red); font-size: 16px; }
.btn-reload {
    display: block; width: 100%; margin-top: 12px; height: 40px; line-height: 38px; text-align: center;
    border: 1px solid var(--gold); color: #8a6d1f; border-radius: 20px; background: #fff; cursor: pointer; font-size: 14px;
}
.wx-guide { display: flex; align-items: center; gap: 10px; font-size: 13px; color: #666; margin-top: 14px; justify-content: center; }

/* ==================== 支付结果 ==================== */
.result-card { max-width: 560px; margin: 60px auto; background: #fff; border-radius: 14px; padding: 46px 40px; text-align: center; box-shadow: 0 6px 30px rgba(120, 90, 60, .1); }
.result-ico {
    width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 18px; display: flex;
    align-items: center; justify-content: center; font-size: 40px; color: #fff; background: #2e9e5b;
}
.result-ico.fail { background: #c33; }
.result-ico.wait { background: var(--gold); }
.result-card h2 { font-size: 22px; }
.result-card .rd { font-size: 14px; color: var(--gray); margin-top: 8px; }
.result-btns { display: flex; gap: 12px; justify-content: center; margin-top: 26px; }
.btn-red {
    display: inline-block; padding: 0 28px; height: 44px; line-height: 44px; border-radius: 22px;
    background: linear-gradient(135deg, var(--red), var(--red-d)); color: #fff; font-size: 15px;
}
.btn-red:hover { color: #fff; }
.btn-plain {
    display: inline-block; padding: 0 28px; height: 44px; line-height: 42px; border-radius: 22px;
    border: 1px solid var(--line); color: #666; font-size: 15px; background: #fff;
}

/* ==================== 登录 ==================== */
.login-page { background: linear-gradient(135deg, #f6f1e8, #efe6d8); min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 40px 16px; }
.login-box { width: 900px; max-width: 100%; background: #fff; border-radius: 14px; box-shadow: 0 12px 40px rgba(120, 90, 60, .16); display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; }
.login-left { background: linear-gradient(140deg, var(--red), #5c1b1c); color: #fff; padding: 46px 40px; position: relative; overflow: hidden; }
.login-left::after { content: ''; position: absolute; right: -60px; bottom: -60px; width: 200px; height: 200px; border: 1px solid rgba(200, 160, 106, .3); border-radius: 50%; }
.login-left h2 { font-size: 26px; letter-spacing: 2px; }
.login-left p { font-size: 14px; opacity: .85; margin-top: 14px; line-height: 1.9; }
.login-left .qr-mobile { text-align: center; margin-top: 30px; }
.login-left .qr-mobile .q { width: 150px; height: 150px; background: #fff; border-radius: 10px; margin: 0 auto; padding: 8px; }
.login-right { padding: 46px 40px; }
.login-right h3 { font-size: 20px; margin-bottom: 6px; }
.login-right .lr-sub { font-size: 13px; color: var(--gray); margin-bottom: 24px; }
.lg-tabs { display: flex; gap: 20px; border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.lg-tabs a { padding: 8px 0; font-size: 15px; color: #888; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.lg-tabs a.on { color: var(--red); border-bottom-color: var(--red); font-weight: 600; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; color: #666; margin-bottom: 6px; }
.field input {
    width: 100%; height: 44px; border: 1px solid var(--line); border-radius: 8px;
    padding: 0 14px; font-size: 15px; outline: none; background: #fff;
}
.field input:focus { border-color: var(--gold); }
.field .code-row { display: flex; gap: 10px; }
.field .code-row input { flex: 1; }
.field .code-row button {
    flex: none; width: 110px; border: 1px solid var(--gold); background: #fff; color: #8a6d1f;
    border-radius: 8px; cursor: pointer; font-size: 13px;
}
.field .code-row button:disabled { color: #bbb; border-color: var(--line); cursor: default; }
.btn-submit {
    width: 100%; height: 46px; border: none; border-radius: 23px; background: linear-gradient(135deg, var(--red), var(--red-d));
    color: #fff; font-size: 16px; cursor: pointer; margin-top: 6px;
}
.lg-tip { font-size: 12px; color: var(--gray); text-align: center; margin-top: 16px; }

/* ==================== 个人中心 ==================== */
.mine-layout { display: grid; grid-template-columns: 200px 1fr; gap: 26px; align-items: start; padding: 26px 0 60px; }
.mine-side { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 8px; position: sticky; top: 84px; }
.mine-side .uhead { padding: 18px 14px; text-align: center; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.mine-side .uhead .av {
    width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 8px; color: #fff; font-size: 22px;
    background: linear-gradient(135deg, var(--gold), #b98d4e); display: flex; align-items: center; justify-content: center;
}
.mine-side .uhead .nm { font-size: 15px; font-weight: 600; }
.mine-side .uhead .ph { font-size: 12px; color: var(--gray); }
.mine-side a { display: block; padding: 10px 14px; border-radius: 8px; font-size: 14px; color: #555; }
.mine-side a:hover { background: #faf6f0; color: var(--red); }
.mine-side a.on { background: #fdf3ee; color: var(--red); font-weight: 600; }
.mine-main { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 22px 26px; min-height: 420px; }
.mine-main h3 { font-size: 17px; padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.myc-item { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid #f5f2ec; align-items: center; }
.myc-item:last-child { border-bottom: none; }
.myc-item .cov {
    width: 132px; height: 76px; flex: none; border-radius: 8px; overflow: hidden;
    background: linear-gradient(135deg, #d9c3a5, #b8956a); display: flex; align-items: center;
    justify-content: center; color: #fff; font-size: 13px; text-align: center; padding: 8px;
}
.myc-item .cov img { width: 100%; height: 100%; object-fit: cover; }
.myc-item .info { flex: 1; min-width: 0; }
.myc-item .tt { font-size: 15px; font-weight: 600; }
.myc-item .ss { font-size: 12px; color: var(--gray); margin-top: 4px; }
.mo-row { display: flex; align-items: center; padding: 14px 0; border-bottom: 1px solid #f5f2ec; font-size: 14px; }
.mo-row:last-child { border-bottom: none; }
.mo-row .m1 { flex: 1; min-width: 0; }
.mo-row .m1 .t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mo-row .m1 .s { font-size: 12px; color: #aaa; }
.mo-row .m2 { width: 90px; text-align: right; color: var(--red); font-weight: 600; }
.mo-row .m3 { width: 96px; text-align: right; font-size: 13px; }
.st-on { color: #2e9e5b; } .st-off { color: #c33; } .st-wait { color: var(--gold); }

/* ==================== 页脚 ==================== */
.footer { background: #2b2320; color: #bbb; padding: 44px 0 24px; margin-top: 20px; }
.footer .fgrid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; }
.footer h4 { color: #f0e2c8; font-size: 15px; margin-bottom: 12px; font-weight: 600; }
.footer .fabout { font-size: 13px; line-height: 1.9; color: #999; }
.footer a { display: block; font-size: 13px; color: #999; padding: 3px 0; }
.footer a:hover { color: var(--gold); }
.footer .fbot { border-top: 1px solid #3d342f; margin-top: 30px; padding-top: 18px; font-size: 12px; color: #777; text-align: center; }
.footer .fbot a { display: inline; padding: 0; color: #999; }
.footer .fbot a:hover { color: var(--gold); }
/* 后台填了名称但没填链接的页脚项：显示但不可点 */
.footer .flink-off { display: block; font-size: 13px; color: #7a6f68; padding: 3px 0; cursor: default; }

/* ==================== 通用 ==================== */
.empty { text-align: center; color: #bbb; padding: 70px 20px; font-size: 14px; }
.loading { text-align: center; color: #bbb; padding: 60px; font-size: 14px; }
.kc-toast {
    position: fixed; left: 50%; top: 90px; transform: translateX(-50%) translateY(-10px);
    background: rgba(0, 0, 0, .82); color: #fff; padding: 10px 22px; border-radius: 8px;
    font-size: 14px; z-index: 9999; opacity: 0; transition: .25s;
}
.kc-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.mobile-hint {
    display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 120; background: rgba(43, 35, 32, .95);
    color: #fff; padding: 10px 16px; font-size: 13px; text-align: center;
}
.mobile-hint a { color: var(--gold); text-decoration: underline; }

/* ==================== 资讯中心 ==================== */
.crumb { font-size: 13px; color: var(--gray); padding: 20px 0 0; }
.crumb a:hover { color: var(--red); }
.column-tabs { display: flex; gap: 10px; flex-wrap: wrap; padding: 18px 0 4px; }
.column-tabs a {
    padding: 7px 18px; border-radius: 20px; border: 1px solid var(--line);
    background: #fff; font-size: 14px; color: #555;
}
.column-tabs a:hover { border-color: var(--gold); color: var(--red); }
.column-tabs a.on { background: var(--red); color: #fff; border-color: var(--red); }

.news-layout { display: grid; grid-template-columns: 1fr 300px; gap: 26px; align-items: start; padding: 18px 0 60px; }
.news-main { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 6px 28px 28px; min-height: 460px; }
.news-item { display: flex; gap: 18px; padding: 20px 0; border-bottom: 1px solid #f5f2ec; }
.news-item:last-child { border-bottom: none; }
.news-item .thumb {
    width: 180px; height: 112px; flex: none; border-radius: 8px; overflow: hidden;
    background: linear-gradient(135deg, #f3eee6, #e8dfd1); display: flex; align-items: center; justify-content: center;
    color: #b9a48a; font-size: 12px;
}
.news-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-item .body { flex: 1; min-width: 0; }
.news-item .t { font-size: 17px; font-weight: 600; line-height: 1.5; }
.news-item .t:hover { color: var(--red); }
.news-item .d {
    font-size: 13px; color: var(--gray); margin-top: 8px; line-height: 1.7;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.news-item .m { font-size: 12px; color: #aaa; margin-top: 10px; display: flex; gap: 14px; }
.tag-top { background: var(--red); color: #fff; font-size: 11px; padding: 1px 7px; border-radius: 3px; margin-right: 6px; vertical-align: 2px; }

.side-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; margin-bottom: 16px; }
.side-card h4 { font-size: 15px; padding-bottom: 12px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.side-list a { display: block; font-size: 13px; color: #555; padding: 8px 0; border-bottom: 1px dashed #f2eee8; }
.side-list a:last-child { border-bottom: none; }
.side-list a:hover { color: var(--red); }
.side-list .hot-n { display: inline-block; width: 18px; height: 18px; line-height: 18px; text-align: center;
    background: #f2ece3; border-radius: 3px; font-size: 11px; color: #999; margin-right: 8px; }
.side-list .hot-n.top { background: var(--red); color: #fff; }
.side-col a { display: flex; justify-content: space-between; font-size: 13px; color: #555; padding: 7px 0; }
.side-col a span { color: #bbb; font-size: 12px; }

.pager { display: flex; gap: 8px; justify-content: center; padding: 24px 0 6px; }
.pager a, .pager span {
    min-width: 34px; height: 34px; line-height: 32px; text-align: center; padding: 0 10px;
    border: 1px solid var(--line); border-radius: 6px; background: #fff; font-size: 13px; color: #666;
}
.pager span.on { background: var(--red); color: #fff; border-color: var(--red); }
.pager span.dis { color: #ccc; }

/* ==================== 文章详情 ==================== */
.article-layout { display: grid; grid-template-columns: 1fr 300px; gap: 26px; align-items: start; padding: 18px 0 60px; }
.article-body { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 34px 40px 30px; }
.article-title { font-size: 26px; font-weight: 700; line-height: 1.45; color: #1f1f1f; }
.article-meta { font-size: 13px; color: var(--gray); border-bottom: 1px solid var(--line); padding: 14px 0; margin-bottom: 22px; }
.article-meta span { margin-right: 18px; }
.article-content { font-size: 15.5px; line-height: 2; color: #333; word-wrap: break-word; }
.article-content p { margin: 0 0 16px; }
.article-content img { border-radius: 8px; margin: 14px 0; }
.article-content h3 { font-size: 17px; margin: 22px 0 12px; }
.article-content ul { padding-left: 22px; list-style: disc; }
.article-content li { list-style: disc; }
.article-content blockquote {
    margin: 16px 0; padding: 12px 18px; background: #faf6f0;
    border-left: 3px solid var(--gold); color: #666;
}
.pn-nav { display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); margin-top: 30px; padding-top: 18px; font-size: 14px; }
.pn-nav a { color: #666; max-width: 45%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pn-nav a:hover { color: var(--red); }

/* ==================== 响应式 ==================== */
@media (max-width: 1100px) {
    .course-grid { grid-template-columns: repeat(3, 1fr); }
    .cat-grid { grid-template-columns: repeat(3, 1fr); }
    .feat-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
    .course-grid { grid-template-columns: repeat(2, 1fr); }
    .detail-layout, .play-layout, .pay-body, .list-layout, .mine-layout, .login-box { grid-template-columns: 1fr; }
    .side, .buy-card, .mine-side { position: static; }
    .pay-left { border-right: none; border-bottom: 1px solid var(--line); }
    .nav { display: none; }
    .mobile-hint { display: block; }
    .footer .fgrid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
    .course-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: 26px; }
    .cat-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- 课程分类树（折叠菜单） ---------- */
.cat-tree { padding: 6px 0; }
.cat-all {
    display: flex; align-items: center; gap: 8px;
    padding: 11px 18px; font-size: 14px; color: #555; cursor: pointer; transition: .2s;
}
.cat-all:hover { background: #faf6f0; color: var(--red); }
.cat-all.on { background: var(--red); color: #fff; }
.cat-group { border-bottom: 1px solid #f2eee8; }
.cat-group:last-child { border-bottom: none; }
.cat-children .cat-group { border-bottom: none; }
.cat-parent {
    display: flex; align-items: center; gap: 8px;
    padding: 11px 18px; font-size: 14px; color: #555; cursor: pointer; transition: .2s;
}
.cat-parent:hover { background: #faf6f0; color: var(--red); }
.cat-parent.on { background: var(--red); color: #fff; }
.cat-parent .cat-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cat-parent .cat-arrow {
    width: 0; height: 0;
    border-left: 5px solid transparent; border-right: 5px solid transparent;
    border-top: 5px solid currentColor; opacity: .7; transition: transform .2s;
}
.cat-parent.open .cat-arrow { transform: rotate(180deg); }
.cat-parent .cat-arrow-empty { width: 10px; height: 10px; }
.cat-children { display: none; }
.cat-children.open { display: block; }
