/* ==========================================================================
   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;
    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);
    height: 75px; display: flex; align-items: center; width: 100%;
    /* 移除手机端可能看起来奇怪的圆角 */
    /* border-bottom-left-radius: 20px; border-bottom-right-radius: 20px; */
}
.nav-content { width: 100%; max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; padding: 0 20px; }
.nav-logo { height: 50px; width: auto; display: block; filter: drop-shadow(2px 2px 0px #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; transition: 0.3s; padding: 8px 15px; border-radius: 20px; }
.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%; 
    padding-top: 60px !important; /* 增加顶部padding，防止被导航遮挡 */
    padding-bottom: 120px;
    min-height: 70vh; 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 { width: 100%; max-width: 1200px; padding: 0 20px; position: relative; z-index: 2; 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; box-shadow: 0 10px 30px var(--hk-shadow); border: 4px solid #fff; }

.subtitle {
    font-size: 17px; line-height: 1.8; margin-bottom: 30px;
    background: #fff; color: var(--hk-pink-dark); padding: 20px 25px;
    border-radius: 25px; border: 3px solid var(--hk-pink-medium);
    box-shadow: 6px 6px 0px var(--hk-pink-light); position: relative; font-weight: bold;
}
.subtitle::after {
    content: ''; position: absolute; bottom: -15px; left: 30px;
    border-width: 15px 15px 0; border-style: solid; border-color: var(--hk-pink-medium) transparent; display: block; width: 0;
}
.hero-tg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; width: 100%; }
.unified-btn {
    display: inline-flex; align-items: center; justify-content: center; padding: 12px 20px;
    color: #fff; border-radius: 50px; font-weight: 800; font-size: 16px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
    box-shadow: 0 6px 15px var(--hk-shadow); border: 3px solid #fff; width: 100%; 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(0px) rotate(0deg); } 50% { transform: translateY(-15px) rotate(2deg); } 100% { transform: translateY(0px) rotate(0deg); } }
.phone-mockup {
    position: relative; width: 240px; max-width: 40%; height: auto; margin-top: 10px;
    animation: float-anim 5s ease-in-out infinite; padding: 10px; background: #fff; border-radius: 35px; box-shadow: 0 15px 35px var(--hk-shadow);
}
.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 {
    font-size: 32px; font-weight: 900; margin-bottom: 15px; color: var(--hk-red);
    text-shadow: 2px 2px 0 #fff, 4px 4px 0 var(--hk-pink-medium); display: inline-block; position: relative;
}
.section-title-center h2::before { content: '🎀'; font-size: 28px; position: absolute; top: 50%; transform: translateY(-50%); left: -40px; }
.section-title-center h2::after { content: '🎀'; font-size: 28px; position: absolute; top: 50%; transform: translateY(-50%); right: -40px; }
.section-title-center p { font-size: 18px; color: var(--hk-pink-dark); font-weight: bold; background: rgba(255,255,255,0.6); padding: 5px 15px; border-radius: 20px;}

.screenshot-wall-wrapper { margin-bottom: 50px; text-align: center; }
.scroll-hint { font-size: 14px; color: var(--hk-pink-dark); margin-bottom: 15px; animation: pulse 2s infinite; font-weight: bold; background: #fff; padding: 5px 15px; border-radius: 15px; display: inline-block; box-shadow: 0 4px 8px var(--hk-shadow); }
.screenshot-wall { display: flex; overflow-x: auto; gap: 20px; padding: 20px; scrollbar-width: none; }
.screenshot-wall::-webkit-scrollbar { display: none; }
.shot-item {
    flex: 0 0 auto; width: 130px; height: 230px; border-radius: 15px; overflow: hidden;
    border: 4px solid #fff; box-shadow: 0 8px 20px var(--hk-shadow); cursor: zoom-in; transition: all 0.3s; transform: rotate(-2deg);
}
.shot-item:nth-child(even) { transform: rotate(2deg); }
.shot-item:hover { transform: scale(1.1) rotate(0deg); border-color: var(--hk-pink-medium); z-index: 2;}
.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; transition: transform 0.5s ease-in-out; width: 100%; }
.carousel-slide { flex: 0 0 100%; width: 100%; padding: 0 15px; box-sizing: border-box; }
.case-card {
    background: #fff; background-image: repeating-linear-gradient(var(--hk-pink-light) 0px, var(--hk-pink-light) 24px, #fff 25px);
    border-radius: 30px; padding: 35px; border: 4px solid var(--hk-pink-medium);
    box-shadow: 0 15px 35px var(--hk-shadow); display: flex; flex-direction: column; align-items: center; position: relative;
}
.case-card::before { content: '🎀'; font-size: 40px; position: absolute; top: -20px; left: 50%; transform: translateX(-50%); z-index: 5; }
.case-story-content { text-align: left; background: rgba(255,255,255,0.9); padding: 25px; border-radius: 20px; width: 100%; border: 2px dashed var(--hk-pink-medium); }
.story-header { display: flex; align-items: center; margin-bottom: 15px; border-bottom: 2px dotted var(--hk-pink-medium); padding-bottom: 15px; }
.story-avatar { width: 60px; height: 60px; border-radius: 50%; margin-right: 15px; background: #fff; padding: 3px; border: 3px solid var(--hk-pink-medium); }
.story-header h3 { font-size: 20px; color: var(--hk-red); margin-bottom: 5px; font-weight: 800; }
.story-text p { font-size: 16px; line-height: 1.8; margin-bottom: 12px; color: #5a3a4a; font-family: 'Mali', cursive; }
.carousel-btn {
    position: absolute; top: 50%; transform: translateY(-50%); background: #fff; border: 3px solid var(--hk-pink-medium);
    color: var(--hk-pink-dark); font-size: 22px; width: 55px; height: 55px; border-radius: 50%;
    cursor: pointer; z-index: 10; transition: all 0.3s; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 15px var(--hk-shadow);
}
.carousel-btn:hover { background: var(--hk-pink-medium); color: #fff; transform: translateY(-50%) scale(1.1); }
.prev { left: -25px; } .next { right: -25px; }

/* --- 5. 模态框 --- */
.modal { display: none; position: fixed; z-index: 9999; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(90, 58, 74, 0.9); align-items: center; justify-content: center; flex-direction: column; backdrop-filter: blur(5px); }
.modal-content { max-width: 90%; max-height: 80%; border-radius: 25px; border: 5px solid #fff; 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 { transform: rotate(90deg) scale(1.2); color: var(--hk-pink-medium); }
#caption { margin-top: 20px; color: #fff; font-size: 18px; font-weight: bold; background: var(--hk-pink-dark); padding: 10px 25px; 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 { text-align: center; max-width: 900px; margin: 0 auto 60px; }
.support-header h2 {
    font-size: 22px; line-height: 1.8; color: #5a3a4a; font-weight: bold;
    background: #fff; padding: 25px; border-radius: 30px; border: 3px dashed var(--hk-pink-medium); 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 {
    background: #fff; border: 3px solid var(--hk-pink-light); border-radius: 35px;
    padding: 35px 20px; text-align: center; color: #5a3a4a;
    box-shadow: 0 15px 35px rgba(255, 133, 179, 0.2); transition: all 0.4s ease;
    display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 220px; cursor: pointer; position: relative; overflow: hidden;
}
.support-card:hover { transform: translateY(-15px) scale(1.03); background: var(--hk-pink-light); border-color: var(--hk-pink-medium); box-shadow: 0 20px 40px rgba(255, 133, 179, 0.4); }
.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 { font-size: 20px; font-weight: 900; color: var(--hk-red); margin-top: 20px; margin-bottom: 10px; }
.icon-circle {
    width: 70px; height: 70px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: 10px;
    font-size: 28px; color: #fff; box-shadow: 0 8px 20px var(--hk-shadow), inset 0 0 0 4px rgba(255,255,255,0.5); border: 3px solid #fff;
}
.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 { font-size: 14px; color: var(--hk-pink-dark); margin-top: 10px; transition: color 0.3s; font-weight: bold; opacity: 0.7;}
.support-card:hover .click-guide { color: var(--hk-red); opacity: 1; }

/* =========================================
   7. 游戏区域 (梦幻游乐园)
   ========================================= */
.game-section {
    padding: 60px 0 120px 0;
    /* 大背景：玻璃拟态 */
    background: rgba(255, 255, 255, 0.6); backdrop-filter: blur(10px);
    margin-top: 40px; border-radius: 50px; position: relative; z-index: 5;
    border: 5px solid rgba(255,255,255,0.8); box-shadow: 0 20px 50px rgba(255, 133, 179, 0.3);
}
.game-grid-special { display: grid; grid-template-columns: repeat(6, 1fr); gap: 25px; width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.span-full { grid-column: span 6; } .span-half { grid-column: span 3; } .span-third { grid-column: span 2; }

/* 游戏卡片基础样式 */
.game-card {
    border-radius: 35px; padding: 30px; position: relative; overflow: hidden; min-height: 240px;
    display: flex; flex-direction: column; justify-content: center; color: #fff;
    transition: all 0.3s ease; box-shadow: 0 15px 30px var(--hk-shadow);
    border: 4px solid rgba(255,255,255,0.5);
    background-color: #333; 
}
.game-card:hover { transform: translateY(-12px) scale(1.02); box-shadow: 0 25px 50px var(--hk-shadow); z-index: 2; border-color: #fff; }

/* --- 核心：装饰图案 (HTML里的<img>) --- */
.card-bg-img {
    position: absolute; 
    right: -20px; 
    height: 300px; 
    width: auto; 
    opacity: 0.15; /* 降低了不透明度，让文字更清晰，背景更融合 */
    z-index: 1; 
    pointer-events: none; 
    transform: rotate(-10deg);
}
/* 小卡片里的图案稍微小一点 */
.span-third .card-bg-img { height: 250px; right: -15px; bottom: -15px; }

.card-content { position: relative; z-index: 2; width: 100%; text-align: left; }
.span-third .card-content { text-align: center; }
.card-title {
    font-size: 26px; font-weight: 900; margin-bottom: 10px; display: flex; align-items: center;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2); color: #fff;
}
.span-third .card-title { justify-content: center; }
/* 如果你将来要加logo，这里保留了样式，但 HTML 里没图片就不会显示 */
.card-title img { height: 35px; margin-right: 12px; background: #fff; border-radius: 50%; padding: 4px; border: 3px solid rgba(255,255,255,0.5); box-shadow: 0 4px 8px rgba(0,0,0,0.1); }
.card-desc { font-size: 16px; opacity: 1; margin-bottom: 5px; font-weight: bold; color: #fff; text-shadow: 1px 1px 2px rgba(0,0,0,0.2); }
.card-sub {
    font-size: 13px; margin-top: 8px; margin-bottom: 20px; color: var(--hk-red);
    background: #fff; display: inline-block; padding: 4px 12px; border-radius: 15px; font-weight: bold; box-shadow: 0 3px 6px rgba(0,0,0,0.1);
}
.btn-gold {
    background: linear-gradient(to bottom, #ffbdd8 0%, var(--hk-red) 100%);
    border: 3px solid #fff; color: #fff; font-weight: 900; padding: 10px 25px; border-radius: 50px; cursor: pointer; font-size: 15px;
    box-shadow: 0 6px 15px rgba(255, 51, 102, 0.4); display: inline-block; text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}
.btn-gold:hover { transform: scale(1.1); background: linear-gradient(to bottom, #ff99cc 0%, #ff3366 100%); box-shadow: 0 8px 20px rgba(255, 51, 102, 0.6);}
.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 { 
    background: var(--hk-pink-light); color: var(--hk-pink-dark); text-align: center; padding: 40px; font-size: 14px; 
    border-top: 5px dotted var(--hk-pink-medium); font-weight: bold; border-radius: 50px 50px 0 0; margin-top: -50px; position: relative; z-index: 2;
}
footer p::before { content: '💖 '; }

/* --- 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 { display: none; }
    .screenshot-wall { padding: 15px; }
    .section-title-center h2::before, .section-title-center h2::after { display: none; }
    .hero-section::before { display: none;}
    .prev, .next { display: none;}
}