/* ==========================================================
   汇旺在线 · 界面美化层
   叠加在原有样式之后，仅做视觉增强，不改变页面结构
   ========================================================== */

/* ---------- 全局 ---------- */
body {
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    background: #f4f5f9;
    -webkit-font-smoothing: antialiased;
}

/* 滚动条美化 */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}
::-webkit-scrollbar-track {
    background: #f2f2f2;
    border-radius: 5px;
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #e53935, #b2120e);
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #ff6b5e, #d52e22);
}

/* ---------- 顶部黑色栏 ---------- */
.top-black-header {
    background: linear-gradient(90deg, #191919, #333);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}
.top-black-header #top-header {
    color: #ddd;
}
.top-black-header #top-header a {
    color: #ffd9a0;
    transition: color 0.2s ease;
}
.top-black-header #top-header a:hover {
    color: #ffb347;
}
.announcement marquee {
    color: #ffe08a;
    font-weight: 600;
}

/* ---------- 红色导航栏 ---------- */
.top-red-header {
    background: linear-gradient(180deg, #e2311f 0%, #d52e22 45%, #b2120e 100%);
    box-shadow: 0 4px 12px rgba(178, 18, 14, 0.35);
}
.top-red-header .nav-menu > li > a {
    transition: background 0.2s ease, color 0.2s ease;
}
.top-red-header .nav-menu > li:hover > a {
    background: rgba(255, 255, 255, 0.16);
}

/* 导航文字下方金色高亮（排除带下拉箭头的按钮） */
.nav-menu > li > a:not(.arrow-btn) {
    position: relative;
}
.nav-menu > li > a:not(.arrow-btn)::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 0;
    height: 3px;
    background: #ffd700;
    border-radius: 2px;
    transform: translateX(-50%);
    transition: width 0.25s ease;
}
.nav-menu > li:hover > a:not(.arrow-btn)::after {
    width: 70%;
}

/* 下拉菜单 */
.nav-menu .sub-menu {
    border-top: 3px solid #ffd700;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}
.nav-menu .sub-menu li a {
    transition: background 0.18s ease, color 0.18s ease, padding-left 0.18s ease;
}
.nav-menu .sub-menu li a:hover {
    background: #fff3ee;
    color: #d52e22 !important;
    padding-left: 22px;
}

/* 头部 logo 区 */
.top-menu-logo {
    background: #fff;
}
.top-menu-logo .my_views {
    color: #b2120e;
    font-weight: 600;
    font-size: 13px;
}

/* 首页卡片与彩球样式已由 LotteryHomeOp.css（新版布局）负责 */

/* ---------- 通用表单 / 表格 ---------- */
.h_l_form table,
.h_l_formk table {
    border-radius: 8px;
    overflow: hidden;
}
.h_l_form table thead th,
.h_l_formk table thead th {
    background: linear-gradient(180deg, #e53935, #c62828);
    color: #fff;
    font-weight: 600;
    border-right: 1px solid rgba(255, 255, 255, 0.25) !important;
    border-bottom: none !important;
}
.h_l_form table tbody tr,
.h_l_formk table tbody tr {
    transition: background 0.15s ease;
}
.h_l_form table tbody tr:hover,
.h_l_formk table tbody tr:hover {
    background: #fff7ef;
}

/* ---------- 子页面通用 ---------- */
.page-title {
    border-left: 4px solid #d52e22;
    padding-left: 10px;
    color: #b2120e;
    font-weight: 700;
    font-size: 16px;
    line-height: 22px;
    margin: 12px 0 8px;
}

.lottery-selector select {
    border: 1px solid #d6d6d6;
    border-radius: 6px;
    padding: 5px 10px;
    font-size: 14px;
    color: #333;
    background: #fff;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.lottery-selector select:focus {
    border-color: #d52e22;
    box-shadow: 0 0 0 3px rgba(213, 46, 34, 0.12);
}

.history-container,
.live-container,
.analyze-container,
.used-container {
    border-radius: 8px;
}

/* ---------- 页脚 ---------- */
.allright {
    border-radius: 8px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.04);
}
.allright .tips .red_f {
    color: #d52e22;
    font-weight: 700;
}

/* ---------- 弹窗 ---------- */
.modal {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.35);
}
.modal .modal-header {
    background: linear-gradient(180deg, #e2311f, #b2120e);
}
.modal .modal-header .tabs a {
    color: #fff !important;
}
.modal .modal-header .tabs .active {
    background: rgba(255, 255, 255, 0.18);
    border-radius: 6px 6px 0 0;
}

/* ---------- 按钮 ---------- */
.btn,
.btn-red {
    border-radius: 6px;
    transition: all 0.2s ease;
}
.btn:hover,
.btn-red:hover {
    filter: brightness(1.08);
    box-shadow: 0 6px 16px rgba(213, 46, 34, 0.3);
    transform: translateY(-1px);
}

/* ---------- 返回顶部 ---------- */
.wk_gotop {
    border-radius: 50% 50% 0 0;
    box-shadow: 0 4px 12px rgba(178, 18, 14, 0.35);
}
