/* ============================================================
   漫的工作室 - 主样式表
   厦门漫的信息技术有限公司
   设计风格: 粉红渐变浅色主题
   ============================================================ */

/* CSS变量 - 粉红渐变主题 */
:root {
    /* 主色调 - 粉红渐变 */
    --primary-color: #fb2c36;
    --primary-dark: #e01f29;
    --secondary-color: #f6339a;
    --accent-color: #ff6b9d;

    /* 功能色 */
    --success-color: #fb2c36;
    --warning-color: #ed8936;
    --error-color: #f56565;

    /* 浅色背景 */
    --bg-primary: linear-gradient(105deg, #fef2f2 0%, #ffffff 50%, #fdf2f8 100%);
    --bg-secondary: #ffffff;
    --bg-card: #ffffff;
    --bg-card-hover: #fff5f5;

    /* 文字颜色 */
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-muted: #99a1af;

    /* 渐变 */
    --gradient-primary: linear-gradient(155deg, #fb2c36 0%, #f6339a 100%);
    --gradient-accent: linear-gradient(135deg, #ff6b9d, #fb2c36);
    --gradient-bg: linear-gradient(105deg, #fef2f2 0%, #ffffff 50%, #fdf2f8 100%);

    /* 边框和阴影 */
    --border-color: #ffe2e2;
    --border-radius: 12px;
    --border-radius-lg: 16px;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);

    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC',
        'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue',
        Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

/* 容器 */
.container {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ============================================================
   导航栏 - Logo标签样式
   ============================================================ */
.navbar {
    padding: 16px;
}

.logo-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--gradient-primary);
    border-radius: 24px;
    box-shadow: var(--shadow-md);
    color: white;
    font-size: 14px;
    font-weight: 500;
}

.nav-links {
    display: none;
}

/* ============================================================
   主内容区域
   ============================================================ */
.main-content {
    flex: 1;
    padding-bottom: 40px;
}

/* ============================================================
   支付卡片
   ============================================================ */
.payment-section {
    padding: 0;
}

.payment-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    margin-bottom: 16px;
}

.payment-header {
    background: var(--gradient-primary);
    color: white;
    padding: 24px;
}

.payment-header h2 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.support-message {
    font-size: 14px;
    line-height: 1.7;
    opacity: 0.95;
}

.support-message p {
    margin: 0;
    color: rgba(255, 255, 255, 0.95);
}

/* 应用信息区域 */
.app-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-color);
}

.app-info-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.app-icon {
    width: 40px;
    height: 40px;
    background: #f3f4f6;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.app-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.app-desc {
    font-size: 12px;
    color: var(--text-muted);
}

.heart-icon {
    font-size: 24px;
    color: #e5e7eb;
    cursor: pointer;
    transition: var(--transition);
}

.heart-icon:hover,
.heart-icon.active {
    color: var(--primary-color);
}

/* 价格区域 */
.price-section {
    text-align: center;
    padding: 24px;
}

.price-main {
    margin-bottom: 8px;
}

.price-currency {
    font-size: 20px;
    color: var(--primary-color);
    font-weight: 600;
    vertical-align: top;
}

.price-amount {
    font-size: 48px;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.price-desc {
    font-size: 13px;
    color: var(--text-muted);
}

/* 奖励提示 */
.reward-tip {
    text-align: center;
    padding: 12px 24px;
    font-size: 14px;
    color: var(--text-secondary);
}

/* 二维码区域 */
.qr-container {
    margin: 0 24px 24px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 20px;
    text-align: center;
}

.qr-code {
    max-width: 200px;
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.qr-tip {
    margin-top: 12px;
    font-size: 13px;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.qr-tip::after {
    content: '→';
    margin-left: 4px;
}

/* 订单号 */
.order-info {
    text-align: center;
    padding: 0 24px 24px;
}

.order-no {
    font-size: 12px;
    color: var(--text-muted);
}

/* ============================================================
   统计卡片
   ============================================================ */
.stats-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 24px;
    margin-bottom: 16px;
}

.stats-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.stats-icon {
    font-size: 18px;
}

.stats-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.stats-grid {
    display: flex;
    justify-content: space-around;
    margin-bottom: 16px;
}

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

.stats-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.stats-value {
    font-size: 28px;
    font-weight: 700;
}

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

.stats-value.secondary {
    color: var(--secondary-color);
}

.stats-tip {
    text-align: center;
    padding: 10px 16px;
    background: #fef2f2;
    border-radius: 20px;
    font-size: 13px;
    color: var(--text-secondary);
}

/* ============================================================
   支持者列表
   ============================================================ */
.supporters-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 24px;
    position: relative;
}

.supporters-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.supporters-icon {
    font-size: 18px;
}

.supporters-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.supporters-heart {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 32px;
    color: var(--primary-color);
}

.supporters-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 300px;
    overflow-y: auto;
}

.supporter-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f3f4f6;
}

.supporter-item:last-child {
    border-bottom: none;
}

.supporter-avatar {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #fecaca, #fda4af);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color);
    margin-right: 12px;
}

.supporter-info {
    display: flex;
    align-items: center;
    flex: 1;
}

.supporter-name {
    font-size: 14px;
    color: var(--text-primary);
}

.supporter-time {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}

.supporter-amount {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-color);
}

.supporter-amount::before {
    content: '+ ';
}

/* ============================================================
   错误/成功/加载状态
   ============================================================ */
.error-message {
    text-align: center;
    padding: 20px;
    color: var(--error-color);
}

.error-icon {
    font-size: 32px;
    margin-bottom: 10px;
}

.error-detail {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 8px;
}

.success-message {
    text-align: center;
    padding: 20px;
    color: var(--success-color);
}

.success-icon {
    font-size: 48px;
    margin-bottom: 10px;
}

.loading {
    text-align: center;
    padding: 20px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(251, 44, 54, 0.2);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ============================================================
   页脚
   ============================================================ */
.footer {
    padding: 30px 16px;
    text-align: center;
    margin-top: auto;
}

.footer .company {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.footer .icp {
    margin-bottom: 8px;
}

.footer .icp a {
    font-size: 12px;
    color: var(--text-muted);
}

.footer .copyright {
    font-size: 12px;
    color: var(--text-muted);
}

/* ============================================================
   Hero区域 (首页)
   ============================================================ */
.hero {
    padding: 60px 0;
    text-align: center;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.hero-badges {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-size: 14px;
    color: var(--text-secondary);
    box-shadow: var(--shadow-sm);
}

/* ============================================================
   功能卡片 (首页)
   ============================================================ */
.features {
    padding: 40px 0;
}

.section-title {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 32px;
    color: var(--text-primary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.feature-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 24px;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

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

.feature-card.featured {
    background: var(--gradient-primary);
    border: none;
    color: white;
}

.feature-card.featured .feature-title,
.feature-card.featured .feature-desc {
    color: white;
}

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

.feature-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.feature-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ============================================================
   应用介绍区域
   ============================================================ */
.app-intro {
    padding: 40px 0;
    background: white;
}

.intro-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.intro-content p {
    color: var(--text-secondary);
    margin-bottom: 16px;
    font-size: 15px;
    line-height: 1.8;
}

.intro-content strong {
    color: var(--primary-color);
}

/* ============================================================
   仓库页面特殊样式
   ============================================================ */
.warehouse-hero {
    display: none;
}

/* ============================================================
   响应式设计
   ============================================================ */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

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

@media (min-width: 769px) {
    .container {
        max-width: 500px;
    }
}