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

/* 基础样式 */
:root {
    /* 颜色 */
    --text-color: #1d1d1f;
    --text-color-secondary: #86868b;
    --link-color: #0066cc;
    --primary-color: #0066cc;
    --primary-color-dark: #0051d5;
    --border-color: #d2d2d7;
    --background-color: #f5f5f7;

    /* 字体 */
    --font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
    --font-size-base: 17px;
    --font-size-small: 14px;
    --font-size-large: 20px;
    --line-height-base: 1.47059;

    /* 间距 */
    --spacing-base: 16px;
    --spacing-large: 24px;
    --nav-height: 44px;
    --footer-height: 30px;

    /* 特效 */
    --apple-blur: blur(20px);
    --apple-shadow: 0 8px 16px rgba(0, 0, 0, 0.04);
    --transition-base: 0.3s ease;
    
    /* 圆角 */
    --border-radius-base: 8px;
    --border-radius-large: 12px;
    --border-radius-xlarge: 18px;
}

html, body {
    height: 100%;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--text-color);
    background-color: var(--background-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* 主要内容区域 */
main {
    flex: 1 0 auto;
    padding-top: var(--nav-height);
}

/* Hero 区域 */
.hero {
    background-color: #fafafa;
    color: var(--primary-color);
    text-align: center;
    padding: 120px 20px;
    margin-bottom: 40px;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 56px;
    font-weight: 600;
    margin-bottom: 20px;
    background: linear-gradient(90deg, #1d1d1f 0%, #434344 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero h2 {
    font-size: 28px;
    font-weight: 400;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.hero p {
    font-size: 21px;
    color: var(--secondary-color);
}

/* 特性区域 */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-item {
    text-align: center;
    padding: 30px;
}

.feature-item h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
}

.feature-item p {
    font-size: 17px;
    color: var(--secondary-color);
}

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

    .hero h2 {
        font-size: 24px;
    }

    .hero p {
        font-size: 18px;
    }

    .features {
        grid-template-columns: 1fr;
        padding: 40px 20px;
    }
}

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

.hero-content, .feature-item {
    animation: fadeIn 1s ease-out forwards;
}

input, button {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
}

/* 通知样式 */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    font-size: 0.9rem;
    max-width: 300px;
    display: none;
    animation: notificationFadeIn 0.3s;
}

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

.notification.success {
    background-color: #e4f8ef;
    color: #1d8954;
    border-left: 4px solid #34c77b;
}

.notification.error {
    background-color: #fdf3f3;
    color: #d12c2c;
    border-left: 4px solid #e74c3c;
}

.notification.info {
    background-color: #e9f5fe;
    color: #3498db;
    border-left: 4px solid #3498db;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .notification {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
}

/* 客服浮动框样式 */
.customer-support {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1000;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s ease;
}

.customer-support:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.support-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 微信客服样式 */
.wechat-support img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 10px;
}

.wechat-support .title {
    font-size: 14px;
    font-weight: 600;
    margin: 10px 0 5px;
    color: #333;
    text-align: center;
}

.wechat-support .subtitle {
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
    text-align: center;
}

.wechat-icon-collapsed {
    font-size: 30px;
    color: #09bb07; /* WeChat绿色 */
}

.whatsapp-icon-collapsed {
    font-size: 30px;
    color: #25d366; /* WhatsApp绿色 */
}

/* WhatsApp客服样式 */
.whatsapp-support {
    text-align: center;
}

.whatsapp-icon {
    font-size: 40px;
    color: #25d366; /* WhatsApp绿色 */
    margin-bottom: 10px;
}

.whatsapp-contact .title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.phone-number {
    font-size: 16px;
    font-weight: 700;
    color: #25d366;
    margin-bottom: 5px;
    font-family: 'Monaco', 'Menlo', monospace;
}

.whatsapp-contact .subtitle {
    font-size: 12px;
    color: #666;
    margin-bottom: 10px;
}

.whatsapp-link {
    background-color: #25d366;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    transition: background-color 0.3s ease;
    display: inline-block;
}

.whatsapp-link:hover {
    background-color: #1eaa4a;
    color: white;
}

/* 英文模式下隐藏WhatsApp电话号码 */
[data-lang="en"] .whatsapp-support .phone-number {
    display: none;
}

.collapse-btn {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 30px;
    height: 30px;
    background-color: #0066cc;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 1001;
}

.customer-support.collapsed {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.customer-support.collapsed .support-content img,
.customer-support.collapsed .support-content .title,
.customer-support.collapsed .support-content .subtitle,
.customer-support.collapsed .support-content .whatsapp-contact,
.customer-support.collapsed .support-content .whatsapp-icon,
.customer-support.collapsed .collapse-btn {
    display: none;
}

.customer-support.collapsed .wechat-icon-collapsed,
.customer-support.collapsed .whatsapp-icon-collapsed {
    display: block !important;
    margin: 0;
}

.service-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

@media (max-width: 768px) {
    .customer-support {
        right: 15px;
        bottom: 15px;
        padding: 8px;
    }
    
    .wechat-support img {
        width: 90px;
        height: 90px;
    }
    
    .wechat-support .title,
    .whatsapp-contact .title {
        font-size: 12px;
        margin: 8px 0 3px;
    }
    
    .wechat-support .subtitle,
    .whatsapp-contact .subtitle {
        font-size: 10px;
    }
    
    .phone-number {
        font-size: 14px;
    }
    
    .whatsapp-link {
        padding: 6px 12px;
        font-size: 11px;
    }
}

/* iOS APP 下载部分样式 */
.app-download {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 60px 20px;
    text-align: center;
}

.app-download-container {
    max-width: 800px;
    margin: 0 auto;
}

.app-download-content h3 {
    font-size: 28px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 15px;
}

.app-download-content p {
    font-size: 18px;
    color: var(--text-color-secondary);
    margin-bottom: 30px;
    line-height: 1.5;
}

.app-store-badge {
    display: inline-block;
    transition: transform 0.2s ease;
}

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

.app-store-badge img {
    height: 60px;
    width: auto;
}

@media (max-width: 768px) {
    .app-download {
        padding: 40px 20px;
    }
    
    .app-download-content h3 {
        font-size: 24px;
    }
    
    .app-download-content p {
        font-size: 16px;
        margin-bottom: 25px;
    }
    
    .app-store-badge img {
        height: 50px;
    }
}

/* 暂时隐藏iOS下载链接 */
.ios-download-link {
    display: none !important;
}

/* CodeMirror placeholder 样式 */
.CodeMirror-placeholder {
    color: #bebebe !important; /* 更淡的灰色 */
    opacity: 0.7;
}

/* 统计数据样式 */
.stats-container {
    margin-top: 30px;
    text-align: center;
}

.stats-text {
    font-size: 18px;
    color: var(--text-color);
    line-height: 1.5;
}

.stats-number {
    font-weight: 700;
    font-size: 22px;
    color: var(--primary-color);
    margin: 0 5px;
}

@media (max-width: 768px) {
    .stats-text {
        font-size: 16px;
    }
    
    .stats-number {
        font-size: 18px;
    }
} 