/* AF888 - 无垠星空 (Celestial Oracle) 风格样式表 */

/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 根变量 - 无垠星空主题色彩 */
:root {
    --primary-dark: #0B1426;      /* 深邃星空蓝 */
    --secondary-dark: #1A2744;    /* 星云深蓝 */
    --tertiary-purple: #2D1B69;   /* 深邃紫 */
    --accent-blue: #3B82F6;       /* 星光蓝 */
    --accent-purple: #8B5CF6;     /* 星云紫 */
    --accent-gold: #F59E0B;       /* 星辰金 */
    --accent-silver: #E5E7EB;     /* 星辰银 */
    --text-light: #F8FAFC;        /* 星光白 */
    --text-gray: #CBD5E1;         /* 星雾灰 */
    --background-cosmic: linear-gradient(135deg, #0B1426 0%, #1A2744 50%, #2D1B69 100%);
    --gradient-nebula: linear-gradient(135deg, #3B82F6 0%, #8B5CF6 50%, #F59E0B 100%);
    --gradient-starlight: linear-gradient(45deg, #8B5CF6 0%, #3B82F6 50%, #E5E7EB 100%);
    --shadow-cosmic: 0 8px 32px rgba(59, 130, 246, 0.3);
    --shadow-glow: 0 0 20px rgba(139, 92, 246, 0.4);
    --shadow-gold: 0 0 15px rgba(245, 158, 11, 0.5);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 基础样式 */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    background: var(--background-cosmic);
    color: var(--text-light);
    line-height: 1.6;
    font-size: 16px;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* 星空背景动效 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(2px 2px at 20% 30%, #F59E0B, transparent),
        radial-gradient(2px 2px at 40% 70%, #E5E7EB, transparent),
        radial-gradient(1px 1px at 90% 40%, #3B82F6, transparent),
        radial-gradient(1px 1px at 50% 50%, #8B5CF6, transparent),
        radial-gradient(2px 2px at 80% 10%, #F59E0B, transparent),
        radial-gradient(1px 1px at 10% 80%, #E5E7EB, transparent),
        radial-gradient(1px 1px at 70% 20%, #3B82F6, transparent),
        radial-gradient(1px 1px at 30% 90%, #8B5CF6, transparent);
    background-size: 300px 300px, 400px 400px, 200px 200px, 350px 350px, 250px 250px, 300px 300px, 180px 180px, 220px 220px;
    animation: starfield 80s linear infinite;
    z-index: -1;
    opacity: 0.7;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, transparent 0%, rgba(11, 20, 38, 0.8) 100%);
    z-index: -1;
}

@keyframes starfield {
    0% { transform: translateY(0) translateX(0); }
    100% { transform: translateY(-100px) translateX(50px); }
}

/* 容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏 */
.navbar {
    background: rgba(11, 20, 38, 0.95);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(59, 130, 246, 0.3);
    box-shadow: var(--shadow-cosmic);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 15px 0;
    transition: var(--transition-smooth);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo-img {
    height: 40px;
    width: auto;
    filter: drop-shadow(0 0 10px rgba(245, 158, 11, 0.5));
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 20px;
    align-items: center;
    flex-wrap: nowrap;
}

.nav-menu a {
    color: var(--text-gray);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 20px;
    transition: var(--transition-smooth);
    position: relative;
    white-space: nowrap;
    font-size: 14px;
}

.nav-menu a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-nebula);
    border-radius: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.nav-menu a:hover {
    color: var(--text-light);
    transform: translateY(-2px);
}

.nav-menu a:hover::before {
    opacity: 0.2;
}

.auth-buttons {
    display: flex;
    gap: 15px;
    align-items: center;
}

.btn-login,
.btn-register {
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-smooth);
    border: 2px solid transparent;
}

.btn-login {
    color: var(--text-light);
    border-color: var(--accent-blue);
}

.btn-login:hover {
    background: var(--accent-blue);
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

.btn-register {
    background: var(--gradient-nebula);
    color: var(--text-light);
}

.btn-register:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-cosmic);
}

/* 移动端菜单 */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-toggle span,
.hamburger {
    width: 25px;
    height: 3px;
    background: var(--accent-gold);
    border-radius: 2px;
    transition: var(--transition-smooth);
}

/* 主要内容区域 */
.main-content {
    margin-top: 80px;
    min-height: calc(100vh - 80px);
}

/* Hero区域 */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding: 80px 0;
    background: url('images/hero-main.jpg') center/cover no-repeat;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(11, 20, 38, 0.8) 0%, rgba(26, 39, 68, 0.7) 50%, rgba(45, 27, 105, 0.8) 100%);
    z-index: 1;
}

/* cosmic-glow animation removed - not in use */

.hero-content,
.hero-overlay {
    position: relative;
    z-index: 2;
    padding: 40px;
}

.hero h1,
.hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 20px;
    background: var(--gradient-nebula);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 20px rgba(59, 130, 246, 0.5));
    line-height: 1.2;
    display: inline-block;
}

.hero h2,
.hero-content h2,
.hero .subtitle {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: var(--accent-blue);
    margin-bottom: 30px;
    font-weight: 400;
    text-shadow: 0 0 10px rgba(59, 130, 246, 0.4);
}

.hero p,
.hero-content p {
    font-size: 1.1rem;
    color: var(--text-gray);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--gradient-nebula);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-cosmic);
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-button:hover,
.hero-buttons a:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(59, 130, 246, 0.4);
}

/* Left-Right Hero Layout */
.hero-left-right {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    min-height: 80vh;
    padding: 4rem 0;
}

.hero-content-left {
    text-align: left;
}

.hero-image-right {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Right-Left Hero Layout */
.hero-right-left {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    min-height: 80vh;
    padding: 4rem 0;
}

.hero-content-right {
    text-align: right;
    order: 2;
}

.hero-image-left {
    display: flex;
    justify-content: center;
    align-items: center;
    order: 1;
}

/* 内容文章样式 */
.content-article {
    background: rgba(26, 39, 68, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    margin: 40px 0;
    border: 1px solid rgba(59, 130, 246, 0.2);
    box-shadow: var(--shadow-cosmic);
}

.content-article h1 {
    font-size: 2.5rem;
    color: var(--accent-gold);
    margin-bottom: 30px;
    text-align: center;
    filter: drop-shadow(0 0 10px rgba(245, 158, 11, 0.5));
}

.content-article h2 {
    font-size: 2rem;
    color: var(--accent-blue);
    margin: 40px 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(59, 130, 246, 0.3);
    filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.4));
}

.content-article h3 {
    font-size: 1.5rem;
    color: var(--accent-purple);
    margin: 30px 0 15px 0;
    filter: drop-shadow(0 0 6px rgba(139, 92, 246, 0.4));
}

.content-article h4 {
    font-size: 1.3rem;
    color: var(--accent-gold);
    margin: 25px 0 12px 0;
    filter: drop-shadow(0 0 5px rgba(245, 158, 11, 0.4));
}

.content-article p {
    margin-bottom: 20px;
    line-height: 1.8;
    color: var(--text-gray);
    text-align: justify;
}

.content-article strong {
    color: var(--accent-gold);
    font-weight: 600;
}

.content-article em {
    color: var(--accent-silver);
    font-style: italic;
}

/* 列表样式 */
.content-article ul,
.content-article ol {
    margin: 20px 0;
    padding-left: 30px;
}

.content-article li {
    margin-bottom: 10px;
    color: var(--text-gray);
    line-height: 1.7;
}

.content-article li::marker {
    color: var(--accent-blue);
}

/* 引用样式 */
.content-article blockquote {
    background: rgba(59, 130, 246, 0.1);
    border-left: 4px solid var(--accent-blue);
    padding: 20px;
    margin: 30px 0;
    border-radius: 0 10px 10px 0;
    font-style: italic;
    color: var(--text-light);
}

/* 表格样式 */
.content-article table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    background: rgba(26, 39, 68, 0.8);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-cosmic);
}

.content-article th,
.content-article td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid rgba(59, 130, 246, 0.2);
}

.content-article th {
    background: var(--gradient-nebula);
    color: var(--text-light);
    font-weight: 600;
}

.content-article td {
    color: var(--text-gray);
}

.content-article tr:hover {
    background: rgba(59, 130, 246, 0.1);
}

/* 链接样式 */
.content-article a {
    color: var(--accent-blue);
    text-decoration: none;
    position: relative;
    transition: var(--transition-smooth);
}

.content-article a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background: var(--gradient-nebula);
    transition: width 0.3s ease;
}

.content-article a:hover {
    color: var(--accent-gold);
}

.content-article a:hover::after {
    width: 100%;
}

/* 图片占位符 */
.image-placeholder {
    width: 100%;
    max-width: 500px;
    height: 300px;
    background: var(--gradient-nebula);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 18px;
    font-weight: 600;
    margin: 30px auto;
    border-radius: 15px;
    box-shadow: var(--shadow-cosmic);
    position: relative;
    overflow: hidden;
}

.image-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="1" fill="rgba(255,255,255,0.3)"/><circle cx="80" cy="40" r="0.5" fill="rgba(255,255,255,0.4)"/><circle cx="40" cy="80" r="1.5" fill="rgba(255,255,255,0.2)"/><circle cx="60" cy="30" r="0.8" fill="rgba(255,255,255,0.5)"/></svg>');
    animation: star-twinkle 3s ease-in-out infinite;
}

@keyframes star-twinkle {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.8; }
}

/* 内容区域 */
.section {
    padding: 5rem 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 1rem;
    background: var(--gradient-starlight);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 15px rgba(59, 130, 246, 0.5));
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--accent-blue);
    max-width: 600px;
    margin: 0 auto;
}

/* Content Block布局 */
.content-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 4rem;
}

.content-block.right-left .content-text {
    order: 2;
}

.content-block.right-left .content-image {
    order: 1;
}

.content-text h3 {
    font-size: 2rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    background: var(--gradient-starlight);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 10px rgba(245, 158, 11, 0.5));
}

.content-text p {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: var(--text-gray);
}

/* Content Block布局 */
.content-block {
    display: flex;
    align-items: center;
    gap: 3rem;
    margin: 3rem 0;
    padding: 2rem;
    background: rgba(26, 39, 68, 0.4);
    border-radius: 15px;
    border: 1px solid rgba(59, 130, 246, 0.2);
    backdrop-filter: blur(10px);
}

.content-block-left,
.content-block-right {
    flex: 1;
}

.content-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: var(--transition-smooth);
}

.content-image:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 40px rgba(59, 130, 246, 0.4);
}

/* Content Grid布局 */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.grid-item {
    background: rgba(26, 39, 68, 0.6);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(59, 130, 246, 0.3);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.grid-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-nebula);
}

.grid-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-cosmic);
    border-color: var(--accent-purple);
}

.grid-item h4 {
    font-size: 1.3rem;
    color: var(--accent-gold);
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 5px rgba(245, 158, 11, 0.5));
}

.grid-item p {
    color: var(--text-gray);
    line-height: 1.7;
}

.grid-item .image-placeholder {
    height: 200px;
    margin-bottom: 1.5rem;
    width: 100%;
    max-width: none;
}

/* 特殊内容块 */
.highlight-box {
    background: rgba(139, 92, 246, 0.1);
    border: 2px solid var(--accent-purple);
    border-radius: 15px;
    padding: 25px;
    margin: 30px 0;
    position: relative;
    backdrop-filter: blur(10px);
}

.highlight-box::before {
    content: '★';
    position: absolute;
    top: -10px;
    left: 20px;
    background: var(--primary-dark);
    color: var(--accent-gold);
    padding: 0 10px;
    font-size: 20px;
}

/* 回到顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-nebula);
    color: var(--text-light);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-cosmic);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

/* Footer */
.footer {
    background: rgba(11, 20, 38, 0.95);
    border-top: 1px solid rgba(59, 130, 246, 0.2);
    padding: 40px 0 20px 0;
    margin-top: 60px;
    backdrop-filter: blur(10px);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h3,
.footer-section h4 {
    color: var(--accent-gold);
    margin-bottom: 20px;
    font-size: 1.2rem;
    filter: drop-shadow(0 0 5px rgba(245, 158, 11, 0.5));
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: var(--text-gray);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.footer-section ul li a:hover {
    color: var(--accent-blue);
    text-shadow: 0 0 5px rgba(59, 130, 246, 0.4);
}

.payment-methods {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.payment-method {
    background: rgba(26, 39, 68, 0.8);
    padding: 8px 15px;
    border-radius: 8px;
    color: var(--text-gray);
    font-size: 0.9rem;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(59, 130, 246, 0.1);
    color: var(--text-gray);
    font-size: 0.9rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(11, 20, 38, 0.98);
        flex-direction: column;
        padding: 20px;
        gap: 15px;
        border-top: 1px solid rgba(59, 130, 246, 0.2);
    }

    .nav-menu.active {
        display: flex;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .hero h1,
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-left-right,
    .hero-right-left {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content-right {
        text-align: center;
        order: 1;
    }

    .hero-image-left,
    .hero-image-right {
        order: 2;
    }

    .content-article {
        padding: 25px;
        margin: 20px 0;
    }

    .content-article h1 {
        font-size: 2rem;
    }

    .content-article h2 {
        font-size: 1.5rem;
    }

    .content-block {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
        padding: 1.5rem;
    }

    .content-block-left,
    .content-block-right {
        flex: none;
    }

    .container {
        padding: 0 15px;
    }

    .auth-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .btn-login,
    .btn-register {
        padding: 8px 16px;
        font-size: 0.9rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .section {
        padding: 3rem 0;
    }

    .content-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero h1,
    .hero-content h1 {
        font-size: 2rem;
    }

    .content-article {
        padding: 20px;
    }

    .content-article h1 {
        font-size: 1.8rem;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 18px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 25px;
    }
}

/* 动画和特效 */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

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

.glow-effect {
    position: relative;
}

.glow-effect::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    background: var(--gradient-nebula);
    z-index: -1;
    filter: blur(15px);
    opacity: 0;
    transition: var(--transition-smooth);
}

.glow-effect:hover::after {
    opacity: 0.6;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--primary-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-nebula);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gradient-starlight);
}

/* 打印样式 */
@media print {
    .navbar,
    .footer,
    .back-to-top {
        display: none;
    }

    .main-content {
        margin-top: 0;
    }

    body {
        background: white;
        color: black;
    }

    .content-article {
        background: white;
        box-shadow: none;
        border: 1px solid #ccc;
    }
}

/* 辅助功能 */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}