/* ==========================================================================
   Hello Kitty Dream Theme - Full CSS
   ========================================================================== */

/* --- 1. 全局变量 & 字体 --- */
@import url('https://fonts.googleapis.com/css2?family=Mali:wght@400;700&family=Varela+Round&display=swap');

:root {
    --hk-pink-light: #fff0f5;
    --hk-pink-medium: #ffcce0;
    --hk-pink-dark: #ff85b3;
    --hk-red: #ff3366;
    --hk-shadow: rgba(255, 133, 179, 0.4);
    --hk-text: #5a3a4a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Varela Round", "Mali", "Microsoft YaHei", "PingFang SC", sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background:
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.8) 0%, rgba(255, 204, 224, 0.5) 100%),
        radial-gradient(var(--hk-pink-medium) 15%, transparent 16%) 0 0,
        radial-gradient(var(--hk-pink-medium) 15%, transparent 16%) 8px 8px,
        linear-gradient(to bottom, var(--hk-pink-light) 0%, #ffe6f2 100%);
    background-size: auto, 16px 16px, 16px 16px, auto;
    color: var(--hk-text);
    overflow-x: hidden;
}

a {
    text-decoration: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 25px;
}

/* --- 2. 导航 --- */
.sticky-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    height: 75px;
    display: flex;
    align-items: center;
    background: rgba(255, 240, 245, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 3px solid var(--hk-pink-medium);
    box-shadow: 0 4px 15px var(--hk-shadow);
}

.nav-content {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    height: 50px;
    width: auto;
    display: block;
    filter: drop-shadow(2px 2px 0 #fff);
    transition: 0.3s;
}

.nav-logo:hover {
    transform: scale(1.1) rotate(-5deg);
}

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    color: var(--hk-pink-dark);
    font-size: 16px;
    font-weight: 700;
    padding: 8px 15px;
    border-radius: 20px;
    transition: 0.3s;
}

.nav-links a:hover {
    background: var(--hk-pink-medium);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px var(--hk-shadow);
}

/* --- 3. Hero 区域 --- */
.hero-section {
    position: relative;
    width: 100%;
    min-height: 70vh;
    padding-top: 60px !important;
    padding-bottom: 120px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 10%;
    width: 100px;
    height: 60px;
    background: #fff;
    border-radius: 50px;
    opacity: 0.6;
    z-index: -1;
    box-shadow: 120px 20px 0 #fff, 240px -10px 0 #fff;
}

.hero-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
}

.hero-content-left {
    flex: 1;
    max-width: 550px;
    margin-top: 0;
}

.hero-main-img {
    max-width: 100%;
    height: auto;
    display: block;
    margin-bottom: 25px;
    border-radius: 30px;
    border: 4px solid #fff;
    box-shadow: 0 10px 30px var(--hk-shadow);
}

.subtitle {
    position: relative;
    margin-bottom: 30px;
    padding: 20px 25px;
    font-size: 17px;
    line-height: 1.8;
    font-weight: bold;
    color: var(--hk-pink-dark);
    background: #fff;
    border: 3px solid var(--hk-pink-medium);
    border-radius: 25px;
    box-shadow: 6px 6px 0 var(--hk-pink-light);
}

.subtitle::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 30px;
    width: 0;
    display: block;
    border-width: 15px 15px 0;
    border-style: solid;
    border-color: var(--hk-pink-medium) transparent;
}

.hero-tg-grid {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.unified-btn {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    border: 3px solid #fff;
    border-radius: 50px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    box-shadow: 0 6px 15px var(--hk-shadow);
    transition: all 0.3s ease;
}

.unified-btn:hover {
    transform: translateY(-5px) scale(1.02);
    filter: brightness(1.05);
}

.unified-btn i {
    margin-right: 10px;
    font-size: 22px;
}

.btn-blue {
    background: linear-gradient(to bottom, #4facfe 0%, #00f2fe 100%);
}

.btn-red {
    background: linear-gradient(to bottom, var(--hk-red) 0%, #ff99cc 100%);
}

.btn-purple {
    background: linear-gradient(to bottom, #a18cd1 0%, #fbc2eb 100%);
}

.btn-green {
    background: linear-gradient(to bottom, #43e97b 0%, #38f9d7 100%);
}

@keyframes float-anim {
    0% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-15px) rotate(2deg);
    }
    100% {
        transform: translateY(0) rotate(0deg);
    }
}

.phone-mockup {
    position: relative;
    width: 240px;
    max-width: 40%;
    height: auto;
    margin-top: 10px;
    padding: 10px;
    background: #fff;
    border-radius: 35px;
    box-shadow: 0 15px 35px var(--hk-shadow);
    animation: float-anim 5s ease-in-out infinite;
}

.phone-screen-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 28px;
}

/* --- 4. 成果展示 --- */
.case-section {
    position: relative;
    z-index: 3;
    margin-top: -30px;
    padding-bottom: 50px;
    scroll-margin-top: 80px;
    background: url("data:image/svg+xml;utf8,<svg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'><circle cx='20' cy='20' r='2' fill='%23ff85b3' opacity='0.2'/></svg>") repeat;
}

.section-title-center {
    text-align: center;
    margin-bottom: 40px;
}

.section-title-center h2 {
    position: relative;
    display: inline-block;
    margin-bottom: 15px;
    font-size: 32px;
    font-weight: 900;
    color: var(--hk-red);
    text-shadow: 2px 2px 0 #fff, 4px 4px 0 var(--hk-pink-medium);
}

.section-title-center h2::before {
    content: '🎀';
    position: absolute;
    top: 50%;
    left: -40px;
    font-size: 28px;
    transform: translateY(-50%);
}

.section-title-center h2::after {
    content: '🎀';
    position: absolute;
    top: 50%;
    right: -40px;
    font-size: 28px;
    transform: translateY(-50%);
}

.section-title-center p {
    display: inline-block;
    padding: 5px 15px;
    font-size: 18px;
    font-weight: bold;
    color: var(--hk-pink-dark);
    background: rgba(255, 255, 255, 0.6);
    border-radius: 20px;
}

.screenshot-wall-wrapper {
    margin-bottom: 50px;
    text-align: center;
}

.scroll-hint {
    display: inline-block;
    margin-bottom: 15px;
    padding: 5px 15px;
    font-size: 14px;
    font-weight: bold;
    color: var(--hk-pink-dark);
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 8px var(--hk-shadow);
    animation: pulse 2s infinite;
}

.screenshot-wall {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 20px;
    scrollbar-width: none;
}

.screenshot-wall::-webkit-scrollbar {
    display: none;
}

.shot-item {
    flex: 0 0 auto;
    width: 130px;
    height: 230px;
    overflow: hidden;
    cursor: zoom-in;
    border: 4px solid #fff;
    border-radius: 15px;
    box-shadow: 0 8px 20px var(--hk-shadow);
    transform: rotate(-2deg);
    transition: all 0.3s;
}

.shot-item:nth-child(even) {
    transform: rotate(2deg);
}

.shot-item:hover {
    z-index: 2;
    border-color: var(--hk-pink-medium);
    transform: scale(1.1) rotate(0deg);
}

.shot-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    overflow: visible;
    padding-bottom: 30px;
}

.carousel-track {
    display: flex;
    width: 100%;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    flex: 0 0 100%;
    width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
}

.case-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 35px;
    background: #fff;
    background-image: repeating-linear-gradient(var(--hk-pink-light) 0, var(--hk-pink-light) 24px, #fff 25px);
    border: 4px solid var(--hk-pink-medium);
    border-radius: 30px;
    box-shadow: 0 15px 35px var(--hk-shadow);
}

.case-card::before {
    content: '🎀';
    position: absolute;
    top: -20px;
    left: 50%;
    z-index: 5;
    font-size: 40px;
    transform: translateX(-50%);
}

.case-story-content {
    width: 100%;
    padding: 25px;
    text-align: left;
    background: rgba(255, 255, 255, 0.9);
    border: 2px dashed var(--hk-pink-medium);
    border-radius: 20px;
}

.story-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 2px dotted var(--hk-pink-medium);
}

.story-avatar {
    width: 60px;
    height: 60px;
    margin-right: 15px;
    padding: 3px;
    background: #fff;
    border: 3px solid var(--hk-pink-medium);
    border-radius: 50%;
}

.story-header h3 {
    margin-bottom: 5px;
    font-size: 20px;
    font-weight: 800;
    color: var(--hk-red);
}

.story-text p {
    margin-bottom: 12px;
    font-size: 16px;
    line-height: 1.8;
    color: #5a3a4a;
    font-family: 'Mali', cursive;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    z-index: 10;
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--hk-pink-dark);
    font-size: 22px;
    background: #fff;
    border: 3px solid var(--hk-pink-medium);
    border-radius: 50%;
    box-shadow: 0 8px 15px var(--hk-shadow);
    transform: translateY(-50%);
    transition: all 0.3s;
}

.carousel-btn:hover {
    color: #fff;
    background: var(--hk-pink-medium);
    transform: translateY(-50%) scale(1.1);
}

.prev {
    left: -25px;
}

.next {
    right: -25px;
}

/* --- 5. 模态框 --- */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    display: none;
    width: 100%;
    height: 100%;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: rgba(90, 58, 74, 0.9);
    backdrop-filter: blur(5px);
}

.modal-content {
    max-width: 90%;
    max-height: 80%;
    border: 5px solid #fff;
    border-radius: 25px;
    box-shadow: 0 0 30px var(--hk-pink-dark);
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    text-shadow: 0 2px 5px var(--hk-pink-dark);
    transition: 0.3s;
}

.close-btn:hover {
    color: var(--hk-pink-medium);
    transform: rotate(90deg) scale(1.2);
}

#caption {
    margin-top: 20px;
    padding: 10px 25px;
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    background: var(--hk-pink-dark);
    border-radius: 30px;
}

/* --- 6. 扶持计划 --- */
.support-section {
    position: relative;
    z-index: 4;
    margin-top: 40px;
    padding: 70px 20px 80px;
    background: radial-gradient(circle at top left, #fff 0%, var(--hk-pink-light) 100%);
    border-top: 5px solid var(--hk-pink-medium);
    border-radius: 60px;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.05);
}

.support-header {
    max-width: 900px;
    margin: 0 auto 60px;
    text-align: center;
}

.support-header h2 {
    padding: 25px;
    font-size: 22px;
    line-height: 1.8;
    font-weight: bold;
    color: #5a3a4a;
    background: #fff;
    border: 3px dashed var(--hk-pink-medium);
    border-radius: 30px;
    box-shadow: 10px 10px 0 var(--hk-pink-light);
}

.support-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

.support-card {
    position: relative;
    overflow: hidden;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 35px 20px;
    text-align: center;
    color: #5a3a4a;
    background: #fff;
    border: 3px solid var(--hk-pink-light);
    border-radius: 35px;
    box-shadow: 0 15px 35px rgba(255, 133, 179, 0.2);
    cursor: pointer;
    transition: all 0.4s ease;
}

.support-card:hover {
    background: var(--hk-pink-light);
    border-color: var(--hk-pink-medium);
    box-shadow: 0 20px 40px rgba(255, 133, 179, 0.4);
    transform: translateY(-15px) scale(1.03);
}

.support-card::before {
    content: '🌸';
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 80px;
    opacity: 0.1;
    transform: rotate(30deg);
    transition: 0.4s;
}

.support-card:hover::before {
    opacity: 0.3;
    transform: rotate(45deg) scale(1.2);
}

.support-card h3 {
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 20px;
    font-weight: 900;
    color: var(--hk-red);
}

.icon-circle {
    width: 70px;
    height: 70px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #fff;
    border: 3px solid #fff;
    border-radius: 50%;
    box-shadow: 0 8px 20px var(--hk-shadow), inset 0 0 0 4px rgba(255, 255, 255, 0.5);
}

.ic-blue {
    background: linear-gradient(135deg, #89f7fe 0%, #66a6ff 100%);
}

.ic-cyan {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
}

.ic-purple {
    background: linear-gradient(135deg, #fbc2eb 0%, #a6c1ee 100%);
}

.ic-green {
    background: linear-gradient(135deg, #d4fc79 0%, #96e6a1 100%);
}

.click-guide {
    margin-top: 10px;
    font-size: 14px;
    font-weight: bold;
    color: var(--hk-pink-dark);
    opacity: 0.7;
    transition: color 0.3s;
}

.support-card:hover .click-guide {
    color: var(--hk-red);
    opacity: 1;
}

/* --- 7. 游戏区域 (梦幻游乐园) --- */
.game-section {
    position: relative;
    z-index: 5;
    margin-top: 40px;
    padding: 60px 0 120px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    border: 5px solid rgba(255, 255, 255, 0.8);
    border-radius: 50px;
    box-shadow: 0 20px 50px rgba(255, 133, 179, 0.3);
}

.game-grid-special {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 25px;
}

.span-full {
    grid-column: span 6;
}

.span-half {
    grid-column: span 3;
}

.span-third {
    grid-column: span 2;
}

/* 游戏卡片基础样式 */
.game-card {
    position: relative;
    overflow: hidden;
    min-height: 240px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 30px;
    color: #fff;
    background-color: #333;
    border: 4px solid rgba(255, 255, 255, 0.5);
    border-radius: 35px;
    box-shadow: 0 15px 30px var(--hk-shadow);
    transition: all 0.3s ease;
}

.game-card:hover {
    z-index: 2;
    border-color: #fff;
    box-shadow: 0 25px 50px var(--hk-shadow);
    transform: translateY(-12px) scale(1.02);
}

/* 装饰图案 */
.card-bg-img {
    position: absolute;
    right: -20px;
    width: auto;
    height: 300px;
    opacity: 0.15;
    z-index: 1;
    pointer-events: none;
    transform: rotate(-10deg);
}

.span-third .card-bg-img {
    right: -15px;
    bottom: -15px;
    height: 250px;
}

.card-content {
    position: relative;
    z-index: 2;
    width: 100%;
    text-align: left;
}

.span-third .card-content {
    text-align: center;
}

.card-title {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-size: 26px;
    font-weight: 900;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.span-third .card-title {
    justify-content: center;
}

.card-title img {
    height: 35px;
    margin-right: 12px;
    padding: 4px;
    background: #fff;
    border: 3px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.card-desc {
    margin-bottom: 5px;
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.card-sub {
    display: inline-block;
    margin-top: 8px;
    margin-bottom: 20px;
    padding: 4px 12px;
    font-size: 13px;
    font-weight: bold;
    color: var(--hk-red);
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

.btn-gold {
    display: inline-block;
    padding: 10px 25px;
    font-size: 15px;
    font-weight: 900;
    color: #fff;
    background: linear-gradient(to bottom, #ffbdd8 0%, var(--hk-red) 100%);
    border: 3px solid #fff;
    border-radius: 50px;
    box-shadow: 0 6px 15px rgba(255, 51, 102, 0.4);
    cursor: pointer;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.btn-gold:hover {
    background: linear-gradient(to bottom, #ff99cc 0%, #ff3366 100%);
    box-shadow: 0 8px 20px rgba(255, 51, 102, 0.6);
    transform: scale(1.1);
}

.btn-full {
    width: 100%;
    display: block;
    margin-top: 10px;
}

/* 渐变主色调 */
.bg-jy {
    background: linear-gradient(135deg, #ff9a44 0%, #fc6076 100%);
}

.bg-ky {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.bg-mk {
    background: linear-gradient(135deg, #c471ed 0%, #f64f59 100%);
}

.bg-hth {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.bg-leyu {
    background: linear-gradient(135deg, #0ba360 0%, #3cba92 100%);
}

.bg-ayx {
    background: linear-gradient(135deg, #434343 0%, #000000 100%);
}

.bg-od {
    background: linear-gradient(135deg, #fccb90 0%, #d57eeb 100%);
}

.bg-milan {
    background: linear-gradient(135deg, #0093E9 0%, #80D0C7 100%);
}

.bg-xk {
    background: linear-gradient(135deg, #8E2DE2 0%, #4A00E0 100%);
}

footer {
    position: relative;
    z-index: 2;
    margin-top: -50px;
    padding: 40px;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    color: var(--hk-pink-dark);
    background: var(--hk-pink-light);
    border-top: 5px dotted var(--hk-pink-medium);
    border-radius: 50px 50px 0 0;
}

footer p::before {
    content: '💖 ';
}

/* --- 补充动画（原文里用了 pulse，但没定义，我补上） --- */
@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.9;
    }
    50% {
        transform: scale(1.04);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 0.9;
    }
}

/* --- 8. 手机适配 --- */
@media (max-width: 900px) {
    .hero-container {
        flex-direction: column;
        align-items: center;
        gap: 30px;
        text-align: center;
    }

    .hero-tg-grid {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }

    .phone-mockup {
        width: 70%;
        max-width: 280px;
        margin-top: 20px;
    }

    .nav-links {
        display: none;
    }

    .support-grid {
        grid-template-columns: 1fr !important;
    }

    .game-grid-special {
        grid-template-columns: 1fr !important;
    }

    .span-full,
    .span-half,
    .span-third {
        grid-column: auto !important;
    }

    .card-content {
        text-align: center;
    }

    .card-title {
        justify-content: center;
    }

    .carousel-btn,
    .prev,
    .next {
        display: none;
    }

    .screenshot-wall {
        padding: 15px;
    }

    .section-title-center h2::before,
    .section-title-center h2::after,
    .hero-section::before {
        display: none;
    }
}