/* ===== 小小绘 - 主样式表 ===== */
/* CSS前缀: xh- */

/* ===== 字体引入 ===== */
@import url('https://fonts.googleapis.com/css2?family=ZCOOL+KuaiLe&family=Noto+Sans+SC:wght@300;400;500;700&display=swap');

/* ===== CSS变量 ===== */
:root {
    --xh-primary: #E0F7FA;
    --xh-secondary: #FFF9C4;
    --xh-accent: #FFCDD2;
    --xh-text: #546E7A;
    --xh-link: #81C784;
    --xh-white: #FFFFFF;
    --xh-bg-paper: #FFF8F0;
    --xh-shadow: rgba(84, 110, 122, 0.1);
    --xh-border-watercolor: rgba(129, 199, 132, 0.3);
    --xh-font-title: 'ZCOOL KuaiLe', cursive, sans-serif;
    --xh-font-body: 'Noto Sans SC', sans-serif;
}

/* ===== 重置与基础 ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--xh-font-body);
    color: var(--xh-text);
    background-color: var(--xh-bg-paper);
    line-height: 1.8;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--xh-link);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #66BB6A;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--xh-font-title);
    color: var(--xh-text);
    line-height: 1.4;
}

/* ===== 干扰标签隐藏 ===== */
.brush-jammer-block {
    display: none;
}

/* ===== 导航栏 ===== */
#xh-header {
    width: 100%;
    background: linear-gradient(135deg, rgba(224, 247, 250, 0.92), rgba(255, 249, 196, 0.92));
    backdrop-filter: blur(8px);
    z-index: 1000;
    border-bottom: 3px solid transparent;
    border-image: linear-gradient(90deg, var(--xh-accent), var(--xh-primary), var(--xh-secondary), var(--xh-link)) 1;
}

.xh-nav-container {
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px;
}

.xh-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.xh-logo img {
    height: 48px;
    width: auto;
}

.xh-logo-text {
    font-family: var(--xh-font-title);
    font-size: 1.5rem;
    color: var(--xh-text);
}

.xh-nav-links {
    display: flex;
    list-style: none;
    gap: 8px;
}

.xh-nav-links li a {
    display: inline-block;
    padding: 8px 16px;
    font-family: var(--xh-font-body);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--xh-text);
    position: relative;
    transition: color 0.3s ease;
}

.xh-nav-links li a::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #FFCDD2, #81C784, #E0F7FA);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.xh-nav-links li a:hover::after,
.xh-nav-links li a.xh-active::after {
    width: 80%;
}

.xh-nav-links li a:hover {
    color: var(--xh-link);
}

/* 汉堡菜单 */
.xh-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    background: none;
    border: none;
}

.xh-hamburger span {
    display: block;
    width: 28px;
    height: 3px;
    background: var(--xh-text);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.xh-hamburger.xh-open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.xh-hamburger.xh-open span:nth-child(2) {
    opacity: 0;
}

.xh-hamburger.xh-open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* 移动端侧边菜单 */
.xh-mobile-menu {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    height: 100vh;
    background: linear-gradient(180deg, #E0F7FA, #FFF9C4, #FFCDD2);
    z-index: 2000;
    transition: right 0.4s ease;
    padding: 80px 30px 30px;
    overflow-y: auto;
    box-shadow: -4px 0 20px rgba(0,0,0,0.1);
}

.xh-mobile-menu.xh-open {
    right: 0;
}

.xh-mobile-menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--xh-text);
    cursor: pointer;
}

.xh-mobile-menu ul {
    list-style: none;
}

.xh-mobile-menu ul li {
    margin-bottom: 16px;
}

.xh-mobile-menu ul li a {
    font-family: var(--xh-font-title);
    font-size: 1.2rem;
    color: var(--xh-text);
    display: block;
    padding: 10px 16px;
    border-radius: 12px;
    transition: background 0.3s ease;
}

.xh-mobile-menu ul li a:hover {
    background: rgba(255, 255, 255, 0.5);
}

.xh-mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1999;
    display: none;
}

.xh-mobile-overlay.xh-open {
    display: block;
}

/* ===== Hero区域 ===== */
.xh-hero {
    position: relative;
    min-height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background: linear-gradient(135deg, var(--xh-primary), var(--xh-secondary));
}

.xh-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
}

.xh-hero-content {
    position: relative;
    z-index: 2;
    padding: 60px 24px;
    max-width: 800px;
}

.xh-hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--xh-text);
    text-shadow: 2px 2px 8px rgba(255,255,255,0.8);
}

.xh-hero p {
    font-size: 1.15rem;
    line-height: 2;
    margin-bottom: 30px;
    color: var(--xh-text);
}

.xh-btn {
    display: inline-block;
    padding: 14px 36px;
    font-family: var(--xh-font-title);
    font-size: 1.1rem;
    color: var(--xh-white);
    background: linear-gradient(135deg, #81C784, #66BB6A);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(129, 199, 132, 0.3);
}

.xh-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(129, 199, 132, 0.4);
    color: var(--xh-white);
}

.xh-btn-outline {
    background: transparent;
    color: var(--xh-link);
    border: 2px solid var(--xh-link);
    box-shadow: none;
}

.xh-btn-outline:hover {
    background: var(--xh-link);
    color: var(--xh-white);
}

.xh-btn-pink {
    background: linear-gradient(135deg, #FFCDD2, #EF9A9A);
}

/* ===== 通用Section ===== */
.xh-section {
    padding: 60px 24px;
    max-width: 1440px;
    margin: 0 auto;
}

.xh-section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 12px;
    position: relative;
}

.xh-section-subtitle {
    text-align: center;
    font-size: 1rem;
    color: #78909C;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.xh-section-divider {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--xh-accent), var(--xh-link));
    border-radius: 4px;
    margin: 16px auto 30px;
}

/* ===== 卡片样式 ===== */
.xh-card {
    background: var(--xh-white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px var(--xh-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid transparent;
    border-image: linear-gradient(135deg, rgba(224,247,250,0.5), rgba(255,205,210,0.5)) 1;
}

.xh-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 30px rgba(84, 110, 122, 0.15);
}

.xh-card-img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
}

.xh-card-body {
    padding: 20px;
}

.xh-card-title {
    font-size: 1.15rem;
    margin-bottom: 8px;
}

.xh-card-text {
    font-size: 0.9rem;
    color: #78909C;
    line-height: 1.7;
}

.xh-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    font-size: 0.85rem;
    color: #90A4AE;
}

/* ===== 网格布局 ===== */
.xh-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.xh-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.xh-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* ===== 绘本推荐轮播 ===== */
.xh-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 4px 20px var(--xh-shadow);
}

.xh-carousel-track {
    display: flex;
    transition: transform 0.5s ease;
}

.xh-carousel-slide {
    min-width: 100%;
    position: relative;
}

.xh-carousel-slide img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.xh-carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(transparent, rgba(0,0,0,0.5));
    color: var(--xh-white);
}

.xh-carousel-caption h3 {
    color: var(--xh-white);
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.xh-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.8);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--xh-text);
    transition: background 0.3s ease;
    z-index: 5;
}

.xh-carousel-btn:hover {
    background: var(--xh-white);
}

.xh-carousel-prev { left: 16px; }
.xh-carousel-next { right: 16px; }

.xh-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}

.xh-carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #CFD8DC;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease;
}

.xh-carousel-dot.xh-active {
    background: var(--xh-link);
}

/* ===== 画师展示 ===== */
.xh-artist-card {
    text-align: center;
    padding: 30px 20px;
    background: var(--xh-white);
    border-radius: 16px;
    box-shadow: 0 4px 20px var(--xh-shadow);
    transition: transform 0.3s ease;
}

.xh-artist-card:hover {
    transform: translateY(-4px);
}

.xh-artist-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 16px;
    border: 3px solid var(--xh-accent);
}

.xh-artist-name {
    font-size: 1.1rem;
    margin-bottom: 6px;
}

.xh-artist-bio {
    font-size: 0.85rem;
    color: #90A4AE;
}

/* ===== 创作大赛 ===== */
.xh-contest-banner {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 30px;
}

.xh-contest-banner img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.xh-contest-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(224,247,250,0.7), rgba(255,205,210,0.7));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 30px;
}

.xh-contest-overlay h3 {
    font-size: 2rem;
    margin-bottom: 12px;
}

.xh-contest-overlay p {
    max-width: 500px;
    margin-bottom: 20px;
}

/* ===== 教程专区 ===== */
.xh-tutorial-card {
    display: flex;
    gap: 20px;
    background: var(--xh-white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px var(--xh-shadow);
    transition: transform 0.3s ease;
    margin-bottom: 20px;
}

.xh-tutorial-card:hover {
    transform: translateY(-3px);
}

.xh-tutorial-img {
    width: 240px;
    min-height: 160px;
    object-fit: cover;
    flex-shrink: 0;
}

.xh-tutorial-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.xh-tutorial-tag {
    display: inline-block;
    padding: 4px 12px;
    background: var(--xh-primary);
    border-radius: 20px;
    font-size: 0.8rem;
    margin-bottom: 8px;
    width: fit-content;
}

/* ===== 素材市集 ===== */
.xh-asset-card {
    background: var(--xh-white);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 16px var(--xh-shadow);
    transition: transform 0.3s ease;
}

.xh-asset-card:hover {
    transform: translateY(-4px);
}

.xh-asset-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 12px;
    border-radius: 12px;
    object-fit: cover;
}

.xh-asset-price {
    font-family: var(--xh-font-title);
    color: var(--xh-link);
    font-size: 1.1rem;
    margin-top: 8px;
}

/* ===== 读者书评 ===== */
.xh-review-card {
    background: var(--xh-white);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px var(--xh-shadow);
    position: relative;
}

.xh-review-card::before {
    content: '\201C';
    font-size: 4rem;
    font-family: Georgia, serif;
    color: var(--xh-accent);
    position: absolute;
    top: 10px;
    left: 20px;
    line-height: 1;
}

.xh-review-text {
    padding-top: 30px;
    font-style: italic;
    margin-bottom: 16px;
    font-size: 0.95rem;
}

.xh-review-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.xh-review-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--xh-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--xh-font-title);
    color: var(--xh-text);
    font-size: 1rem;
}

.xh-review-name {
    font-weight: 500;
    font-size: 0.9rem;
}

.xh-review-stars {
    color: #FFD54F;
    font-size: 0.85rem;
}

/* ===== 亲子阅读 ===== */
.xh-family-section {
    background: linear-gradient(135deg, var(--xh-secondary), var(--xh-primary));
    border-radius: 24px;
    padding: 50px 40px;
    display: flex;
    align-items: center;
    gap: 40px;
}

.xh-family-img {
    width: 45%;
    border-radius: 16px;
    box-shadow: 0 8px 30px var(--xh-shadow);
}

.xh-family-content {
    flex: 1;
}

.xh-family-content h2 {
    font-size: 1.8rem;
    margin-bottom: 16px;
}

.xh-family-content p {
    margin-bottom: 20px;
    line-height: 2;
}

/* ===== 绘本商城 ===== */
.xh-store-card {
    background: var(--xh-white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px var(--xh-shadow);
    transition: transform 0.3s ease;
}

.xh-store-card:hover {
    transform: translateY(-4px);
}

.xh-store-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.xh-store-body {
    padding: 16px;
}

.xh-store-price {
    font-family: var(--xh-font-title);
    color: #EF5350;
    font-size: 1.2rem;
}

.xh-store-original {
    text-decoration: line-through;
    color: #B0BEC5;
    font-size: 0.85rem;
    margin-left: 8px;
}

/* ===== 会员 ===== */
.xh-membership {
    background: linear-gradient(135deg, #FFF9C4, #FFCDD2, #E0F7FA);
    border-radius: 24px;
    padding: 50px;
    text-align: center;
}

.xh-membership h2 {
    font-size: 2rem;
    margin-bottom: 16px;
}

.xh-membership-features {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin: 30px 0;
}

.xh-membership-feature {
    background: rgba(255,255,255,0.7);
    padding: 24px;
    border-radius: 16px;
    width: 200px;
    text-align: center;
}

.xh-membership-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

/* ===== 灵感画廊 (瀑布流) ===== */
.xh-gallery-masonry {
    column-count: 4;
    column-gap: 16px;
}

.xh-gallery-item {
    break-inside: avoid;
    margin-bottom: 16px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.xh-gallery-item img {
    width: 100%;
    display: block;
    transition: transform 0.3s ease;
}

.xh-gallery-item:hover img {
    transform: scale(1.05);
}

.xh-gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px;
    background: linear-gradient(transparent, rgba(0,0,0,0.6));
    color: var(--xh-white);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.xh-gallery-item:hover .xh-gallery-overlay {
    opacity: 1;
}

/* ===== 页脚 ===== */
#xh-footer {
    background: linear-gradient(135deg, #37474F, #455A64);
    color: #B0BEC5;
    padding: 50px 24px 20px;
}

.xh-footer-container {
    max-width: 1440px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.xh-footer-col h4 {
    color: var(--xh-white);
    font-family: var(--xh-font-title);
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.xh-footer-col ul {
    list-style: none;
}

.xh-footer-col ul li {
    margin-bottom: 10px;
}

.xh-footer-col ul li a {
    color: #B0BEC5;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.xh-footer-col ul li a:hover {
    color: var(--xh-white);
}

.xh-social-links {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.xh-social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #B0BEC5;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.xh-social-link:hover {
    background: var(--xh-link);
    color: var(--xh-white);
}

.xh-footer-bottom {
    max-width: 1440px;
    margin: 0 auto;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    text-align: center;
}

.xh-footer-certs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.xh-cert-badge {
    height: 40px;
    width: auto;
    opacity: 0.8;
}

.xh-footer-cert-link {
    color: #90A4AE;
    font-size: 0.8rem;
}

.xh-footer-cert-link:hover {
    color: var(--xh-white);
}

.xh-copyright {
    font-size: 0.8rem;
    color: #78909C;
    margin-top: 12px;
}

/* ===== 内页Banner ===== */
.xh-page-banner {
    position: relative;
    height: 300px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.xh-page-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(224,247,250,0.75), rgba(255,205,210,0.75));
}

.xh-page-banner-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 20px;
}

.xh-page-banner-content h1 {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.xh-page-banner-content p {
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ===== 绘本工坊 ===== */
.xh-workshop-container {
    display: grid;
    grid-template-columns: 60px 1fr 200px;
    gap: 0;
    height: calc(100vh - 200px);
    min-height: 500px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 30px var(--xh-shadow);
    background: var(--xh-white);
}

.xh-workshop-toolbar {
    background: #37474F;
    padding: 16px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.xh-tool-btn {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: none;
    background: transparent;
    color: #B0BEC5;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.xh-tool-btn:hover,
.xh-tool-btn.xh-active {
    background: rgba(129, 199, 132, 0.3);
    color: var(--xh-link);
}

.xh-workshop-canvas {
    background: #F5F5F5;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.xh-canvas-area {
    width: 80%;
    height: 80%;
    background: var(--xh-white);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #B0BEC5;
    font-size: 1.1rem;
    text-align: center;
    padding: 20px;
}

.xh-workshop-pages {
    background: #ECEFF1;
    padding: 16px;
    overflow-y: auto;
}

.xh-page-thumb {
    width: 100%;
    aspect-ratio: 3/4;
    background: var(--xh-white);
    border-radius: 8px;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border: 2px solid transparent;
    cursor: pointer;
    transition: border-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: #90A4AE;
}

.xh-page-thumb.xh-active,
.xh-page-thumb:hover {
    border-color: var(--xh-link);
}

.xh-workshop-menu {
    background: var(--xh-white);
    padding: 12px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    border-bottom: 1px solid #ECEFF1;
}

.xh-menu-btn {
    padding: 8px 20px;
    border: none;
    border-radius: 8px;
    font-family: var(--xh-font-body);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #ECEFF1;
    color: var(--xh-text);
}

.xh-menu-btn:hover {
    background: var(--xh-link);
    color: var(--xh-white);
}

.xh-menu-btn-primary {
    background: var(--xh-link);
    color: var(--xh-white);
}

/* ===== APP下载页 ===== */
.xh-app-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

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

.xh-app-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 60px;
    max-width: 1200px;
    padding: 40px;
}

.xh-app-text {
    flex: 1;
    color: var(--xh-white);
}

.xh-app-text h1 {
    font-size: 2.5rem;
    color: var(--xh-white);
    margin-bottom: 16px;
}

.xh-app-text p {
    font-size: 1.1rem;
    line-height: 2;
    margin-bottom: 30px;
    opacity: 0.9;
}

.xh-app-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.xh-app-phone {
    width: 350px;
    flex-shrink: 0;
}

.xh-app-phone img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.xh-qr-section {
    display: flex;
    gap: 30px;
    margin-top: 30px;
}

.xh-qr-item {
    text-align: center;
}

.xh-qr-placeholder {
    width: 120px;
    height: 120px;
    background: rgba(255,255,255,0.9);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    font-size: 0.8rem;
    color: var(--xh-text);
}

.xh-qr-label {
    font-size: 0.85rem;
    opacity: 0.8;
}

/* ===== 内容页文章 ===== */
.xh-article {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 24px;
}

.xh-article h1 {
    font-size: 2rem;
    margin-bottom: 16px;
}

.xh-article p {
    margin-bottom: 20px;
    line-height: 2;
}

.xh-article img {
    border-radius: 12px;
    margin: 20px 0;
    box-shadow: 0 4px 16px var(--xh-shadow);
}

/* ===== 响应式 ===== */

/* 1440px */
@media (max-width: 1440px) {
    .xh-gallery-masonry {
        column-count: 3;
    }
}

/* 1024px */
@media (max-width: 1024px) {
    .xh-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .xh-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .xh-gallery-masonry {
        column-count: 2;
    }

    .xh-family-section {
        flex-direction: column;
    }

    .xh-family-img {
        width: 100%;
    }

    .xh-footer-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .xh-workshop-container {
        grid-template-columns: 50px 1fr 150px;
    }

    .xh-app-content {
        flex-direction: column;
        text-align: center;
    }

    .xh-app-phone {
        width: 280px;
    }

    .xh-app-buttons {
        justify-content: center;
    }

    .xh-qr-section {
        justify-content: center;
    }
}

/* 768px */
@media (max-width: 768px) {
    .xh-nav-links {
        display: none;
    }

    .xh-hamburger {
        display: flex;
    }

    .xh-hero h1 {
        font-size: 2rem;
    }

    .xh-hero p {
        font-size: 1rem;
    }

    .xh-section-title {
        font-size: 1.6rem;
    }

    .xh-grid-2 {
        grid-template-columns: 1fr;
    }

    .xh-grid-3 {
        grid-template-columns: 1fr;
    }

    .xh-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .xh-tutorial-card {
        flex-direction: column;
    }

    .xh-tutorial-img {
        width: 100%;
        height: 180px;
    }

    .xh-footer-container {
        grid-template-columns: 1fr;
    }

    .xh-membership-features {
        flex-direction: column;
        align-items: center;
    }

    .xh-workshop-container {
        grid-template-columns: 50px 1fr;
        grid-template-rows: 1fr auto;
    }

    .xh-workshop-pages {
        display: none;
    }

    .xh-page-banner {
        height: 220px;
    }

    .xh-page-banner-content h1 {
        font-size: 1.8rem;
    }

    .xh-carousel-slide img {
        height: 260px;
    }
}

/* 360px */
@media (max-width: 360px) {
    .xh-hero h1 {
        font-size: 1.6rem;
    }

    .xh-grid-4 {
        grid-template-columns: 1fr;
    }

    .xh-gallery-masonry {
        column-count: 1;
    }

    .xh-section {
        padding: 40px 16px;
    }

    .xh-btn {
        padding: 12px 28px;
        font-size: 1rem;
    }

    .xh-carousel-slide img {
        height: 200px;
    }
}

/* ===== 动画 ===== */
@keyframes xh-fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.xh-animate {
    animation: xh-fadeIn 0.6s ease forwards;
}

@keyframes xh-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.xh-float {
    animation: xh-float 3s ease-in-out infinite;
}

/* ===== 页面过渡 ===== */
.xh-page-transition {
    animation: xh-watercolor-in 0.5s ease;
}

@keyframes xh-watercolor-in {
    from { opacity: 0; filter: blur(4px); }
    to { opacity: 1; filter: blur(0); }
}

/* ===== 滚动显示动画 ===== */
.xh-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.xh-reveal.xh-visible {
    opacity: 1;
    transform: translateY(0);
}
