/* Base styles and variables - Anthropic Theme */

/* Import Google Fonts - 全局字体管理 */
@import url('https://fonts.googleapis.com/css2?family=Space+Mono:ital,wght@0,400;0,700;1,400&family=Syncopate:wght@400;700&display=swap');

:root {
    /* Font Families */
    --font-display: 'Syncopate', sans-serif;
    --font-mono: 'Space Mono', monospace;
    --font-chinese: 'PingFang SC', -apple-system, BlinkMacSystemFont, 'Hiragino Sans GB', sans-serif;

    /* Anthropic Brand Colors */
    --primary-color: #d97757;
    --primary-hover: #c86641;
    --secondary-color: #6a9bcc;
    --accent-color: #788c5d;

    /* Background & Text */
    --background-color: #faf9f5;
    --background-secondary: #f5f3ee;
    --text-color: #141413;
    --text-secondary: #5c5b57;
    --text-muted: #8b8a84;

    /* UI Elements */
    --border-color: #e8e6dc;
    --card-bg: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(217, 119, 87, 0.2);

    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Space Mono', 'PingFang SC', -apple-system, BlinkMacSystemFont, 'Hiragino Sans GB', monospace;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

/* 统一所有标题字体 */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Space Mono', monospace;
    font-weight: 700;
}

/* Skip Link for Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: var(--background-color);
    padding: 8px 16px;
    z-index: 1000;
    transition: top 0.3s;
    font-weight: 600;
    text-decoration: none;
    border-radius: 0 0 4px 0;
}

.skip-link:focus {
    top: 0;
}

/* Visually Hidden (Screen Reader Only) */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
    opacity: 0.5;
}

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

/* Navigation */
.navbar {
    position: fixed;
    width: 100%;
    top: 0;
    background-color: rgba(250, 249, 245, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 2000;
    box-shadow: 0 2px 10px rgba(20, 20, 19, 0.1);
    border-bottom: 1px solid var(--border-color);
    font-family: 'Space Mono', monospace;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
    position: relative;
}

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

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

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

/* Hero Section */
.home-content {
    padding-top: 80px;
    min-height: 100vh;
    display: block;
    padding: 0 5%;
}

.home-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    gap: 2rem;
}

.hero {
    text-align: left;
    max-width: 800px;
}

.hero-image {
    flex-shrink: 0;
    width: 50%;
    max-width: 500px;
    height: 600px;
    position: relative;
    background-color: var(--background-color);
}

#model-container {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    overflow: hidden;
}

#model-container canvas {
    outline: none;
}

.hero-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
    transform: scale(1.25);
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    display: flex;
    flex-wrap: nowrap;
    gap: 0.5rem;
}

.hero h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.hero h2 span {
    color: var(--text-color);
}

.hero-quote {
    font-family: var(--font-display), var(--font-chinese);
    font-size: 1.3rem;
    color: var(--text-color);
    opacity: 0.9;
    line-height: 1.8;
}

.highlight {
    color: var(--accent-color);
}

/* Buttons */
.cta-buttons {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
}

.btn {
    padding: 0.8rem 2rem;
    border-radius: 5px;
    text-decoration: none;
    transition: var(--transition);
    font-weight: 600;
}

.btn.primary {
    background-color: var(--primary-color);
    color: var(--text-color);
}

.btn.secondary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(108, 99, 255, 0.2);
}

/* Enhanced button glow effect */
.btn.primary:hover {
    box-shadow: 0 0 20px rgba(57, 255, 20, 0.5),
                0 0 40px rgba(57, 255, 20, 0.3),
                0 0 60px rgba(57, 255, 20, 0.1);
}

.btn.secondary:hover {
    background: rgba(57, 255, 20, 0.1);
    box-shadow: 0 0 15px rgba(57, 255, 20, 0.3);
}

/* Footer */
footer {
    margin-top: auto;
}

/* Bottom Transition Effect */
.bottom-transition {
    position: relative;
    padding: 4rem 2rem 3rem;
    background: linear-gradient(to bottom, var(--background-color) 0%, var(--background-secondary) 100%);
    overflow: hidden;
}

.bottom-transition::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right,
        transparent 0%,
        var(--primary-color) 50%,
        transparent 100%);
}

.bottom-transition::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(to right,
        var(--primary-color) 0%,
        var(--secondary-color) 50%,
        var(--accent-color) 100%);
    opacity: 0.3;
}

.transition-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.transition-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    animation: float 3s ease-in-out infinite;
}

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

.transition-text {
    font-family: var(--font-mono), var(--font-chinese);
    font-size: 0.875rem;
    color: var(--text-muted);
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

@media (max-width: 768px) {
    .bottom-transition {
        padding: 3rem 1.5rem 2rem;
    }

    .transition-icon {
        font-size: 1.5rem;
    }

    .transition-text {
        font-size: 0.75rem;
    }
}

/* Mobile Navigation */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background-color: var(--text-color);
    transition: var(--transition);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        flex-direction: column;
        background-color: var(--secondary-color);
        padding: 2rem;
        transform: translateY(-150%);
        transition: var(--transition);
    }

    .nav-links.active {
        transform: translateY(0);
    }

    .hero h1 {
        font-size: 2.5rem;
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }

    .hero h2 {
        font-size: 1.5rem;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .home-container {
        flex-direction: column;
        text-align: center;
    }

    .hero {
        text-align: center;
    }

    .hero-image {
        width: 100%;
        height: 400px;
    }

    .hero-image img {
        transform: scale(1.5);
    }

    .cta-buttons {
        justify-content: center;
        flex-direction: column;
    }

    #typing-text {
        display: block;
        width: fit-content;
        margin: 0 auto;
        text-align: left;
        min-height: 1.2em;
        line-height: 1.2;
        margin-top: 0.5rem;
    }
}

#typing-text {
    border-right: 2px solid var(--primary-color);
    padding-right: 5px;
    animation: blink 0.75s step-end infinite;
    min-height: 1.2em;
    display: inline-block;
}

@keyframes blink {
    from, to { border-color: transparent }
    50% { border-color: var(--primary-color); }
}

/* Glassmorphism Card */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2rem;
    transition: var(--transition);
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(57, 255, 20, 0.1);
    border-color: rgba(57, 255, 20, 0.3);
}

/* Gradient text */
.gradient-text {
    background: linear-gradient(90deg, var(--primary-color), #00ff88);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Time style */
.time {
    margin: 0;
    text-align: right;
    min-width: 120px;
    color: var(--primary-color);
}

/* Subtle background animation */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.animated-bg {
    background: linear-gradient(-45deg, #121212, #1a1a1a, #0d1a0d, #121212);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

@media screen and (max-width: 768px) {
    .home-content {
        padding-top: 70px;
    }
    
    .home-container {
        padding: 1rem;
    }
} 