/* 全局基础与底层光晕 */
.shiguang-vip-wrap { max-width: 1200px; margin: 40px auto; padding: 0 15px; color: var(--main-color, #1d1d1f); font-family: inherit; position: relative; -webkit-font-smoothing: antialiased; }
.sg-glow-wrapper { position: absolute; top: 0; left: calc(-50vw + 50%); width: 100vw; height: 100%; overflow: hidden; pointer-events: none; z-index: -1; }
.sg-ambient-glow { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.4; }
.sg-ambient-glow-1 { width: 400px; height: 400px; background: var(--sg-glow-1, #007aff); top: 5%; left: 10%; }
.sg-ambient-glow-2 { width: 500px; height: 500px; background: var(--sg-glow-2, #ff9f00); bottom: 10%; right: 5%; }

/* 沉浸式渐变 Hero横幅 */
.sg-hero { text-align: center; margin-bottom: 40px; position: relative; padding: 60px 20px; border-radius: 20px; background: linear-gradient(135deg, var(--sg-hero-start), var(--sg-hero-end)); box-shadow: 0 15px 30px rgba(0,0,0,0.1); overflow: hidden; }
.sg-hero-bg { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background-size: cover; background-position: center; background-repeat: no-repeat; opacity: 0.9; z-index: 1; pointer-events: none; }
.sg-hero-content { position: relative; z-index: 2; }
.sg-hero h1 { font-size: clamp(32px, 6vw, 46px); font-weight: 800; margin-bottom: 16px; color: #fff; text-shadow: 0 4px 15px rgba(0,0,0,0.2); letter-spacing: 1px; }
.sg-hero p { font-size: clamp(15px, 3vw, 18px); color: rgba(255,255,255,0.85); max-width: 700px; margin: 0 auto; line-height: 1.6; }

.sg-intro-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; margin-bottom: 60px; }
.sg-intro-card { flex: 1 1 260px; max-width: 360px; padding: 24px; border-radius: 16px; border: 1px solid var(--border-color, #eee); display: flex; align-items: flex-start; gap: 16px; transition: transform .3s, box-shadow .3s; background: rgba(255,255,255,0.8); backdrop-filter: blur(10px); }
.sg-intro-card:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0,0,0,0.05); }
.sg-intro-icon { font-size: 28px; width: 50px; height: 50px; display: flex; align-items: center; justify-content: center; border-radius: 12px; flex-shrink: 0; }
.sg-intro-text h3 { margin: 0 0 8px; font-size: 18px; font-weight: 600; color: var(--main-color, #333); }
.sg-intro-text p { margin: 0; font-size: 13px; opacity: 0.8; line-height: 1.5; color: var(--muted-color, #666); }

.sg-dashboard-wrap { display: flex; gap: 30px; margin-bottom: 60px; align-items: flex-start; }
.sg-dash-sidebar { width: 280px; flex-shrink: 0; position: sticky; top: 20px; display: flex; flex-direction: column; gap: 30px; z-index: 10; }
.sg-dash-title { font-size: 18px; font-weight: 700; margin-bottom: 20px; color: var(--main-color); }
.sg-dash-navs { display: flex; flex-direction: column; gap: 16px; }
.sg-dash-nav-item { display: flex; align-items: center; padding: 18px; background: rgba(255,255,255,0.8); backdrop-filter: blur(10px); border-radius: 16px; border: 2px solid var(--border-color, transparent); cursor: pointer; transition: .3s; box-shadow: 0 4px 15px rgba(0,0,0,0.03); }
.sg-dash-nav-item:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(0,0,0,0.06); }
.sg-dash-nav-item.active { border-color: var(--sg-vip-color); background: var(--sg-vip-bg); }
.sg-dash-nav-item img { width: 44px; height: 44px; margin-right: 12px; }
.sg-nav-info { flex: 1; }
.sg-nav-info h4 { margin: 0 0 4px; font-size: 16px; font-weight: 700; color: var(--main-color); }
.sg-nav-info span { font-size: 12px; color: var(--muted-color); }
.sg-nav-price { font-size: 18px; font-weight: 700; color: var(--main-color); }
.sg-nav-price span { font-size: 12px; font-weight: normal; margin: 0 2px; }

.sg-user-profile-card { background: rgba(255,255,255,0.8); backdrop-filter: blur(10px); border-radius: 16px; padding: 30px 24px; display: flex; flex-direction: column; align-items: center; text-align: center; box-shadow: 0 4px 15px rgba(0,0,0,0.03); border: 1px solid var(--border-color, #eee); position: relative; overflow: hidden; }
.sg-upc-avatar { width: 76px; height: 76px; border-radius: 50%; border: 2px solid rgba(0,122,255,0.1); padding: 2px; object-fit: cover; margin-bottom: 15px; }
.sg-upc-avatar-guest { width: 76px; height: 76px; background: var(--muted-bg-color, #f5f5f5); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--muted-color); margin-bottom: 12px; }
.sg-upc-name { font-size: 18px; font-weight: 800; margin-bottom: 6px; color: var(--main-color); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; width: 100%; }
.sg-upc-status { font-size: 13px; color: var(--muted-color); margin-bottom: 15px; }
.sg-upc-vip-lbl { font-weight: bold; background: linear-gradient(90deg, #ff9f00, #ff3b30); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.sg-upc-login-btn { display: inline-block; width: 100%; font-size: 14px; background: var(--theme-color, #007aff); color: #fff; padding: 12px 0; border-radius: 25px; font-weight: 600; border: none; transition: .3s; }
.sg-upc-login-btn:hover { opacity: 0.9; transform: translateY(-2px); box-shadow: 0 5px 15px rgba(0,122,255,0.3); }

.sg-dash-content { flex: 1; background: rgba(255,255,255,0.9); backdrop-filter: blur(20px); border-radius: 20px; padding: 30px; box-shadow: 0 8px 30px rgba(0,0,0,0.04); overflow: hidden; position: relative; border: 1px solid rgba(255,255,255,0.5); }
.sg-dash-alerts { display: flex; flex-direction: column; gap: 15px; margin-bottom: 30px; }
.sg-alert-box { display: flex; align-items: flex-start; gap: 12px; padding: 16px; border-radius: 12px; border: 1px solid transparent; }
.sg-alert-icon { font-size: 20px; line-height: 1; }
.sg-alert-content h4 { margin: 0 0 4px; font-size: 14px; font-weight: 600; }
.sg-alert-content p { margin: 0; font-size: 12px; opacity: 0.85; line-height: 1.4; }
.sg-alert-info { background: #e8f2ff; border-color: #bce0fd; color: #007aff; }
.sg-alert-success { background: #e6f9e9; border-color: #b7efc5; color: #28c840; }
.sg-alert-warning { background: #fff8eb; border-color: #ffe0b2; color: #ff9f00; }
.sg-alert-error { background: #fff0f0; border-color: #ffcdd2; color: #ff3b30; }

.sg-dash-pane { display: none; animation: sgFadeIn .4s ease; }
.sg-dash-pane.active { display: block; }
@keyframes sgFadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.sg-pane-header { margin-bottom: 30px; padding-bottom: 20px; border-bottom: 1px solid var(--border-color, #f0f0f0); }
.sg-pane-header h2 { font-size: 28px; font-weight: 800; margin: 0 0 8px; letter-spacing: 1px; color: var(--main-color); }
.sg-pane-header p { margin: 0; font-size: 14px; color: var(--muted-color); }

.sg-pane-body { display: flex; gap: 40px; }
.sg-pane-left { flex: 1; }
.sg-pane-right { width: 300px; flex-shrink: 0; }
.sg-inner-title { font-size: 15px; font-weight: 600; margin-bottom: 16px; color: var(--muted-color); }

.sg-pkg-select-grid { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 15px; margin-bottom: 40px; }
.sg-pkg-option { flex: 1 1 140px; max-width: 200px; border: 2px solid var(--border-color, #eee); border-radius: 12px; padding: 20px; text-align: center; cursor: pointer; transition: .2s; position: relative; background: var(--muted-bg-color, #fdfdfd); }
.sg-pkg-option:hover { border-color: var(--theme-color, #d1d1d1); }
.sg-pkg-option.active { border-color: var(--sg-vip-color); background: var(--sg-vip-bg); }
.sg-pkg-opt-name { font-size: 18px; font-weight: 700; margin-bottom: 4px; color: var(--main-color); }
.sg-pkg-opt-sub { font-size: 12px; color: var(--muted-color); margin-bottom: 10px; }
.sg-pkg-opt-show-price { font-size: 12px; color: var(--muted-color); text-decoration: line-through; margin-bottom: 2px; height: 16px; }
.sg-pkg-opt-price { font-size: 20px; font-weight: 800; color: var(--main-color); }
.sg-pkg-opt-tag { position: absolute; top: -10px; right: -10px; font-size: 11px; padding: 4px 8px; border-radius: 10px 10px 10px 0; font-weight: bold; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }

/* ✨ 全新防错位特权列表重构 */
.sg-benefits-area { text-align: left; margin-top: 15px; }
.sg-benefits-list { list-style: none !important; padding: 0 !important; margin: 0 !important; display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; }
.sg-benefits-list li { font-size: 14px; display: flex; align-items: flex-start; justify-content: flex-start; gap: 8px; color: var(--main-color); line-height: 1.5; word-break: break-all; }
.sg-shield { font-size: 15px; flex-shrink: 0; line-height: 1.5; display: inline-block; margin-top: 1px; }
.sg-eq-text { flex: 1; }
.sg-eq-text img { max-width: 20px; max-height: 20px; vertical-align: middle; border-radius: 4px; }

.sg-showcase-card { border-radius: 20px; padding: 40px 24px; text-align: center; box-shadow: 0 10px 40px rgba(0,0,0,0.06); position: sticky; top: 20px; border: 1px solid var(--border-color, transparent); background: linear-gradient(180deg, var(--main-bg-color, #fff) 0%, var(--sg-vip-bg-grad) 100%); }
.sg-showcase-icon { width: 80px; height: 80px; margin: 0 auto 20px; filter: drop-shadow(0 8px 16px rgba(0,0,0,0.15)); }
.sg-showcase-card h3 { font-size: 24px; font-weight: 800; margin: 0 0 8px; color: var(--main-color); }
.sg-showcase-desc { font-size: 13px; color: var(--muted-color); margin-bottom: 30px; }
.sg-showcase-info-row { display: flex; justify-content: space-between; border-top: 1px dashed var(--border-color); border-bottom: 1px dashed var(--border-color); padding: 15px 0; margin-bottom: 30px; }
.info-item { display: flex; flex-direction: column; gap: 6px; }
.info-item .lbl { font-size: 12px; color: var(--muted-color); }
.info-item .val { font-size: 16px; font-weight: 700; color: var(--main-color); }
.info-item .val b { font-size: 24px; }

.sg-buy-btn { color: #fff; padding: 16px; border-radius: 12px; font-weight: 700; font-size: 16px; display: block; width: 100%; border: none; cursor: pointer; transition: .2s; }
.sg-buy-btn:hover { opacity: 0.9; transform: translateY(-2px); }
.sg-buy-btn.disabled { cursor: not-allowed !important; transform: none !important; opacity: 1 !important; }
.sg-status-hint { font-size: 13px; color: var(--muted-color); margin-bottom: 15px; line-height: 1.5; }

.sg-section-header { text-align: left; margin-bottom: 30px; border-left: 4px solid var(--theme-color, #007aff); padding-left: 15px; }
.sg-section-title { font-size: 24px; font-weight: 800; margin: 0 0 6px; display: flex; align-items: center; color: var(--main-color); }
.sg-section-subtitle { font-size: 14px; color: var(--muted-color); margin: 0; }

.sg-table-wrap { background: rgba(255,255,255,0.9); backdrop-filter: blur(10px); border-radius: 16px; margin-bottom: 60px; box-shadow: 0 4px 20px rgba(0,0,0,0.03); overflow-x: auto; border: 1px solid var(--border-color, transparent); }
.sg-table { width: 100%; border-collapse: collapse; text-align: center; min-width: 700px; }
.sg-table th { padding: 20px; font-weight: 600; border-bottom: 1px solid var(--border-color, #eee); font-size: 15px; }
.sg-table th.sg-th-left, .sg-table td.sg-td-left { text-align: left; padding-left: 30px; width: 30%; font-weight: 600; color: var(--main-color); }
.sg-table td { padding: 18px 20px; border-bottom: 1px dashed var(--border-color, #eee); font-size: 15px; }
.sg-table tbody tr { transition: background-color 0.2s ease; }
.sg-table tbody tr:hover { background-color: rgba(0, 122, 255, 0.03); }
.sg-th-badge { display: inline-block; padding: 6px 16px; border-radius: 8px; font-size: 16px; font-weight: 800; box-shadow: 0 4px 10px rgba(0,0,0,0.05); }

.sg-tag-green { color: #28c840; font-weight: 600; background: rgba(40,200,64,0.1); padding: 4px 10px; border-radius: 6px; font-size: 13px; }
.sg-tag-gray-cross { color: #86868b; font-weight: 600; background: rgba(134,134,139,0.1); padding: 4px 10px; border-radius: 6px; font-size: 13px; }
.sg-tag-red { color: #ff3b30; font-weight: 600; background: rgba(255,59,48,0.1); padding: 4px 10px; border-radius: 6px; font-size: 13px; }
.sg-tag-color { font-weight: 600; padding: 4px 10px; border-radius: 6px; font-size: 13px; }
.sg-tag-gray { color: var(--muted-color); font-size: 14px; }

.sg-reviews-outer-wrap { overflow: hidden; margin-bottom: 60px; padding: 10px 0; }
.sg-reviews-track { display: flex; gap: 20px; }
.sg-review-card { width: 350px; flex-shrink: 0; background: rgba(255,255,255,0.9); border: 1px solid var(--border-color, #eee); border-radius: 16px; padding: 24px; box-shadow: 0 4px 15px rgba(0,0,0,0.02); transition: .3s; }
.sg-review-card:hover { transform: translateY(-3px); box-shadow: 0 10px 25px rgba(0,0,0,0.06); }
.sg-rev-head { display: flex; align-items: center; margin-bottom: 16px; }
.sg-rev-avatar { width: 48px; height: 48px; border-radius: 50%; margin-right: 12px; object-fit: cover; }
.sg-rev-info h4 { margin: 0 0 4px; font-size: 15px; font-weight: 700; color: var(--main-color); }
.sg-rev-badge { font-size: 11px; font-weight: bold; background: var(--muted-bg-color, #333); color: #fec42d; padding: 2px 8px; border-radius: 4px; }
.sg-rev-content { font-size: 14px; color: var(--muted-color); line-height: 1.8; position: relative; padding: 0 12px; margin-top: 10px; z-index: 1; }
.sg-rev-content::before { content: "“"; font-size: 36px; color: var(--muted-3-color, #ccc); position: absolute; left: -5px; top: -10px; font-family: Georgia, serif; line-height: 1; opacity: 0.3; z-index: -1; }
.sg-rev-content::after { content: "”"; font-size: 36px; color: var(--muted-3-color, #ccc); position: absolute; right: 0px; bottom: -20px; font-family: Georgia, serif; line-height: 1; opacity: 0.3; z-index: -1; }

.is-marquee .sg-reviews-track { width: max-content; animation: sg-scroll-marquee 30s linear infinite; }
.is-marquee .sg-reviews-track:hover { animation-play-state: paused; }
@keyframes sg-scroll-marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

.sg-faqs-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; margin-bottom: 60px; align-items: flex-start; }
.sg-faq-item { flex: 1 1 400px; max-width: calc(50% - 10px); background: rgba(255,255,255,0.9); border: 1px solid var(--border-color, #eee); border-radius: 12px; padding: 0; overflow: hidden; transition: .3s; }
.sg-faq-item:hover { box-shadow: 0 6px 20px rgba(0,0,0,0.04); }
.sg-faq-item summary { font-weight: 600; font-size: 15px; cursor: pointer; outline: none; list-style: none; position: relative; padding: 20px; color: var(--main-color); }
.sg-faq-item summary span { font-size: 18px; font-weight: 800; color: var(--theme-color, #007aff); margin-right: 6px; opacity: 0.5; }
.sg-faq-item summary::-webkit-details-marker { display: none; }
.sg-faq-item summary::after { content: '+'; position: absolute; right: 20px; top: 20px; font-size: 20px; color: var(--muted-color); transition: .3s; line-height: 1; }
.sg-faq-item[open] summary::after { content: '-'; transform: rotate(180deg); }
.sg-faq-a { padding: 0 20px 20px; color: var(--muted-color, #666); font-size: 13px; line-height: 1.6; border-top: 1px dashed var(--border-color); margin-top: -5px; padding-top: 15px; }

.zib-widget-env-check { width: 19px; height: 0px; opacity: 0.11; position: absolute; pointer-events: none; z-index: -1; }

.dark-theme .sg-dash-content { background: rgba(255,255,255,0.03); border-color: rgba(255,255,255,0.08); }
.dark-theme .sg-intro-card { background: rgba(255,255,255,0.03); border-color: rgba(255,255,255,0.08) !important; }
.dark-theme .sg-user-profile-card { background: rgba(255,255,255,0.03); border-color: rgba(255,255,255,0.08); }
.dark-theme .sg-dash-nav-item { background: rgba(255,255,255,0.03); }
.dark-theme .sg-dash-nav-item.active { background: rgba(255,255,255,0.08) !important; border-color: var(--sg-vip-color) !important; }
.dark-theme .sg-pkg-option { background: rgba(255,255,255,0.02); border-color: rgba(255,255,255,0.05); }
.dark-theme .sg-pkg-option.active { background: rgba(255,255,255,0.08) !important; border-color: var(--sg-vip-color) !important; }
.dark-theme .sg-showcase-card { background: var(--main-bg-color) !important; border: 1px solid rgba(255,255,255,0.1) !important; }
.dark-theme .sg-table-wrap { background: rgba(255,255,255,0.03); border-color: rgba(255,255,255,0.08); }
.dark-theme .sg-table tbody tr:hover { background-color: rgba(255, 255, 255, 0.03); }
.dark-theme .sg-th-badge { background: rgba(255,255,255,0.05) !important; border-color: rgba(255,255,255,0.1) !important; }
.dark-theme .sg-tag-color { background: rgba(255,255,255,0.08) !important; color: #ccc !important; }
.dark-theme .sg-tag-gray-cross { background: rgba(255,255,255,0.05); color: #aaa; }
.dark-theme .sg-tag-red { background: rgba(255,59,48,0.15); color: #ff5f57; }
.dark-theme .sg-review-card { background: rgba(255,255,255,0.03); border-color: rgba(255,255,255,0.08); }
.dark-theme .sg-faq-item { background: rgba(255,255,255,0.03); border-color: rgba(255,255,255,0.08); }
.dark-theme .sg-alert-box { background: rgba(255,255,255,0.05) !important; border-color: rgba(255,255,255,0.1) !important; }
.dark-theme .sg-pkg-opt-tag { filter: brightness(0.8); }

.dark-theme .sg-dash-title, 
.dark-theme .sg-section-title, 
.dark-theme .sg-pane-header h2, 
.dark-theme .sg-nav-info h4, 
.dark-theme .sg-intro-text h3,
.dark-theme .sg-rev-info h4,
.dark-theme .sg-faq-item summary,
.dark-theme .sg-table th.sg-th-left, 
.dark-theme .sg-table td.sg-td-left { color: #f1f1f1 !important; text-shadow: none !important; }
.dark-theme .sg-pane-header p, 
.dark-theme .sg-section-subtitle, 
.dark-theme .sg-rev-content,
.dark-theme .sg-faq-a { color: #a1a1aa !important; text-shadow: none !important; }
.dark-theme .sg-ambient-glow { opacity: 0.15; }

@media (max-width: 992px) {
    .sg-dashboard-wrap { flex-direction: column; }
    .sg-dash-sidebar { width: 100%; position: static; gap: 15px; }
    .sg-dash-navs { flex-direction: column; padding-bottom: 0; margin-bottom: 10px; }
    .sg-dash-nav-item { min-width: auto; }
    .sg-pane-body { flex-direction: column; }
    .sg-pane-right { width: 100%; }
    .sg-showcase-card { position: static; }
}
@media (max-width: 850px) {
    .sg-faq-item { max-width: 100%; }
}
@media (max-width: 600px) {
    .sg-table th.sg-th-left, .sg-table td.sg-td-left { width: 120px; padding-left: 15px; }
    .sg-review-card { width: 280px; } 
}