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

:root {
    --bg: #faf9f7;
    --bg-alt: #f3f1ee;
    --bg-card: #ffffff;
    --text: #3d3929;
    --text-dim: #8a8578;
    --text-light: #b0aa9e;
    --accent: #e8913a;
    --accent2: #c97b2a;
    --blue: #5b8def;
    --green: #5bb89a;
    --pink: #e87698;
    --purple: #9b7ed8;
    --border: #e8e4dd;
    --shadow: 0 2px 16px rgba(61,57,41,0.06);
    --shadow-hover: 0 8px 30px rgba(61,57,41,0.1);
    --radius: 16px;
}

html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    background: rgba(250,249,247,0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: all 0.3s ease;
}

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

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text);
    font-weight: 700;
    font-size: 1.1rem;
}

.brand-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 10px rgba(232,145,58,0.4);
}

.nav-links { display: flex; gap: 4px; }

.nav-link {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.25s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--text);
    background: rgba(232,145,58,0.08);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: 0.3s;
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 100px 24px 80px;
    position: relative;
    overflow: hidden;
}

.hero-bg-shapes {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
    z-index: 0;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
}

.shape-1 {
    width: 400px; height: 400px;
    background: #fde68a;
    top: 10%; left: 5%;
    animation: drift1 20s ease-in-out infinite;
}

.shape-2 {
    width: 350px; height: 350px;
    background: #c4b5fd;
    top: 20%; right: 10%;
    animation: drift2 25s ease-in-out infinite;
}

.shape-3 {
    width: 300px; height: 300px;
    background: #a7f3d0;
    bottom: 15%; left: 30%;
    animation: drift3 18s ease-in-out infinite;
}

@keyframes drift1 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(40px,-30px)} }
@keyframes drift2 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(-30px,20px)} }
@keyframes drift3 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(20px,-30px)} }

.hero-content { position: relative; z-index: 1; }

.hero-avatar {
    margin: 0 auto 28px;
    width: 120px; height: 120px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #fff;
    box-shadow: 0 8px 30px rgba(61,57,41,0.12);
    transition: transform 0.4s ease;
}

.hero-avatar:hover { transform: rotate(360deg); }

.hero-avatar img {
    width: 100%; height: 100%;
    object-fit: cover;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.hero-subtitle {
    font-size: 1.05rem;
    color: var(--text-dim);
    letter-spacing: 0.1em;
    margin-bottom: 24px;
}

.hero-desc {
    font-size: 1rem;
    color: var(--text-dim);
    line-height: 1.8;
    max-width: 400px;
    margin: 0 auto 32px;
}

.hero-tags {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 48px;
}

.htag {
    padding: 6px 18px;
    border-radius: 50px;
    background: #fff;
    border: 1px solid var(--border);
    font-size: 0.85rem;
    color: var(--text-dim);
}

.scroll-hint {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.8rem;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%,100%{transform:translateY(0)} 50%{transform:translateY(8px)}
}

.section {
    padding: 80px 0;
}

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

.section-num {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 8px;
}

.section-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.01em;
    margin-bottom: 12px;
}

.section-line {
    width: 40px;
    height: 3px;
    background: var(--accent);
    border-radius: 3px;
    margin: 0 auto;
}

.section-desc {
    text-align: center;
    color: var(--text-dim);
    font-size: 0.95rem;
    max-width: 400px;
    margin: -20px auto 40px;
}

.travel-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 200px;
    gap: 16px;
}

.travel-card {
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    position: relative;
}

.travel-card.tall {
    grid-row: span 2;
}

.travel-img {
    width: 100%;
    height: 100%;
    position: relative;
    transition: transform 0.4s ease;
}

.travel-card:hover .travel-img {
    transform: scale(1.05);
}

.travel-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0,0,0,0.4));
    color: #fff;
}

.travel-overlay h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.travel-overlay p {
    font-size: 0.8rem;
    opacity: 0.85;
}

.gallery-layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 32px;
    align-items: start;
}

.gallery-frame {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.gallery-img {
    width: 100%;
    display: block;
}

.gallery-caption {
    text-align: center;
    color: var(--text-dim);
    font-size: 0.9rem;
    margin-top: 16px;
}

.quote-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.quote-mark {
    font-size: 3rem;
    line-height: 1;
    color: var(--accent);
    font-family: Georgia, serif;
    margin-bottom: 8px;
}

.quote-card p {
    font-size: 0.95rem;
    color: var(--text);
    line-height: 1.8;
    margin-bottom: 12px;
}

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

.stats-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.stat-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: var(--shadow);
}

.stat-num {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--accent);
}

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

.thoughts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.thought-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

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

.thought-card.featured {
    grid-column: span 2;
    background: linear-gradient(135deg, #fff7ed, #fef3c7);
    border-color: #fde68a;
}

.thought-emoji {
    font-size: 2rem;
    margin-bottom: 12px;
}

.thought-card p {
    font-size: 0.95rem;
    color: var(--text);
    line-height: 1.8;
    margin-bottom: 16px;
}

.thought-tag {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 50px;
    background: rgba(232,145,58,0.1);
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 600;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.freelance-card {
    background: linear-gradient(135deg, #fff7ed, #fef3c7);
    border: 1px solid #fde68a;
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 16px;
    text-align: center;
}

.freelance-badge {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 10px;
}

.freelance-desc {
    font-size: 0.88rem;
    color: var(--text-dim);
    line-height: 1.7;
}

.contact-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow);
}

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

.ci-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-light);
}

.ci-value {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
}

.skill-tags {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    margin-bottom: 24px;
}

.skill-tags h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.skill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-tag {
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.skill-tag:nth-child(4n+1) { background: rgba(91,141,239,0.08); color: #4f7edb; }
.skill-tag:nth-child(4n+2) { background: rgba(91,184,154,0.08); color: #3da882; }
.skill-tag:nth-child(4n+3) { background: rgba(155,126,216,0.08); color: #8566c7; }
.skill-tag:nth-child(4n)   { background: rgba(232,145,58,0.08); color: #c97b2a; }

.tag-cloud-area {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
}

.tag-cloud-area h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-cloud span {
    padding: 8px 18px;
    border-radius: 50px;
    background: var(--bg-alt);
    font-size: 0.82rem;
    color: var(--text-dim);
    transition: all 0.25s ease;
    cursor: default;
}

.tag-cloud span:hover {
    background: rgba(232,145,58,0.08);
    color: var(--accent);
}

.footer {
    border-top: 1px solid var(--border);
    padding: 28px 0;
    background: var(--bg-alt);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text);
}

.footer-center {
    font-size: 0.82rem;
    color: var(--text-dim);
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-center a {
    color: var(--text-dim);
    text-decoration: none;
}

.footer-center a:hover { color: var(--text); }

.divider { opacity: 0.3; }

.project-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.project-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    text-decoration: none;
    color: var(--text);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

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

.project-icon {
    width: 52px; height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.project-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}

.project-card p {
    font-size: 0.88rem;
    color: var(--text-dim);
    line-height: 1.6;
    flex: 1;
    margin-bottom: 16px;
}

.project-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
}

.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

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

@media (max-width: 1024px) {
    .project-grid { grid-template-columns: repeat(2, 1fr); }
    .travel-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
    .travel-card.tall { grid-row: span 1; }
    .gallery-layout { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-toggle { display: flex; }
    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 64px; left: 0; right: 0;
        background: rgba(250,249,247,0.98);
        padding: 16px 24px;
        border-bottom: 1px solid var(--border);
    }
    .hero { padding: 80px 20px 60px; }
    .hero-tags { flex-wrap: wrap; }
    .section { padding: 60px 0; }
    .project-grid { grid-template-columns: 1fr; }
    .travel-grid { grid-template-columns: 1fr; grid-auto-rows: 160px; }
    .travel-card.tall { grid-row: span 1; }
    .thoughts-grid { grid-template-columns: 1fr; }
    .thought-card.featured { grid-column: span 1; }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-inner { flex-direction: column; gap: 12px; text-align: center; }
}
