/* ==========================================
   CreativeSpace - 现代简约个人网站
   ========================================== */

/* CSS Variables */
:root {
    --primary: #6366f1;
    --primary-light: #818cf8;
    --primary-dark: #4f46e5;
    --primary-bg: #eef2ff;

    --text: #1e293b;
    --text-secondary: #64748b;
    --text-light: #94a3b8;

    --bg: #ffffff;
    --bg-alt: #f8fafc;
    --bg-card: #ffffff;

    --border: #e2e8f0;
    --border-light: #f1f5f9;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.12);

    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
    --radius-full: 9999px;

    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: 'Inter', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text);
    background-color: var(--bg);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ==========================================
   Navigation
   ========================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
    transition: all var(--transition);
}

.navbar.scrolled {
    box-shadow: var(--shadow-sm);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.nav-logo {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.02em;
}

.nav-logo span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links a {
    padding: 8px 18px;
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.nav-links a:hover {
    color: var(--text);
    background: var(--bg-alt);
}

.nav-links a.active {
    color: var(--primary);
    background: var(--primary-bg);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Language Toggle */
.lang-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 36px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-full);
    background: transparent;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
    font-family: inherit;
}

.lang-toggle:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-bg);
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all var(--transition);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ==========================================
   Buttons
   ========================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: all var(--transition);
    border: none;
    gap: 8px;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.35);
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border: 1.5px solid var(--border);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-bg);
}

.btn-white {
    background: white;
    color: var(--primary);
    box-shadow: var(--shadow);
}

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.85rem;
}

/* ==========================================
   Hero Section
   ========================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 24px 60px;
    max-width: 1200px;
    margin: 0 auto;
    gap: 60px;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-greeting {
    font-size: 1.1rem;
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 12px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

.hero-name {
    font-size: clamp(2.5rem, 5vw, 3.8rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--text) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease 0.1s forwards;
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 36px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease 0.2s forwards;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease 0.3s forwards;
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-shape {
    width: 420px;
    height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    animation: fadeIn 1s ease 0.4s forwards;
}

.shape-inner {
    width: 100%;
    height: 100%;
    animation: slowRotate 30s linear infinite;
}

.shape-inner svg {
    width: 100%;
    height: 100%;
}

/* ==========================================
   Stats Section
   ========================================== */
.stats {
    padding: 60px 0;
    background: var(--bg-alt);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    text-align: center;
}

.stat-item {
    padding: 16px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.02em;
}

.stat-suffix {
    font-size: 2rem;
    font-weight: 600;
    color: var(--primary-light);
}

.stat-label {
    margin-top: 4px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* ==========================================
   Section
   ========================================== */
.section {
    padding: 100px 0;
}

.section-alt {
    background: var(--bg-alt);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto;
}

.section-footer {
    text-align: center;
    margin-top: 48px;
}

/* ==========================================
   Page Header
   ========================================== */
.page-header {
    padding: 120px 24px 40px;
    text-align: center;
    background: linear-gradient(180deg, var(--primary-bg) 0%, var(--bg) 100%);
}

.page-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 12px;
}

.page-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

/* ==========================================
   Works Grid (Homepage)
   ========================================== */
.works-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.work-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-light);
    transition: all var(--transition);
}

.work-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border);
}

.work-image {
    aspect-ratio: 4/3;
    overflow: hidden;
}

.work-placeholder {
    width: 100%;
    height: 100%;
    background: var(--accent, var(--primary));
    display: flex;
    align-items: center;
    justify-content: center;
}

.work-placeholder svg {
    width: 60px;
    height: 60px;
}

.work-info {
    padding: 24px;
}

.work-tag {
    display: inline-block;
    padding: 4px 12px;
    background: var(--primary-bg);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    margin-bottom: 12px;
}

.work-info h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.work-info p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

.work-link {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.work-link:hover {
    color: var(--primary-dark);
    gap: 8px;
}

/* ==========================================
   Blog Cards (Homepage)
   ========================================== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.blog-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-light);
    transition: all var(--transition);
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.blog-image {
    aspect-ratio: 16/10;
    overflow: hidden;
}

.blog-placeholder {
    width: 100%;
    height: 100%;
    background: var(--accent, var(--primary));
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-placeholder svg {
    width: 55px;
    height: 55px;
}

.blog-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 24px 0;
}

.blog-date {
    font-size: 0.8rem;
    color: var(--text-light);
}

.blog-category {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary);
    background: var(--primary-bg);
    padding: 3px 10px;
    border-radius: var(--radius-full);
}

.blog-read {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-left: auto;
}

.blog-card h3 {
    padding: 10px 24px 0;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
}

.blog-card h3 a:hover {
    color: var(--primary);
}

.blog-card > p {
    padding: 8px 24px 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-link {
    display: inline-block;
    padding: 12px 24px 20px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--primary);
}

.blog-link:hover {
    color: var(--primary-dark);
}

/* Blog tags */
.blog-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 12px 0 16px;
}

.blog-tags span {
    padding: 3px 10px;
    background: var(--bg-alt);
    color: var(--text-secondary);
    font-size: 0.75rem;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-light);
}

/* ==========================================
   Blog Page - Large Cards
   ========================================== */
.filter-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.filter-tag {
    padding: 8px 20px;
    border-radius: var(--radius-full);
    border: 1.5px solid var(--border);
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    transition: all var(--transition-fast);
}

.filter-tag:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.filter-tag.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.blog-list {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.blog-card-lg {
    display: flex;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-light);
    transition: all var(--transition);
}

.blog-card-lg:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--border);
}

.blog-card-image {
    flex: 0 0 280px;
    overflow: hidden;
}

.blog-placeholder-lg {
    width: 100%;
    height: 100%;
    min-height: 240px;
    background: var(--accent, var(--primary));
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-placeholder-lg svg {
    width: 70px;
    height: 70px;
}

.blog-card-content {
    flex: 1;
    padding: 28px;
    display: flex;
    flex-direction: column;
}

.blog-card-content .blog-meta {
    padding: 0;
    margin-bottom: 8px;
}

.blog-card-content h2 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.4;
}

.blog-card-content p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Pagination */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 48px;
}

.page-btn {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--border);
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.page-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* ==========================================
   Portfolio Page
   ========================================== */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.portfolio-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-light);
    transition: all var(--transition);
}

.portfolio-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.portfolio-card-lg {
    grid-column: span 2;
    display: flex;
}

.portfolio-card-lg .portfolio-image {
    flex: 0 0 55%;
}

.portfolio-card-lg .portfolio-info {
    flex: 1;
}

.portfolio-image {
    aspect-ratio: 16/10;
    overflow: hidden;
    position: relative;
}

.portfolio-placeholder {
    width: 100%;
    height: 100%;
    background: var(--accent, var(--primary));
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.portfolio-placeholder svg {
    width: 65px;
    height: 65px;
}

.portfolio-placeholder-lg {
    width: 100%;
    height: 100%;
    background: var(--accent, var(--primary));
    display: flex;
    align-items: center;
    justify-content: center;
}

.portfolio-placeholder-lg svg {
    width: 100px;
    height: 65px;
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition);
}

.portfolio-card:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-info {
    padding: 28px;
}

.portfolio-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.portfolio-tags span {
    padding: 4px 12px;
    background: var(--primary-bg);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-full);
}

.portfolio-info h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.portfolio-info p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
}

.portfolio-stats {
    display: flex;
    gap: 32px;
    padding-top: 16px;
    border-top: 1px solid var(--border-light);
}

.portfolio-stat-num {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
    display: block;
}

.portfolio-stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* ==========================================
   About Page
   ========================================== */
.about-intro {
    display: flex;
    gap: 60px;
    align-items: flex-start;
}

.about-avatar {
    flex: 0 0 200px;
}

.avatar-placeholder {
    width: 200px;
    height: 200px;
    border-radius: var(--radius-lg);
    background: var(--bg-alt);
    border: 2px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.avatar-placeholder svg {
    width: 120px;
    height: 120px;
}

.about-text {
    flex: 1;
}

.about-text h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.about-text p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 16px;
}

/* Skills */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.skill-category h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary);
    display: inline-block;
}

.skill-items {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    margin-bottom: 6px;
}

.skill-info span:first-child {
    font-weight: 500;
}

.skill-info span:last-child {
    color: var(--primary);
    font-weight: 600;
}

.skill-bar {
    width: 100%;
    height: 6px;
    background: var(--border-light);
    border-radius: 3px;
    overflow: hidden;
}

.skill-fill {
    height: 100%;
    width: calc(var(--fill) * 1%);
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-radius: 3px;
    transform-origin: left;
    transform: scaleX(0);
    transition: transform 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.skill-fill.animated {
    transform: scaleX(1);
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 40px;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border);
}

.timeline-item {
    position: relative;
    padding-bottom: 48px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -33px;
    top: 6px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--primary);
    border: 3px solid var(--bg-alt);
    z-index: 1;
}

.timeline-content {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 28px;
    border: 1px solid var(--border-light);
    transition: all var(--transition);
}

.timeline-content:hover {
    box-shadow: var(--shadow);
}

.timeline-header {
    margin-bottom: 12px;
}

.timeline-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.timeline-company {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
    margin-right: 12px;
}

.timeline-date {
    font-size: 0.85rem;
    color: var(--text-light);
}

.timeline-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ==========================================
   Contact
   ========================================== */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 60px;
}

.contact-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 32px;
    text-align: center;
    border: 1px solid var(--border-light);
    transition: all var(--transition);
}

.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.contact-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    background: var(--primary-bg);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

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

.contact-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.contact-card a,
.contact-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.contact-card a:hover {
    color: var(--primary);
}

.social-links {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.social-links a {
    font-size: 0.85rem;
    font-weight: 500;
}

/* Contact Form */
.contact-form-wrapper {
    max-width: 700px;
    margin: 0 auto;
}

.contact-form-wrapper h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 28px;
    text-align: center;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text);
}

.form-group input,
.form-group textarea {
    padding: 12px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-family: inherit;
    color: var(--text);
    background: var(--bg);
    transition: all var(--transition-fast);
    outline: none;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* ==========================================
   CTA Section
   ========================================== */
.cta {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    text-align: center;
}

.cta h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: white;
    margin-bottom: 12px;
}

.cta p {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 28px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* ==========================================
   Footer
   ========================================== */
.footer {
    padding: 60px 0 30px;
    background: var(--bg-alt);
    border-top: 1px solid var(--border-light);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand p {
    margin-top: 12px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    max-width: 300px;
}

.footer-links h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid var(--border-light);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.875rem;
    color: var(--text-light);
}

.footer-disclaimer {
    margin-top: 4px;
    font-size: 0.8rem;
    color: var(--text-light);
    opacity: 0.6;
}

/* ==========================================
   Animations
   ========================================== */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

@keyframes slowRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================
   News List
   ========================================== */
.news-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 60px 0;
    color: var(--text-light);
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.news-card {
    display: flex;
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border-light);
    transition: all var(--transition);
    position: relative;
}

.news-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--border);
}

.news-card-rank {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
}

.news-card-image {
    flex: 0 0 120px;
    overflow: hidden;
}

.news-placeholder {
    width: 100%;
    height: 100%;
    min-height: 120px;
    background: var(--accent, var(--primary));
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-placeholder svg {
    width: 55px;
    height: 55px;
}

.news-card-content {
    flex: 1;
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.news-card-content .blog-meta {
    padding: 0;
    margin-bottom: 0;
}

.news-score {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary);
    margin-left: auto;
}

.news-card-content h2 {
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.5;
}

.news-card-content h2 a {
    color: var(--text);
}

.news-card-content h2 a:hover {
    color: var(--primary);
}

.news-domain {
    font-size: 0.8rem;
    color: var(--text-light);
    font-weight: 400;
}

.news-comments {
    margin: 0;
}

.news-comments a {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.news-comments a:hover {
    color: var(--primary);
}

.news-error {
    text-align: center;
    padding: 60px 24px;
    color: var(--text-light);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.news-error svg {
    width: 70px;
    height: 70px;
}

.news-footer {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--border-light);
}

.news-footer p {
    font-size: 0.8rem;
    color: var(--text-light);
}

.news-footer a {
    color: var(--primary);
    font-weight: 500;
}

.news-footer a:hover {
    text-decoration: underline;
}

/* 日期导航 */
.news-date-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 28px;
    padding: 14px 24px;
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border-light);
}

.date-nav-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1.5px solid var(--border);
    background: transparent;
    color: var(--text-secondary);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.date-nav-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-bg);
}

.news-date-text {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
}

/* 日期选择器 */
.date-picker {
    padding: 8px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 600;
    font-family: inherit;
    color: var(--text);
    background: var(--bg);
    cursor: pointer;
    transition: all var(--transition-fast);
    outline: none;
    min-width: 170px;
    text-align: center;
}

.date-picker:hover {
    border-color: var(--primary);
}

.date-picker:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.date-picker::-webkit-calendar-picker-indicator {
    cursor: pointer;
    opacity: 0.6;
}

.date-main {
    font-size: 1.05rem;
}

.date-lunar {
    display: inline-block;
    margin-left: 10px;
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--text-light);
}

/* 每日语录 */
.news-tip {
    margin-top: 32px;
    padding: 20px 24px;
    background: linear-gradient(135deg, var(--primary-bg) 0%, #faf5ff 100%);
    border-radius: var(--radius);
    text-align: center;
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-style: italic;
    line-height: 1.7;
}

.news-tip-icon {
    margin-right: 8px;
}

/* 新闻文本 */
.news-text {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text);
    margin: 0;
}

/* 科技标签 */
.news-tech-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 3px 10px;
    background: rgba(99, 102, 241, 0.9);
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    z-index: 5;
}

@media (max-width: 768px) {
    .news-card {
        flex-direction: column;
    }

    .news-card-image {
        flex: none;
    }

    .news-placeholder {
        min-height: 100px;
    }
}

/* ==========================================
   Modal - 弹窗
   ========================================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--bg);
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 520px;
    padding: 32px;
    box-shadow: var(--shadow-xl);
    transform: translateY(20px) scale(0.95);
    transition: transform var(--transition);
}

.modal-overlay.active .modal {
    transform: translateY(0) scale(1);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.modal-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
}

.modal-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: var(--bg-alt);
    color: var(--text-secondary);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.modal-close:hover {
    background: var(--border);
    color: var(--text);
}

.work-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.color-picker-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.color-option {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 3px solid transparent;
    cursor: pointer;
    transition: all var(--transition-fast);
    outline: none;
}

.color-option:hover {
    transform: scale(1.15);
}

.color-option.active {
    border-color: var(--text);
    transform: scale(1.15);
    box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--text);
}

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 8px;
}

/* 空状态 */
.works-empty {
    text-align: center;
    padding: 48px 24px;
    color: var(--text-light);
}

.works-empty svg {
    width: 80px;
    height: 80px;
    margin-bottom: 16px;
    opacity: 0.4;
}

.works-empty p {
    font-size: 1rem;
    margin-bottom: 4px;
}

.works-empty span {
    font-size: 0.85rem;
}

/* 删除按钮 */
.work-delete {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
    background: rgba(239, 68, 68, 0.85);
    color: white;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all var(--transition-fast);
    z-index: 10;
}

.work-card:hover .work-delete {
    opacity: 1;
}

.work-delete:hover {
    background: #dc2626;
    transform: scale(1.1);
}

/* 动态作品卡片位置 */
.work-card {
    position: relative;
}

/* ==========================================
   Responsive Design
   ========================================== */
@media (max-width: 1024px) {
    .works-grid,
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .portfolio-card-lg {
        grid-column: span 1;
        flex-direction: column;
    }

    .portfolio-card-lg .portfolio-image {
        flex: none;
    }

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .footer-brand {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 32px 24px;
        gap: 4px;
        transform: translateX(100%);
        transition: transform var(--transition);
    }

    .nav-links.open {
        transform: translateX(0);
    }

    .nav-links a {
        padding: 14px 20px;
        font-size: 1rem;
        border-radius: var(--radius-sm);
    }

    .hamburger {
        display: flex;
    }

    .hero {
        flex-direction: column;
        padding: 120px 24px 60px;
        text-align: center;
        min-height: auto;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-shape {
        width: 250px;
        height: 250px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .works-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .blog-card-lg {
        flex-direction: column;
    }

    .blog-card-image {
        flex: none;
    }

    .blog-placeholder-lg {
        min-height: 180px;
    }

    .about-intro {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 32px;
    }

    .about-avatar {
        flex: none;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .footer-brand {
        grid-column: auto;
    }

    .section {
        padding: 70px 0;
    }

    .page-header {
        padding: 120px 24px 40px;
    }
}

@media (max-width: 480px) {
    .hero-name {
        font-size: 2rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .container {
        padding: 0 16px;
    }
}
