/* 伴月之星官网 - 共享样式 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --night-deep: #0a0a12;
    --night-mid: #12121f;
    --moon-glow: #f4f1e8;
    --star-gold: #ffd700;
    --star-soft: #fff8dc;
    --text-primary: #e8e6e0;
    --text-secondary: #a0a0a0;
    --accent: #4a90a4;
    --accent-warm: #ff8c00;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background: var(--night-deep);
    color: var(--text-primary);
    line-height: 1.8;
    overflow-x: hidden;
}

a {
    color: var(--star-gold);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--moon-glow);
}

/* 星空背景 */
.starfield {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.star {
    position: absolute;
    background: white;
    border-radius: 50%;
    animation: twinkle 3s infinite ease-in-out;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

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

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

/* 导航 */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(180deg, var(--night-deep) 0%, transparent 100%);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.nav-logo img {
    width: 40px;
    height: auto;
}

.nav-logo span {
    font-size: 1.1rem;
    letter-spacing: 0.2em;
    color: var(--moon-glow);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    padding: 0.5rem 0;
    border-bottom: 1px solid transparent;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--star-gold);
    border-bottom-color: var(--star-gold);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
    padding: 2rem;
    text-align: center;
}

.logo-container {
    margin-bottom: 2rem;
    position: relative;
}

.logo {
    width: 180px;
    height: auto;
    filter: drop-shadow(0 0 30px rgba(255, 215, 0, 0.3));
    animation: float 6s ease-in-out infinite;
}

.company-name {
    font-size: 3.5rem;
    font-weight: 200;
    letter-spacing: 0.5em;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--moon-glow) 0%, var(--star-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.company-name-en {
    font-size: 0.9rem;
    letter-spacing: 0.3em;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.tagline {
    font-size: 1.4rem;
    font-weight: 300;
    max-width: 600px;
    margin-bottom: 3rem;
    color: var(--text-secondary);
}

.hero-quote {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--moon-glow);
    opacity: 0.8;
    max-width: 500px;
}

.scroll-hint {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-hint svg {
    width: 30px;
    height: 30px;
    stroke: var(--text-secondary);
}

/* Section 通用样式 */
section {
    position: relative;
    z-index: 1;
    padding: 6rem 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.section-title {
    font-size: 2rem;
    font-weight: 300;
    margin-bottom: 3rem;
    text-align: center;
    color: var(--moon-glow);
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

/* 卡片网格 */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.card {
    background: linear-gradient(135deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.01) 100%);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
}

.card:hover {
    border-color: rgba(255, 215, 0, 0.3);
    transform: translateY(-5px);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.card-title {
    font-size: 1.3rem;
    color: var(--star-soft);
    margin-bottom: 0.5rem;
}

.card-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.card-link {
    display: inline-block;
    margin-top: 1rem;
    color: var(--star-gold);
    font-size: 0.9rem;
}

/* 三个时代 */
.eras {
    display: grid;
    gap: 2rem;
}

.era {
    background: linear-gradient(135deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.01) 100%);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.era:hover {
    border-color: rgba(255, 215, 0, 0.3);
    transform: translateY(-5px);
}

.era-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.era-icon {
    font-size: 2rem;
}

.era-title {
    font-size: 1.3rem;
    color: var(--star-soft);
}

.era-metaphor {
    font-size: 0.9rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.era-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* 关键问题 */
.question-box {
    background: linear-gradient(135deg, rgba(74, 144, 164, 0.1) 0%, rgba(255, 215, 0, 0.05) 100%);
    border-left: 3px solid var(--star-gold);
    padding: 2rem;
    margin: 4rem 0;
    font-size: 1.2rem;
    text-align: center;
}

/* 地球智慧 */
.wisdoms {
    display: grid;
    gap: 1.5rem;
}

.wisdom {
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: 1.5rem;
    padding: 1.5rem;
    background: rgba(255,255,255,0.02);
    border-radius: 15px;
    align-items: start;
}

.wisdom-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--star-gold) 0%, var(--accent-warm) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--night-deep);
}

.wisdom-content h4 {
    color: var(--moon-glow);
    margin-bottom: 0.5rem;
}

.wisdom-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.wisdom-mapping {
    margin-top: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(74, 144, 164, 0.1);
    border-radius: 8px;
    font-size: 0.85rem;
    color: var(--accent);
}

/* 三个声音 */
.voices {
    display: grid;
    gap: 2rem;
}

.voice {
    text-align: center;
    padding: 2.5rem;
    background: linear-gradient(180deg, rgba(255,255,255,0.03) 0%, transparent 100%);
    border-radius: 20px;
}

.voice-label {
    font-size: 0.8rem;
    color: var(--star-gold);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 1rem;
}

.voice-text {
    font-size: 1.3rem;
    line-height: 1.8;
    color: var(--moon-glow);
}

.voice-subtext {
    margin-top: 1rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* 公司哲学 */
.philosophy {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.05) 0%, rgba(74, 144, 164, 0.05) 100%);
    border-radius: 30px;
    padding: 3rem;
    text-align: center;
}

.philosophy-title {
    font-size: 1rem;
    color: var(--star-gold);
    letter-spacing: 0.3em;
    margin-bottom: 2rem;
}

.philosophy-item {
    margin-bottom: 2rem;
}

.philosophy-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.philosophy-text {
    font-size: 1.2rem;
    color: var(--moon-glow);
}

.values {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.value {
    padding: 0.6rem 1.2rem;
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--star-soft);
}

/* 诗 */
.poem-section {
    text-align: center;
    padding: 4rem 2rem;
}

.poem {
    font-size: 1.4rem;
    line-height: 2.5;
    color: var(--moon-glow);
    font-weight: 300;
}

.poem-line {
    display: block;
    opacity: 0;
    animation: fadeInLine 0.8s ease forwards;
}

.poem-line:nth-child(1) { animation-delay: 0.2s; }
.poem-line:nth-child(2) { animation-delay: 0.4s; }
.poem-line:nth-child(3) { animation-delay: 0.6s; }
.poem-line:nth-child(4) { animation-delay: 0.8s; }

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

/* 结语 */
.finale {
    text-align: center;
    padding: 6rem 2rem;
    background: linear-gradient(180deg, transparent 0%, rgba(255, 215, 0, 0.03) 100%);
}

.finale-text {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.finale-highlight {
    font-size: 1.8rem;
    color: var(--moon-glow);
    margin: 2rem 0;
    font-weight: 300;
}

.finale-cta {
    font-size: 1.3rem;
    color: var(--star-gold);
    margin-top: 3rem;
}

/* Footer */
footer {
    text-align: center;
    padding: 3rem 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    position: relative;
    z-index: 1;
}

.footer-logo {
    width: 60px;
    margin-bottom: 1rem;
    opacity: 0.8;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
}

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

.footer-links a:hover {
    color: var(--star-gold);
}

.copyright {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* ==================== */
/* 文章页面样式 */
/* ==================== */

.article-hero {
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
    padding: 6rem 2rem 4rem;
    text-align: center;
}

.article-hero .tagline {
    font-size: 1rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.article-hero h1 {
    font-size: 3rem;
    font-weight: 200;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--moon-glow) 0%, var(--star-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.article-hero .subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    line-height: 1.8;
}

/* 文章内容 */
.article-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.article-content h2 {
    font-size: 1.8rem;
    font-weight: 300;
    color: var(--moon-glow);
    margin: 4rem 0 2rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
}

.article-content h3 {
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--star-soft);
    margin: 2.5rem 0 1rem;
}

.article-content p {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    font-size: 1.05rem;
    line-height: 2;
}

.article-content strong {
    color: var(--star-gold);
}

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

.article-content ul, 
.article-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.article-content li {
    margin-bottom: 0.8rem;
    color: var(--text-secondary);
}

.article-content blockquote {
    margin: 2rem 0;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.05) 0%, rgba(74, 144, 164, 0.05) 100%);
    border-left: 3px solid var(--star-gold);
    border-radius: 0 15px 15px 0;
}

.article-content blockquote p {
    margin: 0;
    font-size: 1.1rem;
    color: var(--moon-glow);
}

/* 数据表格 */
.article-content table {
    width: 100%;
    margin: 2rem 0;
    border-collapse: collapse;
}

.article-content th,
.article-content td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.article-content th {
    color: var(--star-gold);
    font-weight: 400;
    font-size: 0.9rem;
}

.article-content td {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* 时间线样式 */
.timeline {
    position: relative;
    margin: 3rem 0;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--star-gold), var(--accent));
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
    padding-left: 2rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2rem;
    top: 0.5rem;
    width: 12px;
    height: 12px;
    background: var(--star-gold);
    border-radius: 50%;
    transform: translateX(-5px);
}

.timeline-label {
    font-size: 0.9rem;
    color: var(--star-gold);
    margin-bottom: 0.5rem;
}

.timeline-content {
    color: var(--text-secondary);
}

/* 公式样式 */
.equation {
    text-align: center;
    margin: 2rem 0;
    padding: 2rem;
    background: rgba(255,255,255,0.02);
    border-radius: 15px;
    font-size: 1.2rem;
    color: var(--moon-glow);
    font-family: "Times New Roman", serif;
}

/* 结语卡片 */
.article-conclusion {
    margin: 4rem 0;
    padding: 3rem;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.08) 0%, rgba(74, 144, 164, 0.05) 100%);
    border-radius: 20px;
    text-align: center;
}

.article-conclusion h3 {
    color: var(--star-gold);
    margin-bottom: 1.5rem;
}

.article-conclusion p {
    font-size: 1.2rem;
    line-height: 2;
    margin-bottom: 0;
}

/* 返回导航 */
.back-nav {
    position: relative;
    z-index: 1;
    padding: 2rem;
    text-align: center;
}

.back-nav a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.back-nav a:hover {
    color: var(--star-gold);
}

/* 响应式 */
@media (max-width: 768px) {
    .nav {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .nav-links {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .company-name {
        font-size: 2rem;
        letter-spacing: 0.3em;
    }
    
    .article-hero h1 {
        font-size: 2rem;
    }
    
    .wisdom {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .wisdom-number {
        margin: 0 auto;
    }
    
    .card-grid {
        grid-template-columns: 1fr;
    }
}
