/**
 * Xun Child 授权系统样式
 * 参考 https://www.xuntheme.com/pay 设计
 *
 * @package    Xun Child
 * @subpackage License
 * @since      1.0.0
 */

/* ========================================
   变量定义
   ======================================== */
.xun-child-buy-page {
    --xcb-primary: #1677ff;
    --xcb-primary-hover: #4096ff;
    --xcb-success: #52c41a;
    --xcb-warning: #faad14;
    --xcb-danger: #ff4d4f;
    --xcb-bg: #f5f5f5;
    --xcb-card-bg: #ffffff;
    --xcb-text: #262626;
    --xcb-text-secondary: #595959;
    --xcb-text-tertiary: #8c8c8c;
    --xcb-border: #d9d9d9;
    --xcb-border-light: #f0f0f0;
    --xcb-radius: 8px;
    --xcb-radius-lg: 12px;
    --xcb-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    --xcb-shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --xcb-shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.1);
}

body.dark .xun-child-buy-page,
html.dark .xun-child-buy-page,
[data-theme="dark"] .xun-child-buy-page,
.xun-child-buy-page.is-dark {
    --xcb-bg: #101624;
    --xcb-card-bg: #172033;
    --xcb-text: #f8fafc;
    --xcb-text-secondary: #cbd5e1;
    --xcb-text-tertiary: #94a3b8;
    --xcb-border: #334155;
    --xcb-border-light: #243047;
    --xcb-shadow: 0 2px 10px rgba(0, 0, 0, 0.28);
    --xcb-shadow-md: 0 8px 28px rgba(0, 0, 0, 0.32);
    --xcb-shadow-lg: 0 16px 42px rgba(0, 0, 0, 0.42);
}

@media (prefers-color-scheme: dark) {
    .xun-child-buy-page {
        --xcb-bg: #101624;
        --xcb-card-bg: #172033;
        --xcb-text: #f8fafc;
        --xcb-text-secondary: #cbd5e1;
        --xcb-text-tertiary: #94a3b8;
        --xcb-border: #334155;
        --xcb-border-light: #243047;
        --xcb-shadow: 0 2px 10px rgba(0, 0, 0, 0.28);
        --xcb-shadow-md: 0 8px 28px rgba(0, 0, 0, 0.32);
        --xcb-shadow-lg: 0 16px 42px rgba(0, 0, 0, 0.42);
    }
}

/* ========================================
   基础布局
   ======================================== */
.xcb-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.xcb-section {
    padding: 80px 0;
}

.xcb-section-gray {
    background: var(--xcb-bg);
}

.xcb-section-header {
    text-align: center;
    margin-bottom: 48px;
}

.xcb-section-title {
    font-size: 32px;
    font-weight: 600;
    color: var(--xcb-text);
    margin-bottom: 12px;
}

.xcb-section-subtitle {
    font-size: 16px;
    color: var(--xcb-text-secondary);
}

/* ========================================
   Hero 区域
   ======================================== */
.xcb-hero {
    position: relative;
    padding: 100px 0 80px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: #fff;
    text-align: center;
    overflow: hidden;
}

.xcb-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(22, 119, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(22, 119, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 50% 80%, rgba(82, 196, 26, 0.08) 0%, transparent 40%);
}

.xcb-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px;
}

.xcb-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    font-size: 14px;
}

.xcb-badge-tag {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(22, 119, 255, 0.2);
    border: 1px solid rgba(22, 119, 255, 0.3);
    border-radius: 20px;
    color: #69b1ff;
}

.xcb-badge-dot {
    color: var(--xcb-text-tertiary);
}

.xcb-badge-text {
    color: rgba(255, 255, 255, 0.7);
}

.xcb-hero-title {
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #fff;
    letter-spacing: -1px;
}

.xcb-hero-desc {
    font-size: 18px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.xcb-hero-actions {
    margin-bottom: 48px;
}

.xcb-hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
}

.xcb-stat-item {
    text-align: center;
}

.xcb-stat-num {
    display: block;
    font-size: 40px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
    line-height: 1;
}

.xcb-stat-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

/* ========================================
   按钮样式
   ======================================== */
.xcb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--xcb-radius);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    line-height: 1.5;
}

.xcb-btn-primary {
    background: var(--xcb-primary);
    color: #fff;
}

.xcb-btn-primary:hover {
    background: var(--xcb-primary-hover);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(22, 119, 255, 0.3);
}

.xcb-btn-lg {
    padding: 14px 32px;
    font-size: 16px;
    border-radius: var(--xcb-radius-lg);
}

.xcb-btn-white {
    background: #fff;
    color: var(--xcb-primary);
}

.xcb-btn-white:hover {
    background: #f0f7ff;
    color: var(--xcb-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(255, 255, 255, 0.2);
}

/* ========================================
   主题信息卡片
   ======================================== */
.xcb-product-card {
    position: relative;
    background: var(--xcb-card-bg);
    border-radius: var(--xcb-radius-lg);
    box-shadow: var(--xcb-shadow-md);
    overflow: hidden;
}

.xcb-product-card,
.xcb-feature-card,
.xcb-notice-card,
.xcb-license-card,
.xcb-faq-item {
    border-color: var(--xcb-border-light);
}

.xcb-product-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 4px 12px;
    background: linear-gradient(135deg, #1677ff, #0958d9);
    color: #fff;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    z-index: 2;
    overflow: hidden;
}

.xcb-product-badge::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 30%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
}

@keyframes badgeShine {
    0% {
        left: -100%;
    }
    50%, 100% {
        left: 130%;
    }
}

.xcb-product-main {
    display: flex;
    gap: 0;
}

.xcb-product-thumb {
    flex-shrink: 0;
    width: 420px;
    min-height: 300px;
    background: #1a1a2e;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.xcb-product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.xcb-product-info {
    flex: 1;
    padding: 32px 40px;
    display: flex;
    flex-direction: column;
}

.xcb-product-name {
    font-size: 24px;
    font-weight: 600;
    color: var(--xcb-text);
    margin-bottom: 12px;
}

/* 会员套餐价格（读取 Xun 主题 vip_packages） */
.xcb-vip-packages {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}

.xcb-vip-packages--empty {
    margin-bottom: 16px;
}

.xcb-vip-empty-tip {
    margin: 0;
    padding: 12px 16px;
    font-size: 14px;
    color: var(--xcb-text-secondary);
    background: var(--xcb-bg-secondary, #f5f7fa);
    border-radius: 8px;
}

.xcb-vip-package {
    position: relative;
    flex: 1 1 140px;
    min-width: 140px;
    max-width: 220px;
    padding: 14px 16px;
    border: 1px solid var(--xcb-vip-color, var(--xcb-border, #e5e7eb));
    border-radius: 10px;
    background: var(--xcb-bg, #fff);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.xcb-vip-package.is-recommended {
    border-color: var(--xcb-vip-color, var(--xcb-primary));
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.12);
}

.xcb-vip-package-tag {
    position: absolute;
    top: -8px;
    right: 12px;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    background: var(--xcb-vip-color, var(--xcb-primary));
    border-radius: 4px;
    line-height: 1.4;
}

.xcb-vip-package-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.xcb-vip-package-level {
    font-size: 12px;
    font-weight: 600;
    color: var(--xcb-vip-color, var(--xcb-primary));
    background: color-mix(in srgb, var(--xcb-vip-color, var(--xcb-primary)) 12%, transparent);
    padding: 2px 6px;
    border-radius: 4px;
}

.xcb-vip-package-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--xcb-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.xcb-vip-package-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 4px;
}

.xcb-vip-amount {
    font-size: 24px;
    font-weight: 700;
    color: var(--xcb-vip-color, var(--xcb-primary));
    line-height: 1;
}

.xcb-vip-original {
    font-size: 14px;
    color: var(--xcb-text-tertiary);
    text-decoration: line-through;
}

.xcb-vip-package-duration {
    font-size: 12px;
    color: var(--xcb-text-secondary);
}

.xcb-product-desc {
    font-size: 14px;
    color: var(--xcb-text-secondary);
    line-height: 1.6;
    margin-bottom: 8px;
}

.xcb-product-desc2 {
    font-size: 14px;
    color: var(--xcb-text-secondary);
    margin-bottom: 12px;
}

.xcb-product-desc2 strong {
    color: var(--xcb-primary);
    font-weight: 600;
}

.xcb-product-notice {
    font-size: 13px;
    color: var(--xcb-danger);
    margin-bottom: 16px;
    padding: 10px 14px;
    background: #fff2f0;
    border: 1px solid #ffccc7;
    border-radius: var(--xcb-radius);
    line-height: 1.5;
}

body.dark .xcb-product-notice,
html.dark .xcb-product-notice,
[data-theme="dark"] .xcb-product-notice {
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(248, 113, 113, 0.28);
}

.xcb-product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.xcb-tag {
    display: inline-block;
    padding: 4px 12px;
    background: #f0f7ff;
    color: var(--xcb-primary);
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

body.dark .xcb-tag,
html.dark .xcb-tag,
[data-theme="dark"] .xcb-tag {
    background: rgba(22, 119, 255, 0.14);
}

.xcb-product-actions {
    margin-bottom: 20px;
}

.xcb-product-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--xcb-border-light);
}

.xcb-product-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--xcb-text-tertiary);
}

.xcb-product-meta i {
    color: var(--xcb-primary);
    font-size: 12px;
}

/* ========================================
   主题展示
   ======================================== */
.xcb-section-showcase {
    background: #fff;
}

.xcb-showcase-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.xcb-showcase-item {
    border-radius: var(--xcb-radius-lg);
    overflow: hidden;
    background: #1a1a2e;
    border: 1px solid var(--xcb-border-light);
    transition: all 0.3s ease;
}

.xcb-showcase-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--xcb-shadow-lg);
    border-color: transparent;
}

.xcb-showcase-item a {
    display: block;
}

.xcb-showcase-item img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
}

/* ========================================
   功能介绍
   ======================================== */
.xcb-features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.xcb-feature-card {
    padding: 28px 20px;
    background: var(--xcb-card-bg);
    border: 1px solid var(--xcb-border-light);
    border-radius: var(--xcb-radius-lg);
    text-align: center;
    transition: all 0.3s ease;
}

.xcb-feature-card:hover {
    box-shadow: var(--xcb-shadow-md);
    transform: translateY(-4px);
    border-color: transparent;
}

.xcb-feature-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--xcb-primary) 0%, var(--xcb-primary-hover) 100%);
    border-radius: 12px;
    color: #fff;
    font-size: 20px;
}

.xcb-feature-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--xcb-text);
}

.xcb-feature-desc {
    font-size: 13px;
    color: var(--xcb-text-secondary);
    line-height: 1.5;
    margin: 0;
}

/* ========================================
   常见问题
   ======================================== */
.xcb-faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.xcb-faq-item {
    margin-bottom: 12px;
    background: var(--xcb-card-bg);
    border-radius: var(--xcb-radius-lg);
    overflow: hidden;
    box-shadow: var(--xcb-shadow);
}

.xcb-faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 20px 24px;
    background: none;
    border: none;
    font-size: 15px;
    font-weight: 500;
    color: var(--xcb-text);
    cursor: pointer;
    text-align: left;
    transition: all 0.2s ease;
}

.xcb-faq-question:hover {
    background: #fafafa;
}

.xcb-faq-question i {
    transition: transform 0.3s ease;
    color: var(--xcb-text-tertiary);
    font-size: 14px;
}

.xcb-faq-question.is-active i {
    transform: rotate(180deg);
}

.xcb-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.xcb-faq-answer.is-open {
    max-height: 300px;
}

.xcb-faq-answer p {
    padding: 0 24px 20px;
    color: var(--xcb-text-secondary);
    line-height: 1.7;
    font-size: 14px;
    margin: 0;
}

/* ========================================
   购买须知
   ======================================== */
.xcb-notice-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.xcb-notice-card {
    padding: 28px 24px;
    background: var(--xcb-card-bg);
    border: 1px solid var(--xcb-border-light);
    border-radius: var(--xcb-radius-lg);
    transition: all 0.3s ease;
}

.xcb-notice-card:hover {
    box-shadow: var(--xcb-shadow-md);
    border-color: transparent;
}

.xcb-notice-card h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--xcb-text);
    position: relative;
    padding-left: 16px;
}

.xcb-notice-card h4::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 16px;
    background: var(--xcb-primary);
    border-radius: 2px;
}

.xcb-notice-card p {
    font-size: 13px;
    color: var(--xcb-text-secondary);
    line-height: 1.7;
    margin: 0;
}

/* ========================================
   授权说明
   ======================================== */
.xcb-license-card {
    max-width: 800px;
    margin: 0 auto;
    padding: 32px;
    background: var(--xcb-card-bg);
    border-radius: var(--xcb-radius-lg);
    box-shadow: var(--xcb-shadow-md);
}

.xcb-license-warning {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: #fff7e6;
    border: 1px solid #ffd591;
    border-radius: var(--xcb-radius);
    margin-bottom: 16px;
    color: #d46b08;
}

.xcb-license-warning i {
    font-size: 18px;
    flex-shrink: 0;
}

.xcb-license-warning p {
    margin: 0;
    font-size: 14px;
}

.xcb-license-text {
    font-size: 14px;
    color: var(--xcb-text-secondary);
    line-height: 1.7;
    margin-bottom: 24px;
}

.xcb-license-subtitle {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--xcb-text);
}

.xcb-license-domains {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.xcb-domain-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    background: var(--xcb-bg);
    border-radius: var(--xcb-radius);
}

.xcb-domain-item code {
    padding: 4px 12px;
    background: var(--xcb-card-bg);
    border: 1px solid var(--xcb-border);
    border-radius: 4px;
    font-size: 14px;
    color: var(--xcb-text);
    font-family: 'SF Mono', Monaco, monospace;
}

body.dark .xcb-license-warning,
html.dark .xcb-license-warning,
[data-theme="dark"] .xcb-license-warning {
    background: rgba(250, 173, 20, 0.12);
    border-color: rgba(250, 204, 21, 0.28);
    color: #facc15;
}

.xcb-domain-item span {
    font-size: 13px;
    color: var(--xcb-text-secondary);
}

/* ========================================
   CTA 区域
   ======================================== */
.xcb-cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.xcb-cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 30% 50%, rgba(22, 119, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 50%, rgba(82, 196, 26, 0.06) 0%, transparent 50%);
}

.xcb-cta-inner {
    position: relative;
    z-index: 1;
}

.xcb-cta-inner h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #fff;
}

.xcb-cta-inner p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 32px;
}

.xcb-cta-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
}

/* ========================================
   用户中心授权页面样式
   ======================================== */
.xun-license-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.xun-license-stat-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: var(--xun-card-bg, #fff);
    border-radius: var(--xun-radius, 8px);
    border: 1px solid var(--xun-border-color, #f0f0f0);
}

.xun-license-stat-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--xun-primary, #1677ff) 0%, var(--xun-primary-hover, #4096ff) 100%);
    border-radius: 12px;
    color: #fff;
}

.xun-license-stat-info {
    display: flex;
    flex-direction: column;
}

.xun-license-stat-value {
    font-size: 24px;
    font-weight: 600;
    color: var(--xun-text, #262626);
}

.xun-license-stat-label {
    font-size: 14px;
    color: var(--xun-text-secondary, #595959);
}

.xun-license-warning {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: #fff2f0;
    border: 1px solid #ffccc7;
    border-radius: var(--xun-radius, 8px);
    margin-bottom: 24px;
    color: #cf1322;
    font-size: 14px;
}

.xun-license-section {
    background: var(--xun-card-bg, #fff);
    border-radius: var(--xun-radius, 8px);
    border: 1px solid var(--xun-border-color, #f0f0f0);
    margin-bottom: 24px;
    overflow: hidden;
}

.xun-license-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--xun-border-color, #f0f0f0);
}

.xun-license-section-header h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.xun-license-list {
    padding: 16px;
}

.xun-license-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 48px 24px;
    text-align: center;
    color: var(--xun-text-secondary, #595959);
}

.xun-license-empty svg {
    margin-bottom: 16px;
    color: var(--xun-text-secondary, #595959);
}

.xun-license-empty p {
    margin-bottom: 16px;
}

.xun-license-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    border: 1px solid var(--xun-border-color, #f0f0f0);
    border-radius: var(--xun-radius, 8px);
    margin-bottom: 12px;
    transition: all 0.2s ease;
}

.xun-license-item:hover {
    border-color: var(--xun-primary, #1677ff);
    box-shadow: 0 2px 8px rgba(22, 119, 255, 0.1);
}

.xun-license-item-main {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
}

.xun-license-item-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.xun-license-item-domain {
    font-size: 16px;
    font-weight: 500;
    color: var(--xun-text, #262626);
}

.xun-license-item-key {
    font-size: 13px;
    color: var(--xun-text-secondary, #595959);
    font-family: monospace;
}

.xun-license-item-status {
    margin-left: 16px;
}

.xun-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.xun-badge-success {
    background: #f6ffed;
    color: #389e0d;
    border: 1px solid #b7eb8f;
}

.xun-badge-warning {
    background: #fffbe6;
    color: #d48806;
    border: 1px solid #ffe58f;
}

.xun-badge-default {
    background: #f5f5f5;
    color: #595959;
    border: 1px solid #d9d9d9;
}

.xun-license-item-actions {
    display: flex;
    gap: 8px;
}

.xun-license-guide {
    background: var(--xun-card-bg, #fff);
    border-radius: var(--xun-radius, 8px);
    border: 1px solid var(--xun-border-color, #f0f0f0);
    padding: 24px;
}

.xun-license-guide h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
}

/* ========================================
   统计卡片样式
   ======================================== */
.xun-license-stats-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.xun-license-stat-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px;
    border-radius: var(--xun-radius, 8px);
    color: #fff;
}

.xun-license-stat-card-green {
    background: linear-gradient(135deg, #52c41a 0%, #73d13d 100%);
}

.xun-license-stat-card-orange {
    background: linear-gradient(135deg, #fa8c16 0%, #ffa940 100%);
}

.xun-license-stat-card-blue {
    background: linear-gradient(135deg, #1890ff 0%, #40a9ff 100%);
}

.xun-license-stat-card-red {
    background: linear-gradient(135deg, #f5222d 0%, #ff4d4f 100%);
}

.xun-license-stat-card-cyan {
    background: linear-gradient(135deg, #13c2c2 0%, #36cfc9 100%);
}

.xun-license-stat-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    font-size: 18px;
}

.xun-license-stat-content {
    display: flex;
    flex-direction: column;
}

.xun-license-stat-value {
    font-size: 24px;
    font-weight: 600;
    line-height: 1.2;
}

.xun-license-stat-label {
    font-size: 13px;
    opacity: 0.9;
}

/* ========================================
   授权列表新样式
   ======================================== */
.xun-license-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    border: 1px solid var(--xun-border-color, #f0f0f0);
    border-radius: var(--xun-radius, 8px);
    margin-bottom: 12px;
    transition: all 0.2s ease;
}

.xun-license-item-icon {
    font-size: 24px;
}

.xun-license-item-main {
    flex: 1;
    min-width: 0;
}

.xun-license-item-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.xun-license-item-domain {
    font-size: 16px;
    font-weight: 500;
    color: var(--xun-text, #262626);
}

.xun-badge-sm {
    padding: 2px 8px;
    font-size: 11px;
}

.xun-license-item-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 13px;
    color: var(--xun-text-secondary, #595959);
}

.xun-license-item-key {
    font-family: 'SF Mono', Monaco, monospace;
    padding: 2px 8px;
    background: var(--xun-bg, #f5f5f5);
    border-radius: 4px;
}

.xun-license-item-time {
    color: var(--xun-text-tertiary, #8c8c8c);
}

/* ========================================
   下拉菜单样式
   ======================================== */
.xun-dropdown {
    position: relative;
}

.xun-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    background: transparent;
    border: 1px solid var(--xun-border-color, #d9d9d9);
    border-radius: var(--xun-radius-sm, 4px);
    font-size: 14px;
    color: var(--xun-text, #262626);
    cursor: pointer;
    transition: all 0.2s ease;
}

.xun-dropdown-toggle:hover {
    border-color: var(--xun-primary, #1677ff);
    color: var(--xun-primary, #1677ff);
}

.xun-dropdown-toggle i {
    font-size: 12px;
    transition: transform 0.2s ease;
}

.xun-dropdown.open .xun-dropdown-toggle i {
    transform: rotate(180deg);
}

.xun-dropdown-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 4px);
    min-width: 180px;
    background: #fff;
    border: 1px solid var(--xun-border-color, #f0f0f0);
    border-radius: var(--xun-radius, 8px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s ease;
    z-index: 100;
}

.xun-dropdown.open .xun-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.xun-dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 10px 16px;
    background: none;
    border: none;
    text-align: left;
    font-size: 14px;
    color: var(--xun-text, #262626);
    cursor: pointer;
    transition: background 0.2s ease;
}

.xun-dropdown-item:hover {
    background: var(--xun-bg, #f5f5f5);
}

.xun-dropdown-item i {
    font-size: 14px;
}

.xun-dropdown-item-danger {
    color: #ff4d4f;
}

.xun-dropdown-item-danger:hover {
    background: #fff2f0;
}

.xun-dropdown-item-primary {
    color: var(--xun-primary, #1677ff);
}

.xun-dropdown-item-primary:hover {
    background: #e6f7ff;
}

.xun-license-guide-steps {
    list-style: none;
    padding: 0;
    margin: 0;
}

.xun-license-guide-steps li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--xun-border-color, #f0f0f0);
}

.xun-license-guide-steps li:last-child {
    border-bottom: none;
}

.xun-license-guide-num {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--xun-primary, #1677ff);
    color: #fff;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 600;
    flex-shrink: 0;
}

/* ========================================
   下载中心样式
   ======================================== */
.xun-download-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.xun-download-stat-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: var(--xun-card-bg, #fff);
    border-radius: var(--xun-radius, 8px);
    border: 1px solid var(--xun-border-color, #f0f0f0);
}

.xun-user-page-header,
.lc-stats,
.lc-alert,
.lc-panel,
.xun-download-stats,
.xun-download-section,
.xun-license-vip-notice,
.xun-license-warning {
    color: var(--xun-text, #262626);
}

.xun-download-stat-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #52c41a 0%, #73d13d 100%);
    border-radius: 12px;
    color: #fff;
}

.xun-download-stat-info {
    display: flex;
    flex-direction: column;
}

.xun-download-stat-value {
    font-size: 24px;
    font-weight: 600;
    color: var(--xun-text, #262626);
}

.xun-download-stat-label {
    font-size: 14px;
    color: var(--xun-text-secondary, #595959);
}

.xun-download-section {
    background: var(--xun-card-bg, #fff);
    border-radius: var(--xun-radius, 8px);
    border: 1px solid var(--xun-border-color, #f0f0f0);
    overflow: hidden;
}

.xun-download-section,
.xun-download-stat-card,
.xun-download-item,
.lc-panel,
.lc-stat,
.lc-item {
    background: var(--xun-card-bg, #fff);
    border-color: var(--xun-border-color, #f0f0f0);
}

.xun-download-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--xun-border-color, #f0f0f0);
}

.xun-download-section-header h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.xun-download-section-header span {
    font-size: 14px;
    color: var(--xun-text-secondary, #595959);
}

.xun-download-list {
    padding: 16px;
}

.xun-download-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 48px 24px;
    text-align: center;
    color: var(--xun-text-secondary, #595959);
}

.xun-download-empty svg {
    margin-bottom: 16px;
    color: var(--xun-text-secondary, #595959);
}

.xun-download-empty p {
    margin-bottom: 16px;
}

.xun-download-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    border: 1px solid var(--xun-border-color, #f0f0f0);
    border-radius: var(--xun-radius, 8px);
    margin-bottom: 12px;
    transition: all 0.2s ease;
}

.xun-download-item {
    align-items: stretch;
}

.xun-download-item:hover {
    border-color: var(--xun-primary, #1677ff);
    box-shadow: 0 2px 8px rgba(22, 119, 255, 0.1);
}

.xun-download-item-thumb {
    width: 120px;
    height: 80px;
    border-radius: var(--xun-radius, 8px);
    overflow: hidden;
    flex-shrink: 0;
}

.xun-download-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.xun-download-item-info {
    flex: 1;
}

.xun-download-item-info h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.xun-download-item-info h4,
.lc-panel-header h2,
.lc-item-domain,
.lc-empty h3,
.lc-stat-num {
    color: var(--xun-text, #262626);
}

.xun-download-item-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.xun-download-item-version {
    font-size: 13px;
    color: var(--xun-text-secondary, #595959);
}

.xun-download-item-status {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    background: #f5f5f5;
    color: #595959;
}

.xun-download-item-status.is-active {
    background: #f6ffed;
    color: #389e0d;
}

.xun-download-item-desc {
    font-size: 13px;
    color: var(--xun-text-secondary, #595959);
    margin: 0;
}

.xun-download-item-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.xun-download-item-actions .btn,
.lc-btn-primary {
    min-height: 36px;
    border-radius: 8px;
}

/* ========================================
   授权管理页面样式
   ======================================== */
.lc-stats {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.lc-stat {
    text-align: center;
    padding: 16px;
    background: var(--xun-card-bg, #fff);
    border-radius: 8px;
    border: 1px solid var(--xun-border-color, #f0f0f0);
}

.lc-stat-num {
    font-size: 28px;
    font-weight: 700;
    color: var(--xun-text, #1a1a1a);
    line-height: 1.2;
    margin-bottom: 4px;
}

.lc-stat-num span {
    font-size: 16px;
    font-weight: 400;
    color: var(--xun-text-secondary, #888);
}

.lc-stat-label {
    font-size: 13px;
    color: #888;
}

.lc-alert {
    padding: 14px 18px;
    background: rgba(250, 173, 20, 0.12);
    border-radius: 6px;
    font-size: 14px;
    color: #b7791f;
    margin-bottom: 20px;
    border-left: 3px solid #f0c000;
}

.lc-panel {
    background: var(--xun-card-bg, #fff);
    border-radius: 8px;
    border: 1px solid var(--xun-border-color, #f0f0f0);
    overflow: hidden;
}

.lc-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--xun-border-color, #f0f0f0);
}

.lc-panel-header h2 {
    font-size: 16px;
    font-weight: 600;
    color: var(--xun-text, #1a1a1a);
    margin: 0;
}

.lc-btn-primary {
    display: inline-block;
    padding: 8px 18px;
    background: #1677ff;
    color: #fff;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
}

.lc-btn-primary:hover {
    background: #4096ff;
}

.lc-panel-body {
    padding: 16px;
}

.lc-empty {
    text-align: center;
    padding: 40px 20px;
}

.lc-empty-icon {
    font-size: 40px;
    margin-bottom: 12px;
}

.lc-empty h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--xun-text, #1a1a1a);
    margin: 0 0 8px;
}

.lc-empty p {
    font-size: 14px;
    color: var(--xun-text-secondary, #888);
    margin: 0 0 16px;
}

.lc-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.lc-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: var(--xun-bg, #fafafa);
    border-radius: 6px;
}

.lc-item-main {
    flex: 1;
    min-width: 0;
}

.lc-item-domain {
    font-size: 15px;
    font-weight: 600;
    color: var(--xun-text, #1a1a1a);
    margin-bottom: 6px;
}

.lc-item-key {
    font-family: 'SF Mono', Monaco, monospace;
    font-size: 13px;
    color: var(--xun-text-secondary, #666);
    padding: 4px 10px;
    background: var(--xun-card-bg, #fff);
    border-radius: 4px;
    border: 1px solid var(--xun-border-color, #e8e8e8);
    display: inline-block;
    margin-bottom: 6px;
}

.lc-item-time {
    font-size: 12px;
    color: var(--xun-text-tertiary, #aaa);
}

.lc-item-side {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.lc-status {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.lc-status-active {
    background: #f0fff4;
    color: #389e0d;
}

.lc-status-pending {
    background: #fffbe6;
    color: #d48806;
}

.lc-status-inactive {
    background: #f5f5f5;
    color: #888;
}

.lc-item-actions {
    display: flex;
    gap: 6px;
}

.lc-action {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--xun-card-bg, #fff);
    border: 1px solid var(--xun-border-color, #ddd);
    border-radius: 6px;
    cursor: pointer;
    color: var(--xun-text-secondary, #666);
    transition: all 0.2s;
}

.lc-action svg {
    width: 14px;
    height: 14px;
}

.lc-action:hover {
    background: var(--xun-bg, #f5f5f5);
}

body.dark .xun-download-section,
body.dark .xun-download-stat-card,
body.dark .xun-download-item,
body.dark .lc-panel,
body.dark .lc-stat,
body.dark .lc-item,
html.dark .xun-download-section,
html.dark .xun-download-stat-card,
html.dark .xun-download-item,
html.dark .lc-panel,
html.dark .lc-stat,
html.dark .lc-item,
[data-theme="dark"] .xun-download-section,
[data-theme="dark"] .xun-download-stat-card,
[data-theme="dark"] .xun-download-item,
[data-theme="dark"] .lc-panel,
[data-theme="dark"] .lc-stat,
[data-theme="dark"] .lc-item {
    --xun-card-bg: #172033;
    --xun-bg: #101624;
    --xun-text: #f8fafc;
    --xun-text-secondary: #cbd5e1;
    --xun-text-tertiary: #94a3b8;
    --xun-border-color: #2b3852;
}

@media (prefers-color-scheme: dark) {
    .xun-download-section,
    .xun-download-stat-card,
    .xun-download-item,
    .lc-panel,
    .lc-stat,
    .lc-item {
        --xun-card-bg: #172033;
        --xun-bg: #101624;
        --xun-text: #f8fafc;
        --xun-text-secondary: #cbd5e1;
        --xun-text-tertiary: #94a3b8;
        --xun-border-color: #2b3852;
    }
}

.lc-action-copy:hover {
    border-color: #1677ff;
    color: #1677ff;
}

.lc-action-unlink:hover {
    border-color: #ff4d4f;
    color: #ff4d4f;
}

.lc-action-activate:hover {
    border-color: #52c41a;
    color: #52c41a;
}

@media (max-width: 768px) {
    .lc-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .lc-stats .lc-stat:last-child {
        grid-column: span 2;
    }
    
    .lc-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .lc-item-side {
        width: 100%;
        justify-content: space-between;
    }
}

/* ========================================
   后台授权设置样式
   ======================================== */
.xun-license-activated {
    text-align: center;
    padding: 40px;
}

.xun-license-activated-header {
    margin-bottom: 24px;
}

.xun-license-activated-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f6ffed;
    border-radius: 50%;
    color: #52c41a;
    font-size: 40px;
}

.xun-license-activated-header h3 {
    font-size: 24px;
    font-weight: 600;
    color: #52c41a;
    margin: 0;
}

.xun-license-activated-body h4 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--xun-text, #262626);
}

.xun-license-activated-body p {
    color: var(--xun-text-secondary, #595959);
    margin-bottom: 32px;
}

.xun-license-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    max-width: 600px;
    margin: 0 auto;
}

.xun-license-info-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: var(--xun-bg, #f5f5f5);
    border-radius: var(--xun-radius, 8px);
    text-align: left;
}

.xun-license-info-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 12px;
    color: var(--xun-primary, #1677ff);
    font-size: 20px;
}

.xun-license-info-content {
    display: flex;
    flex-direction: column;
}

.xun-license-info-label {
    font-size: 13px;
    color: var(--xun-text-secondary, #595959);
    margin-bottom: 4px;
}

.xun-license-info-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--xun-text, #262626);
}

.xun-license-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 32px;
}

.xun-license-activate-btn-wrapper {
    text-align: center;
    padding: 20px 0;
}

.xun-license-help {
    margin-top: 32px;
    padding: 24px;
    background: var(--xun-bg, #f5f5f5);
    border-radius: var(--xun-radius, 8px);
}

.xun-license-help h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--xun-text, #262626);
}

.xun-license-help ol {
    margin: 0;
    padding-left: 20px;
}

.xun-license-help li {
    margin-bottom: 8px;
    color: var(--xun-text-secondary, #595959);
}

/* ========================================
   响应式设计
   ======================================== */
@media (max-width: 1024px) {
    .xcb-features-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .xcb-product-main {
        flex-direction: column;
    }

    .xcb-product-thumb {
        width: 100%;
        height: 240px;
    }

    .xcb-showcase-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .xcb-hero {
        padding: 60px 0 48px;
    }

    .xcb-hero-title {
        font-size: 36px;
    }

    .xcb-hero-stats {
        gap: 32px;
    }

    .xcb-stat-num {
        font-size: 28px;
    }

    .xcb-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .xcb-notice-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .xcb-section {
        padding: 48px 0;
    }

    .xcb-section-title {
        font-size: 24px;
    }

    .xun-license-stats,
    .xun-download-stats {
        grid-template-columns: 1fr;
    }

    .xun-license-info-grid {
        grid-template-columns: 1fr;
    }

    .xun-license-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .xun-license-item-actions {
        width: 100%;
        justify-content: flex-end;
        margin-top: 12px;
    }

    .xun-download-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .xun-download-item-thumb {
        width: 100%;
        height: 160px;
    }

    .xun-download-item-actions {
        width: 100%;
        justify-content: flex-end;
    }
}

@media (max-width: 480px) {
    .xcb-features-grid {
        grid-template-columns: 1fr;
    }

    .xcb-notice-grid {
        grid-template-columns: 1fr;
    }

    .xcb-hero-actions {
        flex-direction: column;
    }

    .xcb-cta-actions {
        flex-direction: column;
    }

    .xcb-product-info {
        padding: 20px;
    }

    .xcb-product-meta {
        flex-direction: column;
        gap: 8px;
    }

    .xcb-vip-package {
        flex: 1 1 100%;
        max-width: none;
    }
}
