/* 橘猫授权中心 v2 - 参考 authorize.czmao.cn 的深色侧栏布局 */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    background: #f5f7f9;
    color: #333;
    font: 14px/1.5 "Chinese Quote", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}
a { text-decoration: none; color: #1686ef; }
a:hover { color: #0d6fd1; }
ul, li { list-style: none; margin: 0; padding: 0; }

/* 顶栏 */
.tpl-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 50px;
    z-index: 1000;
    background: #fff;
    box-shadow: 0 1px 2px 0 rgba(0,0,0,.05);
}
.tpl-header-fluid { height: 50px; padding: 0 20px; background: #fff; }
.tpl-header-button {
    float: left;
    border: 0;
    background: #fff;
    color: #333;
    font-size: 17px;
    line-height: 50px;
    padding: 0 14px 0 0;
    cursor: pointer;
}
.tpl-header-button:hover { color: #1686ef; }
.tpl-header-icon {
    float: left;
    color: #333;
    line-height: 50px;
    padding: 0 12px;
    font-size: 15px;
}
.tpl-header-icon:hover { color: #1686ef; }
.tpl-header-navbar { float: right; height: 50px; }
.tpl-header-navbar .welcome { color: #666; margin-right: 18px; font-size: 13px; line-height: 50px; }
.tpl-header-navbar a { color: #333; font-size: 13px; line-height: 50px; }
.tpl-header-navbar a:hover { color: #1686ef; }

/* 左侧栏 */
.left-sidebar {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: 200px;
    z-index: 1100;
    transition: all .3s;
}
.left-sidebar .sidebar-nav {
    width: 200px;
    height: 100%;
    background: #304156;
    padding-top: 0;
    box-shadow: 2px 0 6px rgba(0,21,41,.35);
    overflow-y: auto;
}
.sidebar-nav-heading {
    height: 50px;
    line-height: 50px;
    padding: 0 20px;
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    background: #2b3a4d;
    white-space: nowrap;
    overflow: hidden;
}
.sidebar-nav-link a {
    display: block;
    height: 48px;
    line-height: 48px;
    padding: 0 20px;
    color: rgba(255,255,255,.72);
    font-size: 14px;
    border-left: 3px solid transparent;
    transition: .15s;
}
.sidebar-nav-link a:hover { color: #fff; background: rgba(255,255,255,.04); border-left-color: #1686ef; }
.sidebar-nav-link a.active {
    color: #fff;
    background: #1686ef;
    border-left-color: #1686ef;
}
.sidebar-nav-link-logo { width: 20px; margin-right: 10px; text-align: center; font-size: 15px; }

/* 内容区 */
.tpl-content-wrapper {
    margin-left: 200px;
    padding-top: 50px;
    min-height: 100vh;
    transition: margin-left .3s;
}
.container-fluid { padding: 20px; }

/* 折叠 */
body.sidebar-collapsed .left-sidebar { left: -200px; }
body.sidebar-collapsed .tpl-content-wrapper { margin-left: 0; }

/* 卡片 */
.widget {
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 0 40px 0 rgba(0,0,0,.06);
    padding: 8px 22px 22px;
    margin-bottom: 20px;
}
.widget-head {
    border-bottom: 1px solid #eef1f5;
    padding: 14px 0;
    margin-bottom: 18px;
}
.widget-title {
    position: relative;
    font-size: 15px;
    font-weight: 500;
    color: #333;
    padding-left: 12px;
}
.widget-title::before {
    content: '';
    position: absolute;
    left: 0; top: 3px;
    width: 4px; height: 14px;
    background: #00aeff;
}
.widget-body { padding: 0 2px; }

/* 栅格 */
.row { display: flex; flex-wrap: wrap; margin: 0 -10px; }
.col-6 { width: 50%; padding: 0 10px; }
.col-4 { width: 33.3333%; padding: 0 10px; }
.col-8 { width: 66.6666%; padding: 0 10px; }
@media (max-width: 900px) {
    .col-6, .col-4, .col-8 { width: 100%; }
    .left-sidebar { left: -200px; }
    .tpl-content-wrapper { margin-left: 0; }
    body.sidebar-collapsed .left-sidebar { left: 0; }
}

/* 表单 */
.form-group { margin-bottom: 18px; }
.form-label { display: block; color: #666; margin-bottom: 8px; font-size: 13px; }
.form-control {
    display: block;
    width: 100%;
    height: 40px;
    border: 1px solid #d9e1ec;
    border-radius: 4px;
    padding: 0 12px;
    font-size: 14px;
    color: #333;
    outline: none;
    background: #fff;
    transition: .2s;
}
.form-control:focus { border-color: #1686ef; box-shadow: 0 0 0 2px rgba(22,134,239,.1); }
textarea.form-control { height: 90px; padding: 10px 12px; resize: vertical; }
.form-tip { color: #999; font-size: 12px; margin-top: 6px; }

.btn {
    display: inline-block;
    height: 40px;
    line-height: 40px;
    padding: 0 22px;
    border: 0;
    border-radius: 4px;
    background: #1686ef;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    text-align: center;
}
.btn:hover { background: #0d6fd1; color: #fff; }
.btn-default { background: #f2f5fa; color: #555; }
.btn-default:hover { background: #e8eef7; color: #333; }
.btn-danger { background: #e7505a; }
.btn-danger:hover { background: #cf3f49; }
.btn-green { background: #18a058; }
.btn-green:hover { background: #128a49; }
.btn-sm { height: 30px; line-height: 30px; padding: 0 12px; font-size: 12px; }

/* 表格 */
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th, .table td {
    padding: 12px 10px;
    text-align: left;
    border-bottom: 1px solid #eef1f5;
    vertical-align: middle;
}
.table th { color: #888; font-weight: 500; background: #fafcff; white-space: nowrap; }
.table tr:hover td { background: #fafcff; }
.table .empty { text-align: center; color: #aaa; padding: 30px 0; }

/* 标签 */
.tag { display: inline-block; padding: 2px 8px; border-radius: 3px; font-size: 12px; }
.tag-green { background: #e8f8ef; color: #18a058; }
.tag-red { background: #fdecec; color: #e7505a; }
.tag-gray { background: #f2f4f7; color: #888; }
.tag-blue { background: #e8f3ff; color: #1686ef; }

/* 提示 */
.alert { padding: 12px 16px; border-radius: 4px; margin-bottom: 18px; font-size: 13px; }
.alert-success { background: #e8f8ef; color: #18a058; border: 1px solid #c9ecd9; }
.alert-danger { background: #fdecec; color: #e7505a; border: 1px solid #f7d0d2; }
.alert-warning { background: #fff7e6; color: #d46b08; border: 1px solid #ffe1b3; }

/* 首页统计 */
.stat-card {
    background: #fff;
    border-radius: 6px;
    padding: 22px 24px;
    box-shadow: 0 0 40px 0 rgba(0,0,0,.06);
    margin-bottom: 20px;
}
.stat-card .stat-label { color: #888; font-size: 13px; }
.stat-card .stat-value { font-size: 30px; font-weight: 600; color: #1686ef; margin-top: 8px; }
.stat-card .stat-value.green { color: #18a058; }
.stat-card .stat-value.orange { color: #fa8c16; }

/* 授权提交页 */
.auth-warning {
    background: #fff7e6;
    border: 1px solid #ffe1b3;
    color: #d46b08;
    padding: 12px 16px;
    border-radius: 4px;
    font-size: 13px;
    margin-bottom: 18px;
    line-height: 1.7;
}
.auth-meta { color: #666; font-size: 13px; margin: 4px 0 18px; }
.auth-meta b { color: #e7505a; font-size: 16px; }
.auth-meta .price { color: #fa8c16; font-weight: 600; }

/* 充值页 */
.qr-box {
    text-align: center;
    padding: 10px 0 4px;
}
.qr-box img { max-width: 240px; width: 100%; border: 1px solid #eee; border-radius: 6px; }
.qr-box .qr-tip { color: #888; font-size: 12px; margin-top: 10px; line-height: 1.8; }
.qr-placeholder {
    width: 240px; height: 240px; margin: 0 auto;
    border: 1px dashed #d9e1ec; border-radius: 6px;
    display: flex; align-items: center; justify-content: center;
    color: #aaa; font-size: 13px; text-align: center; padding: 20px;
}

/* 登录页（参考授权中心登录） */
.login-page {
    min-height: 100vh;
    background: #EBF2FA;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 16px;
}
.login-card {
    width: 400px;
    max-width: 100%;
    background: #fff;
    border-radius: 4px;
    padding: 50px 40px 40px;
    box-shadow: 0 10px 40px rgba(0,0,0,.08);
    animation: fadeIn .5s;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.login-card .brand { text-align: center; margin-bottom: 34px; }
.login-card .brand .logo {
    width: 54px; height: 54px; margin: 0 auto 16px;
    border-radius: 50%; background: #1686ef; color: #fff;
    font-size: 26px; line-height: 54px; text-align: center;
}
.login-card .brand h1 { font-size: 20px; font-weight: 400; color: #37474f; margin: 0; }
.login-card .brand p { color: #a3afb7; font-size: 12px; margin: 8px 0 0; }
.login-card .form-group { margin-bottom: 28px; }
.login-card input {
    width: 100%; height: 42px; border: 0; border-bottom: 1px solid #E4EAEC;
    outline: none; font-size: 14px; color: #333; padding: 0 5px;
}
.login-card input:focus { border-bottom-color: #ff5060; }
.login-card .btn-login {
    width: 100%; height: 44px; line-height: 44px; border: 0; border-radius: 4px;
    background: #ff5060; color: #fff; font-size: 17px; cursor: pointer;
}
.login-card .btn-login:hover { background: #fd717e; }
.login-card .login-links { text-align: center; margin-top: 18px; font-size: 12px; }

/* 分页/小工具 */
.mt-10 { margin-top: 10px; }
.mb-10 { margin-bottom: 10px; }
.text-muted { color: #999; }
.text-right { text-align: right; }
.inline { display: inline; }
.price-red { color: #e7505a; font-weight: 600; }

/* v3 首页查询 / 分区 */
.col-3 { width: 25%; padding: 0 10px; }
@media (max-width: 900px) { .col-3 { width: 100%; } }

.public-page {
    min-height: 100vh;
    background: linear-gradient(180deg, #eef4ff 0%, #f5f7f9 320px);
}
.public-wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 26px 20px 50px;
}
.public-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}
.public-brand { display: flex; align-items: center; gap: 14px; }
.public-brand h1 { font-size: 22px; margin: 0; }
.public-brand p { margin: 4px 0 0; color: #8492a6; font-size: 12px; }
.public-nav { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.public-hero {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(31, 45, 61, .07);
    padding: 38px 30px;
    text-align: center;
    margin-bottom: 22px;
}
.public-hero h2 { font-size: 26px; margin: 0 0 8px; }
.public-hero p { color: #8492a6; margin: 0 0 22px; font-size: 13px; }
.public-query {
    display: flex;
    gap: 10px;
    max-width: 560px;
    margin: 0 auto;
}
.public-query .form-control { height: 44px; }
.public-query .btn { height: 44px; line-height: 44px; margin-top: 0; white-space: nowrap; }
.public-result {
    margin: 22px auto 0;
    max-width: 560px;
    padding: 16px 18px;
    border-radius: 8px;
    text-align: left;
}
.public-result.ok { background: #e8f8ef; color: #18a058; }
.public-result.bad { background: #fdecec; color: #e7505a; }
.public-result .domain { font-size: 16px; font-weight: 600; }
.public-result .status { margin-top: 4px; font-size: 14px; }
.public-result .expire { margin-top: 4px; font-size: 12px; opacity: .85; }
.public-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}
.public-card {
    background: #fff;
    border-radius: 10px;
    padding: 26px;
    box-shadow: 0 10px 40px rgba(31, 45, 61, .06);
    text-align: center;
}
.public-card-icon {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #e8f3ff;
    color: #1686ef;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin: 0 auto 14px;
}
.public-card h3 { margin: 0 0 8px; font-size: 17px; }
.public-card p { color: #8492a6; font-size: 13px; line-height: 1.7; min-height: 44px; }
.public-card .btn { margin-top: 6px; }
.public-foot { text-align: center; color: #9aa7b8; font-size: 12px; margin-top: 30px; }
@media (max-width: 900px) {
    .public-grid { grid-template-columns: 1fr; }
    .public-query { flex-direction: column; }
    .public-header { flex-direction: column; align-items: flex-start; }
}
/* 充值页：支付宝二维码在左侧状态文字下方 */
.pay-qr { margin-top:18px; padding-top:18px; border-top:1px dashed #eef1f5; text-align:center; }
.pay-qr #qrcode { display:flex; justify-content:center; }
.pay-qr .qr-tip { margin-top:10px; color:#666; font-size:13px; line-height:1.8; }