/* ========================================
   曾析乐 - 不叫下雨天
   水豚噜噜治愈风 · 奶绿米色系 · 左右翻页
   ======================================== */

:root {
    --primary: #8fbc8f;
    --primary-light: #c8e6c9;
    --primary-dark: #5d8a5d;
    --accent: #ffd54f;
    --accent-soft: #fff8e1;
    --bg: #fef9f0;
    --bg-card: rgba(255, 255, 255, 0.92);
    --text: #4a4a4a;
    --text-light: #7a7a7a;
    --text-muted: #a0a0a0;
    --font-cute: 'ZCOOL KuaiLe', cursive;
    --font-sans: 'Noto Sans SC', -apple-system, sans-serif;
    --shadow-sm: 0 2px 12px rgba(143, 188, 143, 0.15);
    --shadow-md: 0 8px 30px rgba(143, 188, 143, 0.2);
    --shadow-lg: 0 15px 50px rgba(143, 188, 143, 0.25);
    --radius: 20px;
    --radius-sm: 12px;
    --radius-pill: 50px;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; scroll-snap-type: y mandatory; }

body {
    font-family: var(--font-sans);
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }

::selection { background: var(--primary-light); color: var(--primary-dark); }

/* 浮动水豚装饰 */
.capybara-float {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 8px;
    z-index: 1000;
    animation: floatBounce 3s ease-in-out infinite;
}

.capybara-float i {
    font-size: 1.2rem;
    color: var(--primary);
    opacity: 0.5;
}

.capybara-float i:nth-child(2) { animation-delay: 0.3s; }
.capybara-float i:nth-child(3) { animation-delay: 0.6s; }

@keyframes floatBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* 全屏页面 */
.page-section {
    width: 100%;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    scroll-snap-align: start;
}

.page-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.page-bg img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
}

.bg-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        rgba(254, 249, 240, 0.7) 0%,
        rgba(200, 230, 201, 0.3) 50%,
        rgba(254, 249, 240, 0.7) 100%
    );
}

.page-content {
    position: relative;
    z-index: 2;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 24px 120px;
}

.page-title {
    font-family: var(--font-cute);
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: var(--primary-dark);
    margin-bottom: 40px;
    text-align: center;
    animation: fadeInDown 0.6s ease;
}

.page-title i {
    margin-right: 10px;
    color: var(--primary);
}

/* 首页 */
.welcome-text {
    text-align: center;
}

.bounce {
    font-family: var(--font-cute);
    font-size: clamp(2.5rem, 6vw, 4rem);
    color: var(--primary-dark);
    animation: welcomeBounce 2s ease-in-out infinite;
    text-shadow: 0 4px 20px rgba(143, 188, 143, 0.3);
}

@keyframes welcomeBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.scroll-hint {
    position: absolute;
    bottom: 100px;
    font-size: 2rem;
    color: var(--primary);
    animation: scrollHint 2s ease-in-out infinite;
}

@keyframes scrollHint {
    0%, 100% { transform: translateY(0); opacity: 0.7; }
    50% { transform: translateY(10px); opacity: 1; }
}

/* 关于页 */
.profile-layout {
    display: flex;
    align-items: flex-start;
    gap: 50px;
    max-width: 900px;
    width: 100%;
}

.avatar-section {
    position: relative;
    flex-shrink: 0;
}

.avatar {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid white;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.avatar:hover {
    transform: scale(1.05) rotate(-3deg);
}

.sticker-deco {
    position: absolute;
    top: -10px;
    right: -30px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sticker {
    padding: 6px 14px;
    background: var(--accent-soft);
    border: 2px dashed var(--accent);
    border-radius: var(--radius-pill);
    font-family: var(--font-cute);
    font-size: 0.9rem;
    color: var(--text);
    animation: stickerPop 0.5s ease both;
}

.sticker:nth-child(2) { animation-delay: 0.2s; }
.sticker:nth-child(3) { animation-delay: 0.4s; }

@keyframes stickerPop {
    from { opacity: 0; transform: scale(0.5) rotate(-10deg); }
    to { opacity: 1; transform: scale(1) rotate(0deg); }
}

.profile-card {
    background: var(--bg-card);
    padding: 30px 35px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    flex: 1;
    backdrop-filter: blur(10px);
}

.info-row {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px dashed var(--primary-light);
}

.info-row:last-child { border-bottom: none; }

.info-label {
    width: 100px;
    font-family: var(--font-cute);
    font-size: 1rem;
    color: var(--text-light);
}

.info-value {
    font-size: 1.1rem;
    color: var(--text);
    font-weight: 500;
}

/* 日常页 */
.hobby-sections {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    width: 100%;
    max-width: 1100px;
}

.hobby-block {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 25px;
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.hobby-block:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
}

.hobby-block h3 {
    font-family: var(--font-cute);
    font-size: 1.3rem;
    color: var(--primary-dark);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hobby-block h3 i { color: var(--primary); }

.hobby-photos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.hobby-photos img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.hobby-photos img:hover {
    transform: scale(1.05);
}

/* 成长页 */
.growth-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 30px 35px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(10px);
    max-width: 800px;
    width: 100%;
    transition: var(--transition);
}

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

.growth-card h3 {
    font-family: var(--font-cute);
    font-size: 1.4rem;
    color: var(--primary-dark);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.growth-card h3 i { color: var(--accent); }

.achievement-list {
    list-style: none;
    padding-left: 0;
}

.achievement-list li {
    padding: 10px 0 10px 25px;
    position: relative;
    font-size: 1rem;
    color: var(--text);
    border-bottom: 1px dashed var(--primary-light);
}

.achievement-list li:last-child { border-bottom: none; }

.achievement-list li::before {
    content: '✨';
    position: absolute;
    left: 0;
}

.more-achievement {
    margin-top: 15px;
    font-family: var(--font-cute);
    color: var(--text-light);
    font-size: 0.95rem;
}

.daily-fragments p {
    padding: 12px 0;
    font-size: 1rem;
    color: var(--text);
    line-height: 1.6;
    border-bottom: 1px dashed var(--primary-light);
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.daily-fragments p:last-child { border-bottom: none; }

.daily-fragments p i {
    color: var(--primary);
    margin-top: 4px;
}

.quote-card {
    background: linear-gradient(135deg, var(--primary-light), var(--accent-soft));
    border: 2px solid var(--primary-light);
    text-align: center;
}

.quote-card p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text);
}

/* 留言页 */
.message-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 40px;
    margin-bottom: 25px;
    box-shadow: var(--shadow-md);
    text-align: center;
    max-width: 600px;
    width: 100%;
}

.message-card p {
    font-family: var(--font-cute);
    font-size: 1.3rem;
    color: var(--text);
}

.contact-card {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 25px;
    background: var(--bg-card);
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

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

.contact-item i {
    font-size: 1.2rem;
    color: var(--primary);
}

.contact-item span {
    font-size: 1rem;
    color: var(--text);
}

.footer-text {
    font-family: var(--font-cute);
    font-size: 1rem;
    color: var(--text-light);
    margin-top: 20px;
}

/* 导航按钮 */
.page-nav {
    position: fixed;
    left: 50%;
    bottom: 30px;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
    z-index: 100;
}

.nav-btn {
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 3px solid var(--primary);
    border-radius: 50%;
    font-size: 1.2rem;
    color: var(--primary);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.nav-btn:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 响应式 */
@media (max-width: 992px) {
    .hobby-sections { grid-template-columns: repeat(2, 1fr); }
    .profile-layout { flex-direction: column; align-items: center; }
}

@media (max-width: 768px) {
    html { scroll-snap-type: none; }

    .avatar { width: 150px; height: 150px; }
    .sticker-deco { right: -20px; }
    .sticker { padding: 4px 10px; font-size: 0.8rem; }

    .hobby-sections { grid-template-columns: 1fr; }

    .growth-card { padding: 25px 20px; }

    .contact-card { flex-direction: column; align-items: center; }
    .contact-item { width: 100%; justify-content: center; }

    .page-nav { bottom: 20px; gap: 15px; }
    .nav-btn { width: 45px; height: 45px; font-size: 1rem; }

    .capybara-float { top: 10px; right: 10px; }
    .capybara-float i { font-size: 1rem; }
}

/* 滚动条 */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary-light), var(--primary));
    border-radius: 4px;
}

.tech-footer {
    background: var(--bg);
    padding: 30px;
    text-align: center;
    border-top: 1px solid var(--primary-light);
}

.tech-support {
    font-size: 0.85rem !important;
    color: var(--text-muted) !important;
}

.tech-support a {
    color: var(--primary);
    transition: color 0.3s;
}

.tech-support a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}
