/* ==========================================
   DewSecure 纯净版全局样式 (V10.0 终极丝滑版)
   ========================================== */

/* 🌟 原生黑科技：开启多页应用(MPA)的平滑过渡，导航栏不闪不跳 */
@view-transition {
    navigation: auto;
}
header {
    view-transition-name: site-header; /* 让 Header 在页面跳转时保持静止 */
}

:root {
    --bg-color: #050505;
    --text-main: #f0f6fc;
    --text-muted: #8b949e;
    --accent-color: #58a6ff;
    --border-color: rgba(255, 255, 255, 0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }

html {
    overflow-y: scroll !important;
    scrollbar-gutter: stable !important;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: 80px;
    padding-left: calc(100vw - 100%);
    background-image: 
        radial-gradient(circle at 15% 0%, rgba(88, 166, 255, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 85% 30%, rgba(139, 92, 246, 0.12) 0%, transparent 40%);
    background-attachment: fixed;
    background-repeat: no-repeat;
}

a { color: inherit; text-decoration: none; }
.hidden { display: none !important; }

/* 🌟 核心修复：多语言加载前的全站透明度护盾，彻底杜绝中文残影 */
html.i18n-loading body {
    opacity: 0 !important;
}
html[data-i18n-ready="true"] body {
    opacity: 1 !important;
    transition: opacity 0.2s ease-out;
}

/* ==========================================
   Header 三列 Grid 布局
   ========================================== */
header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 0 40px;
    height: 80px;
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    box-sizing: border-box;
    background: rgba(5, 5, 5, 0.6);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 9999;
}

header .logo {
    justify-self: start;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 28px;
    font-weight: 900;
    letter-spacing: -1px;
}
header .logo img { height: 42px; width: auto; object-fit: contain; }

header nav {
    justify-self: center;
    display: flex;
    gap: 24px;
    margin: 0;
}
header nav a { color: #8b949e; font-size: 14px; transition: color 0.2s; }
header nav a:hover, header nav a.active { color: #fff; }

header .header-right {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 15px;
}

header .lang-switch {
    display: flex;
    align-items: center;
    position: relative;
}

/* 下拉菜单 */
.lang-dropdown {
    position: absolute;
    top: 100%; right: 0;
    background: rgba(20, 20, 40, 0.9);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    min-width: 150px;
    padding: 8px 0;
    list-style: none;
    margin-top: 10px;
    opacity: 0; visibility: hidden; transform: translateY(10px);
    transition: all 0.25s;
    z-index: 200;
}
.lang-switch:hover .lang-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-dropdown li { padding: 10px 20px; font-size: 14px; color: var(--text-muted); cursor: pointer; }
.lang-dropdown li:hover { background: rgba(255,255,255,0.1); color: #fff; }

/* ==========================================
   通用 UI 组件
   ========================================== */
.card {
    background: rgba(22, 27, 34, 0.5);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 40px;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    transition: all 0.3s ease;
}

.btn-primary {
    background: #fff; color: #000; padding: 10px 24px; border-radius: 100px; font-weight: 600;
    display: inline-flex; align-items: center; justify-content: center; border: none; cursor: pointer; transition: all 0.3s;
}
.btn-primary:hover { box-shadow: 0 0 20px rgba(255, 255, 255, 0.4); transform: scale(1.02); }

/* ==========================================
   主页专属样式 (绝对定位锁死，绝不跳动)
   ========================================== */
.hero {
    min-height: calc(100vh - 80px);
    display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center;
    padding: 80px 20px 60px;
}
.hero h1 { font-size: 64px; font-weight: 800; margin-bottom: 24px; letter-spacing: -2px; background: linear-gradient(180deg, #fff 0%, #a1a1aa 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero p { font-size: 20px; color: var(--text-muted); max-width: 680px; margin-bottom: 40px; }

.ds-wrap { display: flex; flex-direction: column; align-items: center; margin-top: 30px; width: 100%; max-width: 900px; }
.ds-icons { display: flex; gap: 15px; margin-bottom: 30px; flex-wrap: wrap; justify-content: center; }
.ds-icon { width: 55px; height: 55px; border-radius: 14px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); display: flex; align-items: center; justify-content: center; font-size: 26px; color: #8b949e; cursor: pointer; transition: all 0.3s; }
.ds-icon:hover { transform: scale(1.1) translateY(-3px); color: #fff; }
.ds-icon.active { color: #fff; background: rgba(88, 166, 255, 0.2); border-color: #58a6ff; box-shadow: 0 0 15px rgba(88, 166, 255, 0.3); transform: scale(1.05); }

/* 🌟 核心修复：绝对定位，锁定尺寸，配合 JS 防止文案撑开盒子 */
.ds-box { 
    text-align: center; 
    background: rgba(22, 27, 34, 0.5); 
    border: 1px solid rgba(255, 255, 255, 0.1); 
    border-radius: 24px; 
    backdrop-filter: blur(24px); 
    width: 100%; 
    min-width: 650px; 
    height: 320px; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
}
.ds-t { 
    font-size: 28px; 
    font-weight: 800; 
    color: #fff; 
    margin-bottom: 12px; 
}

.ds-d { 
    font-size: 16px; 
    color: #8b949e; 
    line-height: 1.6; 
    margin-bottom: 30px; 
    /* 🌟 关键修复：预留固定高度，防止文字加载时盒子变高 */
    min-height: 50px; 
    opacity: 0; 
    transition: opacity 0.3s; 
    text-align: center;
}

.ds-btn { 
    display: inline-flex; 
    align-items: center; 
    background: #fff; 
    color: #000; 
    padding: 8px 24px 8px 8px; 
    border-radius: 100px; 
    font-weight: 700; 
    font-size: 16px; 
    transition: all 0.3s; 
}

.ds-btn:hover { 
    transform: scale(1.05); 
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.3); 
}

.ds-btn-ic { width: 40px; height: 40px; background: #0d1117; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-right: 15px; color: #fff; font-size: 20px; }

.features { padding: 100px 40px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; max-width: 1200px; margin: 0 auto; }
.card:hover { transform: translateY(-5px); background: rgba(255, 255, 255, 0.04); }
.card h3 { font-size: 20px; font-weight: 600; margin-bottom: 12px; color: #fff; }
.card p { color: var(--text-muted); font-size: 15px; }

.transparency-card { margin: 40px auto; max-width: 1000px; padding: 24px 32px; background: rgba(88, 166, 255, 0.05); border: 1px solid rgba(88, 166, 255, 0.2); border-radius: 16px; display: flex; gap: 16px; align-items: flex-start; }
.transparency-card h4 { color: #58a6ff; font-size: 18px; margin-bottom: 8px; }
.transparency-card p { color: #8b949e; font-size: 14px; margin: 0; }

.site-footer { margin-top: 80px; padding: 40px 20px; border-top: 1px solid rgba(255, 255, 255, 0.05); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 15px; }
.footer-github-link { display: inline-flex; align-items: center; gap: 10px; color: #8b949e; font-size: 15px; background: rgba(255, 255, 255, 0.03); padding: 10px 20px; border-radius: 100px; border: 1px solid rgba(255, 255, 255, 0.08); transition: all 0.3s; }
.footer-github-link:hover { color: #fff; background: rgba(255, 255, 255, 0.1); transform: translateY(-2px); }
.footer-copy { color: #484f58; font-size: 13px; }

/* 其他页面样式（定价、登录、控制台等）保持之前的完整版即可，这里为了简洁省略部分未改动的代码，请确保你的 style.css 包含之前所有的其余样式 */
/* (请直接使用你现有的定价、指南、Dashboard等样式粘贴到这里，不要删除) */
/* ==========================================
   定价页专属样式
   ========================================== */
.pricing-wrapper { min-height: 100vh; display: flex; flex-direction: column; align-items: center; padding: 80px 20px; }
.pricing-title { font-size: 48px; font-weight: 800; color: #fff; margin-bottom: 60px; letter-spacing: -1px; }
.pricing-grid { display: flex; gap: 30px; justify-content: center; flex-wrap: wrap; max-width: 1200px; width: 100%; }
.price-card { flex: 1; min-width: 300px; max-width: 360px; background: rgba(22, 27, 34, 0.4); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 24px; padding: 40px; backdrop-filter: blur(24px); text-align: center; transition: transform 0.3s, border-color 0.3s; position: relative; }
.price-card:hover { transform: translateY(-8px); border-color: rgba(255, 255, 255, 0.2); }
.price-card.highlight { border-color: #58a6ff; box-shadow: 0 0 40px rgba(88, 166, 255, 0.15); background: rgba(22, 27, 34, 0.6); }
.price-card h3 { font-size: 22px; color: #fff; margin-bottom: 10px; }
.price-amount { font-size: 42px; font-weight: 800; color: #fff; margin-bottom: 20px; }
.price-amount span { font-size: 16px; color: #8b949e; font-weight: 400; }
.price-desc { font-size: 14px; color: #8b949e; margin-bottom: 30px; min-height: 68px; }
.price-features { list-style: none; text-align: left; margin-bottom: 30px; color: #c9d1d9; font-size: 15px; padding-left: 0; }
.price-features li { margin-bottom: 12px; display: flex; align-items: flex-start; gap: 10px; }
.price-features li i { color: #58a6ff; margin-top: 4px; }
.btn-pricing { display: block; width: 100%; padding: 14px; border-radius: 100px; font-size: 16px; font-weight: 700; text-align: center; transition: all 0.3s; cursor: pointer; border: none; }
.btn-free { background: rgba(255, 255, 255, 0.05); color: #fff; border: 1px solid rgba(255, 255, 255, 0.1); }
.btn-free:hover { background: rgba(255, 255, 255, 0.1); }
.btn-pro { background: #58a6ff; color: #000; }
.btn-pro:hover { background: #79b8ff; box-shadow: 0 0 20px rgba(88, 166, 255, 0.4); }
.btn-fam { background: #fff; color: #000; }
.btn-fam:hover { background: #e6edf3; }

.tooltip-container { position: relative; display: inline-block; margin-left: 6px; cursor: help; }
.tooltip-icon { color: #58a6ff; font-size: 16px; margin-left: 6px; vertical-align: middle; transition: all 0.2s; }
.tooltip-container:hover .tooltip-icon { color: #79b8ff; transform: scale(1.15); }
.tooltip-content { visibility: hidden; opacity: 0; width: 300px; background: rgba(13, 17, 23, 0.95); backdrop-filter: blur(16px); border: 1px solid rgba(255, 255, 255, 0.15); color: #c9d1d9; text-align: left; border-radius: 12px; padding: 16px; position: absolute; z-index: 100; bottom: 150%; left: 50%; transform: translateX(-50%) translateY(10px); transition: all 0.3s; font-size: 13px; line-height: 1.6; box-shadow: 0 10px 30px rgba(0,0,0,0.5); pointer-events: none; }
.tooltip-container:hover .tooltip-content { visibility: visible; opacity: 1; transform: translateX(-50%) translateY(0); }
.tooltip-content h5 { color: #58a6ff; font-size: 14px; margin-bottom: 8px; margin-top: 0; }

.comparison-section { max-width: 1000px; margin: 80px auto 40px; width: 100%; }
.comparison-header { text-align: center; margin-bottom: 40px; }
.comparison-header h2 { font-size: 32px; color: #fff; font-weight: 800; margin-bottom: 10px; }
.comparison-header p { color: #8b949e; font-size: 16px; }
.comparison-table { background: rgba(22, 27, 34, 0.3); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 20px; overflow: hidden; backdrop-filter: blur(24px); }
.comp-category { background: rgba(255, 255, 255, 0.03); color: #58a6ff; font-size: 16px; font-weight: 700; padding: 16px 30px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); border-top: 1px solid rgba(255, 255, 255, 0.08); }
.comp-row { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; align-items: center; padding: 20px 30px; border-bottom: 1px solid rgba(255, 255, 255, 0.05); transition: background 0.2s; }
.comp-row:hover { background: rgba(255, 255, 255, 0.02); }
.comp-row:last-child { border-bottom: none; }
.comp-feature strong { display: block; color: #e6edf3; font-size: 16px; margin-bottom: 4px; }
.comp-feature span { display: block; color: #8b949e; font-size: 13px; margin-top: 4px; line-height: 1.4; }
.comp-val { text-align: center; font-size: 18px; }
.comp-val.yes { color: #3fb950; }
.comp-val.no { color: #f85149; opacity: 0.6; }
.comp-val.text-val { color: #c9d1d9; font-size: 14px; font-weight: 500; }
.comp-table-header { background: rgba(0, 0, 0, 0.2); border-bottom: 1px solid rgba(255, 255, 255, 0.1); padding: 15px 30px; }
.comp-table-header .comp-val { font-size: 18px; font-weight: 700; color: #fff; }

/* ==========================================
   指南、关于专属
   ========================================== */
.guide-wrapper { max-width: 1000px; margin: 60px auto; padding: 0 20px; }
.guide-header { text-align: center; margin-bottom: 60px; }
.guide-header h1 { font-size: 48px; color: #fff; margin-bottom: 16px; font-weight: 800; }
.guide-header p { font-size: 20px; color: #8b949e; }
.accordion-card { background: rgba(22, 27, 34, 0.4); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 16px; margin-bottom: 20px; backdrop-filter: blur(24px); overflow: hidden; transition: all 0.3s; }
.accordion-header { padding: 24px 30px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; color: #fff; font-weight: 600; }
.accordion-header h2 { display: flex; align-items: center; gap: 12px; margin: 0; color: #58a6ff; font-size: 22px; }
.accordion-header .faq-q { color: #fff; font-size: 18px; font-weight: 600; margin: 0; }
.accordion-icon { transition: transform 0.3s; color: #8b949e; font-size: 18px; }
.accordion-content { max-height: 0; overflow: hidden; transition: max-height 0.4s ease-out, padding 0.4s ease; padding: 0 30px; background: rgba(0,0,0,0.2); border-top: 1px solid transparent; }
.accordion-content p, .accordion-content .faq-a { color: #c9d1d9; font-size: 16px; line-height: 1.8; margin-top: 15px; }
.accordion-card.active .accordion-icon { transform: rotate(180deg); }
.accordion-card.active .accordion-content { max-height: 1000px; padding: 0 30px 30px; border-top-color: rgba(255,255,255,0.05); }
.faq-section { margin-top: 80px; }
.faq-title { font-size: 32px; color: #fff; font-weight: 700; margin-bottom: 30px; text-align: center; display: flex; align-items: center; justify-content: center; gap: 12px; }
.img-placeholder { width: 100%; height: 250px; background: rgba(255, 255, 255, 0.03); border: 2px dashed rgba(255, 255, 255, 0.15); border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #484f58; margin: 20px 0 30px; }
.img-placeholder i { font-size: 40px; margin-bottom: 10px; }

.about-container { max-width: 800px; margin: 60px auto 80px; padding: 60px; background: rgba(255, 255, 255, 0.02); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 24px; backdrop-filter: blur(24px); }
.about-header { text-align: center; margin-bottom: 50px; }
.about-header h1 { font-size: 48px; color: #fff; margin-bottom: 16px; font-weight: 800; background: linear-gradient(180deg, #fff 0%, #a1a1aa 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.about-header p { font-size: 20px; color: #58a6ff; font-weight: 500; }
.about-content p { font-size: 16px; color: #c9d1d9; line-height: 1.8; margin-bottom: 24px; text-align: justify; }
.disclaimer-section { margin-top: 60px; padding-top: 30px; border-top: 1px dashed rgba(255, 255, 255, 0.1); }
.disclaimer-section h3 { color: #ff7b72; font-size: 20px; margin-bottom: 20px; }
.disclaimer-section p { color: #8b949e; font-size: 13px; line-height: 1.8; margin-bottom: 16px; background: rgba(255, 255, 255, 0.02); padding: 16px; border-radius: 8px; border-left: 3px solid rgba(255, 123, 114, 0.5); }

/* ==========================================
   更新日志 (Update) 专属样式
   ========================================== */
.update-container { max-width: 800px; margin: 60px auto; padding: 40px; background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.08); border-radius: 24px; backdrop-filter: blur(20px); }
.translate-tip { display: flex; justify-content: space-between; align-items: center; font-size: 14px; color: #58a6ff; margin-bottom: 40px; background: rgba(88,166,255,0.1); padding: 12px 16px; border-radius: 8px; border: 1px solid rgba(88,166,255,0.2); }
#google_translate_element { display: none; }
#my-lang-select { background-color: #0d1117; color: #fff; border: 1px solid #30363d; padding: 8px 30px 8px 12px; border-radius: 6px; outline: none; cursor: pointer; font-size: 14px; appearance: none; background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23cbd5e1%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E"); background-repeat: no-repeat; background-position: right 10px top 50%; background-size: 10px auto; width: 150px; }
body > .skiptranslate { display: none !important; }
.update-container h1 { font-size: 36px; color: #fff; margin-bottom: 30px; }
.log-entry { border-bottom: 1px solid rgba(255,255,255,0.08); padding-bottom: 24px; margin-bottom: 24px; }
.log-entry:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.log-date { font-size: 14px; color: #8b949e; margin-bottom: 8px; font-family: monospace; }
.log-title { font-size: 22px; color: #fff; margin-bottom: 12px; font-weight: 700; }
.log-content { color: #c9d1d9; font-size: 15px; line-height: 1.7; }

/* ==========================================
   登录页、Dashboard专属
   ========================================== */
.login-layout { display: flex; min-height: calc(100vh - 80px); width: 100%; }
.login-left { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 10%; background: radial-gradient(circle at 0% 50%, rgba(88, 166, 255, 0.08) 0%, transparent 60%); border-right: 1px solid rgba(255, 255, 255, 0.03); }
.login-right { flex: 1; display: flex; align-items: center; justify-content: center; padding: 40px; }
.login-card { width: 100%; max-width: 420px; background: rgba(22, 27, 34, 0.4); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 24px; padding: 40px; backdrop-filter: blur(24px); }
.login-left h1 { font-size: 48px; color: #fff; margin-bottom: 20px; font-weight: 800; line-height: 1.2; }
.login-left p { font-size: 18px; color: #8b949e; line-height: 1.6; max-width: 400px; }
.login-card h2 { font-size: 24px; color: #fff; margin-bottom: 8px; }
.login-card p.sub { font-size: 14px; color: #8b949e; margin-bottom: 30px; }
.input-group { margin-bottom: 20px; }
.input-group label { display: block; font-size: 13px; color: #c9d1d9; margin-bottom: 8px; }
.input-wrapper { position: relative; }
.input-wrapper i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: #8b949e; }
.input-wrapper input { width: 100%; height: 48px; padding: 0 16px 0 44px; background: rgba(0, 0, 0, 0.2); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 12px; color: #fff; outline: none; transition: 0.3s; }
.input-wrapper input:focus { border-color: #58a6ff; }
.btn-login { width: 100%; height: 48px; background: #fff; color: #000; border-radius: 12px; font-size: 16px; font-weight: 700; cursor: pointer; border: none; margin-top: 10px; transition: 0.3s; }
.btn-login:hover { background: #e6edf3; }
.btn-login:disabled { opacity: 0.5; cursor: not-allowed; }
.divider { display: flex; align-items: center; text-align: center; margin: 30px 0; color: #8b949e; font-size: 13px; }
.divider::before, .divider::after { content: ''; flex: 1; border-bottom: 1px solid rgba(255,255,255,0.1); }
.divider::before { margin-right: 15px; } .divider::after { margin-left: 15px; }
.oauth-btns { display: flex; gap: 15px; }
.oauth-btn { flex: 1; height: 48px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 12px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 18px; cursor: pointer; transition: 0.2s; }
.oauth-btn:hover { background: rgba(255,255,255,0.1); }
.trial-badge { margin-top: 25px; padding: 12px; background: rgba(88,166,255,0.1); border-radius: 8px; text-align: center; font-size: 13px; color: #58a6ff; }
.error-msg { color: #f85149; font-size: 13px; margin-top: 5px; display: none; }

.dashboard-container { max-width: 1200px; margin: 40px auto; padding: 0 20px; display: grid; grid-template-columns: 2fr 1fr; gap: 24px; }
.status-badge { display: inline-block; padding: 6px 12px; border-radius: 20px; font-size: 13px; font-weight: 600; background: rgba(88,166,255,0.15); color: #58a6ff; border: 1px solid rgba(88,166,255,0.3); }
.status-pro { background: rgba(255, 196, 0, 0.15); color: #ffc400; border-color: rgba(255, 196, 0, 0.3); }
.data-row { display: flex; justify-content: space-between; padding: 15px 0; border-bottom: 1px solid rgba(255,255,255,0.05); }
.data-row:last-child { border-bottom: none; }
.data-label { color: #8b949e; }
.data-value { color: #fff; font-weight: 600; }
.btn { padding: 10px 20px; border-radius: 10px; font-weight: 600; cursor: pointer; border: none; transition: 0.3s; font-size: 14px; }
.btn-primary { background: #fff; color: #000; }
.btn-primary:hover { background: #e6edf3; }
.btn-danger { background: rgba(248, 81, 73, 0.1); color: #f85149; border: 1px solid rgba(248, 81, 73, 0.3); padding: 8px 16px; }
.btn-danger:hover { background: rgba(248, 81, 73, 0.2); }
.invite-box { display: flex; gap: 10px; margin-top: 15px; }
.invite-input { flex: 1; background: rgba(0,0,0,0.3); border: 1px dashed rgba(88,166,255,0.5); border-radius: 10px; padding: 12px; color: #58a6ff; font-family: monospace; font-size: 16px; letter-spacing: 2px; text-align: center; }
.notification-list { list-style: none; padding: 0; max-height: 400px; overflow-y: auto; margin: 0; }
.notification-item { padding: 15px; border-bottom: 1px solid rgba(255,255,255,0.05); font-size: 14px; }
.notification-item.unread { background: rgba(88,166,255,0.05); }
.notification-time { font-size: 12px; color: #8b949e; margin-top: 5px; }
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.7); backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center; z-index: 1000; opacity: 0; pointer-events: none; transition: 0.3s; }
.modal-overlay.active { opacity: 1; pointer-events: all; }
.modal-content { background: rgba(22, 27, 34, 0.9); border: 1px solid rgba(255,255,255,0.1); border-radius: 20px; padding: 30px; max-width: 450px; width: 90%; }
.modal-content h3 { margin-bottom: 15px; color: #fff; }
.modal-content textarea { width: 100%; height: 100px; background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.1); border-radius: 10px; padding: 10px; color: #fff; margin-top: 10px; resize: none; outline: none; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }
.card-completed { position: relative; pointer-events: none; }
.card-completed::after { content: "感谢您的分享！已达奖励上限。请留意通知中心，我们会定期发放福利。"; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(22,27,34,0.85); backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center; text-align: center; padding: 30px; color: #58a6ff; font-weight: bold; font-size: 16px; border-radius: 20px; z-index: 10; }
.skeleton-text { color: #8b949e; font-size: 14px; animation: pulse 1.5s infinite; }
@keyframes pulse { 0% { opacity: .6; } 50% { opacity: 1; } 100% { opacity: .6; } }

/* ==========================================
   响应式
   ========================================== */
@media (max-width: 1100px) {
    header { display: flex; flex-wrap: wrap; height: auto; padding: 15px 20px; justify-content: space-between; }
    header .logo { order: 1; width: auto; }
    header .header-right { order: 2; width: auto; }
    header nav { order: 3; width: 100%; justify-content: center; margin-top: 15px; }
    body { padding-top: 140px !important; }
}
@media (max-width: 900px) {
    .dashboard-container { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .hero h1 { font-size: 42px; }
    .hero p { font-size: 16px; }
    header .logo { font-size: 22px; gap: 8px; }
    header .logo img { height: 32px; }
    header nav { gap: 10px 15px; flex-wrap: wrap; }
    body { padding-top: 140px !important; }
    .ds-box { min-width: 100%; height: 360px; }
    .ds-t { font-size: 22px; top: 40px; }
    .ds-d { font-size: 14px; top: 90px; height: 60px; }
    .ds-btn { bottom: 30px; }
    .features { padding: 60px 20px; }
    .comp-row { grid-template-columns: 1.5fr 1fr 1fr 1fr; padding: 16px 15px; }
    .comp-feature span { display: none; }
    .comp-feature strong { font-size: 14px; }
    .comp-val { font-size: 16px; }
    .comp-val.text-val { font-size: 12px; }
    .price-card { min-width: 100%; margin-bottom: 20px; }
    .login-layout { flex-direction: column; }
    .login-left { padding: 40px 20px; text-align: center; border-right: none; border-bottom: 1px solid rgba(255,255,255,0.05); }
    .login-left h1 { font-size: 32px; }
    .login-right { padding: 30px 20px; }
    .site-footer { flex-direction: column; gap: 10px; text-align: center; }
}

/* ==========================================
   Pricing 页面的邀请返利横幅
   ========================================== */
.invite-promo-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, rgba(88, 166, 255, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    border: 1px solid rgba(88, 166, 255, 0.3);
    border-radius: 20px;
    padding: 24px 40px;
    margin: 60px auto;
    max-width: 1000px;
    width: 100%;
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.invite-promo-banner:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(88, 166, 255, 0.15);
}

.promo-icon {
    font-size: 40px;
    margin-right: 24px;
}

.promo-text {
    flex: 1;
}

.promo-text h3 {
    color: #fff;
    font-size: 20px;
    margin-bottom: 6px;
    font-weight: 800;
}

.promo-text p {
    color: #8b949e;
    font-size: 15px;
    margin: 0;
}

.btn-promo {
    background: #fff;
    color: #000;
    padding: 12px 24px;
    border-radius: 100px;
    font-weight: 700;
    font-size: 15px;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
    margin-left: 20px;
}

.btn-promo:hover {
    background: #e6edf3;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

@media (max-width: 768px) {
    .invite-promo-banner {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
    }
    .promo-icon { margin: 0 0 15px 0; }
    .btn-promo { margin: 20px 0 0 0; width: 100%; }
}

/* 强制修复 OTP 占位符颜色和防浏览器填充 */
#otpInput::placeholder,
#emailInput::placeholder {
    color: #484f58 !important;
    opacity: 1 !important;
    font-weight: normal !important;
}
#otpInput {
    -webkit-text-security: none;
    font-family: monospace !important;
}
.lang-dropdown {
    max-height: 400px;
    overflow-y: auto;
}
/* 隐藏 details 原生小三角 */
details > summary {
    list-style: none;
}
details > summary::-webkit-details-marker {
    display: none;
}
/* 展开时图标旋转 */
details[open] .accordion-icon {
    transform: rotate(180deg);
}

/* Footer legal links (privacy / terms) */
.footer-legal { color: #8b949e; font-size: 13px; display: flex; align-items: center; gap: 8px; }
.footer-legal a { transition: color 0.2s; }
.footer-legal a:hover { color: #fff; }
.footer-sep { color: #30363d; }

/* =========================================
   通知中心 (Notification Center)
   ========================================= */
.notification-list::-webkit-scrollbar {
    width: 6px;
}
.notification-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}
.notification-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

.notification-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: background 0.2s ease;
    position: relative;
}
.notification-item:hover {
    background: rgba(255, 255, 255, 0.03);
}
.notification-item.unread {
    background: rgba(88, 166, 255, 0.05);
}
.notification-item.unread::before {
    content: '';
    position: absolute;
    left: 0;
    top: 15%;
    height: 70%;
    width: 3px;
    background: #58a6ff;
    border-radius: 0 4px 4px 0;
}

.notif-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}
.notif-icon.system { background: rgba(88, 166, 255, 0.15); color: #58a6ff; }
.notif-icon.billing { background: rgba(35, 134, 54, 0.15); color: #3fb950; }
.notif-icon.security { background: rgba(218, 54, 51, 0.15); color: #f85149; }
.notif-icon.family { background: rgba(163, 113, 247, 0.15); color: #a371f7; }
.notif-icon.referral { background: rgba(210, 153, 34, 0.15); color: #d29922; }

.notif-content {
    flex: 1;
    min-width: 0;
}
.notif-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 5px;
}
.notif-title {
    font-weight: 600;
    color: #e6edf3;
    font-size: 14px;
}
.notif-time {
    font-size: 12px;
    color: #8b949e;
    white-space: nowrap;
}
.notif-desc {
    font-size: 13px;
    color: #8b949e;
    line-height: 1.5;
}
.notif-highlight {
    color: #58a6ff;
    font-weight: 600;
}
.notif-link {
    display: inline-block;
    margin-top: 8px;
    font-size: 13px;
    color: #58a6ff;
    text-decoration: none;
    font-weight: 500;
}
.notif-link:hover {
    text-decoration: underline;
}

.notif-delete-btn {
    background: none;
    border: none;
    color: #8b949e;
    cursor: pointer;
    opacity: 0;
    transition: 0.2s;
    padding: 5px;
    align-self: flex-start;
}
.notification-item:hover .notif-delete-btn {
    opacity: 1;
}
.notif-delete-btn:hover {
    color: #f85149;
}

/* 修复通知中心高度及滚动条 */
.dashboard-container .right-column {
    position: sticky;
    top: 100px;
    height: calc(100vh - 120px); /* 满屏高度减去导航栏，防止被切断 */
    display: flex;
    flex-direction: column;
}

.dashboard-container .right-column .card {
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden; /* 防止卡片被内部元素撑破 */
}

#notificationList {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 5px;
    margin-bottom: 0;
}

/* 🌟 终极修复：防止右侧通知卡片被严重挤压，强制横向排布 */
.dashboard-container {
    grid-template-columns: minmax(0, 2fr) minmax(340px, 1fr) !important; 
}
.notif-title {
    white-space: normal !important; 
    word-break: break-word;
    line-height: 1.4;
}
.notif-header {
    align-items: flex-start !important;
}
.notif-time {
    flex-shrink: 0;
    margin-left: 10px;
}

/* 🌟 强制干掉任何导致竖排的 Word-Break */
.notification-item, .notif-title, .notif-desc {
    writing-mode: horizontal-tb !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
}
.notif-content {
    min-width: 150px !important; /* 给内容区一个最小宽度 */
}

/* 🌟 终极 UI 微调：完美对齐与滚动条贴边 */

/* 1. 取消右侧卡片的 sticky 悬浮偏移，让它和左侧顶部完全对齐 */
.dashboard-container .right-column {
    position: relative !important;
    top: 0 !important;
    height: auto !important; /* 让高度由网格自动控制 */
    margin-top: 0 !important;
}

/* 2. 让右侧卡片内部的高度自适应，且去掉多余的 padding 防止滚动条悬空 */
.dashboard-container .right-column .card {
    height: calc(100vh - 160px) !important; /* 根据 header 和底部留白重新计算高度 */
    padding-right: 0 !important; /* 去掉右侧自带 padding，让滚动条贴边 */
}

/* 3. 列表区域贴近卡片右侧边缘 */
#notificationList {
    padding-right: 0 !important;
    padding-left: 0 !important; /* 保持左侧紧凑 */
    margin-right: 0 !important;
}

/* 4. 确保每一条通知的右侧有足够的内边距，文字不会贴到滚动条上 */
.notification-item {
    padding-right: 20px !important; 
    border-right: none !important;
}

/* 5. 微调顶部 Header（通知中心标题和未读角标）的右侧内边距，使其与滚动条对齐 */
.dashboard-container .right-column .card > div:first-child {
    padding-right: 20px !important; 
}

/* =========================================
   🌟 彻底修复右侧通知卡片的高度延伸与对齐
   ========================================= */

/* 1. 强制左右两列等高 */
.dashboard-container {
    align-items: stretch !important;
}

.dashboard-container .right-column {
    position: relative !important;
    top: 0 !important;
    height: 100% !important; /* 撑满整个网格高度 */
    display: flex !important;
    flex-direction: column !important;
    margin-top: 0 !important;
}

/* 2. 让卡片本身占满高度，并去掉右下角的多余 padding，让列表能真正贴底 */
.dashboard-container .right-column .card {
    height: 100% !important; /* 彻底废除 calc() */
    padding: 30px 0 0 30px !important; 
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
}

/* 3. 补齐头部标题栏的右边距，防止文字贴边 */
.dashboard-container .right-column .card > div:first-child {
    padding-right: 30px !important;
}

/* 4. 让列表完全撑满剩余空间，并将滚动条紧贴右侧边缘 */
#notificationList {
    flex: 1 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding-right: 5px !important; 
    padding-bottom: 20px !important; /* 底部留一点点呼吸空间，防止最后一条被切断 */
    margin-bottom: 0 !important;
}

/* 5. 确保第一条信息不会被卡在卡片顶部 */
#notificationList .notification-item:first-child {
    margin-top: 5px !important;
}

/* =========================================
   🌟 彻底释放通知列表的高度封印
   ========================================= */

/* 移除旧的固定高度限制 */
.notification-list {
    max-height: none !important; 
}

/* 确保父容器完全撑开 */
.dashboard-container .right-column .card {
    max-height: none !important;
}

/* 列表区域真正利用 flex: 1 填满卡片剩余的全部空间 */
#notificationList {
    flex: 1 1 auto !important;
    height: 100% !important; 
    max-height: none !important;
    display: flex;
    flex-direction: column;
    overflow-y: auto !important;
}

/* 让日期分割线和列表项不要被 flex 垂直拉伸变形 */
#notificationList > li {
    flex-shrink: 0;
}

/* 🌟 限制通知卡片最大高度，防止过长撑破页面 */
#notificationList {
    max-height: calc(100vh - 380px) !important;
    overflow-y: auto !important;
}

/* =========================================
   🌟 终极修复：右侧通知卡片完美自适应高度
   ========================================= */
.dashboard-container {
    align-items: stretch !important; 
}

.dashboard-container .right-column {
    position: relative !important;
    top: 0 !important;
    height: 100% !important; 
    display: flex !important;
    flex-direction: column !important;
}

.dashboard-container .right-column .card {
    height: 100% !important; 
    display: flex !important;
    flex-direction: column !important;
    padding-bottom: 0 !important; 
    overflow: hidden !important;
}

#notificationList {
    flex: 1 !important;
    max-height: none !important; /* 彻底废除死板限制 */
    overflow-y: auto !important;
    padding-bottom: 20px !important;
}

/* =========================================
   🌟 终极布局：右侧通知卡片与左侧等高 + 内部丝滑滚动
   ========================================= */
.dashboard-container {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(340px, 1fr);
    align-items: stretch; /* 强制左右等高 */
}

.dashboard-container .right-column {
    display: flex;
    flex-direction: column;
    height: 100%; /* 撑满网格分配的高度 */
}

.dashboard-container .right-column .card {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden; /* 必须：防止内部撑破卡片 */
    min-height: 0;    /* 必须：打破 flexbox 无法收缩的限制 */
    padding: 30px 0 0 30px; 
}

.dashboard-container .right-column .card > div:first-child {
    padding-right: 30px;
}

#notificationList {
    flex: 1;
    overflow-y: auto;
    min-height: 0;    /* 必须：允许滚动条在内部生效 */
    padding-right: 5px;
    padding-bottom: 20px;
}

#notificationList > li {
    flex-shrink: 0;
}

/* 防止文字竖排和过度挤压 */
.notif-title {
    white-space: normal !important; 
    word-break: break-word;
    line-height: 1.4;
}
.notif-header {
    align-items: flex-start !important;
}
.notif-time {
    flex-shrink: 0;
    margin-left: 10px;
}
.notification-item {
    padding-right: 20px !important; 
}

/* =========================================
   🌟 终极方案：右侧通知栏独立滚动，不拖累整页高度
   ========================================= */

/* 1. 让 Grid 格子不要被内部内容强行撑大 */
.dashboard-container {
    align-items: start !important; 
}

/* 2. 右侧栏采用吸顶模式，永远固定在一屏高度 */
.dashboard-container .right-column {
    position: sticky !important;
    top: 100px !important; /* 距离顶部的间距 */
    height: calc(100vh - 120px) !important; /* 强制一屏高 */
    max-height: calc(100vh - 120px) !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important; /* 外层绝对不溢出 */
}

/* 3. 卡片填满右侧栏 */
.dashboard-container .right-column .card {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    padding: 30px 0 0 30px !important;
}

/* 4. 列表内部使用剩余空间，独立滚动 */
#notificationList {
    flex: 1 !important;
    overflow-y: auto !important;
    min-height: 0 !important; /* 唤醒滚动条的必需属性 */
    padding-right: 5px !important;
    padding-bottom: 20px !important;
}

/* =========================================
   🌟 终极修正：完美顶部对齐 + 内部独立滚动
   ========================================= */

/* 1. 让左侧和右侧的网格子项顶部绝对对齐 */
.dashboard-container {
    display: grid !important;
    grid-template-columns: minmax(0, 2fr) minmax(340px, 1fr) !important;
    align-items: start !important; /* 核心：让顶部对齐 */
    gap: 24px !important;
}

/* 2. 右侧列放弃吸顶悬浮，回归文档流 */
.dashboard-container .right-column {
    position: relative !important; 
    top: 0 !important;
    height: auto !important; 
    display: flex !important;
    flex-direction: column !important;
}

/* 3. 右侧卡片：限制最大高度为屏幕高度，从而实现内部滚动 */
.dashboard-container .right-column .card {
    height: auto !important;
    max-height: calc(100vh - 160px) !important; /* 防止无限拉长，最高一屏 */
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important; 
    padding: 30px 0 0 30px !important;
}

/* 4. 列表内部利用 flex 撑满，超出时生成平滑滚动条 */
#notificationList {
    flex: 1 !important;
    overflow-y: auto !important;
    min-height: 0 !important; 
    padding-right: 5px !important;
    padding-bottom: 20px !important;
}

/* =========================================
   🌟 终极响应式优化：家庭组/输入框防挤压
   ========================================= */
@media (max-width: 950px) {
    .dashboard-container {
        grid-template-columns: 1fr !important; /* 屏幕变窄时变成单列，完美解决挤压 */
    }
}

/* 让输入框容器允许自然换行 */
.family-input-row {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap; 
}
.family-input-row input {
    flex: 1;
    min-width: 150px; /* 给输入框留个底线 */
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 10px;
    color: #fff;
    outline: none;
}
.family-input-row button {
    white-space: nowrap;
    flex-shrink: 0;
}
