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

:root {
    /* 品牌色彩 */
    --brand-color-primary: #ff4d4f;
    --brand-color-secondary: #ff7285;
    --brand-color-light: #f5f7fa;
    --brand-color-dark: #32325D;
    --brand-color-text: #525F7F;
    --brand-color-accent: #FFCF4A;
    --brand-color-accent-secondary: #18D7BB;
    --brand-color-alert: #FD8586;
    
    /* 尺寸变量 */
    --container-width: 100%;
    --container-max-width: 500px;
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
    --border-radius-xl: 50px;
    
    /* 间距 */
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 32px;
    --spacing-xl: 48px;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden; /* 防止水平滚动 */
    position: relative;
}

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    color: var(--brand-color-text);
    line-height: 1.6;
    background: linear-gradient(135deg, var(--brand-color-primary), var(--brand-color-secondary)) fixed;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    max-width: 100vw; /* 确保不超过视口宽度 */
    min-height: 100vh;
}

/* 装饰背景元素 */
body::before, body::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    z-index: -1;
}

body::before {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15), transparent 60%);
    top: -100px;
    right: -100px;
}

body::after {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1), transparent 60%);
    bottom: -150px;
    left: -150px;
}

/* 主容器样式 */
.container {
    width: var(--container-width);
    max-width: var(--container-max-width);
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius-lg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin: var(--spacing-sm) 0;
    display: flex;
    flex-direction: column;
}

/* 页面内容包装器 */
.page-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 100%;
    padding: var(--spacing-md);
    box-sizing: border-box;
    position: relative;
}

/* 头部样式 */
.header {
    text-align: center;
    padding: var(--spacing-sm);
    position: relative;
}

.header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--brand-color-primary), transparent);
}

.logo {
    width: 70px;
    height: 70px;
    border-radius: var(--border-radius-md);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    margin-bottom: var(--spacing-xs);
}

.header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--brand-color-dark);
    margin-bottom: var(--spacing-xs);
}

.header p {
    font-size: 0.9rem;
    color: var(--brand-color-text);
}

/* 功能特点展示区域 */
.features-section {
    display: flex;
    justify-content: space-around;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--spacing-xs);
}

.feature-item i {
    font-size: 1.4rem;
    color: var(--brand-color-primary);
    background: rgba(255, 77, 79, 0.1);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-xs);
}

.feature-item span {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--brand-color-dark);
}

/* 卡片共用样式 */
.card {
    background-color: white;
    border-radius: var(--border-radius-md);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.05);
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

/* 邀请码区域样式 */
.invite-box {
    padding: var(--spacing-xs);
    text-align: center;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.invite-code-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    margin: var(--spacing-xs) 0;
}

.code-label {
    font-size: 0.85rem;
    color: var(--brand-color-text);
    opacity: 0.8;
}

.code-value {
    font-family: monospace;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--brand-color-primary);
}

.invite-note {
    font-size: 0.75rem;
    color: var(--brand-color-text);
    opacity: 0.7;
}

/* 下载区域样式 */
.download-section {
    padding: var(--spacing-xs);
    text-align: center;
}

.download-section h2 {
    font-size: 1.4rem;
    color: var(--brand-color-dark);
    margin-bottom: var(--spacing-sm);
    position: relative;
    display: inline-block;
}

.download-section h2::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--brand-color-primary), transparent);
}

.version-info {
    color: var(--brand-color-text);
    font-size: 0.9rem;
    margin-bottom: var(--spacing-md);
    opacity: 0.8;
}

.download-buttons {
    margin: var(--spacing-xs) 0;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: var(--border-radius-xl);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    background: var(--brand-color-primary);
    box-shadow: 0 5px 15px rgba(255, 77, 79, 0.2);
    text-decoration: none;
}

.download-note {
    font-size: 0.85rem;
    color: var(--brand-color-alert);
    margin-top: var(--spacing-xs);
}

/* 页脚样式 */
.footer {
    padding: var(--spacing-md);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    width: 100%;
    margin-top: 0;
    box-sizing: border-box;
    overflow-x: hidden;
}

.footer-container {
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    box-sizing: border-box;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.footer-top-row {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 0 var(--spacing-sm);
    gap: var(--spacing-md);
}

.footer-bottom-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-top: var(--spacing-xs);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.footer-brand img {
    width: 30px;
    height: 30px;
    border-radius: 4px;
}

.footer-brand span {
    font-weight: 500;
    font-size: 1rem;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    font-size: 0.85rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #fff;
    text-decoration: underline;
}

.contact-email {
    font-size: 0.85rem;
    margin-bottom: var(--spacing-xs);
}

.footer-info {
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
}


.beian a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
}

.beian a:hover {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: underline;
}

/* 响应式调整 */
@media (max-width: 480px) {
    .footer-top-row {
        flex-wrap: wrap;
        justify-content: center;
        gap: var(--spacing-sm);
    }
    
    .footer-links {
        margin-top: 0;
    }
    
    .contact-email {
        margin-top: var(--spacing-xs);
        text-align: center;
    }
}

/* 提示框样式 */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(255, 255, 255, 0.95);
    color: var(--brand-color-dark);
    padding: 10px 20px;
    border-radius: var(--border-radius-sm);
    font-size: 0.85rem;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.toast.success {
    border-left: 3px solid var(--brand-color-primary);
}

.toast.error {
    border-left: 3px solid #e74c3c;
}

.toast.info {
    border-left: 3px solid #3498db;
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

/* 响应式设计 */
@media (max-width: 480px) {
    :root {
        --spacing-md: 20px;
        --spacing-lg: 28px;
    }
    
    .container {
        margin: var(--spacing-sm) 0;
        width: 95%;
        height: auto;
    }
    
    .page-wrapper {
        padding: var(--spacing-xs);
        height: auto;
    }
    
    .invite-box,
    .download-section {
        padding: var(--spacing-xs) var(--spacing-sm);
        margin: 0 var(--spacing-xs) var(--spacing-xs);
    }
    
    .footer-container,
    .footer-content,
    .footer-top-row,
    .footer-bottom-row {
        width: 100%;
        max-width: 100%;
    }
    
    .logo {
        width: 80px;
        height: 80px;
    }
    
    .header h1 {
        font-size: 1.5rem;
    }
    
    .feature-item i {
        font-size: 1.4rem;
        width: 45px;
        height: 45px;
    }
    
    .feature-item span {
        font-size: 0.85rem;
    }
    
    .invite-header span {
        font-size: 1.1rem;
    }
    
    .code-value {
        font-size: 1.4rem;
    }
    
    .download-btn {
        padding: 12px 24px;
        font-size: 1rem;
    }
}

/* 针对超小屏幕的优化 */
@media (max-width: 320px) {
    :root {
        --spacing-sm: 12px;
        --spacing-md: 16px;
    }
    
    .logo {
        width: 70px;
        height: 70px;
    }
    
    .header h1 {
        font-size: 1.3rem;
    }
    
    .feature-item i {
        font-size: 1.2rem;
        width: 40px;
        height: 40px;
        margin-bottom: 4px;
    }
    
    .feature-item span {
        font-size: 0.8rem;
    }
    
    .download-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* 浏览器提示样式 */
.wechat-browser-tip {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
}

.wechat-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 10000;
}

.wechat-tip-content {
    position: relative;
    z-index: 10001;
    width: 100%;
    height: 100%;
    display: block;
}

.arrow-to-corner {
    position: absolute;
    top: 2px;
    right: 46px;
    animation: pulse-arrow 1.5s infinite;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.9));
    width: 32px;
    height: 32px;
    transform: scale(0.9);
}

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

.tip-text {
    background-color: rgba(0, 0, 0, 0.9);
    border-radius: 12px;
    padding: 16px 20px;
    position: absolute;
    top: 50px;
    right: 20px;
    width: auto;
    max-width: 260px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: left;
}

.tip-text p {
    margin: 6px 0;
    font-size: 15px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
}

.tip-reason {
    font-size: 13px !important;
    opacity: 0.85 !important;
    margin-top: 10px !important;
    color: #ffd6d6 !important;
    font-weight: normal !important;
    padding-top: 8px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.dots {
    font-weight: bold;
    letter-spacing: 3px;
}

.highlight {
    color: #fff;
    font-weight: 600;
} 