/* ========================================
   Nova Cleo 全局样式
   主题：深邃星空蓝 + 银河蓝色系 + 流星动图
   搭配：银白色金属质感
   字体：全局微软雅黑
   ======================================== */

/* CSS 变量 */
:root {
    --nc-deep-blue: #0a0e27;
    --nc-galaxy-blue: #1a1f4e;
    --nc-star-blue: #2d3a8c;
    --nc-meteor-blue: #4a6cf7;
    --nc-silver: #c0c8e0;
    --nc-silver-light: #e8ecf4;
    --nc-white: #ffffff;
    --nc-gold: #d4a853;
    --nc-accent: #6c8cff;
    --nc-text: #e0e4f0;
    --nc-text-dark: #1a1f3a;
    --nc-shadow: 0 4px 24px rgba(10, 14, 39, 0.4);
    --nc-glow: 0 0 20px rgba(74, 108, 247, 0.3);
    --nc-radius: 8px;
    --nc-transition: all 0.3s ease;
}

/* 全局重置 */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Microsoft YaHei', '微软雅黑', 'PingFang SC', 'Helvetica Neue', sans-serif;
    background: var(--nc-deep-blue);
    color: var(--nc-text);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* 星空背景动画 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(45, 58, 140, 0.3) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(74, 108, 247, 0.2) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(26, 31, 78, 0.4) 0%, transparent 50%),
        linear-gradient(180deg, var(--nc-deep-blue) 0%, var(--nc-galaxy-blue) 50%, var(--nc-deep-blue) 100%);
    z-index: -2;
}

/* 流星动画 */
body::after {
    content: '';
    position: fixed;
    top: -100px;
    left: 60%;
    width: 2px;
    height: 80px;
    background: linear-gradient(to bottom, transparent, rgba(192, 200, 224, 0.8), transparent);
    z-index: -1;
    animation: meteor1 4s ease-in infinite;
    box-shadow: 0 0 6px rgba(192, 200, 224, 0.5);
}

@keyframes meteor1 {
    0% { transform: translate(0, 0) rotate(-35deg); opacity: 0; }
    10% { opacity: 1; }
    30% { transform: translate(-300px, 400px) rotate(-35deg); opacity: 0; }
    100% { transform: translate(-300px, 400px) rotate(-35deg); opacity: 0; }
}

/* 第二颗流星 */
.nc-stars-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

/* ========== 顶部导航栏 ========== */
.nc-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(10, 14, 39, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(74, 108, 247, 0.2);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.nc-header-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.nc-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--nc-silver-light);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 3px;
}

.nc-logo-icon {
    font-size: 28px;
    color: var(--nc-meteor-blue);
    animation: logoGlow 2s ease-in-out infinite;
}

@keyframes logoGlow {
    0%, 100% { text-shadow: 0 0 10px rgba(74, 108, 247, 0.5); }
    50% { text-shadow: 0 0 25px rgba(74, 108, 247, 0.9); }
}

.nc-logo-text {
    background: linear-gradient(135deg, var(--nc-silver-light), var(--nc-meteor-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nc-nav {
    display: flex;
    gap: 8px;
}

.nc-nav-item {
    color: var(--nc-silver);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: var(--nc-radius);
    font-size: 14px;
    transition: var(--nc-transition);
    position: relative;
}

.nc-nav-item:hover {
    color: var(--nc-white);
    background: rgba(74, 108, 247, 0.15);
}

.nc-nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--nc-meteor-blue);
    transition: width 0.3s ease;
}

.nc-nav-item:hover::after {
    width: 60%;
}

.nc-nav-special {
    color: var(--nc-gold);
    border: 1px solid rgba(212, 168, 83, 0.3);
}

.nc-nav-special:hover {
    border-color: var(--nc-gold);
    background: rgba(212, 168, 83, 0.1);
}

.nc-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nc-btn-icon {
    background: none;
    border: none;
    color: var(--nc-silver);
    font-size: 18px;
    cursor: pointer;
    padding: 6px;
    border-radius: 50%;
    transition: var(--nc-transition);
    text-decoration: none;
    position: relative;
}

.nc-btn-icon:hover {
    color: var(--nc-white);
    background: rgba(74, 108, 247, 0.15);
}

.nc-cart-count {
    position: absolute;
    top: -2px;
    right: -4px;
    background: var(--nc-meteor-blue);
    color: white;
    font-size: 10px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nc-btn-outline {
    background: transparent;
    border: 1px solid var(--nc-silver);
    color: var(--nc-silver);
    padding: 6px 16px;
    border-radius: var(--nc-radius);
    cursor: pointer;
    font-size: 13px;
    transition: var(--nc-transition);
}

.nc-btn-outline:hover {
    border-color: var(--nc-meteor-blue);
    color: var(--nc-white);
    background: rgba(74, 108, 247, 0.1);
}

.nc-btn-lang {
    background: rgba(74, 108, 247, 0.1);
    border: 1px solid rgba(74, 108, 247, 0.3);
    color: var(--nc-silver);
    padding: 6px 12px;
    border-radius: var(--nc-radius);
    cursor: pointer;
    font-size: 12px;
}

/* ========== 首屏轮播 ========== */
.nc-hero {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    height: 520px;
    overflow: hidden;
    border-radius: 0 0 24px 24px;
}

.nc-hero-slider {
    height: 100%;
    position: relative;
}

.nc-hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 80px;
    opacity: 0;
    transition: opacity 0.8s ease;
    background: linear-gradient(135deg, rgba(26, 31, 78, 0.6) 0%, rgba(10, 14, 39, 0.8) 50%, rgba(45, 58, 140, 0.4) 100%);
}

.nc-hero-slide.active {
    opacity: 1;
}

.nc-hero-content {
    max-width: 500px;
    z-index: 2;
}

.nc-hero-tag {
    display: inline-block;
    background: rgba(74, 108, 247, 0.2);
    border: 1px solid rgba(74, 108, 247, 0.4);
    color: var(--nc-meteor-blue);
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 13px;
    margin-bottom: 16px;
}

.nc-hero-content h1 {
    font-size: 42px;
    font-weight: 700;
    color: var(--nc-white);
    margin-bottom: 12px;
    line-height: 1.2;
    text-shadow: 0 0 30px rgba(74, 108, 247, 0.3);
}

.nc-hero-content p {
    font-size: 16px;
    color: var(--nc-silver);
    margin-bottom: 28px;
    line-height: 1.6;
}

.nc-btn-primary {
    display: inline-block;
    background: linear-gradient(135deg, var(--nc-meteor-blue), var(--nc-star-blue));
    color: white;
    padding: 12px 32px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: var(--nc-transition);
    box-shadow: 0 4px 20px rgba(74, 108, 247, 0.4);
}

.nc-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(74, 108, 247, 0.6);
}

.nc-hero-visual {
    width: 400px;
    height: 400px;
    position: relative;
}

.nc-hero-ring, .nc-hero-diamond, .nc-hero-earring, .nc-hero-necklace {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(192, 200, 224, 0.3), rgba(74, 108, 247, 0.1), transparent);
    box-shadow: 0 0 60px rgba(74, 108, 247, 0.2), inset 0 0 60px rgba(192, 200, 224, 0.05);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.nc-hero-dots {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}

.nc-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(192, 200, 224, 0.3);
    cursor: pointer;
    transition: var(--nc-transition);
}

.nc-dot.active {
    background: var(--nc-meteor-blue);
    box-shadow: 0 0 10px rgba(74, 108, 247, 0.6);
}

.nc-hero-prev, .nc-hero-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(10, 14, 39, 0.6);
    border: 1px solid rgba(192, 200, 224, 0.2);
    color: var(--nc-silver);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    z-index: 3;
    transition: var(--nc-transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.nc-hero-prev { left: 20px; }
.nc-hero-next { right: 20px; }

.nc-hero-prev:hover, .nc-hero-next:hover {
    background: rgba(74, 108, 247, 0.3);
    border-color: var(--nc-meteor-blue);
    color: white;
}

/* ========== 区块标题 ========== */
.nc-section-title {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    color: var(--nc-white);
    margin-bottom: 40px;
    letter-spacing: 2px;
}

.nc-title-star {
    color: var(--nc-meteor-blue);
    font-size: 20px;
}

/* ========== 四大品类 ========== */
.nc-categories {
    max-width: 1400px;
    margin: 60px auto;
    padding: 0 24px;
}

.nc-category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.nc-category-card {
    background: linear-gradient(145deg, rgba(26, 31, 78, 0.6), rgba(45, 58, 140, 0.3));
    border: 1px solid rgba(74, 108, 247, 0.2);
    border-radius: 16px;
    padding: 40px 24px;
    text-align: center;
    text-decoration: none;
    color: var(--nc-text);
    transition: var(--nc-transition);
    position: relative;
    overflow: hidden;
}

.nc-category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 0%, rgba(74, 108, 247, 0.15), transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nc-category-card:hover {
    transform: translateY(-6px);
    border-color: var(--nc-meteor-blue);
    box-shadow: 0 12px 40px rgba(74, 108, 247, 0.2);
}

.nc-category-card:hover::before {
    opacity: 1;
}

.nc-category-icon {
    font-size: 48px;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.nc-category-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.nc-category-card p {
    font-size: 13px;
    color: var(--nc-silver);
    position: relative;
    z-index: 1;
}

.nc-category-arrow {
    display: inline-block;
    margin-top: 12px;
    font-size: 18px;
    color: var(--nc-meteor-blue);
    transition: transform 0.3s ease;
    position: relative;
    z-index: 1;
}

.nc-category-card:hover .nc-category-arrow {
    transform: translateX(6px);
}

/* ========== 特色专区 ========== */
.nc-featured {
    max-width: 1400px;
    margin: 0 auto 60px;
    padding: 0 24px;
}

.nc-featured-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.nc-featured-card {
    height: 200px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(26, 31, 78, 0.8), rgba(45, 58, 140, 0.4));
    border: 1px solid rgba(74, 108, 247, 0.2);
    display: flex;
    align-items: flex-end;
    text-decoration: none;
    transition: var(--nc-transition);
    overflow: hidden;
    position: relative;
}

.nc-featured-card:hover {
    border-color: var(--nc-meteor-blue);
    box-shadow: 0 8px 30px rgba(74, 108, 247, 0.25);
    transform: translateY(-4px);
}

.nc-featured-overlay {
    padding: 24px;
    width: 100%;
    background: linear-gradient(to top, rgba(10, 14, 39, 0.9), transparent);
}

.nc-featured-overlay h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--nc-white);
    margin-bottom: 4px;
}

.nc-featured-overlay p {
    font-size: 13px;
    color: var(--nc-silver);
}

/* ========== 直播区域 ========== */
.nc-live-section {
    max-width: 1400px;
    margin: 0 auto 60px;
    padding: 0 24px;
}

.nc-live-badge {
    font-size: 14px;
    margin-left: 12px;
    color: #8899aa;
}

.nc-live-container {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    min-height: 300px;
}

.nc-live-placeholder {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, rgba(26, 31, 78, 0.4), rgba(45, 58, 140, 0.2));
    border: 2px dashed rgba(74, 108, 247, 0.3);
    border-radius: 16px;
    padding: 60px;
}

.nc-live-placeholder-content {
    text-align: center;
}

.nc-live-placeholder-icon {
    font-size: 64px;
    margin-bottom: 16px;
}

.nc-live-placeholder h3 {
    font-size: 22px;
    color: var(--nc-silver);
    margin-bottom: 8px;
}

.nc-live-placeholder p {
    color: var(--nc-silver);
    opacity: 0.7;
}

.nc-live-window {
    flex: 1;
    min-width: 280px;
    max-width: 340px;
    background: rgba(26, 31, 78, 0.6);
    border: 1px solid rgba(74, 108, 247, 0.3);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--nc-transition);
}

.nc-live-window:hover {
    border-color: var(--nc-meteor-blue);
    box-shadow: 0 8px 30px rgba(74, 108, 247, 0.2);
}

.nc-live-video {
    height: 200px;
    background: linear-gradient(135deg, #0a0e27, #1a1f4e);
    display: flex;
    align-items: center;
    justify-content: center;
}

.nc-live-video-placeholder {
    color: var(--nc-silver);
    font-size: 16px;
    text-align: center;
}

.nc-live-info {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(74, 108, 247, 0.15);
}

.nc-live-host-name {
    font-weight: 700;
    color: var(--nc-white);
    font-size: 14px;
}

.nc-live-category {
    font-size: 12px;
    color: var(--nc-gold);
    background: rgba(212, 168, 83, 0.1);
    padding: 2px 10px;
    border-radius: 10px;
}

.nc-live-viewers {
    margin-left: auto;
    font-size: 12px;
    color: var(--nc-silver);
}

.nc-live-chat {
    padding: 12px;
}

.nc-chat-messages {
    height: 120px;
    overflow-y: auto;
    margin-bottom: 8px;
    font-size: 12px;
    color: var(--nc-silver);
}

.nc-chat-input {
    display: flex;
    gap: 8px;
}

.nc-chat-input input {
    flex: 1;
    background: rgba(10, 14, 39, 0.6);
    border: 1px solid rgba(74, 108, 247, 0.2);
    color: var(--nc-text);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    outline: none;
}

.nc-chat-input input:focus {
    border-color: var(--nc-meteor-blue);
}

.nc-chat-input button {
    background: var(--nc-meteor-blue);
    border: none;
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
}

.nc-live-hosts {
    text-align: center;
    margin-top: 20px;
    padding: 12px;
    background: rgba(26, 31, 78, 0.3);
    border-radius: 12px;
}

.nc-live-hosts-label {
    color: var(--nc-silver);
    font-size: 13px;
    margin-right: 8px;
}

.nc-host-link {
    display: inline-block;
    color: var(--nc-meteor-blue);
    text-decoration: none;
    padding: 4px 12px;
    border: 1px solid rgba(74, 108, 247, 0.3);
    border-radius: 16px;
    font-size: 12px;
    margin: 0 4px;
    transition: var(--nc-transition);
}

.nc-host-link:hover {
    background: rgba(74, 108, 247, 0.15);
    border-color: var(--nc-meteor-blue);
}

/* ========== 底部 ========== */
.nc-footer {
    background: rgba(10, 14, 39, 0.95);
    border-top: 1px solid rgba(74, 108, 247, 0.2);
    padding: 60px 24px 24px;
    margin-top: 60px;
}

.nc-footer-main {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 2.5fr;
    gap: 60px;
}

.nc-footer-brand h3 {
    font-size: 22px;
    color: var(--nc-white);
    margin-bottom: 8px;
    letter-spacing: 3px;
}

.nc-footer-slogan {
    font-size: 16px;
    color: var(--nc-meteor-blue);
    margin-bottom: 20px;
    font-weight: 600;
}

.nc-footer-story {
    font-size: 13px;
    color: var(--nc-silver);
    line-height: 2;
    opacity: 0.8;
}

.nc-footer-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.nc-footer-col h4 {
    font-size: 14px;
    color: var(--nc-white);
    margin-bottom: 16px;
    font-weight: 600;
}

.nc-footer-col a {
    display: block;
    color: var(--nc-silver);
    text-decoration: none;
    font-size: 13px;
    padding: 4px 0;
    transition: var(--nc-transition);
    opacity: 0.7;
}

.nc-footer-col a:hover {
    color: var(--nc-meteor-blue);
    opacity: 1;
}

.nc-footer-bottom {
    max-width: 1400px;
    margin: 40px auto 0;
    padding-top: 20px;
    border-top: 1px solid rgba(74, 108, 247, 0.1);
    text-align: center;
    font-size: 12px;
    color: var(--nc-silver);
    opacity: 0.5;
}

/* ========== 悬浮按钮 ========== */
.nc-floating-actions {
    position: fixed;
    right: 24px;
    bottom: 80px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 999;
}

.nc-float-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(26, 31, 78, 0.9);
    border: 1px solid rgba(74, 108, 247, 0.3);
    color: var(--nc-silver);
    font-size: 20px;
    cursor: pointer;
    transition: var(--nc-transition);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.nc-float-btn:hover {
    background: rgba(74, 108, 247, 0.3);
    border-color: var(--nc-meteor-blue);
    color: white;
    transform: scale(1.1);
}

/* ========== 响应式 ========== */
@media (max-width: 1024px) {
    .nc-category-grid { grid-template-columns: repeat(2, 1fr); }
    .nc-featured-grid { grid-template-columns: repeat(2, 1fr); }
    .nc-footer-main { grid-template-columns: 1fr; }
    .nc-footer-links { grid-template-columns: repeat(2, 1fr); }
    .nc-hero-slide { padding: 0 40px; }
    .nc-hero-content h1 { font-size: 32px; }
    .nc-nav { display: none; }
}

@media (max-width: 640px) {
    .nc-category-grid { grid-template-columns: 1fr; }
    .nc-featured-grid { grid-template-columns: 1fr; }
    .nc-hero { height: 360px; }
    .nc-hero-slide { padding: 0 20px; flex-direction: column; text-align: center; }
    .nc-hero-content h1 { font-size: 24px; }
    .nc-hero-visual { width: 200px; height: 200px; }
    .nc-live-window { min-width: 100%; max-width: 100%; }
}
