/* ===== 全局样式 - 暗黑科技风 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-card: rgba(255, 255, 255, 0.03);
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --text-muted: #606070;
    --accent-purple: #8b5cf6;
    --accent-blue: #3b82f6;
    --accent-cyan: #06b6d4;
    --accent-pink: #ec4899;
    --gradient-1: linear-gradient(135deg, #8b5cf6, #3b82f6);
    --gradient-2: linear-gradient(135deg, #06b6d4, #8b5cf6);
    --gradient-3: linear-gradient(135deg, #ec4899, #8b5cf6);
    --border-color: rgba(255, 255, 255, 0.08);
    --shadow-glow: 0 0 40px rgba(139, 92, 246, 0.3);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* ===== 动态背景光效 ===== */
.bg-effects {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 20s ease-in-out infinite;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: var(--accent-purple);
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: var(--accent-blue);
    bottom: 20%;
    left: -100px;
    animation-delay: -7s;
}

.orb-3 {
    width: 250px;
    height: 250px;
    background: var(--accent-cyan);
    top: 50%;
    right: 20%;
    animation-delay: -14s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
}

/* ===== 导航栏 ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(10, 10, 15, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
}

.nav-logo {
    font-size: 20px;
    font-weight: 700;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
    position: relative;
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-1);
    transition: width 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

/* ===== 主内容区 ===== */
.main-content {
    position: relative;
    z-index: 1;
    padding-top: 80px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

/* ===== Hero区 ===== */
.hero {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 100px 0;
}

.hero-greeting {
    font-size: 18px;
    color: var(--accent-cyan);
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeInUp 1s ease 0.2s forwards;
}

.hero-title {
    font-size: 72px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    opacity: 0;
    animation: fadeInUp 1s ease 0.4s forwards;
}

.hero-title .gradient-text {
    background: var(--gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 40px;
    opacity: 0;
    animation: fadeInUp 1s ease 0.6s forwards;
}

.hero-tags {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    opacity: 0;
    animation: fadeInUp 1s ease 0.8s forwards;
}

.tag {
    padding: 8px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-size: 13px;
    color: var(--text-secondary);
    backdrop-filter: blur(10px);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== 区块标题 ===== */
.section {
    padding: 80px 0;
}

.section-header {
    margin-bottom: 50px;
}

.section-label {
    font-size: 14px;
    color: var(--accent-cyan);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.section-title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 15px;
}

.section-desc {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 600px;
}

/* ===== 项目卡片 ===== */
.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 40px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: block;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-1);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s;
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: rgba(139, 92, 246, 0.3);
    box-shadow: var(--shadow-glow);
}

.project-card:hover::before {
    transform: scaleX(1);
}

/* 突出卡片 - 小说 */
.project-featured {
    padding: 60px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(59, 130, 246, 0.05));
    border-color: rgba(139, 92, 246, 0.2);
}

.project-featured .project-badge {
    display: inline-block;
    padding: 6px 16px;
    background: var(--gradient-3);
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 20px;
}

.project-featured .project-title {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 15px;
    background: var(--gradient-3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 重点卡片 - 股票 */
.project-highlight {
    padding: 50px;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.1), rgba(59, 130, 246, 0.05));
    border-color: rgba(6, 182, 212, 0.2);
}

.project-highlight .project-badge {
    display: inline-block;
    padding: 6px 16px;
    background: var(--gradient-2);
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 20px;
}

.project-highlight .project-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 15px;
    background: var(--gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.project-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.project-meta span {
    font-size: 13px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.project-desc {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 30px;
}

.project-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: var(--gradient-1);
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    color: white;
    text-decoration: none;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.project-cta:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.4);
}

/* 普通项目网格 */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.project-normal .project-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 12px;
}

.project-normal .project-desc {
    font-size: 14px;
    margin-bottom: 20px;
}

.project-coming-soon {
    opacity: 0.5;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 200px;
    text-align: center;
}

.project-coming-soon .plus-icon {
    font-size: 48px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

/* ===== 关于我 ===== */
.about-section {
    padding: 80px 0;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h3 {
    font-size: 32px;
    margin-bottom: 20px;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 15px;
    line-height: 1.8;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    backdrop-filter: blur(10px);
}

.stat-number {
    font-size: 36px;
    font-weight: 800;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 13px;
    color: var(--text-muted);
}

/* ===== 底部 ===== */
.footer {
    padding: 60px 0 30px;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.footer-text {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 10px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--accent-cyan);
}

/* ===== 小说页面 ===== */
.novel-hero {
    padding: 100px 0 60px;
    text-align: center;
}

.novel-title {
    font-size: 64px;
    font-weight: 800;
    margin-bottom: 20px;
    background: var(--gradient-3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.novel-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.novel-meta {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.novel-meta-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.novel-meta-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--accent-cyan);
}

.novel-meta-label {
    font-size: 12px;
    color: var(--text-muted);
}

.novel-synopsis {
    max-width: 800px;
    margin: 0 auto 60px;
    padding: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.novel-synopsis h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--accent-purple);
}

.novel-synopsis p {
    color: var(--text-secondary);
    line-height: 2;
}

/* 章节列表 */
.chapters-list {
    max-width: 800px;
    margin: 0 auto;
}

.chapters-title {
    font-size: 28px;
    margin-bottom: 30px;
    text-align: center;
}

.chapter-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
}

.chapter-item:hover {
    background: rgba(139, 92, 246, 0.1);
    border-color: rgba(139, 92, 246, 0.3);
    transform: translateX(10px);
}

.chapter-number {
    font-size: 14px;
    color: var(--accent-cyan);
    font-weight: 600;
    min-width: 60px;
}

.chapter-name {
    flex: 1;
    font-size: 16px;
    margin-left: 20px;
}

.chapter-arrow {
    color: var(--text-muted);
    transition: transform 0.3s;
}

.chapter-item:hover .chapter-arrow {
    transform: translateX(5px);
    color: var(--accent-purple);
}

/* ===== 阅读页面 ===== */
.reader-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 40px 20px;
}

.reader-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.reader-back {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s;
}

.reader-back:hover {
    color: var(--accent-cyan);
}

.reader-chapter-title {
    font-size: 14px;
    color: var(--text-muted);
}

.reader-content {
    font-size: 18px;
    line-height: 2.2;
    color: var(--text-secondary);
    min-height: 400px;
}

.reader-content p {
    margin-bottom: 24px;
    text-indent: 2em;
}

.reader-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.reader-btn {
    padding: 12px 28px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
    cursor: pointer;
}

.reader-btn:hover:not(:disabled) {
    background: rgba(139, 92, 246, 0.2);
    border-color: var(--accent-purple);
    color: var(--text-primary);
}

.reader-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.reader-progress {
    font-size: 13px;
    color: var(--text-muted);
}

/* ===== 股票查询页面 ===== */
.stock-hero {
    padding: 100px 0 40px;
    text-align: center;
}

.stock-title {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 15px;
    background: var(--gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stock-desc {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.stock-search-box {
    max-width: 600px;
    margin: 0 auto 40px;
    position: relative;
}

.stock-search-input {
    width: 100%;
    padding: 20px 60px 20px 30px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    color: var(--text-primary);
    font-size: 16px;
    outline: none;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
}

.stock-search-input:focus {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 30px rgba(6, 182, 212, 0.2);
}

.stock-search-input::placeholder {
    color: var(--text-muted);
}

.stock-search-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: var(--gradient-2);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s;
}

.stock-search-btn:hover {
    transform: translateY(-50%) scale(1.1);
}

.stock-hot {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.stock-hot-tag {
    padding: 8px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s;
}

.stock-hot-tag:hover {
    background: rgba(6, 182, 212, 0.1);
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
}

/* 股票结果 */
.stock-result {
    max-width: 900px;
    margin: 0 auto;
    display: none;
}

.stock-result.active {
    display: block;
    animation: fadeInUp 0.5s ease;
}

.stock-info-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
}

.stock-name-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.stock-name {
    font-size: 28px;
    font-weight: 700;
}

.stock-code {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 5px;
}

.stock-price {
    text-align: right;
}

.stock-price-value {
    font-size: 36px;
    font-weight: 800;
}

.stock-price-change {
    font-size: 16px;
    margin-top: 5px;
}

.stock-price-up {
    color: #ef4444;
}

.stock-price-down {
    color: #22c55e;
}

.stock-data-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.stock-data-item {
    text-align: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
}

.stock-data-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 5px;
}

.stock-data-value {
    font-size: 16px;
    font-weight: 600;
}

/* 六维分析 */
.analysis-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
}

.analysis-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.analysis-score {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 30px;
}

.score-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--gradient-1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.score-value {
    font-size: 32px;
    font-weight: 800;
    color: white;
}

.score-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.8);
}

.score-text {
    flex: 1;
}

.score-level {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

.score-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.dimensions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.dimension-item {
    padding: 15px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
}

.dimension-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.dimension-name {
    font-size: 13px;
    color: var(--text-secondary);
}

.dimension-score {
    font-size: 14px;
    font-weight: 600;
}

.dimension-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.dimension-fill {
    height: 100%;
    background: var(--gradient-1);
    border-radius: 3px;
    transition: width 1s ease;
}

/* 加载状态 */
.loading {
    text-align: center;
    padding: 60px;
    color: var(--text-muted);
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top-color: var(--accent-cyan);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.error-message {
    text-align: center;
    padding: 40px;
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
    border-radius: 16px;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
    .navbar {
        padding: 15px 20px;
    }
    
    .nav-links {
        display: none;
    }
    
    .container {
        padding: 0 20px;
    }
    
    .hero-title {
        font-size: 42px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .project-featured {
        padding: 30px;
    }
    
    .project-featured .project-title {
        font-size: 32px;
    }
    
    .project-highlight .project-title {
        font-size: 28px;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .novel-title {
        font-size: 42px;
    }
    
    .stock-title {
        font-size: 32px;
    }
    
    .stock-data-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .dimensions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .reader-content {
        font-size: 16px;
    }
}
