:root {
    --bg: #f5f0e8;
    --text: #1a1a1a;
    --text-secondary: #6b6560;
    --card-bg: rgba(255,255,255,0.78);
    --card-border: rgba(0,0,0,0.06);
    --card-shadow: 0 2px 12px rgba(0,0,0,0.04), 0 0 0 0.5px rgba(0,0,0,0.04);
    --card-hover-shadow: 0 8px 30px rgba(0,0,0,0.08), 0 0 0 0.5px rgba(0,0,0,0.06);
    --accent: #c9985a;
    --accent-hover: #b8884a;
    --radius: 20px;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', 'PingFang SC', 'Noto Sans SC', sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    letter-spacing: -0.01em;
    overflow-x: hidden;
}

/* --- Home Button (fixed) --- */
.home-btn {
    position: fixed;
    top: 72px;
    right: 20px;
    z-index: 200;
    background: rgba(255,255,255,0.88);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--text);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 100px;
    border: 0.5px solid rgba(0,0,0,0.08);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}
.home-btn:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(201,152,90,0.25);
}

/* --- Nav --- */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(20,20,20,0.15);
    backdrop-filter: saturate(120%) blur(16px);
    -webkit-backdrop-filter: saturate(120%) blur(16px);
    border-bottom: 0.5px solid rgba(255,255,255,0.08);
    transition: background 0.4s, border-color 0.4s;
}
nav.scrolled {
    background: rgba(245,240,232,0.82);
    border-bottom-color: rgba(0,0,0,0.06);
}
nav.scrolled .nav-logo,
nav.scrolled .nav-links a { color: var(--text); }
nav.scrolled .nav-links a:hover { color: var(--accent-hover); }

.nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 28px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nav-logo {
    font-weight: 700;
    font-size: 1.05rem;
    color: rgba(255,255,255,0.92);
    letter-spacing: 0.02em;
    transition: color 0.4s;
}
.nav-links { display: flex; gap: 28px; }
.nav-links a {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.65);
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 450;
}
.nav-links a:hover { color: var(--accent); }

/* --- Hero --- */
.hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    text-align: left;
    padding: 100px 28px 140px;
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    inset: 0;
    background: url('/images/kailash.jpg') center 30% / cover no-repeat;
    z-index: 0;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(10,15,25,0.25) 0%,
        rgba(10,15,25,0.05) 35%,
        rgba(10,15,25,0.20) 60%,
        rgba(10,15,25,0.85) 100%
    );
    z-index: 1;
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 820px;
    margin-left: 4vw;
    margin-bottom: 4vh;
    animation: fadeUp 1.2s cubic-bezier(0.22,1,0.36,1) forwards;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.7);
    background: rgba(255,255,255,0.1);
    padding: 6px 16px;
    border-radius: 100px;
    margin-bottom: 32px;
    font-weight: 500;
    border: 0.5px solid rgba(255,255,255,0.15);
    backdrop-filter: blur(4px);
}
.hero h1 {
    font-size: clamp(1.05rem, 2.2vw, 1.55rem);
    font-weight: 400;
    line-height: 2;
    letter-spacing: 0.06em;
    margin-bottom: 12px;
    color: rgba(255,255,255,0.88);
    text-shadow: 0 2px 16px rgba(0,0,0,0.45);
}

/* PC端：核心语句保持单行 */
.hero-line {
    white-space: nowrap;
}

.hero-highlight {
    font-size: clamp(1.15rem, 2.8vw, 1.75rem);
    font-weight: 600;
    line-height: 1.6;
    letter-spacing: 0.04em;
    color: #e8c98f;
    text-shadow: 0 2px 20px rgba(0,0,0,0.5);
    display: block;
}

.scroll-hint {
    position: absolute;
    bottom: 24px;
    right: 28px;
    left: auto;
    transform: none;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    color: rgba(255,255,255,0.45);
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    animation: bounce 2s infinite;
}
.scroll-hint svg {
    width: 20px; height: 20px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}

/* --- Projects Section --- */
.projects-section {
    max-width: 800px;
    margin: 0 auto;
    padding: 100px 28px 80px;
}
.projects-header {
    text-align: center;
    margin-bottom: 56px;
}
.projects-header h2 {
    font-size: 1.5rem;
    font-weight: 680;
    letter-spacing: -0.02em;
    margin-bottom: 10px;
    color: var(--text);
}
.projects-header p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 420;
}

/* --- Artistic Slogan --- */
.slogan-art {
    margin-top: 28px;
    position: relative;
    display: inline-block;
}
.slogan-art::before,
.slogan-art::after {
    content: '"';
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 3.2rem;
    color: var(--accent);
    opacity: 0.35;
    line-height: 1;
    position: absolute;
}
.slogan-art::before {
    top: -18px;
    left: -28px;
}
.slogan-art::after {
    bottom: -32px;
    right: -28px;
    transform: rotate(180deg);
}

.slogan-line {
    display: block;
    margin: 0;
    padding: 0;
}

.slogan-line:first-child {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(1.35rem, 3vw, 1.9rem);
    font-style: italic;
    font-weight: 500;
    letter-spacing: 0.02em;
    line-height: 1.45;
    color: var(--text);
    margin-bottom: 12px;
}

.slogan-line:last-child {
    font-size: clamp(1.1rem, 2.2vw, 1.45rem);
    font-weight: 480;
    letter-spacing: 0.12em;
    line-height: 1.6;
    color: var(--text-secondary);
}

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

/* --- Footer --- */
footer {
    text-align: center;
    padding: 40px 28px;
    color: var(--text-secondary);
    font-size: 0.8rem;
    border-top: 0.5px solid rgba(0,0,0,0.06);
    font-weight: 420;
}
/* --- Animations --- */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(8px); }
    60% { transform: translateY(4px); }
}

.project-card:nth-child(1) { animation: fadeUp 0.7s 0.1s cubic-bezier(0.22,1,0.36,1) forwards; opacity: 0; }
.project-card:nth-child(2) { animation: fadeUp 0.7s 0.2s cubic-bezier(0.22,1,0.36,1) forwards; opacity: 0; }

/* --- Project Cards --- */
.project-card {
    display: flex;
    flex-direction: column;
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 28px 26px 24px;
    text-decoration: none;
    color: var(--text);
    border: 0.5px solid var(--card-border);
    box-shadow: var(--card-shadow);
    transition: all 0.35s cubic-bezier(0.25, 0.1, 0.25, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}
.project-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(600px circle at var(--mx,50%) var(--my,50%), rgba(201,152,90,0.08), transparent 40%);
    opacity: 0;
    transition: opacity 0.4s;
}
.project-card:hover::before { opacity: 1; }
.project-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--card-hover-shadow);
}

.project-icon {
    width: 44px;
    height: 44px;
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 18px;
    position: relative;
    z-index: 1;
}
.icon-sched { background: #fff2d5; }
.icon-openclaw { background: #dbf7e8; }

.project-card h3 {
    font-size: 1.08rem;
    font-weight: 620;
    margin-bottom: 6px;
    position: relative;
    z-index: 1;
    letter-spacing: -0.01em;
}
.project-card p {
    font-size: 0.87rem;
    color: var(--text-secondary);
    line-height: 1.55;
    position: relative;
    z-index: 1;
    font-weight: 420;
}
.project-arrow {
    margin-top: auto;
    padding-top: 16px;
    font-size: 0.82rem;
    color: var(--accent);
    font-weight: 500;
    position: relative;
    z-index: 1;
    opacity: 0;
    transform: translateX(-6px);
    transition: all 0.25s ease;
}
.project-card:hover .project-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* --- Responsive --- */
@media (max-width: 640px) {
    .grid { grid-template-columns: 1fr; }
    .nav-links { display: none; }
    .hero h1 { font-size: 1.2rem; }
    .hero-line { white-space: normal; }
    .hero-highlight { font-size: 1.5rem; }
}
