/* ========================================
   MushroomGirl - 彭欣雨
   Hello Kitty & Garfield
   粉色可爱 · 现代升级版
   ======================================== */

:root {
    --pink: #ff6b8a;
    --pink-light: #ff9eb5;
    --pink-dark: #e84a6a;
    --pink-bg: #fff0f3;
    --pink-glow: rgba(255, 107, 138, 0.15);

    --orange: #ff8a4a;
    --orange-light: #ffb07a;
    --orange-dark: #e87030;
    --orange-glow: rgba(255, 138, 74, 0.15);

    --lavender: #c49ae0;
    --lavender-light: #e4caf5;
    --mint: #8dd6b8;
    --baby-blue: #8ec8e8;
    --cream: #fff8f5;

    --text: #3d2c2c;
    --text-soft: #5a4a4a;
    --text-light: #7a6a6a;
    --text-muted: #aa9a9a;
    --white: #ffffff;

    --shadow-sm: 0 2px 12px rgba(255, 107, 138, 0.08);
    --shadow-md: 0 4px 24px rgba(255, 107, 138, 0.12);
    --shadow-lg: 0 8px 40px rgba(255, 107, 138, 0.18);
    --shadow-orange: 0 4px 24px rgba(255, 138, 74, 0.12);
    --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-padding-top: 80px; }

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

a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; height: auto; }

::selection { background: var(--pink-light); color: var(--text); }

/* ---------- 导航栏 ---------- */
#mainNav {
    background: transparent;
    padding: 16px 0;
    transition: var(--transition);
    z-index: 1000;
}

#mainNav.scrolled {
    background: rgba(255, 240, 243, 0.88);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    padding: 10px 0;
    box-shadow: 0 2px 30px rgba(255, 107, 138, 0.08);
}

.navbar-brand {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--pink-dark) !important;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

#mainNav:not(.scrolled) .navbar-brand { color: var(--white) !important; }

.navbar-brand i { font-size: 1.1rem; }

.nav-link {
    color: var(--text-soft) !important;
    font-weight: 500;
    padding: 8px 20px !important;
    border-radius: var(--radius-pill);
    transition: var(--transition);
    font-size: 0.9rem;
    position: relative;
}

#mainNav:not(.scrolled) .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
}

.nav-link:hover,
.nav-link.active {
    color: var(--white) !important;
    background: linear-gradient(135deg, var(--pink), var(--pink-light));
    box-shadow: 0 4px 16px rgba(255, 107, 138, 0.3);
}

/* ---------- Hero ---------- */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(135deg, #ffe0e8 0%, #ffd1dc 25%, #f0d0f5 50%, #d8e8ff 75%, #ffe0e8 100%);
    background-size: 200% 200%;
    animation: gradientShift 12s ease-in-out infinite;
    overflow: hidden;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 25% 75%, rgba(255, 107, 138, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 75% 25%, rgba(196, 154, 224, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.35) 0%, transparent 60%);
    z-index: 1;
}

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

.hero-avatars {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 28px;
}

.hero-avatar {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--white);
    box-shadow: 0 8px 30px rgba(255, 107, 138, 0.25);
    transition: var(--transition);
    cursor: pointer;
}

.hero-avatar:hover {
    transform: scale(1.12) rotate(-5deg);
    box-shadow: 0 12px 40px rgba(255, 107, 138, 0.35);
}

.hero-avatar:nth-child(2) {
    border-color: var(--orange-light);
    box-shadow: 0 8px 30px rgba(255, 138, 74, 0.25);
}

.hero-avatar:nth-child(2):hover {
    box-shadow: 0 12px 40px rgba(255, 138, 74, 0.35);
}

.hero-title {
    font-size: clamp(2.5rem, 7vw, 3.5rem);
    font-weight: 700;
    color: var(--text);
    margin-bottom: 12px;
    letter-spacing: 2px;
    line-height: 1.2;
}

.hero-title .kitty { color: var(--pink-dark); }
.hero-title .garfield { color: var(--orange-dark); }
.hero-title .amp { color: var(--lavender); font-size: 2.5rem; }

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-soft);
    font-weight: 400;
    max-width: 480px;
    margin: 0 auto;
}

.btn-hero {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 36px;
    border: none;
    border-radius: var(--radius-pill);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: var(--transition);
    background: linear-gradient(135deg, var(--pink), var(--pink-light));
    color: var(--white);
    box-shadow: 0 4px 20px rgba(255, 107, 138, 0.3);
}

.btn-hero:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 8px 32px rgba(255, 107, 138, 0.4);
    color: var(--white);
}

.btn-hero-orange {
    background: linear-gradient(135deg, var(--orange), var(--orange-light));
    box-shadow: 0 4px 20px rgba(255, 138, 74, 0.3);
}

.btn-hero-orange:hover {
    box-shadow: 0 8px 32px rgba(255, 138, 74, 0.4);
}

/* Hero 浮动装饰 */
.hero-decorations {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0; left: 0;
    z-index: 1;
    pointer-events: none;
}

.deco {
    position: absolute;
    font-size: 2rem;
    opacity: 0.35;
    animation: floatDeco 8s ease-in-out infinite;
}

.d1 { top: 12%; left: 8%; animation-delay: 0s; font-size: 2.4rem; }
.d2 { top: 18%; right: 12%; animation-delay: 1.2s; font-size: 1.6rem; }
.d3 { bottom: 22%; left: 15%; animation-delay: 2.4s; }
.d4 { top: 55%; right: 8%; animation-delay: 3.6s; font-size: 2rem; }
.d5 { bottom: 15%; right: 25%; animation-delay: 0.8s; }
.d6 { top: 40%; left: 5%; animation-delay: 4s; }
.d7 { bottom: 35%; left: 35%; animation-delay: 2s; }
.d8 { top: 8%; left: 45%; animation-delay: 5s; }

@keyframes floatDeco {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-16px) rotate(5deg); }
    75% { transform: translateY(-8px) rotate(-3deg); }
}

/* ---------- Section 通用 ---------- */
.section-padding { padding: 100px 0; }
.section-pink { background: var(--pink-bg) !important; }
.section-cream { background: var(--cream) !important; }
.section-lavender { background: var(--lavender-light) !important; }

.section-header { margin-bottom: 50px; }

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.2rem);
    font-weight: 700;
    color: var(--text);
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.title-divider {
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, var(--pink), var(--lavender));
    margin: 0 auto 16px;
    border-radius: 4px;
}

.section-desc {
    font-size: 1rem;
    color: var(--text-light);
    max-width: 480px;
    margin: 0 auto;
}

/* ---------- 角色卡片 ---------- */
.character-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1.5px solid rgba(255, 255, 255, 0.6);
}

.character-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--pink-light);
}

.character-card.garfield-card:hover {
    border-color: var(--orange-light);
    box-shadow: var(--shadow-orange), 0 12px 40px rgba(255, 138, 74, 0.12);
}

.character-img-wrap {
    height: 280px;
    overflow: hidden;
    position: relative;
}

.character-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.character-card:hover .character-img-wrap img {
    transform: scale(1.1);
}

.character-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 6px 18px;
    border-radius: var(--radius-pill);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--white);
    backdrop-filter: blur(4px);
}

.badge-kitty { background: linear-gradient(135deg, var(--pink), var(--pink-light)); }
.badge-garfield { background: linear-gradient(135deg, var(--orange), var(--orange-light)); }

.character-info { padding: 28px; }

.character-info h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}

.character-info .character-subtitle {
    font-size: 0.85rem;
    color: var(--pink);
    font-weight: 500;
    margin-bottom: 12px;
}

.garfield-card .character-info .character-subtitle { color: var(--orange); }

.character-info p {
    font-size: 0.92rem;
    color: var(--text-light);
    line-height: 1.8;
}

.character-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.tag {
    padding: 4px 14px;
    border-radius: var(--radius-pill);
    font-size: 0.78rem;
    font-weight: 500;
}

.tag-pink { background: var(--pink-bg); color: var(--pink-dark); }
.tag-orange { background: #fff3e8; color: var(--orange-dark); }

/* ---------- 趣味事实 ---------- */
.fun-fact-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: var(--radius);
    padding: 36px 24px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    text-align: center;
    border: 1.5px solid rgba(255, 255, 255, 0.5);
    cursor: pointer;
}

.fun-fact-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--pink-light);
}

.fun-fact-icon {
    font-size: 3rem;
    margin-bottom: 16px;
    display: block;
    transition: var(--transition);
}

.fun-fact-card:hover .fun-fact-icon {
    transform: scale(1.2) rotate(-8deg);
}

.fun-fact-card h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}

.fun-fact-card p {
    font-size: 0.88rem;
    color: var(--text-light);
    line-height: 1.7;
}

/* ---------- Gallery ---------- */
.gallery-item {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    cursor: pointer;
    border: 1.5px solid rgba(255, 255, 255, 0.5);
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.gallery-img {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.gallery-emoji {
    font-size: 3.5rem;
    transition: var(--transition);
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.08));
}

.gallery-item:hover .gallery-emoji {
    transform: scale(1.25) rotate(8deg);
}

.gallery-info {
    padding: 18px 20px;
}

.gallery-info h5 {
    font-weight: 600;
    color: var(--text);
    margin-bottom: 2px;
    font-size: 1rem;
}

.gallery-info p {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin: 0;
}

/* ---------- 联系 ---------- */
.contact-card {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--radius);
    padding: 44px;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    border: 1.5px solid rgba(255, 255, 255, 0.5);
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--pink), var(--lavender), var(--orange));
}

.contact-email-display {
    text-align: center;
    margin-bottom: 28px;
    padding: 20px;
    background: linear-gradient(135deg, var(--pink-bg), rgba(196, 154, 224, 0.1));
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 107, 138, 0.1);
}

.contact-email-display i {
    color: var(--pink);
    font-size: 1.4rem;
    margin-right: 8px;
}

.contact-email-display a {
    color: var(--pink-dark);
    font-weight: 600;
    font-size: 1.05rem;
}

.contact-email-display a:hover {
    color: var(--pink);
}

.form-control {
    border: 2px solid #f0e8e8;
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    font-size: 0.95rem;
    transition: var(--transition);
    background: rgba(250, 250, 250, 0.8);
}

.form-control:focus {
    border-color: var(--pink-light);
    box-shadow: 0 0 0 4px rgba(255, 107, 138, 0.1);
    background: var(--white);
}

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

/* ---------- Footer ---------- */
.footer-section {
    background: linear-gradient(135deg, var(--text), #2a1a1a);
    padding: 60px 0 30px;
}

.footer-title {
    color: var(--white);
    font-weight: 600;
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.footer-text {
    font-size: 0.88rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.55);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li { margin-bottom: 10px; }

.footer-links a {
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.88rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--pink-light);
    padding-left: 6px;
}

.social-links { display: flex; gap: 12px; }

.social-link {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.1rem;
    transition: var(--transition);
}

.social-link:hover {
    background: linear-gradient(135deg, var(--pink), var(--pink-light));
    color: var(--white);
    transform: translateY(-4px);
}

.footer-divider { border-color: rgba(255, 255, 255, 0.06); margin: 30px 0 20px; }
.footer-copyright { font-size: 0.82rem; color: rgba(255, 255, 255, 0.25); margin: 0; }

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

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

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

/* ---------- 回到顶部 ---------- */
.btn-back-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--pink), var(--pink-light));
    color: var(--white);
    border: none;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(255, 107, 138, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    cursor: pointer;
}

.btn-back-top.show { opacity: 1; visibility: visible; }

.btn-back-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(255, 107, 138, 0.4);
}

/* ---------- Toast ---------- */
.cute-toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--white);
    color: var(--text);
    padding: 14px 28px;
    border-radius: var(--radius-pill);
    box-shadow: 0 8px 30px rgba(255, 107, 138, 0.2);
    font-size: 0.95rem;
    font-weight: 500;
    z-index: 9999;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    border: 2px solid var(--pink-light);
}

.cute-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ---------- 动画 ---------- */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.fade-in-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.fade-in-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

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

/* ---------- 响应式 ---------- */
@media (max-width: 768px) {
    .hero-title { font-size: 2.4rem; }
    .hero-title .amp { font-size: 1.8rem; }
    .hero-avatars { gap: 14px; }
    .hero-avatar { width: 80px; height: 80px; }
    .section-padding { padding: 70px 0; }
    .section-title { font-size: 1.8rem; }
    .contact-card { padding: 28px; }
    .character-img-wrap { height: 220px; }

    .navbar-collapse {
        background: rgba(255, 240, 243, 0.96);
        backdrop-filter: blur(16px);
        border-radius: var(--radius);
        padding: 16px;
        margin-top: 10px;
        box-shadow: 0 4px 24px rgba(255, 107, 138, 0.1);
    }

    .navbar-collapse .nav-link { color: var(--text-soft) !important; }
    .navbar-collapse .nav-link:hover,
    .navbar-collapse .nav-link.active { color: var(--white) !important; }
}

@media (max-width: 576px) {
    .hero-title { font-size: 1.9rem; }
    .hero-avatars { flex-direction: column; align-items: center; gap: 10px; }
    .hero-avatar { width: 90px; height: 90px; }
    .character-card { margin-bottom: 20px; }
}
