/* FavorAccounts Landing Page - 人情往来
 * 设计风格参考 FavorAccountsV2 中式主题
 */

:root {
    /* FavorAccountsV2 配色方案 */
    --renqing-paper: #FCF7F0;
    --renqing-surface: #FFFDF9;
    --renqing-surface-soft: #F6EEE3;
    --renqing-divider: #E8DCCF;
    --renqing-red: #B94B45;
    --renqing-red-light: #D47B72;
    --renqing-gold: #C79A47;
    --renqing-gold-light: #DFC189;
    --renqing-green: #6C9A76;
    --renqing-green-light: #95B59D;
    --renqing-brown: #3A271E;
    --renqing-brown-light: #8A6B5A;
    --renqing-brown-lighter: #CBB6A6;
    --renqing-cream: #EFE3D4;
    --renqing-cream-dark: #E1D2C1;
    
    /* 页面基础变量别名 */
    --bg-main: var(--renqing-paper);
    --bg-card: var(--renqing-surface);
    --bg-card-soft: var(--renqing-surface-soft);
    --text-main: var(--renqing-brown);
    --text-secondary: var(--renqing-brown-light);
    --text-tertiary: var(--renqing-brown-lighter);
    --accent-primary: var(--renqing-red);
    --accent-secondary: var(--renqing-gold);
    --border-color: var(--renqing-divider);
    
    /* 圆角 */
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
    --radius-sm: 10px;
    --radius-pill: 999px;
    
    /* 阴影 */
    --shadow-soft: 0 16px 48px rgba(58, 39, 30, 0.12);
    --shadow-card: 0 10px 30px rgba(58, 39, 30, 0.15);
    --shadow-button: 0 4px 16px rgba(185, 75, 69, 0.3);
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Source Han Serif SC", "Source Han Serif", "Noto Serif SC", serif, system-ui, -apple-system, BlinkMacSystemFont;
    color: var(--text-main);
    /* 页面整体添加淡淡的中式纹理 */
    background-color: var(--bg-main);
    background-image: radial-gradient(circle at 20% 30%, rgba(185, 75, 69, 0.03) 0%, transparent 50%), 
                      radial-gradient(circle at 80% 70%, rgba(199, 154, 71, 0.03) 0%, transparent 50%);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    line-height: 1.6;
}

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

a {
    color: inherit;
    text-decoration: none;
}

.page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Hero Section */
.hero {
    padding: 0;
    position: relative;
    overflow: hidden;
    /* 中国年味儿背景 - 红色喜庆装饰 */
    background-image: url('https://images.unsplash.com/photo-1530103862676-de8c9debad1d?w=1920&h=1080&fit=crop');
    background-size: cover;
    background-position: center;
    background-color: var(--renqing-paper);
}

.hero-inner {
    max-width: 1120px;
    margin: 0 auto;
    border-radius: 0;
    border: 0;
    /* 半透明背景让背景图透出来 */
    background: linear-gradient(135deg, rgba(252, 247, 240, 0.95) 0%, rgba(246, 238, 227, 0.9) 50%, rgba(225, 210, 193, 0.85) 100%);
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.hero-topbar {
    position: absolute;
    inset: 0 0 auto 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 24px;
    z-index: 20;
}

@media (min-width: 960px) {
    .hero-topbar {
        padding: 20px 32px;
    }
}

.hero-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text-main);
    font-weight: 700;
    font-size: 22px;
    letter-spacing: 0.02em;
}

.hero-logo-mark {
    font-size: 36px;
}

.hero-logo-img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    object-fit: cover;
}

.hero-logo-text {
    font-weight: 700;
}

/* Language Switcher */
.lang-switcher {
    position: relative;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--renqing-divider);
    border-radius: var(--radius-pill);
    color: var(--text-main);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: system-ui, -apple-system, sans-serif;
    backdrop-filter: blur(10px);
}

.lang-btn:hover {
    background: var(--renqing-cream);
    border-color: var(--renqing-brown-lighter);
}

.lang-icon {
    font-size: 14px;
}

.lang-arrow {
    font-size: 10px;
    opacity: 0.6;
    transition: transform 0.2s ease;
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 150px;
    background: var(--renqing-surface);
    border: 1px solid var(--renqing-divider);
    border-radius: var(--radius-md);
    padding: 4px;
    box-shadow: var(--shadow-card);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s ease;
    z-index: 100;
}

.lang-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 8px 12px;
    background: none;
    border: none;
    border-radius: var(--radius-sm);
    color: var(--text-main);
    font-size: 13px;
    text-align: left;
    cursor: pointer;
    transition: background 0.15s ease;
    font-family: system-ui, -apple-system, sans-serif;
}

.lang-option:hover {
    background: var(--renqing-cream);
}

.lang-option.active {
    background: var(--renqing-cream-dark);
}

/* Hero Content */
.hero-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 100px 20px 48px;
    align-items: center;
}

@media (min-width: 768px) {
    .hero-content {
        grid-template-columns: 1.1fr 0.9fr;
        padding: 120px 32px 64px;
        gap: 40px;
    }
}

@media (min-width: 1024px) {
    .hero-content {
        gap: 60px;
    }
}

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

.hero-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.hero-brand-name {
    font-size: 36px;
    font-weight: 700;
    color: var(--accent-primary);
}

@media (min-width: 768px) {
    .hero-brand-name {
        font-size: 44px;
    }
}

@media (min-width: 1024px) {
    .hero-brand-name {
        font-size: 52px;
    }
}

.hero-title {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 12px;
    color: var(--text-main);
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 40px;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 48px;
    }
}

.hero-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    margin: 0 0 20px;
}

@media (min-width: 768px) {
    .hero-subtitle {
        font-size: 18px;
    }
}

.hero-features {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hero-features li {
    font-size: 15px;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* App Store Button */
.hero-buttons {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.store-btn-appstore {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: var(--accent-primary);
    color: white;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-family: system-ui, -apple-system, sans-serif;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-button);
}

.store-btn-appstore:hover {
    background: var(--renqing-red-light);
    transform: translateY(-2px);
}

.store-icon {
    font-size: 24px;
}

.store-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.store-label {
    font-size: 11px;
    opacity: 0.9;
}

.store-title {
    font-size: 14px;
    font-weight: 600;
}

/* Hero Phones Gallery */
.hero-right {
    display: flex;
    justify-content: center;
    align-items: center;
}

.phones-gallery {
    position: relative;
    width: 100%;
    max-width: 360px;
    height: 460px;
}

@media (min-width: 768px) {
    .phones-gallery {
        height: 520px;
    }
}

.phone-frame {
    position: absolute;
    width: 200px;
    height: 400px;
    background: var(--renqing-brown);
    border-radius: 32px;
    padding: 10px;
    box-shadow: var(--shadow-card);
    overflow: hidden;
    transition: transform 0.3s ease;
}

@media (min-width: 768px) {
    .phone-frame {
        width: 220px;
        height: 440px;
    }
}

.phone-primary {
    z-index: 3;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.phone-secondary {
    z-index: 2;
    left: 50%;
    top: 50%;
    transform: translate(-110%, -45%) rotate(-8deg);
    opacity: 0.85;
}

.phone-tertiary {
    z-index: 1;
    left: 50%;
    top: 50%;
    transform: translate(10%, -55%) rotate(6deg);
    opacity: 0.7;
}

.phone-notch {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 20px;
    background: var(--renqing-brown);
    border-radius: 0 0 14px 14px;
    z-index: 10;
}

.phone-screen {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 24px;
}

/* Features Section */
.features {
    padding: 56px 20px;
    background: var(--bg-main);
}

@media (min-width: 768px) {
    .features {
        padding: 72px 24px;
    }
}

.features-inner {
    max-width: 1120px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

@media (min-width: 768px) {
    .section-header {
        margin-bottom: 52px;
    }
}

.section-header h2 {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 10px;
    color: var(--text-main);
}

@media (min-width: 768px) {
    .section-header h2 {
        font-size: 32px;
    }
}

.section-header p {
    font-size: 15px;
    color: var(--text-secondary);
    margin: 0;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 640px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (min-width: 960px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }
}

.feature-card {
    background: var(--bg-card);
    padding: 24px 20px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
    text-align: center;
    transition: transform 0.2s ease;
    border: 1px solid var(--renqing-divider);
}

@media (min-width: 768px) {
    .feature-card {
        padding: 28px 24px;
    }
}

.feature-card:hover {
    transform: translateY(-4px);
}

.feature-icon {
    font-size: 40px;
    margin-bottom: 12px;
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 8px;
    color: var(--text-main);
}

.feature-card p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
    font-family: system-ui, -apple-system, sans-serif;
    line-height: 1.5;
}

/* Screenshots Section */
.screenshots {
    padding: 56px 20px;
    background: linear-gradient(180deg, var(--renqing-surface-soft) 0%, var(--renqing-paper) 100%);
}

@media (min-width: 768px) {
    .screenshots {
        padding: 72px 24px;
    }
}

.screenshots-inner {
    max-width: 1120px;
    margin: 0 auto;
}

.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 40px;
}

@media (min-width: 768px) {
    .screenshots-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }
}

.screenshot-item {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: transform 0.3s ease;
}

.screenshot-item:hover {
    transform: scale(1.02);
}

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

/* Stats Section */
.stats {
    padding: 48px 20px;
    background: var(--renqing-cream);
}

@media (min-width: 768px) {
    .stats {
        padding: 56px 24px;
    }
}

.stats-inner {
    max-width: 1120px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

@media (min-width: 768px) {
    .stats-inner {
        gap: 60px;
    }
}

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

.stat-number {
    font-size: 40px;
    font-weight: 700;
    color: var(--accent-primary);
    line-height: 1;
}

@media (min-width: 768px) {
    .stat-number {
        font-size: 48px;
    }
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 6px;
}

@media (min-width: 768px) {
    .stat-label {
        font-size: 16px;
        margin-top: 8px;
    }
}

/* Footer */
.footer {
    padding: 32px 20px;
    background: var(--renqing-brown);
    color: var(--renqing-cream);
}

@media (min-width: 768px) {
    .footer {
        padding: 40px 24px;
    }
}

.footer-inner {
    max-width: 1120px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

@media (min-width: 768px) {
    .footer-inner {
        flex-direction: row;
        justify-content: space-between;
    }
}

.footer-brand {
    text-align: center;
}

.footer-logo {
    font-size: 24px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer-logo-img {
    width: 20px;
    height: 20px;
    border-radius: 5px;
    object-fit: cover;
}

@media (min-width: 768px) {
    .footer-logo {
        font-size: 28px;
    }
}

.footer-tagline {
    font-size: 13px;
    opacity: 0.8;
    margin-top: 4px;
}

.footer-nav {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

@media (min-width: 768px) {
    .footer-nav {
        gap: 24px;
    }
}

.footer-link {
    font-size: 13px;
    opacity: 0.85;
    transition: opacity 0.2s ease;
    font-family: system-ui, -apple-system, sans-serif;
}

.footer-link:hover {
    opacity: 1;
}

.footer-meta {
    font-size: 12px;
    opacity: 0.7;
    font-family: system-ui, -apple-system, sans-serif;
}
