:root {
    --gold: #d4af37;
    --gold-dark: #b8962e;
    --red: #8b0000;
    --red-dark: #660000;
    --dark-bg: #0a0a0a;
    --darker-bg: #050505;
    --text-main: #f0f0f0;
    --text-muted: #a0a0a0;
    --border-color: #332b1a;
}

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

body {
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 3rem;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--darker-bg);
    position: relative;
    z-index: 10;
}

.logo-container {
    display: flex;
    flex-direction: column;
}

.logo {
    font-family: serif;
    font-size: 1.5rem;
    color: var(--gold);
    letter-spacing: 2px;
}

.logo-subtitle {
    font-family: sans-serif;
    font-size: 1rem;
    color: var(--text-main);
    letter-spacing: normal;
    font-weight: normal;
}

.logo-motto {
    font-size: 0.6rem;
    color: var(--gold-dark);
    letter-spacing: 3px;
    margin-top: 2px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

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

.nav-external {
    font-style: italic;
}

/* Hero Section */
.hero-section {
    display: flex;
    position: relative;
    height: 65vh;
    min-height: 500px;
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
}

.decorative-text {
    position: absolute;
    font-size: 0.6rem;
    color: rgba(212, 175, 55, 0.3);
    letter-spacing: 2px;
    line-height: 2;
    z-index: 1;
}

.top-left { top: 2rem; left: 1rem; }
.bottom-left { bottom: 2rem; left: 1rem; }
.right-side { top: 2rem; right: 1rem; text-align: right; }

.hero-left {
    flex: 1;
    position: relative;
    background: radial-gradient(circle at center, #2a1010 0%, var(--dark-bg) 70%);
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.hero-character {
    height: 110%;
    object-fit: cover;
    object-position: top;
    mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
    z-index: 2;
}

.hero-right {
    flex: 1.2;
    position: relative;
    display: flex;
    align-items: center;
    padding: 0 4rem;
}

.hero-map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.15;
    z-index: 0;
    overflow: hidden;
}

.hero-map {
    width: 150%;
    height: 150%;
    object-fit: cover;
    opacity: 0.4;
    transform: translate(-10%, -10%);
}

.content-box {
    position: relative;
    z-index: 3;
    max-width: 600px;
}

.tagline {
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.highlight {
    color: var(--red);
    font-weight: bold;
}

.main-title {
    font-family: serif;
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text-main);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.description {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.download-actions {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    align-items: center;
}

button {
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    outline: none;
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    filter: grayscale(0.8);
}

.btn-primary {
    background-color: var(--gold);
    color: var(--darker-bg);
    padding: 1rem 2rem;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
}

.btn-primary:hover:not(:disabled) {
    background-color: #e6c24a;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--gold);
    border: 1px solid var(--gold);
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
}

.btn-secondary:hover:not(:disabled) {
    background: rgba(212, 175, 55, 0.1);
}

.features {
    display: flex;
    gap: 1rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 2rem;
    align-items: center;
}

.dot {
    color: var(--gold);
}

.warning-box {
    display: inline-flex;
    align-items: center;
    background: rgba(139, 0, 0, 0.1);
    border: 1px solid var(--red-dark);
    border-radius: 4px;
    overflow: hidden;
}

.warning-label {
    background-color: var(--red);
    color: white;
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
    font-weight: bold;
}

.warning-text {
    padding: 0.4rem 1rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Status Bar */
.status-bar {
    display: flex;
    justify-content: space-between;
    padding: 2rem 4rem;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--darker-bg);
}

.status-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.status-label {
    font-size: 0.8rem;
    color: var(--gold-dark);
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

.status-value {
    font-size: 1.5rem;
    font-family: serif;
    color: var(--text-main);
}

/* Steps Section */
.steps-section {
    display: flex;
    justify-content: space-around;
    padding: 3rem 4rem;
    background-color: var(--dark-bg);
    flex-grow: 1;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.step-number {
    font-family: serif;
    font-size: 3rem;
    color: var(--gold);
    line-height: 1;
    font-style: italic;
    opacity: 0.8;
}

.step-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: normal;
}

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

/* Footer */
footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 3rem;
    border-top: 1px solid var(--border-color);
    background-color: var(--darker-bg);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-family: serif;
    color: var(--gold);
    letter-spacing: 1px;
}

.footer-center {
    text-align: center;
}

.site-url {
    margin-top: 0.5rem;
    color: var(--gold-dark);
    font-family: monospace;
}

.footer-right {
    text-align: right;
    letter-spacing: 1px;
    color: var(--gold-dark);
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-section {
        flex-direction: column;
        height: auto;
    }

    .hero-left {
        height: 300px;
    }

    .hero-character {
        height: 150%;
    }

    .hero-right {
        padding: 3rem;
    }

    .status-bar {
        flex-wrap: wrap;
        gap: 2rem;
        justify-content: center;
    }

    .status-item {
        min-width: 40%;
    }
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1.5rem;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }

    .main-title {
        font-size: 3rem;
    }

    .download-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .btn-primary {
        width: 100%;
        justify-content: center;
    }

    .btn-secondary {
        width: 100%;
        text-align: center;
    }

    .steps-section {
        flex-direction: column;
        gap: 2rem;
        padding: 3rem 1.5rem;
    }

    footer {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .footer-right {
        text-align: center;
    }
}