/* ═══════════════════════════════════════════════════════════
   Nexus 星核 — 全局样式（紫黑主题）
   统一主页 / 经销商页 / 下载页 / 账号页的视觉风格
   ═══════════════════════════════════════════════════════════ */

:root {
    --primary-color:   #b794ff;
    --secondary-color: #7a3ff2;
    --accent-color:    #f05bff;
    --bg-color:        #06020f;
    --bg-color-2:      #13072d;
    --glass-bg:        rgba(45, 20, 89, 0.34);
    --text-color:      #f6f2ff;
    --muted-color:     #b6a8d9;
    --border-color:    rgba(183, 148, 255, 0.25);
    --success:         #a3e635;
    --danger:          #f87171;
    --warning:         #fbbf24;
    --navbar-bg:       rgba(6, 2, 15, 0.92);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background:
        radial-gradient(circle at 15% 15%, rgba(240, 91, 255, 0.14), transparent 38%),
        radial-gradient(circle at 80% 80%, rgba(122, 63, 242, 0.18), transparent 42%),
        linear-gradient(135deg, var(--bg-color) 0%, var(--bg-color-2) 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ── 玻璃效果 ── */
.glass-effect {
    background: var(--glass-bg) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
}

/* ── 顶部公告条（管理后台可配置） ── */
.announcement-bar {
    background: linear-gradient(90deg, rgba(122, 63, 242, 0.9), rgba(240, 91, 255, 0.9));
    color: #fff;
    text-align: center;
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 18px rgba(240, 91, 255, 0.35);
    position: relative;
    z-index: 1001;
}

/* ── 导航栏 ── */
.navbar {
    position: sticky;
    top: 0;
    background: var(--navbar-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    padding: 0.85rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.logo {
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-shadow: 0 0 18px rgba(183, 148, 255, 0.55);
    white-space: nowrap;
}

.logo-icon {
    width: 38px;
    height: 38px;
    display: block;
    border-radius: 8px;
    filter: drop-shadow(0 0 10px rgba(240, 91, 255, 0.6));
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 0.4rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--muted-color);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    color: #fff;
    background: rgba(183, 148, 255, 0.12);
    box-shadow: 0 0 14px rgba(183, 148, 255, 0.25);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 6px;
    padding: 6px;
}

.menu-line {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.menu-toggle.active .menu-line:nth-child(1) { transform: rotate(45deg) translateY(9px); }
.menu-toggle.active .menu-line:nth-child(2) { opacity: 0; }
.menu-toggle.active .menu-line:nth-child(3) { transform: rotate(-45deg) translateY(-9px); }

/* ── Hero 区 ── */
.hero {
    background:
        radial-gradient(ellipse at center, rgba(240, 91, 255, 0.10) 0%, transparent 60%),
        radial-gradient(circle at right, rgba(122, 63, 242, 0.16) 0%, transparent 50%);
    padding: 7rem 1.5rem;
    min-height: 92vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(240, 91, 255, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    top: -120px;
    right: -120px;
    filter: blur(60px);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(122, 63, 242, 0.14) 0%, transparent 70%);
    border-radius: 50%;
    bottom: -150px;
    left: -60px;
    filter: blur(60px);
    pointer-events: none;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    align-items: center;
    justify-items: center;
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1150px;
    margin: 0 auto;
}

.hero-content { max-width: 480px; text-align: left; }

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 1.2rem;
    background: linear-gradient(120deg, #f0d6ff 0%, var(--primary-color) 45%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 900;
    letter-spacing: 3px;
    line-height: 1.15;
    filter: drop-shadow(0 0 24px rgba(240, 91, 255, 0.35));
}

.neon-title { font-weight: 900; letter-spacing: 2px; }

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 2.4rem;
    letter-spacing: 2px;
    text-shadow: 0 0 20px rgba(183, 148, 255, 0.45);
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.hero-image {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 620px;
}

.product-showcase {
    width: 100%;
    background: linear-gradient(135deg, rgba(240, 91, 255, 0.08) 0%, rgba(122, 63, 242, 0.12) 100%);
    border-radius: 24px;
    border: 2px solid rgba(183, 148, 255, 0.35);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 80px rgba(240, 91, 255, 0.25), 0 0 40px rgba(122, 63, 242, 0.2) inset;
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
}

.product-showcase:hover {
    box-shadow: 0 0 100px rgba(240, 91, 255, 0.4), 0 0 50px rgba(122, 63, 242, 0.3) inset;
    transform: translateY(-5px);
}

.menu-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 22px;
    object-fit: contain;
    filter: drop-shadow(0 0 30px rgba(240, 91, 255, 0.35));
}

/* ── 按钮 ── */
.btn {
    padding: 0.85rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.3, 0.7, 0.4, 1);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: relative;
    letter-spacing: 0.5px;
    white-space: nowrap;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.btn:active { transform: translateY(2px); }

.btn-primary {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--accent-color) 100%);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 4px 16px rgba(122, 63, 242, 0.45), 0 0 30px rgba(240, 91, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 26px rgba(240, 91, 255, 0.55), 0 0 50px rgba(240, 91, 255, 0.35);
    filter: brightness(1.12);
}

.btn-secondary {
    background: rgba(183, 148, 255, 0.06);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 15px rgba(183, 148, 255, 0.25) inset;
    backdrop-filter: blur(8px);
}

.btn-secondary:hover {
    background: rgba(183, 148, 255, 0.16);
    color: #fff;
    box-shadow: 0 0 25px rgba(240, 91, 255, 0.4);
    transform: translateY(-3px);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background: rgba(183, 148, 255, 0.14);
    box-shadow: 0 0 18px rgba(240, 91, 255, 0.35);
}

.neon-btn { box-shadow: 0 0 10px rgba(240, 91, 255, 0.5); }

.btn-block {
    width: 100%;
    display: block;
    box-sizing: border-box;
    font-size: 1rem;
    padding: 1.1rem 2.5rem;
}

/* ── 区块标题 ── */
.section-title {
    text-align: center;
    font-size: 2.6rem;
    font-weight: 900;
    letter-spacing: 2px;
    margin-bottom: 3.5rem;
    color: var(--primary-color);
    text-shadow: 0 0 30px rgba(183, 148, 255, 0.35);
    position: relative;
    padding-bottom: 1.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 220px;
    height: 2.5px;
    background: linear-gradient(90deg, transparent, var(--primary-color), var(--accent-color), var(--primary-color), transparent);
    box-shadow: 0 0 20px rgba(240, 91, 255, 0.5);
}

/* ── 特点区 ── */
.features {
    padding: 5.5rem 1.5rem;
    border-top: 1px solid rgba(183, 148, 255, 0.15);
    border-bottom: 1px solid rgba(183, 148, 255, 0.15);
    background: rgba(6, 2, 15, 0.5);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 980px;
    margin: 0 auto;
}

.feature-card {
    border-radius: 18px;
    padding: 2.2rem 1.8rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(20, 10, 40, 0.5);
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 0 40px rgba(240, 91, 255, 0.18), 0 4px 20px rgba(0, 0, 0, 0.5);
    border-color: rgba(240, 91, 255, 0.5);
}

.card-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(183, 148, 255, 0.1);
    border: 1px solid rgba(183, 148, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    box-shadow: 0 0 18px rgba(240, 91, 255, 0.2);
}

.feature-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.8rem;
    font-size: 1.35rem;
    text-shadow: 0 0 14px rgba(183, 148, 255, 0.4);
}

.feature-card p {
    color: var(--muted-color);
    font-size: 0.95rem;
    line-height: 1.65;
}

/* ── 价格区 ── */
.pricing {
    padding: 5.5rem 1.5rem;
    background: rgba(6, 2, 15, 0.5);
}

.pricing-grid {
    display: flex;
    justify-content: center;
    max-width: 720px;
    margin: 0 auto;
}

.pricing-card {
    border-radius: 22px;
    padding: 3rem 2.5rem;
    border: 1px solid rgba(240, 91, 255, 0.35);
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
    position: relative;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.55);
    width: 100%;
    background: linear-gradient(160deg, rgba(24, 14, 42, 0.85) 0%, rgba(12, 8, 24, 0.85) 100%);
}

.pricing-card:hover {
    border-color: rgba(240, 91, 255, 0.6);
    box-shadow: 0 0 60px rgba(240, 91, 255, 0.2), 0 8px 40px rgba(0, 0, 0, 0.6);
    transform: translateY(-4px);
}

.pricing-card.featured {
    border-color: rgba(240, 91, 255, 0.55);
    box-shadow: 0 0 80px rgba(240, 91, 255, 0.15), 0 8px 50px rgba(0, 0, 0, 0.6);
}

.pricing-header { text-align: center; margin-bottom: 2.2rem; }

.pricing-header h3 {
    font-size: 1.7rem;
    color: #fff;
    margin-bottom: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.pricing-subtitle {
    color: var(--muted-color);
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.price-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2.2rem;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.price-item {
    padding: 1.4rem 0.8rem;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    transition: all 0.25s ease;
}

.price-item:hover {
    background: rgba(240, 91, 255, 0.1);
    border-color: rgba(240, 91, 255, 0.4);
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(240, 91, 255, 0.15);
}

.price {
    font-size: 2rem;
    color: var(--primary-color);
    font-weight: 800;
    line-height: 1.15;
    text-shadow: 0 0 20px rgba(183, 148, 255, 0.5);
}

.price span {
    font-size: 0.75rem;
    color: var(--muted-color);
    font-weight: 400;
    display: block;
    margin-top: 0.4rem;
    letter-spacing: 0.5px;
}

.pricing-features {
    list-style: none;
    margin: 0 0 2.2rem;
    padding: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.pricing-features li {
    padding: 0.9rem 0;
    color: var(--muted-color);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pricing-features li:last-child { border-bottom: none; }

.feature-icon {
    color: var(--primary-color);
    font-size: 0.75rem;
    flex-shrink: 0;
}

.pricing-action { text-align: center; }

/* ── 经销商区 ── */
.dealers-section {
    padding: 4rem 1.5rem;
    background: rgba(6, 2, 15, 0.5);
}

.dealers-section-title {
    text-align: center;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--muted-color);
    margin: 3rem 0 1.6rem;
    position: relative;
}

.dealers-section-title::before,
.dealers-section-title::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 22%;
    height: 1px;
    background: rgba(255, 255, 255, 0.12);
}

.dealers-section-title::before { right: calc(50% + 8rem); }
.dealers-section-title::after  { left: calc(50% + 8rem); }

.dealers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.6rem;
    max-width: 1200px;
    margin: 0 auto;
}

.dealers-grid.chief-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 380px));
    justify-content: center;
}

.dealers-grid.sub-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 240px));
    justify-content: center;
    gap: 1.3rem;
}

.dealer-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(183, 148, 255, 0.25);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.dealer-card:hover {
    border-color: rgba(240, 91, 255, 0.5);
    box-shadow: 0 0 30px rgba(240, 91, 255, 0.2);
    transform: translateY(-5px);
}

.dealer-avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(240, 91, 255, 0.1) 0%, rgba(122, 63, 242, 0.1) 100%);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(240, 91, 255, 0.3);
    font-size: 2rem;
    color: #f0f9ff;
    overflow: hidden;
}

.dealer-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.dealer-name {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 0.3rem;
    font-weight: 600;
}

.dealer-type {
    font-size: 0.82rem;
    color: var(--muted-color);
    background: rgba(240, 91, 255, 0.1);
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    margin-bottom: 1rem;
}

.dealer-actions {
    display: flex;
    gap: 0.7rem;
    width: 100%;
    flex-direction: column;
    margin-top: auto;
}

.dealer-btn {
    flex: 1;
    padding: 0.6rem 1rem;
    border: 1px solid rgba(240, 91, 255, 0.4);
    background: rgba(240, 91, 255, 0.08);
    color: var(--primary-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-block;
    text-align: center;
    font-family: inherit;
}

.dealer-btn:hover {
    background: rgba(240, 91, 255, 0.16);
    border-color: rgba(240, 91, 255, 0.7);
    box-shadow: 0 0 15px rgba(240, 91, 255, 0.2);
    color: #fff;
}

.dealer-btn.primary {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--secondary-color) 100%);
    border-color: var(--accent-color);
    color: #fff;
}

.dealer-btn.primary:hover {
    box-shadow: 0 0 18px rgba(240, 91, 255, 0.4);
    filter: brightness(1.1);
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--secondary-color) 100%);
}

/* 总经销商高亮 */
.dealer-card.chief {
    border-color: rgba(255, 200, 0, 0.45);
    background: linear-gradient(135deg, rgba(255, 200, 0, 0.07) 0%, rgba(255, 100, 0, 0.05) 100%);
    box-shadow: 0 0 40px rgba(255, 180, 0, 0.12);
    position: relative;
}

.dealer-card.chief::before {
    content: '★ 市场总经销商';
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(90deg, #ffb700, #ff7a00);
    color: #000;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 2px;
    padding: 0.25rem 1.1rem;
    border-radius: 0 0 10px 10px;
    white-space: nowrap;
}

.dealer-card.chief:hover {
    border-color: rgba(255, 200, 0, 0.75);
    box-shadow: 0 0 50px rgba(255, 180, 0, 0.25);
}

.dealer-card.chief .dealer-name { color: #ffcc00; }
.dealer-card.chief .dealer-avatar { border-color: rgba(255, 200, 0, 0.5); }
.dealer-card.chief .dealer-type { background: rgba(255, 180, 0, 0.15); color: #ffcc00; }
.dealer-card.chief .dealer-btn.primary {
    background: linear-gradient(135deg, #ffb700 0%, #ff7a00 100%);
    border-color: #ffb700;
    color: #000;
    font-weight: 800;
}

.dealer-card.chief .dealer-btn.primary:hover { box-shadow: 0 0 20px rgba(255, 180, 0, 0.5); }

.dealers-divider {
    max-width: 800px;
    margin: 3rem auto 0;
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* ── 页脚 ── */
.footer {
    background: rgba(4, 1, 10, 0.9);
    border-top: 1px solid rgba(183, 148, 255, 0.15);
    color: var(--muted-color);
    text-align: center;
    padding: 2.5rem 1rem;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

/* ── 动画 ── */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── 响应式 ── */
@media (max-width: 1024px) {
    .hero-container { grid-template-columns: 1fr; gap: 2.5rem; }
    .hero-image { order: -1; max-width: 480px; }
    .hero-content h1 { font-size: 3rem; }
    .hero-subtitle { font-size: 1.25rem; }
    .features-grid { grid-template-columns: 1fr; max-width: 520px; }
    .section-title { font-size: 2.1rem; }
    .pricing-card { padding: 2.5rem 1.5rem; }
    .price-grid { max-width: 520px; }
}

@media (max-width: 768px) {
    .container { padding: 0 16px; }
    .navbar { padding: 0.7rem 0; }
    .navbar .container { position: relative; }
    .menu-toggle { display: flex; }
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(6, 2, 15, 0.97);
        backdrop-filter: blur(12px);
        flex-direction: column;
        gap: 0;
        padding: 0.5rem 0;
        border-top: 1px solid rgba(183, 148, 255, 0.35);
        border-bottom: 1px solid rgba(183, 148, 255, 0.35);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    }
    .nav-links.active { max-height: 320px; }
    .nav-links li { width: 100%; }
    .nav-links a {
        display: block;
        padding: 0.9rem 1.5rem;
        border-bottom: 1px solid rgba(183, 148, 255, 0.1);
        border-radius: 0;
    }
    .nav-links a:hover { background: rgba(183, 148, 255, 0.1); }
    .hero { padding: 4.5rem 1rem; }
    .hero-content h1 { font-size: 2.1rem; }
    .hero-subtitle { font-size: 1.05rem; }
    .section-title { font-size: 1.7rem; margin-bottom: 2.2rem; }
    .hero-buttons { flex-direction: column; align-items: stretch; }
    .btn { width: 100%; }
    .features, .pricing, .dealers-section { padding: 3.5rem 1rem; }
    .price-grid { grid-template-columns: 1fr; max-width: 360px; }
}
