/* Home Specific Styles */
body {
    font-family: "Cormorant Garamond", "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
}
.game-container { width: 100%; margin: 0; height: 100vh; position: relative; overflow: hidden; background: #e8e6df; border-radius: 0; border: none; box-shadow: none; }
.game-frame { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; display: block; }
.scroll-skip { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; color: #1a1a1a; font-size: 10px; letter-spacing: 2px; cursor: pointer; z-index: 10; opacity: 0.6; transition: all 0.3s; mix-blend-mode: difference; filter: invert(1); }
.scroll-skip:hover { opacity: 1; transform: translateX(-50%) translateY(-5px); }
.arrow-down { width: 1px; height: 30px; background: #1a1a1a; position: relative; }
.arrow-down::after { content: ''; position: absolute; bottom: 0; left: -3px; width: 7px; height: 7px; border-right: 1px solid #1a1a1a; border-bottom: 1px solid #1a1a1a; transform: rotate(45deg); }

.hero-section { padding: 0; border-bottom: none; margin: 0; }
.hero-section h1 { font-size: clamp(36px, 6.1vw, 92px); line-height: 0.9; letter-spacing: -4px; font-weight: bold; text-transform: none; display: inline; }
.role-typing { display: inline-block; }
.typing-container { min-height: 2.7em; display: block; position: relative; }
.typing-cursor { display: inline-block; width: clamp(4px, 0.5vw, 12px); height: 1em; background-color: #1a1a1a; margin-left: 2px; vertical-align: bottom; animation: blink 0.8s infinite; position: relative; top: 0; }
.typing-highlight {
    background: #1a1a1a;
    color: #f2f0e9;
    padding: 0 0.2em;
    display: inline-block;
    margin-top: 8px;
    font-style: normal;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.container:has(.main-grid) { container-type: inline-size; }
.main-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 2px; }
.section-label { grid-column: span 12; font-size: 12px; text-transform: uppercase; letter-spacing: 4px; color: #888; margin-bottom: 20px; padding-left: 5px; }
.category-filter { grid-column: span 12; margin: 48px 0; display: flex; flex-direction: column; border-top: 1px solid #000; }
.category-container { margin-top: 48px; }
.category-item { width: 100%; padding: 30px 40px; font-size: clamp(32px, 5vw, 64px); font-weight: bold; text-transform: none; letter-spacing: -2px; color: #1a1a1a; cursor: pointer; border-bottom: 1px solid #000; transition: background 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), color 0.2s, padding 0.4s; display: flex; justify-content: space-between; align-items: center; text-decoration: none; box-sizing: border-box; line-height: 1.2; min-height: calc(60px + 1.2em); }
.category-item:hover { background: #1a1a1a; color: #f2f0e9; padding-left: 60px; }
.category-item .category-item-inner { display: inline-flex; align-items: center; gap: 0; }
.category-item .category-item-text { display: inline-block; vertical-align: middle; }
.category-item .category-typing-cursor { visibility: hidden; display: inline-block; width: 0.12em; height: 0.9em; min-width: 0.12em; background-color: currentColor; margin-left: 4px; flex-shrink: 0; vertical-align: middle; animation: blink 0.8s infinite; }
.category-item:hover .category-typing-cursor { visibility: visible; }
.category-item.typing-active .category-typing-cursor { visibility: visible; }
.category-item::after { content: "→"; font-size: 24px; opacity: 0; transform: translateX(-20px); transition: all 0.4s; flex-shrink: 0; margin-left: 0.5em; }
.category-item:hover::after { opacity: 1; transform: translateX(0); }

.card { grid-column: span 6; text-decoration: none; color: inherit; margin-bottom: 2px; transition: transform 0.3s ease; }
.card.wide { grid-column: span 8; }
.card.narrow { grid-column: span 4; position: relative; z-index: 1; }
.card.full { grid-column: span 12; margin-bottom: 2px; position: relative; z-index: 2; }
.card.full .image-box { margin-bottom: 0; min-height: calc(100cqw / 21 * 9 + 150px); }
.card.full .card-title,
.card.full .card-desc { display: none; }
.image-box { width: 100%; aspect-ratio: 16/9; background: #e8e6df; margin-bottom: 24px; overflow: hidden; position: relative; border-radius: 2px; }
.image-box img, .image-box video { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); }
.card:hover .image-box img, .card:hover .image-box video { transform: scale(1.05); }
.card-category { font-size: 12px; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 15px; display: block; color: #888; }
.card-title { font-size: 24px; font-weight: bold; margin-bottom: 10px; letter-spacing: -1px; }
.card-desc { font-size: 16px; color: #666; line-height: 1.4; max-width: 80%; }

.info-block { grid-column: span 4; padding: 40px; background: #1a1a1a; color: #f2f0e9; display: flex; flex-direction: column; justify-content: space-between; min-height: 400px; }
.info-block h2 { font-size: 40px; line-height: 1; letter-spacing: -1px; }
.info-link { font-size: 14px; text-decoration: underline; color: #f2f0e9; margin-top: 20px; display: inline-block; }

.code-editor-section { width: 100%; padding: 48px 0; margin-top: 48px; background: transparent; }
.editor-window { width: 100%; max-width: 1000px; margin: 0 auto; background: #1e1e1e; border-radius: 12px; overflow: hidden; box-shadow: 0 50px 100px rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.1); position: relative; cursor: default; }
.editor-header { background: #252526; padding: 12px 20px; display: flex; align-items: center; gap: 15px; border-bottom: 1px solid rgba(255,255,255,0.05); cursor: grab; }
.window-title { color: #969696; font-size: 12px; flex-grow: 1; text-align: center; text-transform: uppercase; letter-spacing: 1px; pointer-events: none; }
.window-controls { display: flex; gap: 8px; }
.control { width: 12px; height: 12px; border-radius: 50%; }
.control.red { background: #ff5f56; }
.control.yellow { background: #ffbd2e; }
.control.green { background: #27c93f; }
.file-tab { color: #969696; font-size: 13px; background: #1e1e1e; padding: 8px 20px; border-radius: 5px 5px 0 0; margin-bottom: -13px; }
.editor-content { padding: 30px; font-family: 'Consolas', 'Monaco', 'Courier New', monospace; font-size: 16px; line-height: 1.5; color: #d4d4d4; min-height: 400px; }
.line-number { color: #858585; margin-right: 20px; user-select: none; display: inline-block; width: 30px; text-align: right; }
.code-keyword { color: #569cd6; }
.code-func { color: #dcdcaa; }
.code-string { color: #ce9178; }
.code-comment { color: #6a9955; }
.ai-chat-box { background: #252526; padding: 20px; border-top: 1px solid rgba(255,255,255,0.1); display: flex; align-items: center; gap: 15px; }
.ai-input { flex: 1; background: #3c3c3c; border: 1px solid #555; border-radius: 6px; padding: 12px 15px; color: #fff; font-family: inherit; font-size: 14px; outline: none; }
.ai-badge { background: #007acc; color: #fff; padding: 4px 8px; border-radius: 4px; font-size: 10px; font-weight: bold; text-transform: uppercase; }

.about-intro-section { padding: 0; margin-bottom: 0; background: transparent; }
.about-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 40px; align-items: center; }
.about-image { grid-column: span 5; aspect-ratio: 4/5; background: #e8e6df; overflow: hidden; border-radius: 4px; }
.about-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); }
.about-content { grid-column: span 7; }
.about-content h2 { font-size: clamp(40px, 5vw, 80px); line-height: 1.0; margin-bottom: 30px; letter-spacing: -2px; text-transform: uppercase; }
.about-content h2.role-typing { text-transform: none; }
.about-content p { font-size: 18px; line-height: 1.6; color: #444; max-width: 600px; margin-bottom: 40px; }
.about-btn { display: inline-block; padding: 15px 40px; border: 1px solid #1a1a1a; color: #1a1a1a; text-decoration: none; font-size: 14px; font-weight: bold; text-transform: uppercase; letter-spacing: 2px; transition: all 0.3s; }
.about-btn:hover { background: #1a1a1a; color: #f2f0e9; }

.logo-ticker { width: 100%; padding: 48px 0 0 0; overflow: hidden; border-top: 1px solid rgba(0,0,0,0.05); background: transparent; position: relative; margin-top: 48px; }
.vibe-coding-title { font-size: 24px; font-weight: bold; margin-top: 48px; margin-bottom: 20px; text-transform: uppercase; letter-spacing: 2px; }
.slider-container { position: relative; width: 100%; }
.slider-nav-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 50px; height: 50px; background: rgba(26, 26, 26, 0.8); color: #fff; border: none; border-radius: 50%; cursor: pointer; z-index: 10; display: flex; align-items: center; justify-content: center; font-size: 20px; transition: all 0.3s; opacity: 0; backdrop-filter: blur(10px); }
.slider-container:hover .slider-nav-btn { opacity: 1; }
.slider-nav-btn:hover { background: #000; scale: 1.1; }
.slider-nav-btn.prev { left: -25px; }
.slider-nav-btn.next { right: -25px; }
.app-cards-slider { width: 100%; overflow-x: auto; padding: 20px 0; margin-bottom: 20px; display: flex; gap: 20px; scrollbar-width: none; -ms-overflow-style: none; scroll-behavior: smooth; }
.app-slider-card { flex: 0 0 360px; background: rgba(26, 26, 26, 0.03); border-radius: 28px; padding: 30px; border: 1px solid rgba(0,0,0,0.05); text-decoration: none; color: inherit; transition: all 0.3s; position: relative; overflow: hidden; }
.app-slider-card:hover { background: rgba(26, 26, 26, 0.05); transform: translateY(-5px); }
.app-slider-icon { width: 80px; height: 80px; border-radius: 18px; margin-bottom: 20px; box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
.app-slider-info h3 { font-size: 22px; font-weight: bold; margin-bottom: 8px; }
.app-slider-info p { font-size: 15px; color: #666; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.slider-mouse-light { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: radial-gradient(400px circle at var(--mouse-x) var(--mouse-y), rgba(0, 0, 0, 0.03), transparent 40%); pointer-events: none; opacity: 0; transition: opacity 0.5s; }
.app-slider-card:hover .slider-mouse-light { opacity: 1; }
.ticker-wrapper { display: flex; width: fit-content; animation: ticker 40s linear infinite; align-items: center; }
.logo-item { padding: 0 30px; filter: grayscale(1) contrast(0.5); opacity: 0.3; transition: all 0.3s; }
.logo-item:hover { opacity: 1; filter: grayscale(0) contrast(1); }
.logo-item img { height: 80px; width: auto; object-fit: contain; }
@keyframes ticker { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

@media (max-width: 768px) {
    .game-container { width: 100%; margin: 0; border-radius: 0; height: 100vh; }
    .hero-section { padding: 0; }
    .hero-section h1 { font-size: clamp(36px, 12vw, 64px); letter-spacing: -2px; }
    .main-grid { display: flex; flex-direction: column; gap: 40px; }
    .card, .info-block { width: 100%; margin-bottom: 20px; }
    .info-block { min-height: 300px; padding: 30px; }
    .info-block h2 { font-size: 32px; }
    
    .code-editor-section { padding: 48px 20px; margin-top: 48px; }
    .editor-window { box-shadow: 0 20px 50px rgba(0,0,0,0.2); }
    .editor-content { padding: 20px; font-size: 14px; min-height: 300px; }
    .line-number { margin-right: 10px; width: 20px; }
    .ai-chat-box { padding: 15px; flex-direction: column; align-items: flex-start; gap: 10px; }
    .ai-input { width: 100%; }

    .about-grid { display: flex; flex-direction: column; gap: 40px; }
    .about-image { width: 100%; aspect-ratio: 1/1; }
    .about-content h2 { font-size: 36px; }
    
    .category-item { padding: 20px; font-size: 24px; }
    .logo-item { padding: 0 15px; }
    .logo-item img { height: 50px; }
}
