/* 基础样式变量 */
:root {
    --primary-color: #7c3aed; /* 香芋紫 */
    --primary-hover: #6d28d9;
    --secondary-color: #f3e8ff;
    --text-main: #1f2937;
    --text-muted: #6b7280;
    --bg-white: #ffffff;
    --bg-light: #f9fafb;
    --container-width: 1200px;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "WenQuanYi Micro Hei", sans-serif;
    line-height: 1.6;
    color: var(--text-main);
    background-color: var(--bg-white);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* 按钮样式 */
.btn-primary {
    background-color: var(--primary-color);
    color: white !important;
    padding: 10px 24px;
    border-radius: 99px;
    font-weight: 500;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

.btn-large {
    display: inline-block;
    background-color: var(--primary-color);
    color: white !important;
    padding: 16px 40px;
    border-radius: 99px;
    font-size: 1.1rem;
    font-weight: 600;
    margin-right: 15px;
}

.btn-large:hover {
    background-color: var(--primary-hover);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(124, 58, 237, 0.2);
}

.btn-outline {
    display: inline-block;
    border: 2px solid var(--primary-color);
    color: var(--primary-color) !important;
    padding: 14px 40px;
    border-radius: 99px;
    font-size: 1.1rem;
    font-weight: 600;
}

.btn-outline:hover {
    background-color: var(--secondary-color);
}

/* 头部样式 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: transparent;
    padding: 20px 0;
    transition: var(--transition);
}

.header.scrolled {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 12px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav a {
    font-weight: 500;
    color: var(--text-main);
}

.nav a:hover {
    color: var(--primary-color);
}

/* Hero 样式 */
.hero {
    padding: 160px 0 100px;
    background: linear-gradient(135deg, #f3e8ff 0%, #ffffff 100%);
    overflow: hidden;
}

.hero .container {
    display: flex;
    align-items: center;
    gap: 60px;
}

.hero-content {
    flex: 1;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 24px;
    color: var(--text-main);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 540px;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.phone-mockup {
    width: 300px;
    height: 600px;
    background-color: #333;
    border-radius: 40px;
    padding: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    position: relative;
    border: 8px solid #1a1a1a;
}

.phone-mockup img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 25px;
}

/* 特色板块 */
.features {
    padding: 100px 0;
    background-color: var(--bg-white);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
}

.section-title.text-left {
    text-align: left;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    padding: 40px;
    background-color: var(--bg-light);
    border-radius: 24px;
    transition: var(--transition);
    border: 1px solid transparent;
}

.feature-card:hover {
    transform: translateY(-10px);
    background-color: var(--bg-white);
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
    border-color: var(--secondary-color);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-main);
}

.feature-card p {
    color: var(--text-muted);
}

/* 关于板块 */
.about {
    padding: 100px 0;
    background-color: var(--bg-light);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 80px;
}

.about-content p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: var(--text-muted);
}

.stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* 页脚 */
.footer {
    padding: 80px 0 40px;
    background-color: #111827;
    color: #e5e7eb;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 60px;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-logo {
    max-width: 300px;
}

.footer-logo .logo-text {
    color: white;
    margin-bottom: 15px;
    display: block;
}

.footer-logo p {
    color: #9ca3af;
}

.footer-links {
    display: flex;
    gap: 80px;
}

.link-group h4 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.link-group a {
    display: block;
    color: #9ca3af;
    margin-bottom: 12px;
}

.link-group a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid #374151;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    color: #9ca3af;
    font-size: 0.9rem;
}

.beian a {
    color: #9ca3af;
}

.beian a:hover {
    color: white;
}

/* 自定义 Toast 样式 */
.toast-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 16px 32px;
    border-radius: 12px;
    z-index: 2000;
    font-size: 1rem;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    min-width: 240px;
    backdrop-filter: blur(4px);
}

.toast-container.show {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 768px) {
    .toast-container {
        width: 80%;
        min-width: auto;
        padding: 14px 24px;
        font-size: 0.95rem;
    }
}

/* 响应式样式 (H5 适配) */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 28px;
    height: 3px;
    background-color: var(--text-main);
    border-radius: 3px;
    transition: var(--transition);
}

@media (max-width: 992px) {
    .hero-title {
        font-size: 2.5rem;
    }
    .hero .container {
        flex-direction: column;
        text-align: center;
    }
    .hero-subtitle {
        margin: 0 auto 40px;
    }
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .about-image {
        order: 2;
    }
    .about-content {
        order: 1;
    }
    .section-title.text-left {
        text-align: center;
    }
    .stats {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .header {
        background-color: white;
        padding: 15px 0;
    }
    .nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: white;
        flex-direction: column;
        padding: 40px 20px;
        gap: 20px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        display: none;
    }
    .nav.active {
        display: flex;
    }
    .mobile-menu-toggle {
        display: flex;
    }
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
    .hero-title {
        font-size: 2.2rem;
    }
    .hero-btns {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }
    .btn-large, .btn-outline {
        margin-right: 0;
        width: 100%;
    }
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    .footer-links {
        justify-content: center;
        gap: 40px;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    .phone-mockup {
        width: 260px;
        height: 520px;
    }
}
