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

body {
    font-family: 'Inter', sans-serif;
    background-color: #0a0a0a;
    color: #fbbf24;
    overflow-x: hidden;
    cursor: crosshair;
}

/* 苹果风格网格背景 - 灵动高级 */
.grid-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-size: 40px 40px;
    background-position: 0 0, 0 0;
    pointer-events: none;
    z-index: 0;
}

.grid-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(255, 255, 255, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

/* 扫描线效果 */
.scanline {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: rgba(251, 191, 36, 0.1);
    animation: scan 8s linear infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes scan {
    0% { transform: translateY(0); }
    100% { transform: translateY(100vh); }
}

/* 文字发光效果 */
.glow-text {
    text-shadow: 0 0 20px rgba(251, 191, 36, 0.3);
}

.glow-text-strong {
    text-shadow: 0 0 30px rgba(251, 191, 36, 0.5);
}

/* 项目标题 - 苹果风格高级感 */
.project-title-premium {
    color: #ffffff !important;
    font-weight: 700;
    text-shadow: 0 0 24px rgba(255, 255, 255, 0.12);
}

/* 自定义滚动条 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
    background: rgba(251, 191, 36, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(251, 191, 36, 0.5);
}

/* 导航链接下划线动画 */
.nav-link {
    position: relative;
    transition: all 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: #fbbf24;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* 项目卡片悬停效果 */
.project-card {
    border: 1px solid rgba(251, 191, 36, 0.1);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    background: rgba(20, 20, 20, 0.8);
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(251, 191, 36, 0.05), transparent);
    transition: left 0.5s ease;
}

.project-card:hover::before {
    left: 100%;
}

.project-card:hover {
    border-color: rgba(251, 191, 36, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 10px 40px -10px rgba(251, 191, 36, 0.1);
}

/* 苹果风格红黄绿点分隔栏 - 透明悬浮毛玻璃效果 */
.section-divider {
    width: 100%;
    height: 32px;
    display: flex;
    align-items: center;
    position: relative;
    margin: 0;
    padding: 0 16px;
    background: rgba(60, 60, 60, 0.35);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
}

.divider-dots {
    display: flex;
    align-items: center;
    gap: 8px;
}

.divider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.divider-dot.red { background: #ff5f57; }
.divider-dot.yellow { background: #febc2e; }
.divider-dot.green { background: #28c840; }

.section-number {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.5);
    text-shadow: none;
}

/* 时间线样式 */
.timeline-line {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom, rgba(251, 191, 36, 0.3), transparent);
}

.timeline-dot {
    position: absolute;
    left: -3px;
    width: 7px;
    height: 7px;
    background: #fbbf24;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(251, 191, 36, 0.5);
}

/* 打字机光标 */
.cursor-blink {
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

/* 浮动粒子 */
.particle {
    position: fixed;
    width: 2px;
    height: 2px;
    background: rgba(251, 191, 36, 0.4);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

/* 技能条动画 */
.skill-bar {
    background: rgba(251, 191, 36, 0.1);
    height: 2px;
    position: relative;
    overflow: hidden;
}

.skill-fill {
    height: 100%;
    background: #fbbf24;
    box-shadow: 0 0 10px rgba(251, 191, 36, 0.5);
    transition: width 1.5s ease;
}

/* 按钮样式 */
.btn-primary {
    border: 1px solid rgba(251, 191, 36, 0.3);
    background: transparent;
    color: #fbbf24;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    background: rgba(251, 191, 36, 0.1);
    border-color: #fbbf24;
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.2);
}

/* 标签样式 */
.tag {
    border: 1px solid rgba(251, 191, 36, 0.3);
    color: #fbbf24;
    padding: 4px 12px;
    font-size: 0.75rem;
    font-family: 'JetBrains Mono', monospace;
    transition: all 0.3s ease;
}

.tag:hover {
    background: rgba(251, 191, 36, 0.1);
    border-color: rgba(251, 191, 36, 0.5);
}

/* 代码块样式 */
.code-block {
    font-family: 'JetBrains Mono', monospace;
    background: rgba(251, 191, 36, 0.03);
    border: 1px solid rgba(251, 191, 36, 0.1);
    position: relative;
}

.code-block::before {
    content: '>';
    position: absolute;
    left: 16px;
    color: rgba(251, 191, 36, 0.5);
}

/* 滚轮卡片响应式 */
@media (max-width: 768px) {
    .carousel-card {
        flex: 0 0 300px;
        min-width: 300px;
    }
    .carousel-arrow {
        width: 36px;
        height: 36px;
    }
    .carousel-arrow-left { left: 4px; }
    .carousel-arrow-right { right: 4px; }
}

/* 响应式调整 */
@media (max-width: 768px) {
    .grid-bg {
        background-size: 30px 30px;
    }
    .hero-typing-wrapper {
        font-size: clamp(1.25rem, 5vw, 2rem);
    }
    .hero-text-main {
        font-size: 1.5rem;
    }
    .hero-text-sub {
        font-size: 1rem;
    }
}

/* 淡入动画 */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 高亮文字 */
.highlight {
    background: rgba(251, 191, 36, 0.1);
    padding: 0 4px;
    border-bottom: 1px solid rgba(251, 191, 36, 0.3);
}

/* 链接样式 */
a {
    color: #fbbf24;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

a:hover {
    opacity: 0.7;
}

/* 社交媒体图标 */
.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fbbf24;
}

.social-icon svg {
    width: 24px;
    height: 24px;
}

/* Contact 标题 - 两行循环打字，7秒一轮 */
.contact-typing {
    font-family: 'Press Start 2P', monospace !important;
    font-size: clamp(1rem, 3vw, 2rem);
    color: #fff;
    font-weight: bold;
    letter-spacing: 0.05em;
    -webkit-font-smoothing: none !important;
    -moz-osx-font-smoothing: unset !important;
    text-align: center;
}

.contact-typing-line {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2px;
    margin-bottom: 0.5rem;
}

.contact-typing-line:last-child {
    margin-bottom: 0;
}

.contact-typing-text-1,
.contact-typing-text-2 {
    overflow: hidden;
    white-space: nowrap;
    font-family: 'Press Start 2P', monospace !important;
    -webkit-font-smoothing: none !important;
    -moz-osx-font-smoothing: unset !important;
    width: 0;
}

.contact-typing-text-1 {
    animation: contact-type-1 7s steps(12, end) infinite;
}

.contact-typing-text-2 {
    animation: contact-type-2 7s steps(24, end) infinite;
}

.contact-typing-cursor {
    font-family: 'Press Start 2P', monospace !important;
    -webkit-font-smoothing: none !important;
    -moz-osx-font-smoothing: unset !important;
    animation: hero-blink-cursor 0.75s step-end infinite;
}

/* build后无停顿直接接第二行，together后有停顿 */
@keyframes contact-type-1 {
    0% { width: 0; }
    14% { width: 12ch; }
    95% { width: 12ch; }
    100% { width: 0; }
}

@keyframes contact-type-2 {
    0%, 14% { width: 0; }
    50% { width: 24ch; }
    95% { width: 24ch; }
    100% { width: 0; }
}

/* Hello, I'm Cherie - 像素字体，循环打字，无光晕 */
.hero-typing-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Press Start 2P', monospace !important;
    font-size: clamp(1.5rem, 4vw, 3rem);
    color: #fff;
    font-weight: bold;
    letter-spacing: 0.05em;
    -webkit-font-smoothing: none !important;
    -moz-osx-font-smoothing: unset !important;
}

.hero-typing-text,
.hero-typing-cursor {
    font-family: 'Press Start 2P', monospace !important;
    -webkit-font-smoothing: none !important;
    -moz-osx-font-smoothing: unset !important;
}

.hero-typing-text {
    overflow: hidden;
    white-space: nowrap;
    animation: hero-typing-loop 7s steps(18, end) infinite;
    width: 0;
}

.hero-typing-cursor {
    animation: hero-blink-cursor 0.75s step-end infinite;
}

@keyframes hero-typing-loop {
    0% { width: 0; }
    36% { width: 18ch; }
    95% { width: 18ch; }
    100% { width: 0; }
}

@keyframes hero-blink-cursor {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

/* 苹果风格红黄绿窗口框 */
.hero-window {
    background: rgba(26, 29, 38, 0.95);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.hero-window-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: rgba(45, 49, 58, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-window-dots {
    display: flex;
    gap: 8px;
}

.hero-window-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.hero-window-dot.red { background: #ff5f57; }
.hero-window-dot.yellow { background: #febc2e; }
.hero-window-dot.green { background: #28c840; }

.hero-window-title {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

.hero-window-content {
    padding: 24px 28px;
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
}

/* System ready. Exploring... 循环打字 4秒 */
.hero-system-ready {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    color: #febc2e;
}

.hero-system-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #febc2e;
    flex-shrink: 0;
    animation: hero-system-pulse 1.5s ease-in-out infinite;
}

@keyframes hero-system-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.hero-system-text {
    overflow: hidden;
    white-space: nowrap;
    animation: hero-system-typing 4s steps(26, end) infinite;
    width: 0;
}

.hero-system-cursor {
    animation: hero-blink-cursor 0.75s step-end infinite;
}

@keyframes hero-system-typing {
    0% { width: 0; }
    25% { width: 26ch; }
    95% { width: 26ch; }
    100% { width: 0; }
}

/* 首页框红区域 - 主标题白粗大，副标题金黄斜体小 */
.hero-text-main {
    font-family: 'Inter', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #fff;
}

.hero-text-sub {
    font-family: 'Inter', sans-serif;
    font-size: 1.2rem;
    font-weight: 400;
    font-style: italic;
    padding-left: 1rem;
    margin-bottom: 0.25rem;
    color: #FFD700;
}

/* 打字机效果样式 */
.typewriter-container {
    font-family: 'JetBrains Mono', monospace;
    font-size: 2.5rem;
    line-height: 1.4;
    color: #fff;
}

.typewriter-line {
    overflow: hidden;
    white-space: nowrap;
    border-right: 2px solid #fbbf24;
    animation: typing 3s steps(40, end), blink-caret 0.75s step-end infinite;
    margin-bottom: 0.5rem;
    opacity: 0;
}

.typewriter-line:nth-child(1) { animation-delay: 0s; animation-fill-mode: forwards; }
.typewriter-line:nth-child(2) { animation-delay: 3s; animation-fill-mode: forwards; }
.typewriter-line:nth-child(3) { animation-delay: 6s; animation-fill-mode: forwards; }
.typewriter-line:nth-child(4) { animation-delay: 9s; animation-fill-mode: forwards; }
.typewriter-line:nth-child(5) { animation-delay: 12s; animation-fill-mode: forwards; }

@keyframes typing {
    from { width: 0; opacity: 1; }
    to { width: 100%; opacity: 1; }
}

@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: #fbbf24; }
}

/* 重复打字循环动画 */
.typewriter-loop {
    animation: typing-loop 15s steps(40, end) infinite;
}

@keyframes typing-loop {
    0%, 20% { width: 0; }
    25%, 45% { width: 100%; }
    50%, 100% { width: 0; }
}

/* 人物图像容器 */
.person-image-container {
    position: relative;
    width: 300px;
    height: 400px;
    background: #1a1a1a;
    border: 2px solid rgba(251, 191, 36, 0.3);
    transform: rotate(-3deg);
    transition: transform 0.3s ease;
}

.person-image-container:hover {
    transform: rotate(0deg) scale(1.02);
}

.person-image-container::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: 10px;
    bottom: 10px;
    background: rgba(251, 191, 36, 0.1);
    z-index: -1;
}

/* 滚轮滑动卡片 - 苹果风格 */
.carousel-wrapper {
    position: relative;
    margin-top: 2rem;
    margin-bottom: 3rem;
    padding: 0 48px;
}

.carousel-container {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    cursor: grab;
    padding: 8px 0;
}

.carousel-container::-webkit-scrollbar {
    display: none;
}

.carousel-container:active {
    cursor: grabbing;
}

.carousel-track {
    display: flex;
    gap: 24px;
    padding: 0 4px;
}

.carousel-card {
    flex: 0 0 360px;
    min-width: 360px;
    background: rgba(20, 20, 20, 0.9);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.carousel-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.carousel-card-image {
    position: relative;
    height: 180px;
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
}

.carousel-card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(40, 167, 69, 0.9);
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
}

.carousel-card-link {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    color: #fff;
    transition: background 0.3s ease;
}

.carousel-card-link:hover {
    background: rgba(0, 0, 0, 0.7);
}

.carousel-card-content {
    padding: 20px;
    background: rgba(26, 26, 26, 0.95);
}

.carousel-card-category {
    display: block;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 8px;
}

.carousel-card-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #fff;
    line-height: 1.4;
    margin-bottom: 10px;
}

.carousel-card-desc {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
    margin-bottom: 14px;
}

.carousel-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.carousel-tag {
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 20px;
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.carousel-tag:nth-child(1) { background: rgba(210, 105, 30, 0.3); color: #e8a54b; border-color: rgba(210, 105, 30, 0.4); }
.carousel-tag:nth-child(2) { background: rgba(59, 130, 246, 0.2); color: #60a5fa; border-color: rgba(59, 130, 246, 0.3); }
.carousel-tag:nth-child(3) { background: rgba(168, 85, 247, 0.2); color: #c084fc; border-color: rgba(168, 85, 247, 0.3); }

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(40, 40, 40, 0.8);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.carousel-arrow:hover {
    background: rgba(59, 130, 246, 0.8);
    border-color: rgba(59, 130, 246, 0.5);
}

.carousel-arrow-left {
    left: -12px;
}

.carousel-arrow-right {
    right: -12px;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot:hover,
.carousel-dot.active {
    background: rgba(59, 130, 246, 0.9);
    transform: scale(1.2);
}

/* 奖项区块 - 与上面雅思行完全一致，行间距与奖项内部一致 */
.awards-intro {
    margin-top: 0.5rem;
    margin-bottom: 0;
}

.awards-heading,
.awards-item {
    font-size: 0.8125rem;
    font-weight: 400;
    color: rgba(251, 191, 36, 0.8);
    line-height: 1.4;
}

.awards-item {
    white-space: nowrap;
}

.awards-section {
    font-family: inherit;
}

.awards-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(200px, 1fr));
    gap: 0.5rem 2rem;
}

@media (max-width: 1024px) {
    .awards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .awards-item {
        white-space: normal;
    }
}

@media (max-width: 640px) {
    .awards-grid {
        grid-template-columns: 1fr;
        gap: 0.4rem 0;
    }
}

/* 翻译成绩悬停预览 */
.translation-scores {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8125rem;
    color: rgba(251, 191, 36, 0.8);
    margin-top: 2.5rem;
}

.score-item {
    position: relative;
    cursor: pointer;
    padding: 2px 4px;
    border-radius: 4px;
    transition: color 0.2s ease;
}

.score-item:hover {
    color: #fbbf24;
}

.score-sep {
    opacity: 0.5;
    user-select: none;
}

.score-preview {
    position: absolute;
    bottom: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    visibility: hidden;
    z-index: 100;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.score-item:hover .score-preview {
    opacity: 1;
    visibility: visible;
}

.score-preview img {
    width: 100px;
    height: 133px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid rgba(251, 191, 36, 0.3);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

/* 苹果窗口控制按钮 */
.window-controls {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(30, 30, 30, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.window-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.window-btn.red { background: #ff5f57; }
.window-btn.yellow { background: #febc2e; }
.window-btn.green { background: #28c840; }