/* ========== 全局重置 & 主样式 ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    background: linear-gradient(135deg, #fef8f0 0%, #f5ede1 100%);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    position: relative;
    color: #2c241a;
}

/* 沙粒飘落Canvas背景 */
#sandCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* 主容器 */
.main-wrapper {
    position: relative;
    z-index: 10;
    max-width: 1300px;
    margin: 0 auto;
    padding: 4rem 2rem 3rem;
}

/* 头部区域 - 间距缩小 */
.hero {
    text-align: center;
    margin-bottom: 2rem;
}

.studio-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3.8rem;
    font-weight: 500;
    letter-spacing: 6px;
    background: linear-gradient(135deg, #e6c89c, #b87a3a, #e6c89c);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    text-shadow: 0 2px 8px rgba(0,0,0,0.08);
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding-bottom: 0.2rem;
    transition: all 0.3s;
}

/* Logo 样式 */
.logo-icon {
    font-size: 3rem;
    display: inline-block;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
    background: none;
    color: #c7a15e;
    text-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.logo-img {
    height: 5rem;
    width: auto;
    display: inline-block;
    vertical-align: middle;
    margin-right: 0.8rem;
    background: linear-gradient(135deg, #fef8f0 0%, #f5ede1 100%);
    padding: 0.5rem;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* 标题装饰线 */
.studio-name::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10%;
    width: 80%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #c7a15e, #e6c89c, #c7a15e, transparent);
    border-radius: 2px;
}

.subhead {
    font-size: 0.9rem;
    letter-spacing: 8px;
    text-transform: uppercase;
    color: #b8894f;
    font-weight: 400;
    border-top: 1px solid rgba(180, 140, 80, 0.3);
    display: inline-block;
    padding-top: 0.9rem;
}

.tagline {
    font-size: 1.2rem;
    color: #6b4e2c;
    margin-top: 1.5rem;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

/* 隐藏原 hero 内的 .subhead 和 .tagline，已移至视频上方 */
.hero .subhead, .hero .tagline {
    display: none;
}

/* 全宽视频背景 */
.hero-video {
    position: relative;
    width: 100%;
    border-radius: 32px;
    overflow: hidden;
    margin-bottom: 4rem;
    box-shadow: 0 20px 35px -12px rgba(0, 0, 0, 0.2);
}
.hero-video video {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    aspect-ratio: 16/9;
}
.hero-video-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(10px);
    border-radius: 60px;
    padding: 1.2rem 2rem;
    white-space: nowrap;
}
.hero-video-text .video-subhead {
    font-size: 0.9rem;
    letter-spacing: 6px;
    text-transform: uppercase;
    color: #fae6c3;
    font-weight: 400;
    margin-bottom: 0.5rem;
}
.hero-video-text .video-tagline {
    font-size: 1.2rem;
    color: #fff3e0;
    font-weight: 350;
    letter-spacing: 1px;
}

/* 响应式 */
@media (max-width: 900px) {
    .studio-name { font-size: 2.8rem !important; letter-spacing: 3px !important; gap: 0.5rem; }
    .logo-icon { font-size: 2.2rem; }
    .hero-video-text { white-space: normal; width: 85%; padding: 0.8rem 1rem; }
    .hero-video-text .video-subhead { letter-spacing: 3px; font-size: 0.7rem; }
    .hero-video-text .video-tagline { font-size: 0.9rem; }
}
@media (max-width: 550px) {
    .studio-name { font-size: 2.2rem !important; }
    .logo-icon { font-size: 1.8rem; }
}

/* 核心业务卡片 */
.services {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3rem;
    margin: 5rem 0 4rem;
}

.service-card {
    background: rgba(255, 253, 248, 0.78);
    backdrop-filter: blur(10px);
    border-radius: 48px;
    padding: 2.4rem 2rem;
    flex: 1;
    min-width: 260px;
    max-width: 320px;
    text-align: center;
    transition: all 0.35s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    border: 1px solid rgba(210, 180, 130, 0.35);
    text-decoration: none;
    color: inherit;
    display: block;
}

.service-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 252, 244, 0.94);
    border-color: rgba(190, 150, 90, 0.6);
    box-shadow: 0 28px 40px -18px rgba(90, 60, 30, 0.18);
}

.service-icon {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.service-title {
    font-size: 1.85rem;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    color: #a57242;
    margin-bottom: 0.9rem;
}

.service-desc {
    font-size: 0.95rem;
    color: #5a452e;
    line-height: 1.6;
}

/* 沙画艺术灵感栏目 & 视频栏目（共用网格样式） */
.flower-gallery, .video-gallery {
    margin: 4rem 0;
}

.gallery-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    text-align: center;
    color: #b8894f;
    margin-bottom: 2rem;
}

.flower-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.flower-card {
    flex: 1;
    min-width: 200px;
    max-width: 260px;
    text-align: center;
    background: rgba(255, 252, 245, 0.7);
    backdrop-filter: blur(4px);
    border-radius: 32px;
    padding: 1rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}

.flower-card:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 24px -12px rgba(0,0,0,0.15);
}

.flower-card img {
    width: 100%;
    border-radius: 24px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    aspect-ratio: 3/2;
    object-fit: cover;
}

.flower-card p {
    margin-top: 0.8rem;
    font-size: 0.9rem;
    color: #7a5a3a;
    font-weight: 500;
}

/* 视频卡片内的播放图标 - 无黑圈背景，仅白色三角形 */
.video-thumb {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
}
.video-thumb video,
.video-thumb img {
    width: 100%;
    aspect-ratio: 3/2;
    object-fit: cover;
    display: block;
    border-radius: 24px;
}
.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: transparent;
    color: white;
    font-size: 3rem;
    width: auto;
    height: auto;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-shadow: 0 2px 6px rgba(0,0,0,0.5);
    transition: all 0.2s ease;
}
.flower-card:hover .play-icon {
    transform: translate(-50%, -50%) scale(1.1);
}

/* 联系方式区域 */
.contact-area {
    background: rgba(245, 237, 224, 0.55);
    backdrop-filter: blur(12px);
    border-radius: 80px;
    padding: 2.5rem 3rem;
    margin: 2rem 0 3rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    border: 1px solid rgba(200, 170, 120, 0.4);
}

.contact-area {
    background: rgba(245, 237, 224, 0.55);
    backdrop-filter: blur(12px);
    border-radius: 80px;
    padding: 2.5rem 3rem;
    margin: 2rem 0 3rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    border: 1px solid rgba(200, 170, 120, 0.4);
}
.contact-info { flex: 2; text-align: center; }
.contact-label { font-size: 0.75rem; letter-spacing: 3px; text-transform: uppercase; color: #b07d48; margin-bottom: 0.6rem; }
.phone-number {
    font-size: 2.4rem;
    font-weight: 520;
    font-family: 'Inter', monospace;
    background: linear-gradient(135deg, #5f3f21, #9b6e42);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    cursor: pointer;
    display: inline-block;
}
.contact-note { font-size: 0.85rem; color: #876e48; margin-top: 0.3rem; }

.tour-locations { flex: 1.2; text-align: right; padding-left: 2rem; }
.tour-label { font-size: 0.7rem; letter-spacing: 2px; color: #b27d48; margin-bottom: 0.4rem; }
.city-list { display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: flex-end; align-items: baseline; }
.city { background: rgba(230, 210, 175, 0.4); padding: 0.2rem 1rem; border-radius: 40px; font-size: 0.85rem; font-weight: 500; }
.city-etc { font-size: 0.9rem; font-weight: 500; color: #a57242; margin-left: 0.2rem; }
.more-city-tip { margin-top: 12px; font-size: 0.72rem; color: #9b764b; background: rgba(235, 220, 190, 0.4); display: inline-block; padding: 0.2rem 1rem; border-radius: 30px; }

/* 二维码样式 */
.contact-qrcode {
    text-align: center;
    flex: 1;
    border-left: 1px dashed rgba(170, 135, 80, 0.5);
    border-right: 1px dashed rgba(170, 135, 80, 0.5);
    padding: 0 2rem;
}
.contact-qrcode img {
    width: 120px;
    height: 120px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    background: white;
    padding: 5px;
}
.qrcode-text {
    font-size: 0.8rem;
    color: #9b764b;
    margin-top: 0.5rem;
}

/* 联系方式区域三等分 */
.contact-info {
    flex: 1;
    text-align: center;
    padding: 0 2rem;
}
.tour-locations {
    flex: 1;
    text-align: center;
    padding: 0 2rem;
}

/* 新增友情链接栏 */
.friend-links {
    margin: 2rem 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    border-top: 1px solid rgba(170, 135, 80, 0.3);
    padding-top: 1.8rem;
}
.friend-links-left {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}
.friend-links-left a {
    color: #a57242;
    text-decoration: none;
    font-size: 0.85rem;
    transition: 0.2s;
}
.friend-links-left a:hover {
    color: #7c5632;
    text-decoration: underline;
}
.friend-links-right a {
    background: rgba(235, 220, 190, 0.3);
    padding: 0.3rem 1rem;
    border-radius: 40px;
    text-decoration: none;
    font-size: 0.8rem;
    color: #a57242;
    font-weight: 500;
    transition: 0.2s;
}
.friend-links-right a:hover {
    background: #e9d9c2;
    color: #7c5632;
}

/* 底部区域（版权 + 运行天数 + 统计） */
.footer-new {
    margin-top: 0.5rem;
    border-top: 1px solid rgba(170, 135, 80, 0.3);
    padding: 1.5rem 0 0.8rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}
.copyright {
    font-size: 0.75rem;
    color: #b2966c;
    letter-spacing: 0.5px;
}
.runtime {
    font-size: 0.75rem;
    color: #b2966c;
    background: rgba(235, 220, 190, 0.2);
    padding: 0.2rem 0.8rem;
    border-radius: 30px;
}
.stat-footer {
    text-align: center;
    margin-top: 0.5rem;
    padding-bottom: 0.5rem;
    font-size: 0;
    line-height: 0;
}

/* 二级页面通用样式 */
.page-sub {
    max-width: 1000px;
    margin: 0 auto;
    padding: 3rem 2rem;
    background: rgba(255, 253, 248, 0.9);
    border-radius: 64px;
    backdrop-filter: blur(8px);
}
.back-home {
    display: inline-block;
    margin-bottom: 2rem;
    color: #a57242;
    text-decoration: none;
    border-bottom: 1px solid #dbbc8c;
}
.back-home:hover { color: #7c5632; }
.sub-detail-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5rem;
    color: #8f6236;
    margin-bottom: 1rem;
}
.sub-detail-content {
    font-size: 1rem;
    line-height: 1.7;
    color: #4d3a28;
}
.video-container {
    margin: 2rem 0;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 12px 25px -10px rgba(0,0,0,0.2);
}
.video-container video {
    width: 100%;
    display: block;
}

/* 瀑布流样式 */
.waterfall-grid {
    column-count: 3;
    column-gap: 1.5rem;
}
@media (max-width: 900px) {
    .waterfall-grid { column-count: 2; }
}
@media (max-width: 600px) {
    .waterfall-grid { column-count: 1; }
}

.waterfall-item {
    break-inside: avoid;
    margin-bottom: 1.5rem;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    background: linear-gradient(135deg, #f5ede1 0%, #e8dcc8 100%);
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
}
.waterfall-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}
.waterfall-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

@keyframes fadeSlideUp {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}
.service-card, .contact-area, .flower-gallery, .video-gallery {
    animation: fadeSlideUp 0.7s ease-out backwards;
}
.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }
.contact-area { animation-delay: 0.4s; }
.flower-gallery { animation-delay: 0.45s; }
.video-gallery { animation-delay: 0.5s; }