/* 全局重置 */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
    font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
    background: #f4f7fb;
    color: #333;
    font-size: 14px;
    line-height: 1.5;
}
a { color: #409eff; text-decoration: none; }
a:hover { color: #66b1ff; }
button { font-family: inherit; cursor: pointer; border: none; outline: none; }
input { font-family: inherit; outline: none; }

/* 登录/注册公共容器 - 左右分屏大气版 */
.dl-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #4c1d95 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    position: relative;
    overflow: hidden;
}
.dl-page::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99,102,241,0.28) 0%, rgba(99,102,241,0) 70%);
    top: -200px;
    left: -150px;
    pointer-events: none;
}
.dl-page::after {
    content: '';
    position: absolute;
    width: 700px;
    height: 700px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(236,72,153,0.22) 0%, rgba(236,72,153,0) 70%);
    bottom: -250px;
    right: -200px;
    pointer-events: none;
}

.dl-wrap {
    position: relative;
    z-index: 1;
    width: 960px;
    max-width: 100%;
    display: flex;
    background: #ffffff;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.35);
    border-radius: 10px;
    overflow: hidden;
    min-height: 560px;
}

/* 左侧品牌介绍 */
.dl-hero {
    flex: 1;
    background: linear-gradient(160deg, #1e3a8a 0%, #4338ca 55%, #7e22ce 100%);
    color: #ffffff;
    padding: 50px 44px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}
.dl-hero::before {
    content: '';
    position: absolute;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    top: -100px;
    right: -80px;
}
.dl-hero::after {
    content: '';
    position: absolute;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    bottom: -60px;
    left: -40px;
}
.dl-hero-top { position: relative; z-index: 2; }
.dl-hero-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: bold;
    letter-spacing: 1px;
    margin-bottom: 40px;
}
.dl-hero-logo i {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255,255,255,0.18);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}
.dl-hero-h1 {
    font-size: 30px;
    font-weight: bold;
    line-height: 1.4;
    margin-bottom: 14px;
}
.dl-hero-desc {
    font-size: 14px;
    color: rgba(255,255,255,0.78);
    line-height: 1.8;
    margin-bottom: 32px;
    max-width: 340px;
}
.dl-hero-list {
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
    z-index: 2;
}
.dl-hero-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: rgba(255,255,255,0.9);
    padding: 8px 0;
}
.dl-hero-list li i {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    flex-shrink: 0;
}
.dl-hero-foot {
    position: relative;
    z-index: 2;
    font-size: 12px;
    color: rgba(255,255,255,0.55);
    letter-spacing: 1px;
}

/* 右侧表单卡片 */
.dl-box {
    width: 440px;
    background: #ffffff;
    padding: 56px 48px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.dl-title {
    font-size: 26px;
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 6px;
    letter-spacing: 1px;
}

.dl-sub {
    font-size: 13px;
    color: #9ca3af;
    margin-bottom: 32px;
}

@media (max-width: 860px) {
    .dl-wrap { flex-direction: column; width: 440px; min-height: 0; }
    .dl-hero { padding: 30px 28px; }
    .dl-hero-logo { margin-bottom: 18px; }
    .dl-hero-h1 { font-size: 22px; margin-bottom: 8px; }
    .dl-hero-desc { margin-bottom: 16px; }
    .dl-hero-list { display: none; }
    .dl-hero-foot { display: none; }
    .dl-box { width: 100%; padding: 36px 28px; }
}

.dl-form-item { margin-bottom: 18px; }

.dl-label {
    display: block;
    font-size: 13px;
    color: #374151;
    margin-bottom: 8px;
}
.dl-label .star { color: #f56c6c; margin-right: 4px; }

.dl-input-wrap {
    position: relative;
    border-bottom: 1px solid #dcdfe6;
}
.dl-input-wrap:hover { border-bottom-color: #409eff; }

.dl-input {
    width: 100%;
    height: 38px;
    border: none;
    background: transparent;
    font-size: 14px;
    color: #303133;
    padding: 0 4px;
}
.dl-input::placeholder { color: #c0c4cc; }

.dl-toggle {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    color: #409eff;
    font-size: 13px;
    background: transparent;
    padding: 4px 6px;
}

.dl-check-row {
    display: flex;
    align-items: center;
    margin: 8px 0 22px 0;
    font-size: 13px;
    color: #606266;
}
.dl-check-row input { margin-right: 6px; }

.dl-btn {
    width: 100%;
    height: 42px;
    background: #409eff;
    color: #ffffff;
    font-size: 15px;
    border: none;
    letter-spacing: 2px;
}
.dl-btn:hover { background: #66b1ff; }
.dl-btn:disabled { background: #a0cfff; cursor: not-allowed; }

.dl-foot {
    text-align: center;
    margin-top: 18px;
    font-size: 13px;
    color: #606266;
}

.dl-tip {
    min-height: 20px;
    font-size: 13px;
    color: #f56c6c;
    margin-top: 8px;
}
.dl-tip.ok { color: #67c23a; }

/* 首页布局 */
.sy-layout {
    display: flex;
    min-height: 100vh;
}

.sy-aside {
    width: 210px;
    background: #1f2937;
    color: #cbd5e1;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 100;
}

.sy-logo {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    border-bottom: 1px solid #111827;
    color: #ffffff;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
}
.sy-logo .logo-icon {
    width: 28px;
    height: 28px;
    background: #409eff;
    color: #ffffff;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
}

.sy-menu { flex: 1; padding: 12px 0; }
.sy-menu-item {
    display: flex;
    align-items: center;
    height: 44px;
    padding: 0 24px;
    color: #cbd5e1;
    font-size: 14px;
    cursor: pointer;
    border-left: 3px solid transparent;
}
.sy-menu-item i { width: 18px; margin-right: 12px; text-align: center; }
.sy-menu-item:hover { background: #111827; color: #ffffff; }
.sy-menu-item.on {
    background: #111827;
    color: #ffffff;
    border-left-color: #409eff;
}

.sy-kf-btn {
    position: fixed;
    left: 24px;
    bottom: 16px;
    color: #cbd5e1;
    font-size: 13px;
    display: flex;
    align-items: center;
}
.sy-kf-btn i { margin-right: 6px; }

.sy-main { flex: 1; display: flex; flex-direction: column; min-width: 0; margin-left: 210px; }

.sy-head {
    height: 60px;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    padding: 0 24px;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 50;
}
.sy-head-left { display: flex; align-items: center; }
.sy-head-left .back {
    color: #606266;
    font-size: 16px;
    margin-right: 16px;
    cursor: pointer;
}
.sy-head-title { font-size: 15px; color: #303133; }

.sy-head-right { display: flex; align-items: center; gap: 18px; }
.sy-head-right .tool-btn {
    color: #606266;
    font-size: 16px;
    background: transparent;
    padding: 4px 8px;
}
.sy-head-user {
    display: flex;
    align-items: center;
    padding-left: 16px;
    border-left: 1px solid #e5e7eb;
}
.sy-head-user .tx {
    width: 32px;
    height: 32px;
    background: #409eff;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    font-size: 14px;
}
.sy-head-user .info { display: flex; flex-direction: column; font-size: 12px; }
.sy-head-user .info .name { color: #303133; font-weight: bold; }
.sy-head-user .info .role { color: #909399; }
.sy-head-user .drop { margin-left: 8px; color: #909399; cursor: pointer; }

.sy-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

/* 首页顶部三栏：公告 + 广告1 + 广告2 */
.sy-top-3col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 16px;
}
.sy-top-3col .col-gg {
    background: #fdf6ec;
    border: 1px solid #faecd8;
    padding: 12px 14px;
    color: #b88230;
    font-size: 13px;
    line-height: 1.9;
    max-height: 220px;
    overflow-y: auto;
    white-space: pre-line;
}
.sy-top-3col .col-gg-title {
    font-size: 14px;
    font-weight: bold;
    color: #b9731b;
    margin-bottom: 6px;
    padding-bottom: 6px;
    border-bottom: 1px solid #faecd8;
}
.sy-top-3col .col-gg-title i { margin-right: 6px; }
.sy-top-3col .col-ad {
    background: #f4f7fb;
    border: 1px solid #e5e7eb;
    min-height: 150px;
    max-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-decoration: none;
}
.sy-top-3col .col-ad img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.sy-top-3col .col-ad.empty {
    color: #c0c4cc;
    font-size: 14px;
}
@media (max-width: 900px) {
    .sy-top-3col { grid-template-columns: 1fr; }
    .sy-top-3col .col-ad { min-height: 120px; }
}

/* 公告条 */
.sy-gg {
    background: #fdf6ec;
    border: 1px solid #faecd8;
    padding: 16px 20px;
    color: #b88230;
    font-size: 13px;
    line-height: 2;
    margin-bottom: 20px;
    white-space: pre-line;
}

/* 横幅区域 */
.sy-banner {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    padding: 20px;
    margin-bottom: 20px;
    text-align: center;
}
.sy-banner-inner {
    height: 160px;
    background: #f4f7fb;
    border: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #909399;
    font-size: 16px;
    flex-direction: column;
}
.sy-banner-inner i { font-size: 36px; color: #409eff; margin-bottom: 10px; }

/* 首页三个快捷入口：在线选号 / 进行中 / 已完结 */
.sy-entry-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 20px;
}
.sy-entry-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 120px;
    background: #fff;
    border: 1px solid #e5e7eb;
    text-decoration: none;
    color: #606266;
    font-size: 15px;
}
.sy-entry-btn i { font-size: 32px; margin-bottom: 8px; }
.sy-entry-btn .t { font-size: 15px; }
.sy-entry-btn .num {
    display: inline-block;
    min-width: 22px;
    height: 22px;
    line-height: 22px;
    padding: 0 6px;
    background: #f56c6c;
    color: #fff;
    font-size: 12px;
    margin-left: 6px;
    border-radius: 11px;
    text-align: center;
}
.sy-entry-btn.e1 i { color: #409eff; }
.sy-entry-btn.e2 i { color: #e6a23c; }
.sy-entry-btn.e3 i { color: #67c23a; }
.sy-entry-btn.e2 .num { background: #e6a23c; }
.sy-entry-btn.e3 .num { background: #67c23a; }
.sy-entry-btn:hover { background: #f5f7fa; }
@media (max-width: 800px) {
    .sy-entry-3 { grid-template-columns: 1fr; }
    .sy-entry-btn { height: 90px; }
}

/* 卡片统计区 */
.sy-stats {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}
.sy-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    padding: 20px;
}
.sy-card .label {
    color: #909399;
    font-size: 13px;
    margin-bottom: 10px;
}
.sy-card .value {
    font-size: 22px;
    color: #303133;
    font-weight: bold;
}
.sy-card .action {
    margin-top: 12px;
    font-size: 13px;
    display: flex;
    gap: 14px;
}
.sy-card .action a { color: #409eff; cursor: pointer; }
.sy-card .bot-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: 12px;
}

/* 账户概览表格 */
.sy-block {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    padding: 20px;
    margin-bottom: 20px;
}
.sy-block-title {
    font-size: 15px;
    color: #303133;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #ebeef5;
}
.sy-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.sy-table td {
    padding: 12px 14px;
    border: 1px solid #ebeef5;
}
.sy-table td.th {
    background: #f5f7fa;
    color: #606266;
    width: 120px;
}

/* 底部 */
.sy-foot {
    text-align: center;
    padding: 14px;
    color: #909399;
    font-size: 12px;
    border-top: 1px solid #e5e7eb;
    background: #ffffff;
}

/* 浮动客服按钮 */
.sy-kf-fab {
    position: fixed;
    right: 24px;
    bottom: 20px;
    background: #409eff;
    color: #ffffff;
    padding: 10px 16px;
    font-size: 13px;
    display: flex;
    align-items: center;
    cursor: pointer;
}
.sy-kf-fab i { margin-right: 6px; }

/* 响应式 */
@media (max-width: 900px) {
    .sy-stats { grid-template-columns: repeat(2, 1fr); }
    .sy-aside { width: 60px; }
    .sy-main { margin-left: 60px; }
    .sy-logo span, .sy-menu-item span { display: none; }
    .sy-kf-btn span { display: none; }
}
@media (max-width: 560px) {
    .dl-box { padding: 28px 20px; }
    .sy-stats { grid-template-columns: 1fr; }
}

/* 选号需知公告 */
.xh-notice {
    background: #fff8e6;
    border: 1px solid #f0c36d;
    padding: 12px 16px;
    margin-bottom: 16px;
}
.xh-notice-title {
    font-size: 14px;
    font-weight: bold;
    color: #b9731b;
    margin-bottom: 8px;
}
.xh-notice-title i { margin-right: 6px; }
.xh-notice-body {
    font-size: 13px;
    color: #7a5316;
    line-height: 1.8;
}

/* 标签切换 */
.xh-tab-bar {
    background: #fff;
    padding: 0 16px;
    border: 1px solid #e5e7eb;
    border-bottom: none;
    display: flex;
}
.xh-tab {
    display: inline-block;
    padding: 10px 22px;
    color: #555;
    font-size: 14px;
    text-decoration: none;
    border-bottom: 2px solid transparent;
}
.xh-tab.on {
    color: #409eff;
    border-bottom-color: #409eff;
    font-weight: bold;
}
.xh-tab:hover { color: #409eff; }

/* 选号表格 */
.xh-table-wrap {
    background: #fff;
    border: 1px solid #e5e7eb;
    overflow-x: auto;
}
.xh-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.xh-table th,
.xh-table td {
    padding: 10px 8px;
    border-bottom: 1px solid #eef0f3;
    text-align: center;
    white-space: nowrap;
}
.xh-table thead th {
    background: #f4f7fb;
    color: #333;
    font-weight: bold;
}
.xh-table tbody tr:hover { background: #fafcff; }
.xh-table td.bh { color: #409eff; font-weight: bold; }
.xh-table td.jg { color: #e6a23c; font-weight: bold; }
.xh-table td.bz { color: #666; max-width: 160px; white-space: normal; }
.xh-empty { padding: 40px 0; color: #999; }

.xh-tag {
    display: inline-block;
    padding: 2px 10px;
    font-size: 12px;
    border: 1px solid;
}
.xh-tag.ok { color: #21a05a; border-color: #21a05a; background: #f0fbf5; }
.xh-tag.no { color: #a33; border-color: #d89292; background: #fdf2f2; }
.xh-tag.warn { color: #b9731b; border-color: #f0c36d; background: #fff8e6; }

.xh-op-btn {
    display: inline-block;
    padding: 4px 14px;
    background: #409eff;
    color: #fff;
    font-size: 13px;
    cursor: pointer;
    border: none;
}
.xh-op-btn:hover { background: #2e8ae6; }
.xh-op-disabled { color: #999; font-size: 13px; }

/* 订单页 */
.dd-flash {
    padding: 14px 18px;
    margin-bottom: 16px;
    border: 1px solid #e5e7eb;
    background: #f8fafc;
    font-size: 14px;
    color: #333;
}
.dd-flash.ok { border-color: #b7eb8f; background: #f6ffed; color: #389e0d; }
.dd-flash.err { border-color: #ffa39e; background: #fff1f0; color: #cf1322; }
.dd-flash .fa { margin-right: 6px; }
.dd-qhcg {
    margin-top: 10px;
    padding: 12px 14px;
    background: #fff;
    border: 1px dashed #c0c4cc;
    font-family: Consolas, "Courier New", monospace;
    font-size: 13px;
    color: #333;
    white-space: pre-wrap;
    word-break: break-all;
    line-height: 1.7;
}
.dd-flash-tip { margin-top: 8px; font-size: 13px; }

.dd-empty {
    padding: 60px 0;
    text-align: center;
    color: #999;
    background: #fff;
    border: 1px solid #e5e7eb;
    font-size: 14px;
}
.dd-empty .fa { font-size: 40px; color: #ccc; display: block; margin-bottom: 10px; }
.dd-empty p { margin: 0; }

.dd-wrap { }

.dd-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    margin-bottom: 14px;
}
.dd-card-head {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    padding: 10px 16px;
    background: #fafbfc;
    border-bottom: 1px solid #e5e7eb;
    font-size: 13px;
    color: #555;
}
.dd-card-head .dd-dh { font-weight: bold; color: #333; font-size: 14px; }
.dd-card-head .dd-bh {
    display: inline-block;
    padding: 2px 10px;
    background: #409eff;
    color: #fff;
    font-size: 12px;
}
.dd-card-head .dd-jg { color: #f5222d; font-weight: bold; }

.dd-card-body {
    padding: 14px 16px;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}
.dd-col { flex: 1 1 300px; min-width: 280px; }

.dd-row {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-size: 13px;
    color: #555;
}
.dd-row:last-child { margin-bottom: 0; }
.dd-row .k {
    width: 84px;
    color: #888;
    flex-shrink: 0;
}
.dd-row .v {
    flex: 1;
    color: #333;
    word-break: break-all;
}
.dd-row .v.mono {
    font-family: Consolas, "Courier New", monospace;
    padding: 4px 10px;
    background: #fff;
    border: 1px solid #ffe58f;
    font-size: 13px;
}

.dd-zh-box {
    padding: 12px 14px;
    background: #fffbe6;
    border: 1px solid #ffe58f;
}
.dd-zh-title {
    font-size: 13px;
    font-weight: bold;
    color: #d48806;
    margin-bottom: 10px;
}

.dd-card-foot {
    padding: 10px 16px;
    background: #fafbfc;
    border-top: 1px solid #e5e7eb;
    text-align: right;
}

/* 租用/下号 静态确认对话框 */
.zu-mask {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}
.zu-mask.show { display: flex; }
.zu-dialog {
    width: 420px;
    max-width: calc(100% - 40px);
    background: #fff;
    border: 1px solid #d9d9d9;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}
.zu-dialog-head {
    padding: 12px 18px;
    background: #409eff;
    color: #fff;
    font-size: 15px;
    font-weight: bold;
}
.zu-dialog-head .fa { margin-right: 8px; }
.zu-dialog-body {
    padding: 20px 18px;
    color: #333;
    font-size: 14px;
}
.zu-dialog-body p { margin: 0 0 10px 0; }
.zu-dialog-body p:last-child { margin-bottom: 0; }
.zu-dialog-body b { color: #f5222d; font-weight: bold; }
.zu-dialog-body .tip { color: #666; font-size: 13px; }
.zu-dialog-body .tip.small { color: #999; font-size: 12px; }
.zu-dialog-foot {
    padding: 10px 18px;
    border-top: 1px solid #eee;
    text-align: right;
    background: #fafbfc;
}
.zu-dialog-foot button {
    display: inline-block;
    padding: 6px 18px;
    font-size: 13px;
    margin-left: 10px;
    border: none;
    cursor: pointer;
}
.zu-btn-cancel {
    background: #fff;
    color: #555;
    border: 1px solid #d9d9d9 !important;
}
.zu-btn-cancel:hover { color: #409eff; border-color: #409eff !important; }
.zu-btn-ok {
    background: #409eff;
    color: #fff;
}
.zu-btn-ok:hover { background: #2e8ae6; }
.zu-btn-ok:disabled { background: #a0cfff; cursor: not-allowed; }

/* 提示弹框加宽版 + 状态色 */
.zu-dialog.zu-dialog-lg { width: 520px; }
.zu-dialog-head.ok { background: #409eff; }
.zu-dialog-head.err { background: #f56c6c; }
.zu-dialog-body .flash-msg {
    padding: 8px 12px;
    background: #ecf5ff;
    border: 1px solid #b3d8ff;
    color: #0958d9;
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 12px;
}
.zu-dialog-head.err + .zu-dialog-body .flash-msg {
    background: #fef0f0;
    border-color: #fbc4c4;
    color: #c45656;
}
.zu-dialog-body .flash-tip {
    margin-top: 10px;
    padding: 8px 10px;
    background: #fafbfc;
    border-left: 3px solid #409eff;
    font-size: 12px;
    color: #555;
}
.zu-dialog-body .flash-tip a { color: #409eff; text-decoration: underline; }

