/* 全局样式 */
:root {
    --primary-color: #7e57c2;
    --secondary-color: #6d49a8;
    --bg-dark: #1f1f1f;
    --bg-darker: #121212;
    --text-color: #ffffff;
    --text-secondary: #e0e0e0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--bg-dark);
    color: var(--text-color);
    line-height: 1.6;
}

a {
    color: #fff;
    text-decoration: none;
}
a:hover {
    opacity: 0.8;
}
h1, h2, h3 {
    margin-bottom: 0.75em;
}
p {
    margin-bottom: 1em;
}

/* 按钮样式统一 */
.btn-primary, .cta-button {
    background-color: var(--primary-color);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-primary:hover, .cta-button:hover {
    background-color: var(--secondary-color);
}

.btn-secondary {
    background-color: #444;
    color: #fff;
    padding: 0.6em 1.2em;
    border-radius: 4px;
    margin-left: 10px;
    transition: background-color 0.3s;
}
.btn-secondary:hover {
    background-color: #555;
}

/* 导航栏统一样式 */
nav {
    background-color: var(--bg-darker);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav ul {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 2rem;
}

.logo img {
    height: 32px;
}

/* 内容区域样式调整 */
.hero, .features, .pricing-plans {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.hero {
    text-align: center;
    animation: fadeIn 1s ease-out;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    max-width: 800px;
    margin: 0 auto 1.5rem;
    animation: fadeIn 1s ease-out 0.2s both;
}

.hero p {
    color: var(--text-secondary);
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin: 0 auto 2rem;
    animation: fadeIn 1s ease-out 0.4s both;
}

.cta-button {
    animation: fadeIn 1s ease-out 0.6s both;
}

/* 卡片样式统一 */
.feature-card, .plan-card, .pricing-card {
    background: var(--bg-darker);
    border-radius: 8px;
    padding: 2rem;
    color: var(--text-color);
}

.feature-card {
    animation: fadeIn 0.8s ease-out;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

/* 表单样式改进 */
.form-group input {
    background: #333;
    border: 1px solid #444;
    color: var(--text-color);
    padding: 0.8rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(126, 87, 194, 0.2);
    outline: none;
}

.form-group input::placeholder {
    color: #888;
}

/* 动画关键帧定义 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { transform: translateX(-20px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* 导航栏 */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1em 2em;
    background-color: var(--bg-darker);
}
.nav-left .nav-logo {
    display: flex;
    align-items: center;
}
.nav-left .logo {
    height: 32px;
    margin-right: 0.5em;
}
.nav-right a {
    margin-left: 1em;
    position: relative;
    transition: color 0.3s ease;
}
.nav-right .active {
    text-decoration: underline;
}
.nav-right a:not(.btn-primary)::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}
.nav-right a:not(.btn-primary):hover::after {
    width: 100%;
}

/* 头部大图/英雄区 */
.hero-section {
    text-align: center;
    padding: 5em 2em;
    background: linear-gradient(135deg, #2c2c2c, var(--bg-dark));
}
.hero-section h1 {
    font-size: 2.5em;
    margin-bottom: 0.5em;
}
.hero-section p {
    font-size: 1.1em;
    margin-bottom: 1.5em;
}
.hero-buttons .btn-primary, .hero-buttons .btn-secondary {
    margin-right: 1em;
}

/* 功能介绍区 */
.features-section {
    padding: 4em 2em;
    text-align: center;
}
.features-section h2 {
    font-size: 1.8em;
    margin-bottom: 2em;
}
.features-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2em;
    max-width: 1000px;
    margin: 0 auto;
}
.feature-item {
    background: var(--bg-darker);
    border-radius: 6px;
    padding: 2em;
}
.feature-item h3 {
    margin-bottom: 1em;
    color: var(--primary-color);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
    max-width: 1200px;
    margin: 0 auto;
}

/* CTA 区 */
.cta-section {
    padding: 3em 2em;
    text-align: center;
    background: #292929;
}
.cta-section h2 {
    font-size: 1.8em;
    margin-bottom: 1em;
}

/* 页面主内容区 */
.page-section {
    max-width: 1000px;
    margin: 0 auto;
    padding: 3em 2em;
    opacity: 0;
    animation: fadeIn 1s ease-out forwards;
    padding: 4rem 2rem;
}
.page-section h1, .page-section h2 {
    text-align: center;
    margin-bottom: 1em;
}

/* 团队介绍示例 */
.team-container {
    display: flex;
    justify-content: center;
    gap: 2em;
}
.team-member {
    text-align: center;
}
.member-photo {
    width: 120px;
    height: 120px;
    background-color: #444;
    border-radius: 50%;
    margin: 0 auto 1em auto;
}

/* 价格比较 */
.pricing-table {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2em;
    margin-top: 2em;
}
.pricing-card {
    background: var(--bg-darker);
    border-radius: 8px;
    padding: 2em;
    width: 280px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}
.pricing-card h2 {
    color: var(--primary-color);
    margin-bottom: 0.5em;
}
.pricing-card .price {
    font-size: 1.8em;
    margin-bottom: 1em;
}
.pricing-card ul {
    list-style: none;
    margin-bottom: 1.5em;
}
.pricing-card li {
    margin-bottom: 0.5em;
}
.pricing-card a {
    align-self: center;
}
.pricing-card.featured {
    background-color: #3a2d4d;
    transform: scale(1.05);
}
.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-5px);
}

/* 认证（登录/注册）页面 */
.auth-section {
    display: flex;
    justify-content: center;
    padding: 3em 2em;
}
.auth-container {
    background: var(--bg-darker);
    padding: 2em;
    border-radius: 6px;
    width: 350px;
    animation: fadeIn 0.8s ease-out;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}
.auth-container:hover {
    transform: translateY(-5px);
}
.auth-container h1 {
    text-align: center;
    margin-bottom: 1.5em;
}
.form-group {
    margin-bottom: 1em;
}
.form-group label {
    display: block;
    margin-bottom: 0.5em;
}
.auth-hint {
    text-align: center;
    margin-top: 1em;
}

/* 页脚 */
.footer {
    text-align: center;
    padding: 2em;
    background-color: var(--bg-darker);
    margin-top: 3em;
}

.footer-content {
    text-align: center;
    padding: 1.5em 0;
}

.footer-icons {
    margin-top: 1em;
    display: flex;
    justify-content: center;
    gap: 1em;
}

.footer-icons img {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

.footer-icons img:hover {
    transform: scale(1.1);
}

.footer-icons i {
    font-size: 1.5rem;
    color: var(--text-color);
    transition: transform 0.3s ease, color 0.3s ease;
}

.footer-icons i:hover {
    transform: scale(1.2);
    color: var(--primary-color);
}

.footer p {
    margin: 0;
}

/* 统计数据网格 */
.stats-section {
    padding: 2rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    padding: 2rem;
}

.stat-card {
    background: var(--bg-darker);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    animation: fadeIn 0.8s ease-out;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-card h3 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    animation: slideIn 0.8s ease-out;
}

/* 价格网格 */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

/* 响应式布局优化 */
@media (max-width: 768px) {
    .feature-grid, .pricing-grid, .stats-grid {
        grid-template-columns: 1fr;
        padding: 1rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .pricing-card.featured {
        transform: none;
    }
}
