/* 公开首页样式 */

/* 全局容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

/* 顶部导航 */
.public-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: var(--gradient-header);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 var(--spacing-lg);
    z-index: 100;
    box-shadow: var(--shadow-md);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.public-logo {
    font-size: 24px;
    font-weight: 600;
    color: white;
    margin: 0;
}

.public-nav {
    display: flex;
    gap: var(--spacing-lg);
}

.nav-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.nav-link:hover {
    color: white;
}

/* 主视觉区域 */
.hero {
    margin-top: 70px;
    min-height: 500px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    color: white;
    padding: var(--spacing-xl) 0;
}

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

.hero-title {
    font-size: 48px;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    color: white;
}

.hero-subtitle {
    font-size: 24px;
    margin-bottom: var(--spacing-lg);
    color: rgba(255, 255, 255, 0.9);
}

.hero-description {
    margin-bottom: var(--spacing-xl);
}

.hero-description p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
    color: rgba(255, 255, 255, 0.8);
}

.tech-notice {
    background: rgba(255, 193, 7, 0.2);
    border: 1px solid rgba(255, 193, 7, 0.5);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    display: inline-block;
    margin: var(--spacing-lg) 0;
}

.hero-actions {
    display: flex;
    gap: var(--spacing-md);
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--color-surface);
    color: var(--color-primary);
}

.btn-primary:hover {
    background: white;
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
}

.btn-large {
    padding: 16px 32px;
    font-size: 16px;
}

.btn-block {
    display: block;
    width: 100%;
}

/* 功能特点区域 */
.features {
    padding: var(--spacing-xl) 0;
    background: var(--color-surface);
}

.section-title {
    text-align: center;
    font-size: 32px;
    font-weight: 600;
    margin-bottom: var(--spacing-xl);
    color: var(--color-text-primary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.feature-card {
    background: var(--color-background);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

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

.feature-icon {
    font-size: 48px;
    margin-bottom: var(--spacing-md);
}

.feature-title {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: var(--spacing-sm);
    color: var(--color-text-primary);
}

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

/* 关于项目区域 */
.about {
    padding: var(--spacing-xl) 0;
    background: var(--color-background);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: start;
}

.about-text h4 {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: var(--spacing-md);
    color: var(--color-text-primary);
}

.about-text p {
    font-size: 14px;
    line-height: 1.8;
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-lg);
}

.tech-list {
    list-style: none;
    padding: 0;
}

.tech-list li {
    font-size: 14px;
    line-height: 2;
    color: var(--color-text-secondary);
    padding-left: 24px;
    position: relative;
}

.tech-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-success);
    font-weight: bold;
}

.about-notice {
    display: flex;
    align-items: center;
}

.notice-box {
    background: var(--color-warning);
    color: white;
    padding: var(--spacing-lg);
    border-radius: var(--radius-md);
}

.notice-box h5 {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: var(--spacing-md);
    color: white;
}

.notice-box p {
    font-size: 14px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--spacing-sm);
}

/* 页脚 */
.public-footer {
    background: var(--color-text-primary);
    color: white;
    padding: var(--spacing-xl) 0 var(--spacing-lg);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.footer-title {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: var(--spacing-md);
    color: white;
}

.footer-text {
    font-size: 14px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: var(--spacing-sm);
}

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

.footer-text a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--spacing-lg);
}

.footer-bottom-content {
    text-align: center;
}

.copyright {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: var(--spacing-sm);
}

.icp {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

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

.icp a:hover {
    color: white;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .public-nav {
        display: none;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 20px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

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

    .hero {
        min-height: 400px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--spacing-md);
    }

    .public-header {
        padding: 0 var(--spacing-md);
    }

    .hero-title {
        font-size: 28px;
    }

    .feature-card {
        padding: var(--spacing-lg);
    }
}

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

.feature-card {
    animation: fadeInUp 0.5s ease-out;
}

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }
.feature-card:nth-child(4) { animation-delay: 0.4s; }
.feature-card:nth-child(5) { animation-delay: 0.5s; }
.feature-card:nth-child(6) { animation-delay: 0.6s; }
