/* 网站主页样式 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 提示框弹层样式 */
.message-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.message-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

.message-modal__content {
    position: relative;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    max-width: 400px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.message-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #e5e7eb;
}

.message-modal__title {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

.message-modal__close {
    background: none;
    border: none;
    font-size: 28px;
    color: #9ca3af;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s;
}

.message-modal__close:hover {
    background-color: #f3f4f6;
    color: #374151;
}

.message-modal__body {
    padding: 24px;
    flex: 1;
    overflow-y: auto;
}

.message-modal__message {
    font-size: 16px;
    color: #374151;
    line-height: 1.6;
    margin: 0;
}

.message-modal__footer {
    padding: 16px 24px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.message-modal__btn {
    padding: 10px 24px;
    background-color: #4F46E5;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.message-modal__btn:hover {
    background-color: #4338ca;
}

.message-modal__btn:active {
    transform: scale(0.98);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部导航 */
.header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

.logo h1 {
    color: #0052d9;
    font-size: 28px;
    font-weight: 700;
}

.nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: #666;
    font-weight: 500;
    transition: color 0.3s;
    padding: 8px 0;
}

.nav-link:hover {
    color: #0052d9;
}

.nav-link.register-btn {
    background: linear-gradient(135deg, #0052d9, #1677ff);
    color: #fff;
    padding: 10px 20px;
    border-radius: 25px;
    transition: all 0.3s;
}

.nav-link.register-btn:hover {
    background: linear-gradient(135deg, #003ba0, #0052d9);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 82, 217, 0.3);
    color: #fff;
}

/* 主要内容 */
.main {
    padding-top: 70px;
}

/* 英雄区域 */
.hero {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8faff 0%, #e6f4ff 100%);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 18px;
    color: #666;
    margin-bottom: 40px;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 20px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, #0052d9, #1677ff);
    color: #fff;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #003ba0, #0052d9);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 82, 217, 0.3);
}

.btn-secondary {
    background: #fff;
    color: #0052d9;
    border: 2px solid #0052d9;
}

.btn-secondary:hover {
    background: #0052d9;
    color: #fff;
}

.btn-outline {
    background: transparent;
    color: #0052d9;
    border: 2px solid #0052d9;
}

.btn-outline:hover {
    background: #0052d9;
    color: #fff;
}

.btn-large {
    padding: 18px 36px;
    font-size: 18px;
}

/* 功能预览卡片 */
.feature-preview {
    display: flex;
    justify-content: center;
}

.preview-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    padding: 30px;
    width: 400px;
}

.preview-header h3 {
    color: #1a1a1a;
    font-size: 20px;
    margin-bottom: 20px;
}

.preview-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.stat-item:last-child {
    border-bottom: none;
}

.stat-item .label {
    font-size: 14px;
    color: #666;
}

.stat-item .amount {
    font-size: 18px;
    font-weight: 600;
}

.stat-item.income .amount {
    color: #52c41a;
}

.stat-item.expense .amount {
    color: #ff4d4f;
}

.stat-item.balance .amount {
    color: #0052d9;
}

/* 功能特性 */
.features {
    padding: 100px 0;
    background: #fff;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 40px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 18px;
    color: #666;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.feature-card {
    background: #fff;
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    border: 1px solid #f0f0f0;
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border-color: #e6f4ff;
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.feature-title {
    font-size: 24px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 16px;
}

.feature-desc {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
}

/* 使用步骤 */
.steps {
    padding: 100px 0;
    background: #f8faff;
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.step {
    position: relative;
    text-align: center;
}

.step-number {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #0052d9, #1677ff);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 700;
    margin: 0 auto 30px;
}

.step-title {
    font-size: 24px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 16px;
}

.step-desc {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.step-link {
    color: #0052d9;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.step-link:hover {
    color: #003ba0;
}

/* 关于我们 */
.about {
    padding: 100px 0;
    background: #fff;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-desc {
    font-size: 16px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 24px;
}

.about-stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 32px;
    font-weight: 700;
    color: #0052d9;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    color: #666;
}

.demo-screen {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    overflow: hidden;
}

.screen-header {
    background: #f5f5f5;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.screen-controls {
    display: flex;
    gap: 8px;
}

.control {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.control.close { background: #ff5f57; }
.control.minimize { background: #ffbd2e; }
.control.maximize { background: #28ca42; }

.screen-title {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.screen-content {
    padding: 30px;
}

.demo-chart {
    height: 120px;
    background: linear-gradient(90deg, #e6f4ff 0%, #bae0ff 100%);
    border-radius: 8px;
    margin-bottom: 20px;
}

.demo-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.demo-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #f8faff;
    border-radius: 8px;
    font-size: 14px;
}

/* 行动号召 */
.cta {
    padding: 100px 0;
    background: linear-gradient(135deg, #0052d9, #1677ff);
    color: #fff;
    text-align: center;
}

.cta-title {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 20px;
}

.cta-subtitle {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 40px;
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.cta .btn-primary {
    background: #fff;
    color: #0052d9;
}

.cta .btn-primary:hover {
    background: #f0f0f0;
}

.cta .btn-outline {
    border-color: #fff;
    color: #fff;
}

.cta .btn-outline:hover {
    background: #fff;
    color: #0052d9;
}

/* 页脚 */
.footer {
    background: #1a1a1a;
    color: #fff;
    padding: 60px 0 30px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.footer-logo h3 {
    font-size: 24px;
    color: #0052d9;
    margin-bottom: 12px;
}

.footer-desc {
    color: #999;
    font-size: 14px;
}

.footer-links {
    display: flex;
    gap: 30px;
    margin-bottom: 20px;
}

.footer-link {
    color: #999;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-link:hover {
    color: #fff;
}

.footer-copyright {
    color: #666;
    font-size: 12px;
}

.footer-icp{
    display: inline-block;
    margin-left: 12px;
}

.footer-icp a{
    display: inline-block;
    color: #666;
    font-size: 12px;
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .hero-content,
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .hero-title {
        font-size: 40px;
    }
    
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 30px;
    }
    
    .about-stats {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .header-content {
        height: 60px;
    }
    
    .nav {
        gap: 20px;
    }
    
    .nav-link.register-btn {
        padding: 8px 16px;
        font-size: 14px;
    }
    
    .hero {
        padding: 60px 0;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
    }
    
    .preview-card {
        width: 100%;
        max-width: 350px;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .features-grid,
    .steps-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .about-stats {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .cta-title {
        font-size: 28px;
    }
    
    .cta-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
        flex-wrap: wrap;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .nav {
        gap: 15px;
    }
    
    .nav-link {
        font-size: 14px;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .btn {
        padding: 14px 24px;
        font-size: 14px;
    }
    
    .btn-large {
        padding: 16px 28px;
        font-size: 16px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .feature-card {
        padding: 30px 20px;
    }
}