/* ============================================================
   礼簿尚书官网 - 首页样式
   ============================================================ */

/* ========== Hero 区域 - 全屏沉浸式 ========== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 110px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-hero-from);
    z-index: -2;
}

/* 装饰性背景图案 */
.hero-bg-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.03;
    z-index: -1;
    background-image: url("data:image/svg+xml,%3Csvg width='88' height='88' viewBox='0 0 88 88' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23C41E3A' fill-opacity='1'%3E%3Cpath d='M44 0C19.7 0 0 19.7 0 44s19.7 44 44 44 44-19.7 44-44S68.3 0 44 0zm0 77C26.3 77 12 62.7 12 45S26.3 13 44 13s32 14.3 32 32-14.3 32-32 32z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    background-size: 88px 88px;
}

/* 装饰性光晕 */
.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
    z-index: -1;
}

.hero-glow.glow-1 {
    width: 500px; height: 500px;
    background: rgba(var(--color-primary-rgb), 0.08);
    top: -10%; right: -5%;
    animation: floatGlow 8s ease-in-out infinite;
}

.hero-glow.glow-2 {
    width: 350px; height: 350px;
    background: rgba(212, 165, 116, 0.1);
    bottom: 5%; left: -5%;
    animation: floatGlow 10s ease-in-out infinite reverse;
}

@keyframes floatGlow {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(20px, -15px) scale(1.05); }
    66% { transform: translate(-15px, 10px) scale(0.97); }
}

/* Hero 内容布局 */
.hero-content {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 64px;
    align-items: center;
}

.hero-text h1 {
    font-family: var(--font-display);
    font-size: 52px;
    font-weight: 900;
    line-height: 1.18;
    margin-bottom: 24px;
    letter-spacing: -0.03em;
    color: var(--color-text);
}

.hero-text h1 .highlight {
    color: var(--color-primary);
    position: relative;
}

.hero-text h1 .highlight::after {
    content: '';
    position: absolute;
    bottom: 4px; left: 0; right: 0;
    height: 8px;
    background: rgba(var(--color-primary-rgb), 0.15);
    border-radius: 4px;
    z-index: -1;
}

.hero-text .subtitle {
    font-size: 17px;
    color: var(--color-text-secondary);
    margin-bottom: 32px;
    line-height: 1.75;
    max-width: 480px;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 36px;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

/* Hero 手机模拟器 */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.hero-phone {
    max-width: 300px;
    width: 100%;
    background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
    border-radius: 40px;
    padding: 10px;
    box-shadow:
        0 25px 70px rgba(0, 0, 0, 0.18),
        0 10px 20px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.08);
    position: relative;
    z-index: 2;
    transition: transform var(--transition-slow);
    cursor: pointer;
}

.hero-phone:hover {
    transform: translateY(-6px) rotateY(-3deg);
}

.phone-notch {
    width: 100px;
    height: 24px;
    background: #1a1a1a;
    border-radius: 0 0 16px 16px;
    margin: 0 auto 6px;
    position: relative;
}

.phone-notch::before {
    content: '';
    position: absolute;
    top: 8px; left: 50%; transform: translateX(-50%);
    width: 48px; height: 6px;
    background: #333;
    border-radius: 3px;
}

.phone-frame {
    width: 100%;
    aspect-ratio: 9/19.5;
    background: var(--color-bg-card);
    border-radius: 30px;
    overflow: hidden;
    position: relative;
}

.phone-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

/* 浮动信息卡片 */
.float-card {
    position: absolute;
    background: var(--color-bg-card);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    box-shadow: var(--shadow-xl);
    display: flex;
    align-items: center;
    gap: 11px;
    border: 1px solid var(--color-border);
    z-index: 3;
    animation: floatCard 4s ease-in-out infinite;
}

@keyframes floatCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.float-card.top-right {
    top: 8%; right: -24px;
    animation-delay: 0.5s;
}

.float-card.bottom-left {
    bottom: 12%; left: -36px;
    animation-delay: 2s;
}

.float-card .fc-icon {
    width: 38px; height: 38px;
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    color: white; flex-shrink: 0;
}

.float-card .fc-text strong {
    display: block; font-size: 14px; font-weight: 700;
    color: #ffffff;
}

.float-card .fc-text span {
    font-size: 11px; color: #ffffff;
}

/* ========== 功能展示网格 ========== */
.features-showcase {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.feature-item {
    display: flex;
    flex-direction:column;
    align-items: center;
    background: var(--gradient-card);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    border: 1px solid var(--color-border);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-smooth);
}

.feature-item::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 4px; height: 0;
    transition: height var(--transition-smooth);
    border-radius: 0 0 4px 0;
}

.feature-item:nth-child(1)::before,
.feature-item:nth-child(4)::before { background: linear-gradient(180deg, #DC143C, #FF6B81); }
.feature-item:nth-child(2)::before,
.feature-item:nth-child(5)::before { background: linear-gradient(180deg, #10B981, #34D399); }
.feature-item:nth-child(3)::before,
.feature-item:nth-child(6)::before { background: linear-gradient(180deg, #8B5CF6, #A78BFA); }

.feature-item:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-card-hover);
    border-color: var(--color-border-hover);
}

.feature-item:hover::before { height: 100%; }

.feature-icon {
    width: 52px; height: 52px;
    border-radius: var(--radius-md);
    display: flex; align-items: center; justify-content: center;
    color: white; margin-bottom: 18px;
    transition: transform var(--transition-smooth);
}

.feature-item:hover .feature-icon { transform: scale(1.08) rotate(-3deg); }

.feature-item:nth-child(1) .feature-icon,
.feature-item:nth-child(4) .feature-icon { background: linear-gradient(135deg, #DC143C, #FF6B81); }
.feature-item:nth-child(2) .feature-icon,
.feature-item:nth-child(5) .feature-icon { background: linear-gradient(135deg, #10B981, #34D399); }
.feature-item:nth-child(3) .feature-icon,
.feature-item:nth-child(6) .feature-icon { background: linear-gradient(135deg, #8B5CF6, #A78BFA); }

.feature-icon svg { width: 26px; height: 26px; }

.feature-title {
    font-size: 17px; font-weight: 700;
    color: var(--color-text); margin-bottom: 8px;
}

.feature-desc {
    font-size: 13px; color: var(--color-text-secondary);
    line-height: 1.7;
}

/* ========== 截图预览 ========== */
.screenshots-preview {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.screenshot-item {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.screenshot-thumb {
    width: 100%;
    aspect-ratio: 9/19.5;
    background: #1a1a1a;
    border-radius: 28px;
    margin-bottom: 10px;
    overflow: hidden;
    border: 3px solid #2a2a2a;
    transition: all var(--transition-smooth);
    position: relative;
    padding: 10px 5px;
    box-shadow: 
        inset 0 0 0 1px rgba(255,255,255,0.05),
        0 2px 8px rgba(0,0,0,0.15),
        0 8px 24px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 灵动岛 */
.screenshot-thumb::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 28%;
    height: 16px;
    background: #1a1a1a;
    border-radius: 10px;
    z-index: 2;
}

/* 底部指示条 */
.screenshot-thumb::after {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 30%;
    height: 4px;
    background: rgba(255,255,255,0.3);
    border-radius: 2px;
    z-index: 2;
}

.screenshot-thumb .phone-screen {
    width: 100%;
    height: 100%;
    border-radius: 20px;
    overflow: hidden;
}

.screenshot-item:hover .screenshot-thumb {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 
        inset 0 0 0 1px rgba(255,255,255,0.08),
        0 4px 16px rgba(0,0,0,0.25),
        0 12px 32px rgba(0,0,0,0.15);
}

.screenshot-thumb img {
    width: 100%; height: 100%;
    object-fit: cover; transition: transform var(--transition-slow);
}

.screenshot-item:hover .screenshot-thumb img { transform: scale(1.04); }

.screenshot-name {
    font-size: 12px; font-weight: 600;
    color: var(--color-text-secondary);
    text-align: center;
    transition: color var(--transition-fast);
}

.screenshot-item:hover .screenshot-name { color: var(--color-primary); }

/* ========== 往来状态卡片 ========== */
.status-showcase {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.status-card {
    background: var(--gradient-card);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    text-align: center;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-card);
    transition: all var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.status-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
}

.status-card.pending::before { background: linear-gradient(90deg, #FF6B6B, #EE5A5A); }
.status-card.balance::before { background: linear-gradient(90deg, #51CF66, #40C057); }
.status-card.over::before { background: linear-gradient(90deg, #FFD43B, #FAB005); }

.status-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-card-hover);
}

.status-icon {
    width: 64px; height: 64px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 18px;
    transition: transform var(--transition-smooth);
}

.status-card:hover .status-icon { transform: scale(1.1) rotate(5deg); }

.status-icon svg { width: 28px; height: 28px; }

.status-card.pending .status-icon {
    background: linear-gradient(135deg, #FF6B6B, #EE5A5A);
    color: white;
}

.status-card.balance .status-icon {
    background: linear-gradient(135deg, #51CF66, #40C057);
    color: white;
}

.status-card.over .status-icon {
    background: linear-gradient(135deg, #FFD43B, #FAB005);
    color: #333;
}

.status-title {
    font-size: 18px; font-weight: 700;
    color: var(--color-text); margin-bottom: 6px;
}

.status-desc {
    font-size: 13px; color: var(--color-text-secondary);
    line-height: 1.65;
}

.status-amount {
    font-size: 32px; font-weight: 900;
    margin: 14px 0; font-family: var(--font-display);
    letter-spacing: -0.02em;
}

.status-card.pending .status-amount { color: #EE5A5A; }
.status-card.balance .status-amount { color: #40C057; }
.status-card.over .status-amount { color: #FAB005; }

/* ========== 会员对比表 ========== */
/* 定价卡片 */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    max-width: 900px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--gradient-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 36px 28px 32px;
    position: relative;
    transition: all var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.pricing-card-vip {
    border-color: rgba(212, 175, 55, 0.3);
    box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.1), var(--shadow-card);
    background: linear-gradient(180deg, rgba(212, 175, 55, 0.03) 0%, var(--color-bg-card) 40%);
}

.pricing-card-vip:hover {
    box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.2), var(--shadow-lg);
}

.pricing-card-badge {
    position: absolute;
    top: -1px;
    right: 24px;
    background: linear-gradient(135deg, #D4AF37, #F5D060);
    color: white;
    padding: 6px 16px;
    border-radius: 0 0 10px 10px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.1em;
}

.pricing-card-header {
    text-align: center;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--color-border);
}

.pricing-card-name {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 12px;
}

.pricing-card-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
    margin-bottom: 8px;
}

.pricing-amount {
    font-size: 42px;
    font-weight: 900;
    color: var(--color-primary);
    line-height: 1;
}

.pricing-unit {
    font-size: 14px;
    color: var(--color-text-muted);
    font-weight: 400;
}

.pricing-card-vip .pricing-amount {
    background: linear-gradient(135deg, #D4AF37, #B8860B);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pricing-card-desc {
    font-size: 13px;
    color: var(--color-text-muted);
    line-height: 1.5;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
    flex: 1;
}

.pricing-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 14px;
    line-height: 1.4;
    border-bottom: 1px solid color-mix(in srgb, var(--color-border) 50%, transparent);
}

.pricing-feature:last-child {
    border-bottom: none;
}

.pricing-feature.included svg {
    color: #10B981;
    flex-shrink: 0;
}

.pricing-feature.excluded {
    opacity: 0.4;
}

.pricing-feature.excluded svg {
    color: var(--color-text-muted);
    flex-shrink: 0;
}

.pricing-feature-name {
    color: var(--color-text);
    font-weight: 500;
}

.pricing-feature-detail {
    color: var(--color-text-muted);
    font-size: 12px;
    margin-left: auto;
    white-space: nowrap;
}

.pricing-cta {
    width: 100%;
    justify-content: center;
    margin-top: auto;
}

/* 福利专区 */
.bonus-section {
    margin-top: 48px;
    padding: 32px;
    background: var(--gradient-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.bonus-header {
    text-align: center;
    margin-bottom: 28px;
}

.bonus-title {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    color: var(--color-text);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 8px;
}

.bonus-title svg {
    color: #F59E0B;
}

.bonus-desc {
    font-size: 14px;
    color: var(--color-text-muted);
}

.bonus-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.bonus-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 20px;
    background: var(--color-bg-section);
    border-radius: var(--radius-md);
    transition: all var(--transition-smooth);
}

.bonus-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.bonus-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(245, 158, 11, 0.05));
    color: #F59E0B;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.bonus-icon svg {
    width: 22px;
    height: 22px;
}

.bonus-content h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 4px;
}

.bonus-content p {
    font-size: 13px;
    color: var(--color-text-muted);
    line-height: 1.5;
}

/* ========== 用户评价列表 ========== */
.testimonials-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.testimonials-more {
    text-align: center;
    margin-top: 36px;
}

/* ========== 响应式适配 ========== */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 48px;
        text-align: center;
    }

    .hero-text { order: 1; }
    .hero-visual { order: 0; max-width: 280px; margin: 0 auto; }

    .hero-badges { justify-content: center; }
    .hero-actions { justify-content: center; }
    .hero-text .subtitle { margin: 0 auto 32px; max-width: 100%; }

    .float-card { display: none; }

    .features-showcase { grid-template-columns: repeat(2, 1fr); }
    .screenshots-preview { grid-template-columns: repeat(2, 1fr); }
    .testimonials-list { grid-template-columns: repeat(2, 1fr); }
    .testimonials-more { margin-top: 28px; }
    .status-showcase { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
}

@media (max-width: 768px) {
    .hero { padding: 96px 0 56px; min-height: auto; }
    .hero-text h1 { font-size: 34px; }
    .hero-text .subtitle { font-size: 15px; }
    .hero-phone { max-width: 200px; }
    
    .testimonials-more { margin-top: 24px; }
    .screenshots-preview { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    /* 首页截图手机壳移动端适配 */
    .screenshot-thumb {
        border-radius: 22px;
        border-width: 2px;
        padding: 8px 4px;
    }
    .screenshot-thumb::before { height: 13px; top: 6px; width: 26%; }
    .screenshot-thumb::after { bottom: 4px; width: 26%; height: 3px; }
    .screenshot-thumb .phone-screen { border-radius: 16px; }

    .pricing-grid { grid-template-columns: 1fr; gap: 20px; }
    .pricing-card { padding: 28px 20px 24px; }
    .pricing-amount { font-size: 36px; }
    .bonus-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .hero-text h1 { font-size: 30px; }
    .btn-lg { padding: 12px 24px; font-size: 14px; }
    .pricing-feature-detail { display: none; }
    .bonus-section { padding: 20px; }
    /* 超小屏首页截图 */
    .screenshots-preview { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .screenshot-thumb {
        border-radius: 20px;
        border-width: 2px;
        padding: 7px 3px;
    }
    .screenshot-thumb::before { height: 12px; top: 5px; width: 24%; border-radius: 8px; }
    .screenshot-thumb::after { bottom: 4px; width: 24%; height: 3px; }
    .screenshot-thumb .phone-screen { border-radius: 14px; }
}

/* ========== 小程序二维码弹窗 ========== */

