/**
 * Main CSS file
 * Global styles, navigation, and font imports
 */

/* Font Face Declarations */
@font-face {
    font-family: 'Monterey';
    src: url('../assest/font/monterey/MontereyFLF.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Monterey';
    src: url('../assest/font/monterey/MontereyFLF-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'Monterey';
    src: url('../assest/font/monterey/MontereyFLF-Italic.ttf') format('truetype');
    font-weight: normal;
    font-style: italic;
}

@font-face {
    font-family: 'Monterey';
    src: url('../assest/font/monterey/MontereyFLF-BoldItalic.ttf') format('truetype');
    font-weight: bold;
    font-style: italic;
}

@font-face {
    font-family: 'Monterey';
    src: url('../assest/font/monterey/MontereyMediumFLF.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

/* CSS Variables for Page Layout */
:root {
    --page-width: 1280px;
    --content-width: 1020px;
    --rail-width: 96px;   /* 中轴线占的"虚拟栏" */
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Monterey', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

/* Navigation Styles */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 1rem 2rem;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    position: relative;
}

nav ul::after {
    content: '';
    flex: 1;
    order: 999;
}

nav li {
    display: inline-block;
}

nav a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 1rem;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
    position: relative;
}

nav a:hover {
    color: #666;
}

nav a.active {
    color: #000;
    font-weight: bold;
}

nav a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1rem;
    right: 1rem;
    height: 2px;
    background-color: #000;
}

/* Language Toggle Button */
.lang-switcher {
    order: 1000;
    margin-left: auto;
}

.lang-toggle-btn {
    background: transparent;
    border: 1px solid #333;
    border-radius: 2px;
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.lang-toggle-btn:hover {
    background-color: #333;
    color: #fff;
}

.lang-toggle-btn:active {
    transform: scale(0.95);
}

.lang-text {
    display: inline-block;
}

/* Main Content */
main {
    margin-top: 80px;
    min-height: calc(100vh - 80px);
    padding: 2rem;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: bold;
    margin-bottom: 1rem;
    line-height: 1.2;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

/* Links */
a {
    color: #333;
    transition: color 0.3s ease;
}

a:hover {
    color: #666;
}

/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    margin-bottom: 3rem;
}

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

/* Page-level container */
.index-page {
    width: min(var(--page-width), 100vw);
    margin: 0 auto;
    position: relative; /* 给 overlay / line 用 */
    background: transparent;
}

/* Orientation Overlay - Removed: No longer needed as mobile portrait layout is now supported */
/* 
#orientation-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    z-index: 10000;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    text-align: center;
}

#orientation-overlay.show {
    display: flex;
}

.orientation-message {
    max-width: 300px;
}

.orientation-icon {
    font-size: 4rem;
    margin-bottom: 2rem;
    animation: rotate 2s ease-in-out infinite;
}

@keyframes rotate {
    0%, 100% {
        transform: rotate(0deg);
    }
    50% {
        transform: rotate(90deg);
    }
}

.orientation-text {
    font-size: 1.2rem;
    font-weight: 500;
    color: #333;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.orientation-subtext {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
}
*/

/* Responsive Design */
@media (max-width: 768px) {
    nav {
        padding: 1rem;
    }
    
    nav ul {
        gap: 1rem;
    }
    
    nav a {
        font-size: 0.9rem;
        padding: 0.5rem;
    }
    
    main {
        padding: 1rem;
        margin-top: 70px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
}
