/* 授权中心前台 —— cdnfly 科技风（主蓝 #0A6ED1） */
:root {
    --brand-1: #0A6ED1;
    --brand-2: #4DA3EC;
    --brand-deep: #085BAD;
    --bg: #F6F9FB;
    --text: #151F28;
    --muted: #7A8B96;
    --border: #E1E9EF;
}

* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    background: var(--bg);
    color: var(--text);
    font-size: 14px;
    background-image: radial-gradient(rgba(37, 99, 235, .04) 1px, transparent 1px);
    background-size: 22px 22px;
}

/* 顶部导航 */
.site-nav {
    height: 62px;
    background: rgba(255, 255, 255, .86);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    padding: 0 24px;
    position: sticky; top: 0; z-index: 100;
}
.nav-inner {
    width: 100%; max-width: 1120px; margin: 0 auto; height: 100%;
    display: flex; align-items: center; justify-content: space-between;
}
.site-nav .brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.site-nav .logo {
    width: 38px; height: 38px; border-radius: 10px;
    background: linear-gradient(135deg, var(--brand-1), var(--brand-2));
    color: #fff; display: flex; align-items: center; justify-content: center; font-size: 19px;
    box-shadow: 0 6px 16px rgba(37, 99, 235, .28);
}
.site-nav .brand-name { font-size: 17px; font-weight: 700; }
.site-nav .nav-right { display: flex; align-items: center; gap: 14px; }
.site-nav .nav-right a { color: #475569; text-decoration: none; font-size: 14px; }
.site-nav .nav-right a:hover { color: var(--brand-1); }
.site-nav .user-chip {
    display: flex; align-items: center; gap: 6px;
    background: #fff; border: 1px solid var(--border); border-radius: 20px;
    padding: 6px 14px; color: #334155; font-size: 13px;
}

/* 内容容器 */
.site-container { max-width: 1120px; margin: 0 auto; padding: 30px 20px 60px; }

/* Hero */
.hero { text-align: center; padding: 36px 0 30px; }
.hero h1 {
    font-size: 30px; font-weight: 800; margin: 0 0 10px;
    background: linear-gradient(135deg, var(--brand-1), var(--brand-2));
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero .sub { color: var(--muted); font-size: 15px; }

/* 套餐卡片 */
.plan-card {
    background: #fff; border: 1px solid var(--border); border-radius: 16px;
    padding: 26px; text-align: center;
    box-shadow: 0 8px 24px rgba(37, 99, 235, .06);
    transition: .22s; position: relative; height: 100%;
}
.plan-card:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(37, 99, 235, .14); }
.plan-card .plan-name { font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.plan-card .plan-nodes { color: var(--muted); font-size: 13px; margin-bottom: 16px; }
.plan-card .plan-price { font-size: 30px; font-weight: 800; color: var(--brand-1); }
.plan-card .plan-price span { font-size: 14px; font-weight: 500; color: var(--muted); }
.plan-card .plan-billing { color: var(--muted); font-size: 13px; margin: 4px 0 18px; }
.plan-card .btn-buy {
    width: 100%; border: none; border-radius: 12px; padding: 11px 0;
    background: linear-gradient(135deg, var(--brand-1), var(--brand-2));
    color: #fff; font-weight: 600; font-size: 15px;
    box-shadow: 0 8px 20px rgba(37, 99, 235, .25);
}
.plan-card .btn-buy:hover { color: #fff; transform: translateY(-1px); }
.plan-card .btn-buy:disabled { opacity: .6; }
.plan-card.featured { border: 2px solid var(--brand-1); }
.plan-card .badge-featured {
    position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
    background: linear-gradient(135deg, var(--brand-1), var(--brand-2));
    color: #fff; font-size: 12px; padding: 4px 14px; border-radius: 20px;
}

/* 认证卡片 */
.auth-card {
    max-width: 420px; margin: 40px auto;
    background: #fff; border: 1px solid var(--border); border-radius: 18px;
    padding: 34px; box-shadow: 0 16px 44px rgba(37, 99, 235, .10);
}
.auth-card h4 { margin: 0 0 22px; font-weight: 700; text-align: center; }
.auth-card .form-control { border: 1px solid #e2e8f0; border-radius: 11px; padding: 10px 14px; }
.auth-card .form-control:focus { border-color: var(--brand-1); box-shadow: 0 0 0 4px rgba(37, 99, 235, .10); }

.btn-brand {
    background: linear-gradient(135deg, var(--brand-1), var(--brand-2));
    border: none; color: #fff; border-radius: 12px; padding: 11px 0; font-weight: 600;
}
.btn-brand:hover { color: #fff; transform: translateY(-1px); }

/* 表格 */
.table { background: #fff; }
.table thead th { color: #64748b; font-weight: 600; font-size: 13px; }

/* 用户中心布局（同后台 CMS：顶部 LOGO + 右侧用户名 + 左侧菜单） */
.uc-layout { min-height: 100vh; display: flex; flex-direction: column; }
.uc-topbar {
    height: 60px; background: #fff; border-bottom: 1px solid var(--border);
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 22px;
}
.uc-topbar .brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.uc-topbar .logo {
    width: 36px; height: 36px; border-radius: 10px;
    background: linear-gradient(135deg, var(--brand-1), var(--brand-2));
    color: #fff; display: flex; align-items: center; justify-content: center; font-size: 18px;
    box-shadow: 0 6px 16px rgba(10, 110, 209, .25);
}
.uc-topbar .brand-name { font-size: 16px; font-weight: 700; }
.uc-topbar .user-area { display: flex; align-items: center; gap: 14px; color: #51636F; font-size: 14px; }
.uc-topbar .user-area a { color: #51636F; text-decoration: none; font-size: 13px; }
.uc-topbar .user-area a:hover { color: var(--brand-1); }
.uc-body { display: flex; flex: 1; }
.uc-sidebar { width: 200px; background: #fff; border-right: 1px solid var(--border); padding: 16px 12px; flex-shrink: 0; }
.uc-sidebar .menu { display: flex; flex-direction: column; gap: 4px; }
.uc-sidebar .menu-item {
    display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 10px;
    color: #51636F; text-decoration: none; font-size: 14px; transition: .18s;
}
.uc-sidebar .menu-item i { font-size: 16px; }
.uc-sidebar .menu-item:hover { background: #EAF3FC; color: var(--brand-1); }
.uc-sidebar .menu-item.active { background: var(--brand-1); color: #fff; box-shadow: 0 6px 14px rgba(10, 110, 209, .22); }
.uc-main { flex: 1; min-width: 0; padding: 24px; }
