/* 睡眠动物园网站样式 - 全面优化版 */

/* 重置和基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

*::before,
*::after {
    box-sizing: border-box;
}

:root {
    /* 主色调 - 温馨柔和色彩系统 */
    --primary-color: #a9d051;        /* 浅绿色 - 主要按钮色 */
    --primary-light: #bedd72;        /* 更浅的绿色 - 悬停辅助 */
    --primary-dark: #8bb83f;         /* 深绿色 - 悬停状态 */
    --primary-darker: #73a329;       /* 更深绿色 - 按下状态 */
    
    --secondary-color: #ffd89b;      /* 温暖橙色 */
    --secondary-light: #ffe4b3;     /* 浅橙色 */
    --secondary-dark: #f4c673;      /* 深橙色 */
    
    --accent-color: #f9ca24;         /* 金币黄色 */
    --accent-light: #fdd835;        /* 亮黄色 */
    --accent-dark: #f39c12;         /* 深黄色 */
    
    /* 背景色系统 */
    --bg-primary: #fef5e7;           /* 温暖米色背景 */
    --bg-secondary: #f8f1e4;         /* 稍深的米色 */
    --bg-tertiary: #f2eadc;          /* 更深的米色 */
    --bg-card: #ffffff;              /* 卡片背景 */
    --bg-overlay: rgba(254, 245, 231, 0.95); /* 导航栏遮罩 */
    
    /* 文本色系统 */
    --text-primary: #2c3e50;         /* 主要文本色 - 更深 */
    --text-secondary: #5a6c7d;        /* 次要文本色 - 优化 */
    --text-muted: #8b9db0;           /* 提示文本色 - 柔和 */
    --text-light: #b8c6d9;          /* 浅色文本 */
    --text-inverse: #ffffff;         /* 反色文本 */
    
    /* 边框和阴影系统 */
    --border-color: #e8dcc6;         /* 温柔的边框色 */
    --border-light: #f0e6d2;        /* 浅边框色 */
    --border-dark: #d4c4a8;         /* 深边框色 */
    
    /* 阴影系统 - 更精致的层次 */
    --shadow-xs: 0 1px 3px rgba(0,0,0,0.05);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-light: 0 4px 16px rgba(0,0,0,0.10);
    --shadow-medium: 0 8px 24px rgba(0,0,0,0.12);
    --shadow-heavy: 0 16px 40px rgba(0,0,0,0.15);
    --shadow-xl: 0 24px 64px rgba(0,0,0,0.18);
    
    /* 字体系统 */
    --font-primary: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    --font-display: 'Noto Sans SC', Georgia, serif; /* 标题字体 */
    
    /* 字体大小系统 */
    --text-xs: 0.75rem;     /* 12px */
    --text-sm: 0.875rem;    /* 14px */
    --text-base: 1rem;      /* 16px */
    --text-lg: 1.125rem;    /* 18px */
    --text-xl: 1.25rem;     /* 20px */
    --text-2xl: 1.5rem;     /* 24px */
    --text-3xl: 1.875rem;   /* 30px */
    --text-4xl: 2.25rem;    /* 36px */
    --text-5xl: 3rem;       /* 48px */
    --text-6xl: 3.75rem;    /* 60px */
    
    /* 行高系统 */
    --leading-tight: 1.25;
    --leading-snug: 1.375;
    --leading-normal: 1.5;
    --leading-relaxed: 1.625;
    --leading-loose: 2;
    
    /* 间距系统 - 更精确的尺度 */
    --spacing-px: 1px;
    --spacing-0: 0;
    --spacing-1: 0.25rem;   /* 4px */
    --spacing-2: 0.5rem;    /* 8px */
    --spacing-3: 0.75rem;   /* 12px */
    --spacing-4: 1rem;      /* 16px */
    --spacing-5: 1.25rem;   /* 20px */
    --spacing-6: 1.5rem;    /* 24px */
    --spacing-8: 2rem;      /* 32px */
    --spacing-10: 2.5rem;   /* 40px */
    --spacing-12: 3rem;     /* 48px */
    --spacing-16: 4rem;     /* 64px */
    --spacing-20: 5rem;     /* 80px */
    --spacing-24: 6rem;     /* 96px */
    --spacing-32: 8rem;     /* 128px */
    
    /* 保持向后兼容性 */
    --spacing-xs: var(--spacing-2);
    --spacing-sm: var(--spacing-4);
    --spacing-md: var(--spacing-6);
    --spacing-lg: var(--spacing-8);
    --spacing-xl: var(--spacing-12);
    --spacing-xxl: var(--spacing-16);
    
    /* 边框圆角系统 */
    --radius-none: 0;
    --radius-xs: 2px;
    --radius-sm: 4px;
    --radius-base: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 20px;
    --radius-3xl: 24px;
    --radius-full: 9999px;
    
    /* 过渡动画 */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    --transition-spring: 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    
    /* 断点 */
    --breakpoint-sm: 640px;
    --breakpoint-md: 768px;
    --breakpoint-lg: 1024px;
    --breakpoint-xl: 1280px;
    --breakpoint-2xl: 1536px;
    
    /* Z-index 层级 */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;
    --z-toast: 1080;
}

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

body {
    font-family: var(--font-primary);
    font-size: var(--text-base);
    line-height: var(--leading-relaxed);
    color: var(--text-primary);
    background-color: var(--bg-primary);
    overflow-x: hidden;
    font-weight: 400;
    letter-spacing: 0.02em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    zoom: 0.8;
}

/* 改善文本选择样式 */
::selection {
    background-color: var(--primary-light);
    color: var(--text-inverse);
}

::-moz-selection {
    background-color: var(--primary-light);
    color: var(--text-inverse);
}

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

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

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

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-6);
}

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

/* 导航栏 - 优化版 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--bg-overlay);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: var(--z-fixed);
    padding: var(--spacing-4) 0;
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}

.navbar.scrolled {
    padding: var(--spacing-3) 0;
    background: rgba(254, 245, 231, 0.98);
    box-shadow: var(--shadow-light);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-6);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

@media (max-width: 640px) {
    .nav-container {
        padding: 0 var(--spacing-4);
    }
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-3);
    text-decoration: none;
    transition: transform var(--transition-spring);
}

.nav-logo:hover {
    transform: scale(1.05);
}

.logo-img {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition-base);
}

.nav-logo:hover .logo-img {
    box-shadow: var(--shadow-light);
}

.logo-text {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-8);
    align-items: center;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    font-size: var(--text-lg);
    padding: var(--spacing-2) var(--spacing-3);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
    position: relative;
    letter-spacing: 0.01em;
}

.nav-menu a:hover {
    color: var(--primary-color);
    background-color: rgba(169, 208, 81, 0.1);
    transform: translateY(-1px);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
    border-radius: var(--radius-full);
    transition: width var(--transition-spring);
}

.nav-menu a:hover::after {
    width: 80%;
}

.nav-menu a.active {
    color: var(--primary-color);
    background-color: rgba(169, 208, 81, 0.15);
}

.nav-menu a.active::after {
    width: 80%;
}

.nav-hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: var(--spacing-1);
    padding: var(--spacing-2);
    border-radius: var(--radius-md);
    transition: background-color var(--transition-base);
}

.nav-hamburger:hover {
    background-color: rgba(169, 208, 81, 0.1);
}

.nav-hamburger span {
    width: 24px;
    height: 3px;
    background: var(--text-primary);
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
    transform-origin: center;
}

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

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

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

/* 主页横幅 - 优化版 */
.hero {
    padding: calc(80px + var(--spacing-20)) 0 var(--spacing-20);
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 50%, var(--bg-tertiary) 100%);
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(169, 208, 81, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(249, 202, 36, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-6);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-16);
    align-items: center;
    position: relative;
    z-index: 2;
}

@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-12);
        text-align: center;
        padding: 0 var(--spacing-4);
    }
}

.hero-text {
    z-index: 3;
    animation: fadeInUp 0.8s ease-out forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-family: var(--font-display);
    font-size: var(--text-6xl);
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--spacing-4);
    line-height: var(--leading-tight);
    letter-spacing: -0.02em;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.hero-subtitle {
    font-size: var(--text-2xl);
    color: var(--text-secondary);
    margin-bottom: var(--spacing-6);
    font-weight: 500;
    line-height: var(--leading-relaxed);
    letter-spacing: 0.01em;
}

.hero-description {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    margin-bottom: var(--spacing-8);
    line-height: var(--leading-loose);
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-6);
    align-items: center;
    flex-wrap: wrap;
}

.app-store-badge {
    height: 60px;
    transition: transform var(--transition-spring), box-shadow var(--transition-base);
    border-radius: var(--radius-lg);
}

.app-store-badge:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow-light);
}

.hero-image {
    z-index: 2;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.hero-img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-3xl);
    box-shadow: var(--shadow-xl);
    transition: transform var(--transition-slow);
}

.hero-img:hover {
    transform: scale(1.02);
}

.hero-decorations {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.decoration {
    position: absolute;
    border-radius: 50%;
    opacity: 0.6;
    animation: float 6s ease-in-out infinite;
}

.decoration-1 {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.decoration-2 {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent-light), var(--accent-color));
    top: 20%;
    right: 20%;
    animation-delay: 2s;
}

.decoration-3 {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--secondary-light), var(--secondary-color));
    bottom: 30%;
    left: 20%;
    animation-delay: 4s;
}

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

/* 按钮系统 - 全新设计 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-2);
    padding: var(--spacing-3) var(--spacing-6);
    border: none;
    border-radius: var(--radius-2xl);
    font-weight: 600;
    font-size: var(--text-base);
    text-decoration: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-spring);
    box-shadow: var(--shadow-light);
    letter-spacing: 0.02em;
    white-space: nowrap;
    user-select: none;
    min-height: 48px;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.6s ease;
    z-index: 0;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--shadow-heavy);
}

.btn:active {
    transform: translateY(-1px) scale(0.98);
    transition: all 0.1s ease;
}

.btn > * {
    position: relative;
    z-index: 1;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 50%, var(--primary-darker) 100%);
    color: var(--text-inverse);
    border: 2px solid transparent;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 50%, var(--primary-dark) 100%);
    border-color: var(--primary-light);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    background: var(--bg-secondary);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

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

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--text-inverse);
}

.btn-large {
    padding: var(--spacing-4) var(--spacing-8);
    font-size: var(--text-lg);
    min-height: 56px;
}

.btn-small {
    padding: var(--spacing-2) var(--spacing-4);
    font-size: var(--text-sm);
    min-height: 36px;
}

/* 标题系统 - 优化版 */
.section-title {
    font-family: var(--font-display);
    font-size: var(--text-5xl);
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: var(--spacing-4);
    line-height: var(--leading-tight);
    letter-spacing: -0.01em;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: var(--radius-full);
}

.section-subtitle {
    font-size: var(--text-xl);
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: var(--spacing-12);
    line-height: var(--leading-relaxed);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* 功能特色区域 - 优化版 */
.features {
    padding: var(--spacing-20) 0;
    background: var(--bg-card);
}

.features-grid {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-6);
    margin-top: var(--spacing-12);
    align-items: stretch;
}

.feature-card {
    flex: 1;
    min-width: 240px;
    background: var(--bg-primary);
    padding: var(--spacing-8);
    border-radius: var(--radius-3xl);
    text-align: center;
    box-shadow: var(--shadow-light);
    transition: all var(--transition-spring);
    border: 1px solid var(--border-light);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(169, 208, 81, 0.03), transparent);
    transform: rotate(45deg) translate(-50%, -50%);
    transition: all 0.8s ease;
    opacity: 0;
}

.feature-card:hover::before {
    opacity: 1;
    transform: rotate(45deg) translate(-30%, -30%);
}

.feature-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--spacing-6);
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: var(--radius-2xl);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-medium);
    position: relative;
    z-index: 1;
}

.feature-icon img {
    width: 40px;
    height: 40px;
    filter: brightness(0) invert(1);
}

.feature-card h3 {
    font-size: var(--text-2xl);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-4);
    position: relative;
    z-index: 1;
}

.feature-card p {
    color: var(--text-secondary);
    line-height: var(--leading-relaxed);
    position: relative;
    z-index: 1;
}

/* 宠物展示区域 - 优化版 */
.pets {
    padding: var(--spacing-20) 0;
    background: var(--bg-secondary);
}

.pets-categories {
    margin-bottom: var(--spacing-16);
}

.pet-category {
    text-align: center;
    margin-bottom: var(--spacing-12);
    padding: var(--spacing-8);
    background: var(--bg-card);
    border-radius: var(--radius-3xl);
    box-shadow: var(--shadow-light);
}

.pet-category.special {
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-primary) 100%);
    border: 2px solid var(--accent-light);
}

.category-title {
    font-size: var(--text-3xl);
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: var(--spacing-3);
}

.category-desc {
    font-size: var(--text-lg);
    color: var(--text-secondary);
}

.pets-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-8);
    margin-bottom: var(--spacing-12);
}

.pet-card {
    background: var(--bg-card);
    border-radius: var(--radius-3xl);
    padding: var(--spacing-6);
    text-align: center;
    box-shadow: var(--shadow-medium);
    transition: all var(--transition-spring);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.pet-card:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

.pet-card.rare {
    border-color: var(--accent-color);
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(249, 202, 36, 0.05) 100%);
}

.pet-image {
    width: 120px;
    height: 120px;
    margin: 0 auto var(--spacing-4);
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-light);
    transition: transform var(--transition-spring);
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.pet-card:hover .pet-image {
    transform: scale(1.1) rotate(5deg);
}

.pet-card h4 {
    font-size: var(--text-xl);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-2);
}

.pet-price {
    font-size: var(--text-lg);
    color: var(--accent-dark);
    font-weight: 600;
}

.rare-badge {
    position: absolute;
    top: var(--spacing-4);
    right: var(--spacing-4);
    background: linear-gradient(135deg, var(--accent-color), var(--accent-dark));
    color: var(--text-inverse);
    padding: var(--spacing-1) var(--spacing-3);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: 600;
    box-shadow: var(--shadow-sm);
}

/* 下载区域 - 优化版 */
.download {
    padding: var(--spacing-20) 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--text-inverse);
}

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

.download-text h2 {
    font-size: var(--text-5xl);
    font-weight: 700;
    margin-bottom: var(--spacing-6);
    line-height: var(--leading-tight);
}

.download-text p {
    font-size: var(--text-xl);
    margin-bottom: var(--spacing-8);
    opacity: 0.9;
    line-height: var(--leading-relaxed);
}

.download-features {
    list-style: none;
    margin-bottom: var(--spacing-8);
}

.download-feature {
    display: flex;
    align-items: center;
    margin-bottom: var(--spacing-4);
    font-size: var(--text-lg);
}

.checkmark {
    width: 24px;
    height: 24px;
    background: var(--text-inverse);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: var(--spacing-4);
    font-weight: bold;
    flex-shrink: 0;
}

.app-preview {
    text-align: center;
}

.app-screenshot {
    width: 100%;
    max-width: 300px;
    border-radius: var(--radius-3xl);
    box-shadow: var(--shadow-xl);
}

.download-buttons {
    display: flex;
    gap: var(--spacing-4);
    margin-top: var(--spacing-8);
}

.store-badge {
    height: 60px;
    transition: transform var(--transition-spring);
}

.store-badge:hover {
    transform: scale(1.05);
}

.download-info {
    margin-top: var(--spacing-6);
}

.price {
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--accent-light);
    margin-bottom: var(--spacing-2);
}

/* 页脚 - 优化版 */
/* ==================== 页脚样式 ==================== */
/**
 * 页脚主容器
 * - 深蓝色渐变背景
 * - 调整后的内边距：上48px 下32px（降低了高度）
 */
.footer {
    background: linear-gradient(135deg, var(--text-primary) 0%, #34495e 100%);
    color: var(--text-light);
    padding: var(--spacing-12) 0 var(--spacing-8); /* 可调整参数：上下内边距 */
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

/**
 * 页脚主要内容区域 - 顶部三栏网格布局
 * - 三个等宽栏目（产品、支持、法律条款）
 * - 栏目间距：48px（可调整）
 */
.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr; /* 可调整参数：三个等宽列 */
    gap: var(--spacing-12); /* 可调整参数：栏目间距 */
    margin-bottom: var(--spacing-10); /* 可调整参数：与底部区域的间距 */
    align-items: start;
}

/**
 * 品牌描述容器 - 位于底部左侧
 * - 左对齐显示
 * - 占据可用空间（flex: 1）
 * - 右侧留出间距
 */
.footer-brand {
    text-align: left;
    flex: 1; /* 可调整参数：占据剩余空间的比例 */
    margin-right: var(--spacing-8); /* 可调整参数：与右侧内容的间距 */
}

/**
 * 品牌描述文本样式
 * - 重要特性：white-space: nowrap 确保文字不换行
 * - 半透明白色文字
 * - 小号字体
 */
.footer-desc {
    color: rgba(255, 255, 255, 0.85);
    line-height: var(--leading-normal);
    font-size: var(--text-sm); /* 可调整参数：文字大小 */
    font-weight: 400;
    white-space: nowrap; /* 关键样式：确保文字不换行 */
    margin: 0;
}

/**
 * 页脚栏目标题样式
 * - 白色文字，左对齐
 * - 中等字体大小和粗细
 */
.footer-section h4 {
    font-size: var(--text-base); /* 可调整参数：标题字体大小 */
    font-weight: 600;
    color: var(--text-inverse);
    margin-bottom: var(--spacing-6); /* 可调整参数：标题与链接的间距 */
    letter-spacing: 0.5px;
    text-align: left;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: var(--spacing-4);
}

/**
 * 页脚栏目链接样式
 * - 半透明白色文字，左对齐
 * - 小号字体，带hover效果
 */
.footer-section a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition: all var(--transition-base);
    font-size: var(--text-xs); /* 可调整参数：链接字体大小 */
    line-height: var(--leading-normal);
    display: block;
    padding: var(--spacing-1) 0; /* 可调整参数：链接上下内边距 */
    text-align: left;
}

.footer-section a:hover {
    color: var(--primary-color);
    transform: translateX(4px);
}

/**
 * 页脚底部区域 - 左右分布布局
 * - 左侧：品牌描述
 * - 右侧：版权信息和ICP备案号
 */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: var(--spacing-6); /* 可调整参数：顶部间距 */
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-4); /* 可调整参数：左右内容间距 */
}

/**
 * 页脚右侧内容容器
 * - 包含版权信息和ICP备案号
 * - 水平排列，中间有间距
 */
.footer-right {
    display: flex;
    align-items: center;
    gap: var(--spacing-6); /* 可调整参数：版权和ICP间距 */
    flex-wrap: wrap;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.65);
    font-size: var(--text-sm);
    font-weight: 400;
}

.footer-icp {
    display: flex;
    align-items: center;
}

.icp-link {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    transition: all var(--transition-base);
    font-size: var(--text-sm);
    padding: var(--spacing-2) var(--spacing-3);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.icp-link:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background: rgba(169, 208, 81, 0.1);
}

/* 响应式设计 - 优化版 */
@media (max-width: 968px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-12);
    }
    
    .hero-title {
        font-size: var(--text-5xl);
    }
    
    .download-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-12);
    }
    
    /* 中等屏幕适配（768px - 968px） */
    .footer-content {
        grid-template-columns: 1fr 1fr; /* 调整为两列布局 */
        gap: var(--spacing-8); /* 减小栏目间距 */
    }
    
    .footer-brand {
        margin-bottom: var(--spacing-6);
        margin-right: 0; /* 移除右侧间距 */
    }
    
    .footer-section h4 {
        margin-bottom: var(--spacing-6);
    }
}

@media (max-width: 1024px) {
    .features-grid {
        flex-wrap: wrap;
    }
    
    .feature-card {
        flex: 1 1 calc(50% - var(--spacing-3));
        min-width: 280px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .nav-hamburger {
        display: flex;
    }
    
    .hero-title {
        font-size: var(--text-4xl);
    }
    
    .section-title {
        font-size: var(--text-4xl);
    }
    
    .features-grid {
        flex-direction: column;
        gap: var(--spacing-6);
    }
    
    .feature-card {
        min-width: auto;
        flex: none;
    }
    
    .pets-row {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: var(--spacing-6);
    }
    
    /* 小屏幕适配（最大768px） */
    .footer-content {
        grid-template-columns: 1fr; /* 调整为单列布局 */
        gap: var(--spacing-6); /* 进一步减小间距 */
        text-align: left;
    }
    
    .footer-brand {
        margin-bottom: var(--spacing-4);
        text-align: left;
        margin-right: 0; /* 移除右侧间距 */
    }
    
    .footer-desc {
        font-size: var(--text-xs); /* 更小的字体 */
        line-height: var(--leading-normal);
        white-space: normal; /* 小屏幕允许换行 */
    }
    
    .footer-bottom {
        flex-direction: column; /* 底部区域垂直排列 */
        align-items: flex-start;
        gap: var(--spacing-4);
    }
    
    .footer-right {
        width: 100%; /* 右侧内容占满宽度 */
        justify-content: space-between; /* 版权和ICP两端对齐 */
    }
    
    .footer-section {
        padding: var(--spacing-6) 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .footer-section:last-child {
        border-bottom: none;
    }
    
    .footer-section h4 {
        font-size: var(--text-base);
        margin-bottom: var(--spacing-5);
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: var(--spacing-6);
        text-align: center;
        padding-top: var(--spacing-12);
    }
    
    .icp-link {
        display: inline-block;
        margin-top: var(--spacing-2);
    }
}

@media (max-width: 480px) {
    :root {
        --spacing-xs: 0.25rem;
        --spacing-sm: 0.5rem;
        --spacing-md: 0.75rem;
        --spacing-lg: 1rem;
        --spacing-xl: 1.5rem;
        --spacing-xxl: 2rem;
    }
    
    .hero {
        padding: calc(80px + var(--spacing-12)) 0 var(--spacing-12);
    }
    
    .hero-title {
        font-size: var(--text-3xl);
    }
    
    .hero-subtitle {
        font-size: var(--text-lg);
    }
    
    .section-title {
        font-size: var(--text-3xl);
    }
    
    .pet-image {
        width: 100px;
        height: 100px;
    }
}

/* 动画增强 */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

@keyframes bounce {
    0%, 20%, 53%, 80%, 100% {
        transform: translate3d(0,0,0);
    }
    40%, 43% {
        transform: translate3d(0, -8px, 0);
    }
    70% {
        transform: translate3d(0, -4px, 0);
    }
    90% {
        transform: translate3d(0, -2px, 0);
    }
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.animate-bounce {
    animation: bounce 1s infinite;
}

/* 工具类 */
.text-center {
    text-align: center;
}

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

.text-right {
    text-align: right;
}

.hidden {
    display: none;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
} 