/* ============================================================
   影视官网前台 H5 —— 通用样式 home.css
   ------------------------------------------------------------
   说明：移动端优先的高端深色主题，居中限宽以适配桌面预览。
   ============================================================ */

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

:root {
    --bg: #0b1120;            /* 页面背景 */
    --card: #151d2e;          /* 卡片背景 */
    --text: #e8edf5;          /* 主文字 */
    --dim: #8b98ad;           /* 次要文字 */
    --primary: #38bdf8;       /* 主色 */
    --primary2: #6366f1;      /* 辅助色 */
    --gold: #fbbf24;          /* 价格金色 */
    --border: rgba(148,163,184,.12);
}

body {
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
    background: #05070d; color: var(--text); font-size: 14px; line-height: 1.6;
}
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

/* 应用容器：限宽居中，模拟手机 */
.h5-app {
    max-width: 480px; margin: 0 auto; min-height: 100vh; position: relative;
    background: var(--bg); padding-bottom: 66px; overflow-x: hidden;
}

/* 顶部标题栏 */
.h5-header {
    position: sticky; top: 0; z-index: 30; height: 52px;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, rgba(56,189,248,.9), rgba(99,102,241,.9));
    color: #fff; font-weight: 700; font-size: 17px; letter-spacing: .5px;
    box-shadow: 0 4px 20px rgba(56,189,248,.25);
}

/* 主体 */
.h5-body { padding: 14px; }

/* 底部导航 */
.h5-tabbar {
    position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
    width: 100%; max-width: 480px; height: 60px; z-index: 40;
    display: flex; background: rgba(21,29,46,.96); backdrop-filter: blur(10px);
    border-top: 1px solid var(--border);
}
.tab-item {
    flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 3px; color: var(--dim); font-size: 11px; transition: color .18s;
}
.tab-item.active { color: var(--primary); }
.tab-ico { font-size: 20px; }

/* 轮播海报 */
.banner {
    height: 170px; border-radius: 16px; overflow: hidden; margin-bottom: 16px;
    background: linear-gradient(135deg, var(--primary2), var(--primary));
    display: flex; align-items: center; justify-content: center; color: #fff; font-size: 20px; font-weight: 700;
    box-shadow: 0 12px 30px rgba(99,102,241,.3);
}
.banner img { width: 100%; height: 100%; object-fit: cover; }

/* 公告 */
.notice {
    display: flex; align-items: center; gap: 8px; background: var(--card);
    border-radius: 12px; padding: 10px 14px; margin-bottom: 16px; font-size: 13px; color: var(--gold);
    border: 1px solid var(--border);
}

/* 金刚区导航 */
.nav-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 18px; }
.nav-cell {
    background: var(--card); border: 1px solid var(--border); border-radius: 14px;
    padding: 14px 0; text-align: center; transition: transform .15s;
}
.nav-cell:active { transform: scale(.95); }
.nav-cell .ico { font-size: 24px; }
.nav-cell .name { font-size: 12px; color: var(--dim); margin-top: 6px; }

/* 区块标题 */
.section-title {
    display: flex; align-items: center; justify-content: space-between; margin: 20px 0 12px;
}
.section-title h3 { font-size: 16px; font-weight: 700; }
.section-title .more { font-size: 12px; color: var(--dim); }

/* 视频/内容横向滑动 */
.hscroll { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 6px; }
.hscroll::-webkit-scrollbar { display: none; }
.v-card { flex: 0 0 150px; }
.v-card .cover {
    height: 90px; border-radius: 12px; background: #1e293b; overflow: hidden; position: relative;
}
.v-card .cover img { width: 100%; height: 100%; object-fit: cover; }
.v-card .vip { position: absolute; top: 6px; left: 6px; background: var(--gold); color: #000; font-size: 10px; padding: 2px 7px; border-radius: 8px; font-weight: 700; }
.v-card .t { font-size: 13px; margin-top: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v-card .meta { font-size: 11px; color: var(--dim); margin-top: 3px; }

/* 演员头像滑动 */
.actor-card { flex: 0 0 78px; text-align: center; }
.actor-card .avatar {
    width: 66px; height: 66px; border-radius: 50%; margin: 0 auto; overflow: hidden;
    background: linear-gradient(135deg, var(--primary), var(--primary2));
    display: flex; align-items: center; justify-content: center; color: #fff; font-size: 24px; font-weight: 700;
}
.actor-card .avatar img { width: 100%; height: 100%; object-fit: cover; }
.actor-card .name { font-size: 12px; margin-top: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 通用列表网格 */
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.card {
    background: var(--card); border: 1px solid var(--border); border-radius: 14px; overflow: hidden;
    transition: transform .15s;
}
.card:active { transform: scale(.98); }
.card .cover { height: 130px; background: #1e293b; overflow: hidden; }
.card .cover img { width: 100%; height: 100%; object-fit: cover; }
.card .info { padding: 10px 12px; }
.card .name { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .sub { font-size: 11px; color: var(--dim); margin-top: 4px; }
.card .price { color: var(--gold); font-weight: 700; margin-top: 6px; }
.card .price small { color: var(--dim); text-decoration: line-through; font-weight: 400; margin-left: 6px; }

/* 详情页 */
.detail-cover { height: 220px; border-radius: 16px; overflow: hidden; background: #1e293b; margin-bottom: 16px; }
.detail-cover img { width: 100%; height: 100%; object-fit: cover; }
.detail-title { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.detail-meta { color: var(--dim); font-size: 13px; margin-bottom: 16px; display: flex; gap: 14px; flex-wrap: wrap; }
.detail-price { color: var(--gold); font-size: 24px; font-weight: 700; margin-bottom: 16px; }
.detail-section { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 16px; margin-bottom: 16px; }
.detail-section h4 { font-size: 14px; margin-bottom: 10px; color: var(--primary); }
.detail-section p { color: var(--dim); font-size: 13px; line-height: 1.8; }

/* 标签 */
.chip { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 11px; background: rgba(56,189,248,.12); color: var(--primary); margin: 0 6px 6px 0; }

/* 按钮 */
.btn {
    display: block; width: 100%; text-align: center; padding: 14px; border: none; cursor: pointer;
    border-radius: 12px; font-size: 15px; font-weight: 700; color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--primary2));
}
.btn:active { opacity: .85; }
.btn-line { background: transparent; border: 1px solid var(--border); color: var(--text); }

/* 底部固定操作栏 */
.action-bar {
    position: fixed; bottom: 60px; left: 50%; transform: translateX(-50%);
    width: 100%; max-width: 480px; padding: 12px 14px; background: rgba(21,29,46,.98);
    border-top: 1px solid var(--border); display: flex; gap: 12px; z-index: 35; align-items: center;
}

/* 表单 */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; color: var(--dim); margin-bottom: 8px; }
.field input, .field select {
    width: 100%; padding: 13px 14px; border-radius: 12px; background: var(--card);
    border: 1px solid var(--border); color: var(--text); font-size: 15px;
}
.field input:focus { outline: none; border-color: var(--primary); }
.code-row { display: flex; gap: 10px; }
.code-row input { flex: 1; }
.code-row button {
    white-space: nowrap; padding: 0 16px; border-radius: 12px; border: 1px solid var(--primary);
    background: transparent; color: var(--primary); font-size: 13px; cursor: pointer;
}

/* 会员中心 */
.member-head {
    background: linear-gradient(135deg, var(--primary2), var(--primary));
    border-radius: 18px; padding: 22px; display: flex; align-items: center; gap: 14px; margin-bottom: 16px;
}
.member-head .avatar {
    width: 60px; height: 60px; border-radius: 50%; background: rgba(255,255,255,.2);
    display: flex; align-items: center; justify-content: center; font-size: 28px; overflow: hidden;
}
.member-head .avatar img { width: 100%; height: 100%; object-fit: cover; }
.member-head .name { font-size: 18px; font-weight: 700; color: #fff; }
.member-head .lv { font-size: 12px; color: rgba(255,255,255,.85); margin-top: 4px; }
.asset-row { display: flex; background: var(--card); border: 1px solid var(--border); border-radius: 14px; margin-bottom: 16px; }
.asset-cell { flex: 1; text-align: center; padding: 16px 0; }
.asset-cell .num { font-size: 18px; font-weight: 700; color: var(--gold); }
.asset-cell .lb { font-size: 12px; color: var(--dim); margin-top: 4px; }
.menu-list { background: var(--card); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.menu-row { display: flex; align-items: center; justify-content: space-between; padding: 15px 16px; border-bottom: 1px solid var(--border); font-size: 14px; }
.menu-row:last-child { border-bottom: none; }
.menu-row .arrow { color: var(--dim); }

/* 订单 */
.order-card { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 14px; margin-bottom: 12px; }
.order-card .top { display: flex; justify-content: space-between; font-size: 12px; color: var(--dim); margin-bottom: 10px; }
.order-card .goods { font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.order-card .bottom { display: flex; justify-content: space-between; align-items: center; }
.status-tag { font-size: 11px; padding: 3px 9px; border-radius: 8px; }
.st-0 { background: rgba(251,191,36,.15); color: var(--gold); }
.st-1 { background: rgba(56,189,248,.15); color: var(--primary); }
.st-3 { background: rgba(52,211,153,.15); color: #34d399; }

/* 空状态 */
.empty { text-align: center; color: var(--dim); padding: 60px 0; }
.empty .ico { font-size: 48px; margin-bottom: 12px; }

/* 提示 */
.tip-box { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 14px; font-size: 13px; color: var(--dim); margin-bottom: 14px; }
.pay-methods { display: flex; flex-direction: column; gap: 12px; margin: 16px 0; }
.pay-method {
    display: flex; align-items: center; gap: 12px; padding: 15px; border-radius: 12px;
    background: var(--card); border: 2px solid var(--border); cursor: pointer;
}
.pay-method.active { border-color: var(--primary); }
.pay-method .ico { font-size: 24px; }
.pay-method .lb { flex: 1; font-weight: 600; }
.pay-method .radio { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--dim); }
.pay-method.active .radio { border-color: var(--primary); background: var(--primary); }

/* 手机端：切换到电脑版入口（避开底部导航） */
.h5-device-switch {
    text-align: center;
    padding: 8px 0 72px;
    font-size: 12px;
}
.h5-device-switch a {
    color: var(--dim);
    border-bottom: 1px dashed var(--dim);
}
.h5-device-switch a:hover {
    color: var(--primary);
}

/* ===== 公司首页：介绍 + 活动 ===== */
.company-hero {
    margin: -14px -14px 16px;
    padding: 36px 20px 28px;
    background: linear-gradient(135deg, rgba(56,189,248,.95), rgba(99,102,241,.95));
    color: #fff;
}
.company-hero-inner { text-align: center; }
.company-badge {
    display: inline-block; font-size: 12px; padding: 4px 12px; border-radius: 999px;
    background: rgba(255,255,255,.2); margin-bottom: 12px;
}
.company-name { font-size: 26px; font-weight: 800; letter-spacing: 1px; }
.company-slogan { margin-top: 8px; font-size: 14px; opacity: .9; }

.card-block {
    background: var(--card); border: 1px solid var(--border); border-radius: 16px;
    padding: 16px; margin-bottom: 16px;
}
.intro-text { color: var(--dim); line-height: 1.8; font-size: 14px; white-space: pre-wrap; }
.company-meta { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; color: var(--text); font-size: 13px; }

.home-quick { margin-bottom: 8px; }

.activity-list { display: flex; flex-direction: column; gap: 12px; }
.activity-card {
    display: flex; gap: 12px; background: var(--card); border: 1px solid var(--border);
    border-radius: 14px; overflow: hidden; padding: 10px;
}
.activity-cover { width: 110px; height: 82px; flex-shrink: 0; border-radius: 10px; overflow: hidden; background: #1e293b; }
.activity-cover img { width: 100%; height: 100%; object-fit: cover; }
.cover-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--dim); font-size: 13px; }
.activity-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.activity-title { font-weight: 700; font-size: 15px; margin-bottom: 4px; }
.activity-summary { color: var(--dim); font-size: 12px; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.activity-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; font-size: 12px; color: var(--dim); }
.signup-tag { color: var(--primary); background: rgba(56,189,248,.12); padding: 2px 8px; border-radius: 999px; }

.detail-cover { margin: -14px -14px 14px; height: 200px; overflow: hidden; }
.detail-cover img { width: 100%; height: 100%; object-fit: cover; }
.detail-title { font-size: 20px; font-weight: 800; margin-bottom: 12px; }
.detail-meta { display: flex; flex-direction: column; gap: 8px; color: var(--dim); font-size: 13px; margin-bottom: 12px; }
.detail-summary { color: var(--gold); margin-bottom: 12px; }
.detail-content { line-height: 1.8; color: var(--text); font-size: 14px; }
.signup-form .form-item { margin-bottom: 12px; }
.signup-form label { display: block; margin-bottom: 6px; color: var(--dim); font-size: 13px; }
.signup-form input {
    width: 100%; height: 44px; border-radius: 10px; border: 1px solid var(--border);
    background: #0f172a; color: var(--text); padding: 0 12px; font-size: 14px;
}
.btn-block { display: block; width: 100%; text-align: center; padding: 12px; border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--primary2)); color: #fff; font-weight: 700; border: none; cursor: pointer; }
.btn-ghost.btn-block { background: transparent; border: 1px solid var(--border); color: var(--dim); }

/* 5 项底部导航字号略缩 */
.h5-tabbar .tab-item span:last-child { font-size: 10px; }
