/**
 * 扬梦文化 - 组件样式
 */

/* 头部 */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    background: rgba(253, 251, 247, 0.95);
    backdrop-filter: blur(10px);
    transition: box-shadow var(--transition);
}

.site-header.scrolled {
    box-shadow: var(--shadow-sm);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.logo-link {
    display: block;
}

.logo-img {
    width: 200px;
    height: auto;
    object-fit: contain;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text);
}

.main-nav .nav-list {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-nav a {
    display: block;
    padding: 8px 16px;
    color: var(--color-text);
    font-weight: 500;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--color-primary);
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 160px;
    padding: 8px 0;
    background: var(--color-bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    list-style: none;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition), visibility var(--transition);
}

.dropdown-menu a {
    padding: 10px 20px;
    white-space: nowrap;
}

.header-cta {
    margin-left: 16px;
}

/* Hero */
.hero {
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 24px 80px;
    background: linear-gradient(180deg, var(--color-bg) 0%, rgba(196, 167, 125, 0.08) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="60" height="60"><rect fill="none" width="60" height="60"/><path fill="%238B7355" fill-opacity="0.03" d="M30 0L60 30L30 60L0 30Z"/></svg>');
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(139, 115, 85, 0.15);
    color: var(--color-primary);
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 100px;
    margin-bottom: 24px;
}

.hero h1 {
    margin-bottom: 16px;
    color: var(--color-text);
}

.hero p {
    font-size: 1.2rem;
    color: var(--color-text-muted);
    max-width: 560px;
    margin: 0 auto 32px;
}

/* 数据展示 */
.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    padding: 48px 0;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1.2;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.95rem;
    color: var(--color-text-muted);
}

/* 卡片 */
.card {
    background: var(--color-bg-card);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.card-img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: var(--radius);
    margin-bottom: 20px;
}

/* 页脚 */
.site-footer {
    background: var(--color-text);
    color: rgba(255,255,255,0.85);
    padding: 64px 0 24px;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-logo {
    width: 160px;
    height: auto;
    margin-bottom: 16px;
    opacity: 0.9;
}

.footer-tagline {
    font-size: 0.95rem;
    opacity: 0.8;
}

.footer-links h4,
.footer-contact h4 {
    font-size: 1rem;
    margin-bottom: 16px;
    color: #fff;
}

.footer-links ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links a {
    color: rgba(255,255,255,0.8);
    display: block;
    padding: 4px 0;
}

.footer-links a:hover {
    color: var(--color-primary-light);
}

.footer-contact p {
    margin: 8px 0;
    font-size: 0.95rem;
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.2);
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.7;
}

.footer-icp {
    margin-top: 8px !important;
}

.footer-icp a {
    color: inherit;
    text-decoration: none;
}

.footer-icp a:hover {
    text-decoration: underline;
}

/* 浮动联系按钮 - 仅移动端显示 */
.float-contact {
    display: none;
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999;
}

.float-contact-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: 100px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    transition: transform var(--transition), background var(--transition);
}

.float-contact-btn:hover {
    background: var(--color-primary-light);
    transform: scale(1.05);
}

.float-contact-btn svg {
    width: 24px;
    height: 24px;
}

/* 微信弹窗 */
.wechat-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.wechat-modal[hidden] {
    display: none !important;
}

.wechat-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
}

.wechat-modal-content {
    position: relative;
    background: var(--color-bg-card);
    border-radius: var(--radius-lg);
    padding: 40px;
    text-align: center;
    max-width: 360px;
    width: 100%;
    box-shadow: var(--shadow-lg);
}

.wechat-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    font-size: 24px;
    line-height: 1;
    background: none;
    border: none;
    color: var(--color-text-muted);
    cursor: pointer;
    transition: color var(--transition);
}

.wechat-modal-close:hover {
    color: var(--color-text);
}

.wechat-modal-content h2 {
    margin-bottom: 24px;
    font-size: 1.25rem;
}

.wechat-qr-wrap {
    margin-bottom: 16px;
}

.wechat-qr-wrap img {
    width: 200px;
    height: 200px;
    margin: 0 auto;
    border-radius: var(--radius);
}

.wechat-modal-tip {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

/* 主题网格 */
.theme-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.theme-item {
    text-align: center;
}

.theme-placeholder {
    width: 100%;
    aspect-ratio: 4/3;
    border-radius: var(--radius);
    margin-bottom: 16px;
    overflow: hidden;
}

.theme-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.theme-item h3 {
    margin-bottom: 8px;
}

.theme-item p {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    margin: 0;
}

/* 如何运作步骤 */
.how-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 48px;
}

.how-step {
    text-align: center;
}

.how-step-num {
    width: 48px;
    height: 48px;
    margin: 0 auto 20px;
    background: var(--color-primary);
    color: #fff;
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.how-step h3 {
    margin-bottom: 12px;
}

.how-step p {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    margin: 0;
}

.section-cta {
    text-align: center;
}

/* 老师风采 */
.teachers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.teacher-card {
    text-align: center;
}

.teacher-photo {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 20px;
}

.teacher-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.teacher-card h3 {
    margin-bottom: 8px;
}

.teacher-card p {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    margin: 0;
}

/* 作品案例 */
.cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 48px;
}

.case-card {
    display: flex;
    flex-direction: column;
}

.case-cover {
    aspect-ratio: 280/380;
    overflow: hidden;
    border-radius: var(--radius);
    margin-bottom: 20px;
}

.case-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.case-info h3 {
    margin-bottom: 8px;
}

.case-info p {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    margin: 0;
}

/* 视频区 - 严格 9:16 竖屏比例 */
.video-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.video-grid-single {
    grid-template-columns: 1fr;
    max-width: 360px;
    margin: 0 auto;
}

.video-placeholder {
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    aspect-ratio: 9 / 16;
    background: #2C2416;
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 12px;
    position: relative;
}

.video-placeholder video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    will-change: transform;
}

/* 点击区域由 wrap 接收，视频不拦截点击；z-index 确保播放按钮在上层 */
.video-click-wrap video {
    pointer-events: none;
    z-index: 0;
}

.video-placeholder .video-empty {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    text-align: center;
    padding: 24px;
}

.video-caption {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    margin: 0;
}

/* 点击播放视频 - 9:16 竖屏，封面 01.jpg */
.video-click-wrap {
    cursor: pointer;
    position: relative;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition: box-shadow 0.4s ease, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.video-click-wrap:active {
    transform: scale(0.98);
}

.video-play-hint {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.8rem;
    color: rgba(255,255,255,0.9);
    background: rgba(0,0,0,0.5);
    padding: 6px 14px;
    border-radius: 100px;
    pointer-events: none;
    z-index: 2;
    transition: opacity 0.3s;
}

.video-click-wrap.video-playing .video-play-hint {
    opacity: 0;
}

/* 中央播放/暂停按钮 - 常见视频播放器风格 */
.video-play-pause-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 64px;
    height: 64px;
    margin: -32px 0 0 -32px;
    background: rgba(0,0,0,0.5);
    border: 3px solid rgba(255,255,255,0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 2;
    transition: background 0.2s, transform 0.2s, opacity 0.4s ease;
}

.video-click-wrap:hover .video-play-pause-btn {
    background: rgba(0,0,0,0.65);
}

.video-click-wrap:active .video-play-pause-btn {
    transform: scale(0.95);
}

/* 播放时：约 1.2 秒后淡出，悬停时重新显示 */
.video-click-wrap.video-playing .video-play-pause-btn {
    opacity: 0;
    transition: opacity 0.4s ease 1.2s;
}

.video-click-wrap.video-playing:hover .video-play-pause-btn {
    opacity: 1;
    transition-delay: 0s;
}

/* 移动端/触屏：无 hover，暂停键约 0.5 秒后快速淡出 */
@media (hover: none) {
    .video-click-wrap.video-playing .video-play-pause-btn {
        transition: opacity 0.3s ease 0.5s;
    }
}

.video-play-pause-btn .icon-play,
.video-play-pause-btn .icon-pause {
    position: absolute;
    width: 28px;
    height: 28px;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    transition: opacity 0.2s;
}

.video-play-pause-btn .icon-play {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E");
    opacity: 1;
}

.video-play-pause-btn .icon-pause {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M6 19h4V5H6v14zm8-14v14h4V5h-4z'/%3E%3C/svg%3E");
    opacity: 0;
}

.video-click-wrap.video-playing .video-play-pause-btn .icon-play {
    opacity: 0;
}

.video-click-wrap.video-playing .video-play-pause-btn .icon-pause {
    opacity: 1;
}

/* 视频缓冲中提示 */
.video-click-wrap.video-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 36px;
    height: 36px;
    margin: -18px 0 0 -18px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: videoSpinner 0.8s linear infinite;
}

@keyframes videoSpinner {
    to { transform: rotate(360deg); }
}

/* 采访花絮视频 - 9:16，点击播放 */
.bts-video-wrap {
    width: 100%;
    max-width: 280px;
    aspect-ratio: 9 / 16;
    background: #2C2416;
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.bts-video-wrap video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* 套餐预览 */
.packages-preview {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.package-card {
    text-align: center;
}

.package-card h3 {
    margin-bottom: 12px;
}

.package-card p {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    margin-bottom: 20px;
}

/* CTA 最终区块 */
.section-cta-final {
    background: linear-gradient(135deg, rgba(139,115,85,0.08) 0%, rgba(196,167,125,0.12) 100%);
}

.cta-box {
    text-align: center;
    padding: 64px 48px;
    background: var(--color-bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.cta-box h2 {
    margin-bottom: 12px;
}

.cta-box p {
    color: var(--color-text-muted);
    margin-bottom: 24px;
}

/* 内页 Hero - 大标题淡入高级效果 */
.page-hero {
    padding: 140px 0 60px;
    text-align: center;
    background: linear-gradient(180deg, rgba(196,167,125,0.08) 0%, transparent 100%);
}

.page-hero .page-title,
.page-hero .page-subtitle {
    animation: pageTitleFadeIn 1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.page-hero .page-title {
    margin-bottom: 12px;
    animation-delay: 0.1s;
    opacity: 0;
}

.page-hero .page-subtitle {
    color: var(--color-text-muted);
    font-size: 1.1rem;
    animation-delay: 0.3s;
    opacity: 0;
}

@keyframes pageTitleFadeIn {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 首页 Hero 标题淡入 */
.hero .hero-content h1,
.hero .hero-content p,
.hero .hero-badge {
    animation: pageTitleFadeIn 1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    opacity: 0;
}

.hero .hero-badge { animation-delay: 0.1s; }
.hero .hero-content h1 { animation-delay: 0.2s; }
.hero .hero-content p { animation-delay: 0.35s; }
.hero .hero-content .btn { animation: pageTitleFadeIn 1s cubic-bezier(0.22, 1, 0.36, 1) 0.5s forwards; opacity: 0; }

/* 如何运作详情 */
.how-detail-step {
    display: flex;
    gap: 32px;
    margin-bottom: 48px;
    align-items: flex-start;
}

.how-detail-num {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    background: var(--color-primary);
    color: #fff;
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.how-detail-content h2 {
    margin-bottom: 12px;
}

.how-detail-content p {
    margin-bottom: 12px;
    color: var(--color-text-muted);
}

.interview-bts {
    margin-top: 24px;
}

.bts-label {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: 8px;
}

.bts-placeholder img {
    width: 100%;
    max-width: 600px;
    border-radius: var(--radius);
}

/* 套餐详情 */
.packages-detail {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin-bottom: 64px;
}

.package-detail-card ul {
    margin: 16px 0 24px;
    padding-left: 24px;
}

.package-detail-card li {
    margin-bottom: 8px;
}

.service-guarantee h3 {
    text-align: center;
    margin-bottom: 32px;
}

.guarantee-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.guarantee-item {
    text-align: center;
}

.guarantee-item strong {
    display: block;
    margin-bottom: 8px;
    color: var(--color-primary);
}

.guarantee-item p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin: 0;
}

/* 赠送页面 */
.gift-intro .lead {
    font-size: 1.2rem;
    text-align: center;
    max-width: 720px;
    margin: 0 auto 48px;
}

.occasion-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.occasion-card h3 {
    margin-bottom: 8px;
}

.occasion-card p {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    margin: 0;
}

/* 作品库 */
.library-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.library-cover {
    aspect-ratio: 280/380;
    overflow: hidden;
    border-radius: var(--radius);
    margin-bottom: 16px;
}

.library-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.library-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.library-tag {
    font-size: 0.8rem;
    padding: 4px 10px;
    background: rgba(139,115,85,0.15);
    color: var(--color-primary);
    border-radius: 100px;
}

.library-card h3 {
    margin: 0;
}

.library-card p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin: 0;
}

/* 关于页面 */
.about-intro .lead,
.about-mission p {
    font-size: 1.1rem;
    max-width: 720px;
    margin: 0 auto 32px;
}

.about-mission {
    text-align: center;
    margin-bottom: 48px;
}

.section-desc {
    text-align: center;
    color: var(--color-text-muted);
    margin-bottom: 32px;
}

.values-list {
    max-width: 720px;
    margin: 0 auto;
    padding-left: 24px;
}

.values-list li {
    margin-bottom: 16px;
}

/* 客户评价 */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 64px;
}

.testimonial-card .testimonial-text {
    font-style: italic;
    margin-bottom: 16px;
}

.testimonial-author {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin: 0;
}

.video-testimonials {
    text-align: center;
}

.video-testimonials h2 {
    margin-bottom: 16px;
}

.video-testimonials p {
    margin-bottom: 24px;
    color: var(--color-text-muted);
}

/* 联系我们 */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.contact-info h2,
.contact-form-wrap h2 {
    margin-bottom: 24px;
}

.wechat-qr-inline {
    margin: 24px 0;
}

.wechat-qr-inline img {
    border-radius: var(--radius);
}

.contact-note {
    color: var(--color-primary);
    font-weight: 500;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid rgba(139,115,85,0.3);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 1rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--color-primary);
}

.form-note {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-top: 12px;
}

.form-success {
    color: #27ae60;
    margin-bottom: 16px;
}

.form-error {
    color: #c0392b;
    margin-bottom: 16px;
}
