/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 根元素样式 */
:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --accent-color: #07C160;
    --text-primary: #2d3748;
    --text-secondary: #4a5568;
    --text-light: #718096;
    --bg-primary: #ffffff;
    --bg-secondary: #f7fafc;
    --border-color: #e2e8f0;
    --shadow-light: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-heavy: 0 10px 25px rgba(0, 0, 0, 0.15);
    --border-radius: 12px;
}

/* 基础字体和布局 */
body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
}

/* 主容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 头部样式 */
.header {
    text-align: center;
    margin-bottom: 60px;
    padding: 40px 20px;
    background: var(--bg-primary);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
}

.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.logo-icon {
    filter: drop-shadow(var(--shadow-light));
}

.main-title {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

.subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    font-weight: 300;
    letter-spacing: 0.5px;
}

/* 主要内容区域 */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 60px;
}

/* 介绍部分 */
.intro-section {
    background: var(--bg-primary);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
    text-align: center;
}

.intro-text h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.intro-text p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
}

/* 二维码部分 */
.qr-section {
    background: var(--bg-primary);
    padding: 50px 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
    text-align: center;
}

.qr-container {
    max-width: 500px;
    margin: 0 auto;
}

.qr-code-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.qr-placeholder {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto;
}

.qr-mock {
    width: 100%;
    height: 100%;
    border: 3px solid var(--border-color);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

.qr-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            var(--border-color) 2px,
            var(--border-color) 4px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 2px,
            var(--border-color) 2px,
            var(--border-color) 4px
        );
    opacity: 0.3;
}

.qr-center {
    background: var(--bg-primary);
    padding: 15px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
    z-index: 1;
}

.qr-instructions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.qr-instructions h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin: 0;
}

.qr-instructions p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
}

/* 功能特色部分 */
.features-section {
    background: var(--bg-primary);
    padding: 50px 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
}

.features-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
    color: var(--text-primary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.feature-card {
    text-align: center;
    padding: 30px 20px;
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-heavy);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
}

.feature-card h4 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* 页脚 */
.footer {
    text-align: center;
    padding: 30px 20px;
    margin-top: 40px;
    background: var(--bg-primary);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
}

.footer p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 8px 0;
}

.icp-info {
    font-size: 0.85rem !important;
    color: var(--text-light) !important;
    opacity: 0.8;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .header {
        padding: 30px 15px;
        margin-bottom: 40px;
    }
    
    .logo-container {
        gap: 15px;
    }
    
    .main-title {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .main-content {
        gap: 40px;
    }
    
    .intro-section,
    .qr-section,
    .features-section {
        padding: 30px 20px;
    }
    
    .intro-text h2 {
        font-size: 1.5rem;
    }
    
    .intro-text p {
        font-size: 1rem;
    }
    
    .qr-placeholder {
        width: 180px;
        height: 180px;
    }
    
    .qr-instructions h3 {
        font-size: 1.3rem;
    }
    
    .features-section h2 {
        font-size: 1.5rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .feature-card {
        padding: 25px 15px;
    }
    
    .feature-icon {
        font-size: 2.5rem;
    }
    
    .feature-card h4 {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 1.8rem;
    }
    
    .qr-placeholder {
        width: 160px;
        height: 160px;
    }
    
    .qr-code-wrapper {
        gap: 20px;
    }
    
    .intro-section,
    .qr-section,
    .features-section {
        padding: 25px 15px;
    }
}

/* 平板设备优化 */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        padding: 30px;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 大屏幕优化 */
@media (min-width: 1200px) {
    .main-title {
        font-size: 3rem;
    }
    
    .intro-text h2 {
        font-size: 2.2rem;
    }
    
    .features-section h2 {
        font-size: 2.2rem;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.header,
.intro-section,
.qr-section,
.features-section {
    animation: fadeInUp 0.6s ease-out;
}

.intro-section {
    animation-delay: 0.1s;
}

.qr-section {
    animation-delay: 0.2s;
}

.features-section {
    animation-delay: 0.3s;
}

/* Toast 提示样式 */
.toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-heavy);
    padding: 15px 20px;
    z-index: 1000;
    opacity: 0;
    transition: all 0.3s ease;
    max-width: 90vw;
    width: auto;
    min-width: 250px;
}

.toast-show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.toast-hide {
    opacity: 0;
    transform: translateX(-50%) translateY(-50px);
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.toast-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.toast-message {
    color: var(--text-primary);
    font-size: 0.95rem;
    line-height: 1.4;
}

.toast-info {
    border-left: 4px solid var(--primary-color);
}

.toast-success {
    border-left: 4px solid var(--accent-color);
}

.toast-warning {
    border-left: 4px solid #f6ad55;
}

.toast-error {
    border-left: 4px solid #fc8181;
}

/* 打印样式 */
@media print {
    body {
        background: white;
    }
    
    .container {
        box-shadow: none;
        max-width: 100%;
    }
    
    .header,
    .intro-section,
    .qr-section,
    .features-section {
        box-shadow: none;
        break-inside: avoid;
    }
    
    .toast {
        display: none;
    }
}