/* ============================================
   宠忆园 - 宣传网站样式表
   ============================================ */

/* CSS 变量定义 */
:root {
    /* 主色调 - 紫色系 */
    --primary-h: 280;
    --primary-s: 65%;
    --primary-l: 65%;
    --primary: hsl(var(--primary-h), var(--primary-s), var(--primary-l));
    --primary-dark: hsl(var(--primary-h), var(--primary-s), 50%);
    --primary-light: hsl(var(--primary-h), var(--primary-s), 85%);

    /* 次要色 - 粉色系 */
    --secondary-h: 340;
    --secondary-s: 70%;
    --secondary-l: 85%;
    --secondary: hsl(var(--secondary-h), var(--secondary-s), var(--secondary-l));
    --secondary-dark: hsl(var(--secondary-h), var(--secondary-s), 65%);

    /* 墓园主题色 */
    --cemetery-sakura: hsl(340, 80%, 75%);
    --cemetery-bamboo: hsl(120, 50%, 70%);
    --cemetery-lotus: hsl(200, 60%, 85%);
    --cemetery-rose: hsl(350, 75%, 70%);
    --cemetery-pine: hsl(150, 45%, 40%);
    --cemetery-plum: hsl(280, 60%, 65%);

    /* 基础颜色 */
    --background: #ffffff;
    --foreground: #1a1a2e;
    --muted: #f5f5f7;
    --muted-foreground: #6b7280;
    --card: #ffffff;
    --card-foreground: #1a1a2e;
    --border: #e5e7eb;
    --input: #e5e7eb;
    --ring: var(--primary);

    /* 阴影 */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

    /* 圆角 */
    --radius-sm: 0.375rem;
    --radius: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-full: 9999px;

    /* 间距 */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;

    /* 字体 */
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

/* 全局重置 */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    color: var(--foreground);
    background-color: var(--background);
    line-height: 1.6;
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

ul {
    list-style: none;
}

/* 容器 */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

/* ============================================
   导航栏
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    box-shadow: var(--shadow-sm);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.nav-brand:hover {
    opacity: 0.8;
}

.nav-brand svg {
    flex-shrink: 0;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--spacing-xl);
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--muted-foreground);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius);
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: var(--primary);
    background-color: var(--primary-light);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: var(--spacing-sm);
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background-color: var(--foreground);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ============================================
   按钮样式
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn:focus {
    outline: 2px solid var(--ring);
    outline-offset: 2px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    border: 2px solid var(--border);
    color: var(--foreground);
    background-color: transparent;
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background-color: var(--primary-light);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.05rem;
}

/* ============================================
   Hero 区域
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 70px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
        hsl(280, 65%, 95%) 0%,
        hsl(340, 70%, 95%) 50%,
        hsl(200, 60%, 95%) 100%);
    z-index: -1;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 80%, var(--cemetery-sakura) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, var(--cemetery-lotus) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, var(--cemetery-bamboo) 0%, transparent 40%);
    opacity: 0.3;
}

.hero-overlay {
    background: linear-gradient(180deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.8) 100%);
}

/* 飘花粒子效果容器 */
.petals {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}

/* 单个花瓣 */
.petal {
    position: absolute;
    width: 15px;
    height: 15px;
    background: radial-gradient(ellipse at center, #ffb7c5 0%, #ff69b4 100%);
    border-radius: 50% 0 50% 50%;
    opacity: 0;
    animation: petal-fall linear infinite;
}

.petal::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: inherit;
    border-radius: inherit;
    transform: rotate(45deg);
}

.hero-content {
    text-align: center;
    padding: var(--spacing-3xl) 0;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.4;
    margin-bottom: var(--spacing-xl);
    letter-spacing: -0.02em;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary) 0%, var(--cemetery-sakura) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: var(--muted-foreground);
    max-width: 600px;
    margin: 0 auto var(--spacing-2xl);
}

.hero-actions {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: var(--spacing-3xl);
}

.hero-stats {
    display: flex;
    gap: var(--spacing-3xl);
    justify-content: center;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--muted-foreground);
    margin-top: var(--spacing-xs);
}

/* ============================================
   Section 通用样式
   ============================================ */
section {
    padding: var(--spacing-3xl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-3xl);
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    color: var(--foreground);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--muted-foreground);
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   功能特色
   ============================================ */
.features {
    background-color: var(--background);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-xl);
}

.feature-card {
    padding: var(--spacing-xl);
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--spacing-lg);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.feature-icon-sakura {
    background: linear-gradient(135deg, var(--cemetery-sakura), var(--cemetery-rose));
}

.feature-icon-bamboo {
    background: linear-gradient(135deg, var(--cemetery-bamboo), var(--cemetery-pine));
}

.feature-icon-lotus {
    background: linear-gradient(135deg, var(--cemetery-lotus), var(--primary));
}

.feature-icon-rose {
    background: linear-gradient(135deg, var(--cemetery-rose), var(--cemetery-plum));
}

.feature-icon-pine {
    background: linear-gradient(135deg, var(--cemetery-pine), var(--cemetery-bamboo));
}

.feature-icon-plum {
    background: linear-gradient(135deg, var(--cemetery-plum), var(--cemetery-sakura));
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

.feature-desc {
    font-size: 0.95rem;
    color: var(--muted-foreground);
    line-height: 1.6;
}

/* ============================================
   纪念碑服务
   ============================================ */
.memorial {
    background: linear-gradient(180deg,
        var(--muted) 0%,
        var(--background) 100%);
}

.memorial-tiers {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-xl);
    align-items: start;
}

.tier-card {
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    position: relative;
    transition: all 0.3s ease;
}

.tier-card:hover {
    box-shadow: var(--shadow-lg);
}

.tier-card.featured {
    border-color: var(--primary);
    box-shadow: var(--shadow-xl);
    transform: scale(1.05);
}

.tier-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 0.25rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
}

.tier-header {
    text-align: center;
    padding-bottom: var(--spacing-lg);
    border-bottom: 1px solid var(--border);
    margin-bottom: var(--spacing-lg);
}

.tier-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
}

.tier-price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
}

.tier-price span {
    font-size: 1rem;
    color: var(--muted-foreground);
    font-weight: 500;
}

.tier-features {
    margin-bottom: var(--spacing-xl);
}

.tier-features li {
    padding: var(--spacing-sm) 0;
    color: var(--muted-foreground);
    position: relative;
    padding-left: 1.5rem;
}

.tier-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    background-color: var(--primary-light);
    border-radius: 50%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23a855f7' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
    background-position: center;
    background-repeat: no-repeat;
}

.tier-card .btn {
    width: 100%;
}

/* ============================================
   墓园展示
   ============================================ */
.cemetery {
    background-color: var(--background);
}

.cemetery-themes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
}

.theme-card {
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.theme-card:hover {
    transform: translateY(-8px) scale(1.02);
}

.theme-sakura {
    background: linear-gradient(135deg,
        hsl(340, 80%, 98%) 0%,
        hsl(340, 80%, 92%) 100%);
    border: 1px solid var(--cemetery-sakura);
}

.theme-bamboo {
    background: linear-gradient(135deg,
        hsl(120, 50%, 97%) 0%,
        hsl(120, 50%, 90%) 100%);
    border: 1px solid var(--cemetery-bamboo);
}

.theme-lotus {
    background: linear-gradient(135deg,
        hsl(200, 60%, 97%) 0%,
        hsl(200, 60%, 90%) 100%);
    border: 1px solid var(--cemetery-lotus);
}

.theme-rose {
    background: linear-gradient(135deg,
        hsl(350, 75%, 97%) 0%,
        hsl(350, 75%, 90%) 100%);
    border: 1px solid var(--cemetery-rose);
}

.theme-image {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--spacing-lg);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-sakura .theme-image {
    background-color: var(--cemetery-sakura);
    color: white;
}

.theme-bamboo .theme-image {
    background-color: var(--cemetery-bamboo);
    color: white;
}

.theme-lotus .theme-image {
    background-color: var(--cemetery-lotus);
    color: white;
}

.theme-rose .theme-image {
    background-color: var(--cemetery-rose);
    color: white;
}

.theme-name {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

.theme-desc {
    font-size: 0.9rem;
    color: var(--muted-foreground);
}

/* ============================================
   设计模板
   ============================================ */
.templates {
    background-color: var(--background);
}

.templates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-xl);
}

.template-card {
    background-color: var(--card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid var(--border);
}

.template-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.template-preview {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg,
        hsl(280, 50%, 98%) 0%,
        hsl(340, 50%, 98%) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.template-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.template-card:hover .template-image {
    transform: scale(1.1);
}

.template-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    opacity: 0.6;
}

.template-tag {
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
    padding: 0.25rem 0.75rem;
    background-color: var(--primary);
    color: white;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
}

.template-info {
    padding: var(--spacing-lg);
}

.template-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--foreground);
}

.template-desc {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    line-height: 1.5;
}

/* ============================================
   用户故事
   ============================================ */
.stories {
    background: linear-gradient(135deg,
        hsl(280, 65%, 97%) 0%,
        hsl(340, 70%, 97%) 100%);
}

.stories-carousel {
    max-width: 800px;
    margin: 0 auto;
}

.story-card {
    background-color: var(--card);
    border-radius: var(--radius-xl);
    padding: var(--spacing-2xl);
    box-shadow: var(--shadow-md);
}

.story-content {
    text-align: center;
}

.story-text {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--foreground);
    margin-bottom: var(--spacing-xl);
    font-style: italic;
}

.story-text::before {
    content: '"';
    font-size: 3rem;
    color: var(--primary);
    line-height: 1;
    display: block;
    margin-bottom: var(--spacing-sm);
}

.story-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-md);
}

.author-avatar {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.author-info {
    text-align: left;
}

.author-name {
    font-weight: 600;
}

.author-pet {
    font-size: 0.9rem;
    color: var(--muted-foreground);
}

.story-dots {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    margin-top: var(--spacing-xl);
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--border);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background-color: var(--primary);
    transform: scale(1.2);
}

/* ============================================
   关于我们
   ============================================ */
.about {
    background-color: var(--background);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-3xl);
    align-items: center;
}

.about-desc {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--muted-foreground);
    margin-bottom: var(--spacing-lg);
}

.about-values {
    display: flex;
    gap: var(--spacing-xl);
    margin-top: var(--spacing-xl);
}

.value-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
    text-align: center;
}

.value-item svg {
    color: var(--primary);
}

.value-item span {
    font-size: 0.9rem;
    font-weight: 500;
}

.about-image {
    display: flex;
    justify-content: center;
}

.image-placeholder {
    width: 100%;
    max-width: 400px;
    aspect-ratio: 1;
    background: linear-gradient(135deg,
        var(--primary-light) 0%,
        var(--secondary) 100%);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

/* ============================================
   CTA 区域
   ============================================ */
.cta {
    background: linear-gradient(135deg,
        var(--primary) 0%,
        var(--primary-dark) 100%);
    color: white;
    text-align: center;
}

.cta-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: var(--spacing-md);
}

.cta-desc {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: var(--spacing-xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-actions {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

.cta .btn-outline {
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
}

.cta .btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: white;
}

/* ============================================
   页脚
   ============================================ */
.footer {
    background-color: #1a1a2e;
    color: rgba(255, 255, 255, 0.8);
    padding: var(--spacing-3xl) 0 var(--spacing-lg);
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 2fr 1.5fr;
    gap: var(--spacing-3xl);
    margin-bottom: var(--spacing-2xl);
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.footer-logo svg {
    color: var(--primary);
}

.footer-tagline {
    font-size: 0.95rem;
    opacity: 0.7;
}

.footer-links {
    display: flex;
    gap: var(--spacing-3xl);
}

.link-group h4 {
    color: white;
    font-weight: 600;
    margin-bottom: var(--spacing-lg);
}

.link-group a {
    display: block;
    margin-bottom: var(--spacing-sm);
    font-size: 0.9rem;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.link-group a:hover {
    opacity: 1;
}

.footer-contact h4 {
    color: white;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
}

.qrcode-section {
    display: flex;
    gap: var(--spacing-lg);
}

.qrcode-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-qrcode-img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    border-radius: var(--radius);
    margin-bottom: var(--spacing-sm);
    background-color: rgba(255, 255, 255, 0.05);
    padding: 4px;
}

.qrcode-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: white;
    margin-bottom: 2px;
}

.qrcode-desc {
    font-size: 0.8rem;
    opacity: 0.7;
    margin-top: var(--spacing-sm);
    text-align: center;
}

.footer-contact p {
    font-size: 0.9rem;
    opacity: 0.7;
    margin-bottom: var(--spacing-sm);
}

.social-links {
    display: flex;
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.social-links a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--primary);
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
    opacity: 0.6;
}

.footer-bottom p {
    margin-bottom: var(--spacing-xs);
}

.footer-bottom .icp {
    font-size: 0.8rem;
}

/* ============================================
   响应式设计
   ============================================ */
@media (max-width: 1024px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-2xl);
    }

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

    .footer-contact {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: var(--background);
        flex-direction: column;
        padding: var(--spacing-xl);
        gap: var(--spacing-lg);
        transform: translateX(100%);
        transition: transform 0.3s ease;
    }

    .nav-menu.active {
        transform: translateX(0);
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .hero-stats {
        flex-direction: column;
        gap: var(--spacing-xl);
    }

    .features-grid,
    .memorial-tiers,
    .cemetery-themes {
        grid-template-columns: 1fr;
    }

    .tier-card.featured {
        transform: none;
    }

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

    .footer-links {
        flex-direction: column;
        gap: var(--spacing-lg);
    }

    .footer-contact {
        grid-column: span 1;
    }

    .qrcode-section {
        flex-direction: row;
        gap: var(--spacing-md);
    }

    .qrcode-placeholder {
        width: 90px;
        height: 90px;
    }

    .cta-actions {
        flex-direction: column;
        width: 100%;
    }

    .cta-actions .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--spacing-md);
    }

    section {
        padding: var(--spacing-2xl) 0;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .story-card {
        padding: var(--spacing-lg);
    }

    .about-values {
        flex-direction: column;
    }

    .qrcode-section {
        gap: var(--spacing-sm);
    }

    .qrcode-placeholder {
        width: 80px;
        height: 80px;
    }

    .qrcode-label {
        font-size: 0.7rem;
    }

    .qrcode-desc {
        font-size: 0.7rem;
    }
}

/* ============================================
   动画效果
   ============================================ */

/* 淡入上升动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* 浮动动画 */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

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

/* 脉冲动画 */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.9;
    }
}

.animate-pulse {
    animation: pulse 2s ease-in-out infinite;
}

/* 光晕扩散动画 */
@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 5px var(--primary), 0 0 10px var(--primary), 0 0 15px var(--primary);
    }
    50% {
        box-shadow: 0 0 10px var(--primary), 0 0 20px var(--primary), 0 0 30px var(--primary);
    }
}

.animate-glow {
    animation: glow 2s ease-in-out infinite;
}

/* 旋转动画 */
@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.animate-rotate {
    animation: rotate 20s linear infinite;
}

/* 缩放弹跳动画 */
@keyframes bounceScale {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.animate-bounce {
    animation: bounceScale 1s ease-in-out infinite;
}

/* 渐变背景动画 */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.animate-gradient {
    background-size: 200% 200%;
    animation: gradientShift 5s ease infinite;
}

/* 打字机效果 */
@keyframes typewriter {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

/* 闪烁动画 */
@keyframes shimmer {
    0% {
        background-position: -200% center;
    }
    100% {
        background-position: 200% center;
    }
}

.animate-shimmer {
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 100%
    );
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

/* 弹跳进入动画 */
@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
    }
}

.animate-bounce-in {
    animation: bounceIn 0.6s ease-out forwards;
}

/* 左右摇摆动画 */
@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-5px);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(5px);
    }
}

.animate-shake:hover {
    animation: shake 0.5s ease-in-out;
}

/* 粒子背景动画 */
@keyframes particles {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) rotate(720deg);
        opacity: 0;
    }
}

/* 飘花下落动画 */
@keyframes petal-fall {
    0% {
        transform: translateY(-20px) translateX(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    25% {
        transform: translateY(25vh) translateX(30px) rotate(90deg);
    }
    50% {
        transform: translateY(50vh) translateX(-30px) rotate(180deg);
    }
    75% {
        transform: translateY(75vh) translateX(30px) rotate(270deg);
    }
    100% {
        transform: translateY(110vh) translateX(0) rotate(360deg);
        opacity: 0;
    }
}

/* 3D翻转动画 */
@keyframes flip3d {
    0% {
        transform: perspective(400px) rotateY(0);
    }
    100% {
        transform: perspective(400px) rotateY(360deg);
    }
}

.animate-flip:hover {
    animation: flip3d 0.8s ease-in-out;
}

/* 波纹扩散动画 */
@keyframes rippleEffect {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(4);
        opacity: 0;
    }
}

/* 文字发光动画 */
@keyframes textGlow {
    0%, 100% {
        text-shadow: 0 0 10px var(--primary), 0 0 20px var(--primary);
    }
    50% {
        text-shadow: 0 0 20px var(--primary), 0 0 40px var(--primary), 0 0 60px var(--primary);
    }
}

.animate-text-glow {
    animation: textGlow 2s ease-in-out infinite;
}

/* 悬停放大效果 */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(168, 85, 247, 0.2);
}

/* 滑动显示动画 */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-slide-left {
    animation: slideInLeft 0.6s ease-out forwards;
}

.animate-slide-right {
    animation: slideInRight 0.6s ease-out forwards;
}

/* ============================================
   滚动条样式
   ============================================ */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background-color: var(--muted);
}

::-webkit-scrollbar-thumb {
    background-color: var(--primary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background-color: var(--primary-dark);
}

/* ============================================
   二维码模态框
   ============================================ */
.qrcode-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.qrcode-modal.active {
    opacity: 1;
    visibility: visible;
}

.qrcode-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.qrcode-modal-content {
    position: relative;
    background: linear-gradient(135deg, var(--background) 0%, var(--muted) 100%);
    border-radius: var(--radius-xl);
    padding: var(--spacing-2xl);
    max-width: 500px;
    width: 90%;
    box-shadow: var(--shadow-xl);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
    z-index: 1;
}

.qrcode-modal.active .qrcode-modal-content {
    transform: scale(1) translateY(0);
}

.qrcode-modal-close {
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--muted);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted-foreground);
    transition: all 0.3s ease;
}

.qrcode-modal-close:hover {
    background-color: var(--primary);
    color: white;
    transform: rotate(90deg);
}

.qrcode-modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: var(--spacing-xl);
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.qrcode-modal-body {
    display: flex;
    gap: var(--spacing-xl);
    justify-content: center;
    margin-bottom: var(--spacing-lg);
}

.qrcode-modal-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.qrcode-modal-img {
    width: 160px;
    height: 160px;
    object-fit: contain;
    margin-bottom: var(--spacing-md);
    border-radius: var(--radius-md);
}

.qrcode-modal-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: var(--spacing-xs);
}

.qrcode-modal-desc {
    font-size: 0.85rem;
    color: var(--muted-foreground);
}

/* 模态框响应式 */
@media (max-width: 480px) {
    .qrcode-modal-content {
        padding: var(--spacing-xl);
        width: 95%;
    }

    .qrcode-modal-title {
        font-size: 1.25rem;
    }

    .qrcode-modal-body {
        flex-direction: column;
        gap: var(--spacing-lg);
    }

    .qrcode-modal-img {
        width: 140px;
        height: 140px;
    }

    .qrcode-modal-close {
        width: 32px;
        height: 32px;
    }
}

/* ============================================
   Toast 消息样式
   ============================================ */

.toast-message {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    padding: var(--spacing-lg) var(--spacing-xl);
    min-width: 300px;
    max-width: 400px;
}

.toast-content {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    color: var(--foreground);
    font-size: 0.9375rem;
}

.toast-content svg {
    flex-shrink: 0;
    color: var(--primary);
    width: 24px;
    height: 24px;
}

.toast-content span {
    flex: 1;
    line-height: 1.5;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Toast 响应式 */
@media (max-width: 768px) {
    .toast-message {
        left: var(--spacing-md);
        right: var(--spacing-md);
        min-width: auto;
        max-width: none;
    }
}

/* ============================================
   线上追悼会样式
   ============================================ */

/* 追悼会表单样式 */
.memorial-service-form {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--spacing-2xl);
}

.form-section {
    margin-bottom: var(--spacing-3xl);
}

.section-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
}

.template-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.template-card {
    border: 3px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    background: var(--card);
}

.template-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.template-card.active {
    border-color: var(--primary);
    background: linear-gradient(135deg,
        hsla(var(--primary-h), var(--primary-s), var(--primary-l), 0.05) 0%,
        hsla(var(--primary-h), var(--primary-s), 50%, 0.05) 100%);
}

.template-card.active::after {
    content: '✓';
    position: absolute;
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1rem;
}

.feature-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
}

.feature-tag {
    display: inline-block;
    padding: 6px 12px;
    background: var(--muted);
    border-radius: var(--radius);
    font-size: 0.75rem;
    color: var(--muted-foreground);
    font-weight: 500;
}

/* 直播间样式 */
.live-container {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: var(--spacing-lg);
    min-height: 100vh;
    background: #1a1a2e;
}

.main-stage {
    display: flex;
    flex-direction: column;
    padding: var(--spacing-xl);
    overflow-y: auto;
}

.live-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-xl);
    padding: var(--spacing-lg) var(--spacing-xl);
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
}

.live-info {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
}

.live-badge {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: 8px 16px;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.875rem;
    color: white;
    animation: live-pulse 2s ease-in-out infinite;
}

@keyframes live-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.live-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    background: white;
    border-radius: var(--radius-full);
}

.live-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: white;
}

.live-stats {
    display: flex;
    gap: var(--spacing-xl);
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
}

.stat-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.stat-number {
    font-weight: 600;
    color: white;
}

/* 视频播放器 */
.video-player {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: var(--spacing-xl);
}

.video-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2c3e50 0%, #1a1a2e 100%);
    position: relative;
}

.pet-photo {
    width: 200px;
    height: 200px;
    border-radius: var(--radius-full);
    object-fit: cover;
    margin-bottom: var(--spacing-xl);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 4px solid rgba(255, 255, 255, 0.1);
}

.pet-name {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin-bottom: var(--spacing-sm);
}

.pet-dates {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: var(--spacing-xl);
}

/* 蜡烛动画 */
.candles-container {
    display: flex;
    gap: var(--spacing-xl);
    margin-top: var(--spacing-2xl);
}

.candle {
    position: relative;
    width: 30px;
    height: 80px;
    background: linear-gradient(180deg, #f5f5dc 0%, #daa520 100%);
    border-radius: 4px;
    animation: candle-flicker 0.5s ease-in-out infinite alternate;
}

@keyframes candle-flicker {
    0% { opacity: 1; }
    100% { opacity: 0.9; }
}

.candle::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 20px;
    background: linear-gradient(180deg, #ffa500 0%, #ff6347 100%);
    border-radius: 4px 4px 0 0;
    animation: flame 0.3s ease-in-out infinite alternate;
}

@keyframes flame {
    0% {
        height: 20px;
        transform: translateX(-50%) scaleX(1);
    }
    100% {
        height: 22px;
        transform: translateX(-50%) scaleX(1.1);
    }
}

/* 互动面板 */
.interaction-panel {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.panel-title {
    font-size: 1rem;
    font-weight: 600;
    color: white;
    margin-bottom: var(--spacing-sm);
}

.gift-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-md);
}

.gift-btn {
    aspect-ratio: 1;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid transparent;
    border-radius: var(--radius-lg);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    transition: all 0.3s ease;
    color: white;
}

.gift-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--primary);
    transform: scale(1.05);
}

.gift-icon {
    font-size: 2rem;
}

.gift-name {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
}

/* 仪式时间轴 */
.ceremony-timeline {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-xl);
}

.timeline-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: white;
}

.current-step {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
}

.timeline-items {
    position: relative;
}

.timeline-item {
    display: flex;
    gap: var(--spacing-lg);
    padding: var(--spacing-lg) 0;
    border-left: 2px solid rgba(255, 255, 255, 0.1);
    padding-left: var(--spacing-xl);
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 20px;
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-full);
    transition: all 0.3s ease;
}

.timeline-item.active::before {
    background: var(--primary);
    box-shadow: 0 0 0 4px rgba(155, 89, 182, 0.2);
}

.timeline-item.completed::before {
    background: #27ae60;
}

.timeline-time {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
    min-width: 80px;
}

.timeline-content {
    flex: 1;
}

.timeline-item-title {
    font-weight: 600;
    color: white;
    margin-bottom: var(--spacing-xs);
}

.timeline-item-desc {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
}

/* 侧边栏 */
.sidebar {
    background: rgba(255, 255, 255, 0.03);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.sidebar-header {
    padding: var(--spacing-xl);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: white;
    margin-bottom: var(--spacing-md);
}

.online-count {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.online-dot {
    width: 8px;
    height: 8px;
    background: #27ae60;
    border-radius: var(--radius-full);
    animation: live-pulse 2s ease-in-out infinite;
}

/* 聊天区域 */
.chat-area {
    flex: 1;
    overflow-y: auto;
    padding: var(--spacing-xl);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.chat-message {
    display: flex;
    gap: var(--spacing-md);
    animation: slide-in 0.3s ease;
}

@keyframes slide-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chat-avatar {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    color: white;
    font-weight: 600;
    flex-shrink: 0;
}

.chat-content {
    flex: 1;
}

.chat-user {
    font-size: 0.875rem;
    font-weight: 600;
    color: white;
    margin-bottom: var(--spacing-xs);
}

.chat-text {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
}

.chat-system {
    text-align: center;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.5);
    padding: var(--spacing-sm) 0;
}

/* 礼物消息 */
.gift-message {
    background: linear-gradient(135deg,
        rgba(155, 89, 182, 0.2) 0%,
        rgba(142, 68, 173, 0.1) 100%);
    border: 1px solid rgba(155, 89, 182, 0.3);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.gift-icon-large {
    font-size: 2.25rem;
}

.gift-info {
    flex: 1;
}

.gift-info-text {
    font-size: 0.875rem;
    color: white;
}

.gift-sender {
    font-weight: 600;
    color: var(--primary);
}

/* 聊天输入区域 */
.chat-input-area {
    padding: var(--spacing-xl);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.input-wrapper {
    display: flex;
    gap: var(--spacing-md);
}

.chat-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    padding: 12px 20px;
    color: white;
    font-size: 0.875rem;
    outline: none;
    transition: all 0.3s ease;
}

.chat-input:focus {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--primary);
}

.chat-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.send-btn {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: white;
    transition: all 0.3s ease;
}

.send-btn:hover {
    transform: scale(1.1);
}

/* 回放页面样式 */
.video-section {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
}

.info-card {
    background: var(--card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: var(--spacing-2xl);
}

.info-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--spacing-xl);
}

.info-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: var(--spacing-sm);
}

.info-date {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.share-buttons {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.share-btn {
    padding: 10px 20px;
    background: var(--muted);
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--muted-foreground);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.share-btn:hover {
    background: var(--border);
}

.share-btn.primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
}

.share-btn.primary:hover {
    box-shadow: var(--shadow-lg);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-xl);
    border-top: 1px solid var(--border);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: var(--spacing-xs);
}

.stat-label {
    font-size: 0.8125rem;
    color: var(--muted-foreground);
}

/* 章节列表 */
.chapters-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.chapter-item {
    display: flex;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s ease;
}

.chapter-item:hover {
    background: var(--muted);
    transform: translateX(4px);
}

.chapter-thumbnail {
    width: 120px;
    height: 68px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.chapter-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.chapter-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: var(--spacing-xs);
}

.chapter-time {
    font-size: 0.75rem;
    color: var(--muted-foreground);
}

/* 互动记录 */
.interaction-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
    max-height: 400px;
    overflow-y: auto;
}

.interaction-item {
    display: flex;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: var(--muted);
    border-radius: var(--radius);
}

.interaction-avatar {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    flex-shrink: 0;
}

.interaction-content {
    flex: 1;
}

.interaction-user {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: var(--spacing-xs);
}

.interaction-text {
    font-size: 0.8125rem;
    color: var(--muted-foreground);
    line-height: 1.5;
}

.interaction-gift {
    display: inline-block;
    padding: 4px 12px;
    background: linear-gradient(135deg,
        hsla(var(--primary-h), var(--primary-s), var(--primary-l), 0.1) 0%,
        hsla(var(--primary-h), var(--primary-s), 50%, 0.1) 100%);
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    color: var(--primary);
    font-weight: 500;
}

/* 相关推荐 */
.related-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.related-item {
    display: flex;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s ease;
}

.related-item:hover {
    background: var(--muted);
}

.related-thumb {
    width: 140px;
    height: 80px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border-radius: var(--radius);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.75rem;
}

.related-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.related-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: var(--spacing-xs);
    line-height: 1.4;
}

.related-meta {
    font-size: 0.75rem;
    color: var(--muted-foreground);
}

/* 追悼会响应式 */
@media (max-width: 1024px) {
    .live-container {
        grid-template-columns: 1fr;
        height: auto;
    }

    .sidebar {
        height: 600px;
    }
}

@media (max-width: 768px) {
    .main-stage,
    .sidebar {
        padding: var(--spacing-lg);
    }

    .live-header {
        flex-direction: column;
        gap: var(--spacing-md);
        align-items: flex-start;
    }

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

    .candles-container {
        gap: var(--spacing-md);
    }

    .pet-photo {
        width: 120px;
        height: 120px;
    }

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

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

    .info-header {
        flex-direction: column;
        gap: var(--spacing-md);
    }

    .video-title {
        font-size: 1.25rem;
    }
}

/* ============================================
   线上追悼会服务区域样式
   ============================================ */

.online-service {
    padding: var(--spacing-3xl) 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.service-highlight {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--spacing-3xl);
    align-items: center;
    margin-top: var(--spacing-2xl);
}

.service-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.service-visual {
    position: relative;
    width: 320px;
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.visual-circle {
    position: absolute;
    border-radius: var(--radius-full);
    opacity: 0.1;
    animation: pulse-slow 3s ease-in-out infinite;
}

.visual-circle-1 {
    width: 280px;
    height: 280px;
    background: var(--primary);
    animation-delay: 0s;
}

.visual-circle-2 {
    width: 200px;
    height: 200px;
    background: var(--secondary);
    animation-delay: 1s;
}

.visual-circle-3 {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    animation-delay: 2s;
}

@keyframes pulse-slow {
    0%, 100% {
        transform: scale(1);
        opacity: 0.1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.15;
    }
}

.service-visual > svg {
    position: relative;
    z-index: 2;
    color: var(--primary);
}

.service-content {
    padding: var(--spacing-2xl);
    background: var(--card);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

.service-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: var(--spacing-xl);
}

.service-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-2xl);
}

.service-features li {
    display: flex;
    gap: var(--spacing-lg);
    align-items: flex-start;
}

.feature-badge {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: var(--shadow);
}

.feature-text {
    flex: 1;
}

.feature-text strong {
    display: block;
    font-size: 1.125rem;
    color: var(--foreground);
    margin-bottom: var(--spacing-xs);
}

.feature-text p {
    color: var(--muted-foreground);
    line-height: 1.6;
    font-size: 0.9375rem;
}

.service-cta {
    display: flex;
    gap: var(--spacing-md);
    padding-top: var(--spacing-xl);
    border-top: 1px solid var(--border);
}

/* 追悼会功能图标样式 */
.feature-icon-online-service {
    background: linear-gradient(135deg,
        hsla(280, 65%, 75%, 0.15) 0%,
        hsla(280, 65%, 65%, 0.15) 100%);
    color: var(--primary);
}

/* 追悼会服务响应式 */
@media (max-width: 1024px) {
    .service-highlight {
        grid-template-columns: 1fr;
        gap: var(--spacing-2xl);
    }

    .service-visual {
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .service-content {
        padding: var(--spacing-xl);
    }

    .service-title {
        font-size: 1.5rem;
    }

    .service-features {
        gap: var(--spacing-lg);
    }

    .service-features li {
        flex-direction: column;
        gap: var(--spacing-sm);
    }

    .feature-badge {
        width: 40px;
        height: 40px;
    }

    .service-cta {
        flex-direction: column;
    }

    .service-cta .btn {
        width: 100%;
    }

    .service-visual {
        width: 240px;
        height: 240px;
    }

    .visual-circle-1 {
        width: 200px;
        height: 200px;
    }

    .visual-circle-2 {
        width: 140px;
        height: 140px;
    }

    .visual-circle-3 {
        width: 80px;
        height: 80px;
    }

    .service-visual > svg {
        width: 48px;
        height: 48px;
    }
}

