/* ===== 全局样式 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #4f46e5;
    --primary-hover: #4338ca;
    --secondary-color: #64748b;
    --accent-color: #06b6d4;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-accent: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== 导航栏 ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
}

.logo {
    width: 40px;
    height: 40px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

/* 移动端菜单按钮 */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
    position: relative;
}

.mobile-menu-toggle span {
    width: 28px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px;
    transition: all 0.3s ease;
    display: block;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(9px, 9px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* ===== 主横幅 ===== */
.hero {
    padding: 150px 0 100px;
    background: var(--gradient-primary);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 20s infinite ease-in-out;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 15s infinite ease-in-out reverse;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 15px;
    opacity: 0.95;
    animation: fadeInUp 0.8s ease 0.2s backwards;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 0.8s ease 0.4s backwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 60px;
    animation: fadeInUp 0.8s ease 0.6s backwards;
}

.hero-buttons .btn {
    min-width: 200px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    animation: fadeInUp 0.8s ease 0.8s backwards;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* ===== 已集成软件展示横幅 ===== */
.integrated-apps-banner {
    padding: 50px 0;
    background: white;
    border-bottom: 1px solid var(--border-color);
}

.banner-label {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.apps-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 80px;
    flex-wrap: wrap;
}

.app-logo-item {
    text-align: center;
    transition: all 0.3s ease;
}

.app-logo-item:hover {
    transform: translateY(-5px);
}

.logo-icon {
    font-size: 3.5rem;
    margin-bottom: 15px;
}

.logo-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.logo-desc {
    font-size: 0.9rem;
    color: var(--text-light);
}

.banner-note {
    text-align: center;
    margin-top: 30px;
    font-size: 1rem;
    color: var(--primary-color);
    font-weight: 500;
    padding: 15px 30px;
    background: rgba(79, 70, 229, 0.1);
    border-radius: 25px;
    display: inline-block;
    margin-left: 50%;
    transform: translateX(-50%);
}

/* ===== 按钮 ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

.btn-large {
    padding: 16px 40px;
    font-size: 1.1rem;
}

.btn-primary {
    background: white;
    color: var(--primary-color);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.partner .btn-primary {
    background: var(--primary-color);
    color: white;
}

.partner .btn-primary:hover {
    background: var(--primary-hover);
}

.btn-secondary {
    background: white;
    color: var(--primary-color);
    border: 2px solid white;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-download {
    position: relative;
    overflow: hidden;
}

.btn-download::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-download:hover::before {
    width: 300px;
    height: 300px;
}

.icon-download {
    width: 20px;
    height: 20px;
}

/* ===== 区块标题 ===== */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.section-subtitle {
    font-size: 1.1rem;
    text-align: center;
    color: var(--text-light);
    margin-bottom: 60px;
}

/* ===== 功能特性 ===== */
.features {
    padding: 100px 0;
    background: var(--bg-light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: white;
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.feature-card.highlight {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.feature-card.highlight h3,
.feature-card.highlight p {
    color: white;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* ===== 集成应用 ===== */
.apps {
    padding: 100px 0;
    background: white;
}

.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.app-card {
    background: var(--bg-light);
    padding: 40px;
    border-radius: 16px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.app-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.app-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.app-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.server-badge {
    display: inline-block;
    background: var(--gradient-primary);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.app-features {
    list-style: none;
}

.app-features li {
    padding: 8px 0;
    color: var(--text-light);
    position: relative;
    padding-left: 25px;
}

.app-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

.more-services {
    margin-top: 60px;
    text-align: center;
    padding: 40px;
    background: var(--bg-light);
    border-radius: 16px;
}

.more-text {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 20px;
}

/* ===== 互推智能体 ===== */
.wechat-mini {
    padding: 100px 0;
    background: white;
}

.wechat-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: center;
}

.wechat-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.wechat-feature {
    text-align: center;
}

.feature-icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.wechat-feature:hover .feature-icon-wrapper {
    transform: scale(1.1) rotate(5deg);
    box-shadow: var(--shadow-lg);
}

.feature-svg-icon {
    width: 40px;
    height: 40px;
    stroke: white;
}

.wechat-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.wechat-feature h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.wechat-feature p {
    color: var(--text-light);
    line-height: 1.6;
}

.wechat-qr {
    display: flex;
    justify-content: center;
    align-items: center;
}

.qr-placeholder {
    width: 280px;
    height: 280px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    box-shadow: var(--shadow-xl);
}

.qr-placeholder.qr-tall {
    height: 360px;
}

.qr-svg-icon {
    width: 120px;
    height: 120px;
    stroke: white;
    margin-bottom: 20px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.05); }
}

.qr-icon {
    font-size: 5rem;
    margin-bottom: 20px;
}

.qr-placeholder p {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 5px 0;
}

.qr-subtitle {
    font-size: 1rem !important;
    opacity: 0.9;
}

/* ===== 服务商合作 ===== */
.partner {
    padding: 100px 0;
    background: var(--bg-light);
}

.business-value {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.value-card {
    background: white;
    padding: 40px 30px;
    border-radius: 16px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.value-card.primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.value-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.value-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.value-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.value-card.primary h3 {
    color: white;
}

.value-card p {
    line-height: 1.8;
    opacity: 0.95;
}

.partner-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.partner-card {
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    position: relative;
    transition: all 0.3s ease;
}

.partner-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.partner-number {
    position: absolute;
    top: -20px;
    left: 40px;
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    box-shadow: var(--shadow-md);
}

.partner-card h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    margin-top: 20px;
    color: var(--text-dark);
}

.partner-card ul {
    list-style: none;
}

.partner-card ul li {
    padding: 10px 0;
    color: var(--text-light);
    position: relative;
    padding-left: 25px;
    line-height: 1.6;
}

.partner-card ul li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.partner-cta {
    text-align: center;
    padding: 50px;
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
}

.partner-cta-text {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 30px;
    font-weight: 500;
}

.partner-contact {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.company-info {
    text-align: center;
    color: var(--text-light);
    line-height: 1.8;
}

.company-info p {
    margin: 5px 0;
}

.company-info strong {
    color: var(--text-dark);
    font-size: 1.1rem;
}

.icon-phone {
    width: 20px;
    height: 20px;
}

/* ===== 下载区域 ===== */
.download {
    padding: 100px 0;
    background: var(--bg-light);
}

.download-card-single {
    max-width: 800px;
    margin: 0 auto 80px;
    background: white;
    padding: 60px 50px;
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
    text-align: center;
    border: 3px solid var(--primary-color);
    background: linear-gradient(to bottom, #ffffff 0%, #f8f9ff 100%);
}

.download-icon {
    font-size: 5rem;
    margin-bottom: 20px;
}

.download-card-single h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.download-desc {
    color: var(--text-light);
    margin-bottom: 30px;
    line-height: 1.8;
    font-size: 1.1rem;
}

.download-includes {
    list-style: none;
    margin-bottom: 40px;
    text-align: left;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.download-includes li {
    padding: 12px 0;
    color: var(--text-dark);
    border-bottom: 1px solid var(--border-color);
    font-size: 1.05rem;
}

.download-includes li:last-child {
    border-bottom: none;
}

.btn-xlarge {
    padding: 20px 60px;
    font-size: 1.3rem;
    width: auto;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.download-card-single .btn-primary {
    background: var(--primary-color);
    color: white;
}

.download-card-single .btn-primary:hover {
    background: var(--primary-hover);
}

/* ===== 系统要求 ===== */
.system-requirements {
    background: white;
    padding: 50px;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
}

.system-requirements h3 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: var(--text-dark);
    text-align: center;
}

.requirements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.requirement-item {
    text-align: center;
}

.requirement-item strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.requirement-item p {
    color: var(--text-light);
}

/* ===== 使用说明 ===== */
.usage {
    padding: 100px 0;
    background: white;
}

.usage-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.step {
    text-align: center;
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    box-shadow: var(--shadow-md);
}

.step h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.step p {
    color: var(--text-light);
    line-height: 1.6;
}

/* ===== 页脚 ===== */
.footer {
    background: var(--text-dark);
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
}

.footer-bottom p {
    margin: 8px 0;
}

.icp-link {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.3s ease;
}

.icp-link:hover {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: underline;
}

.phone-link {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.phone-link:hover {
    color: var(--accent-color);
    border-bottom-color: var(--accent-color);
}

/* ===== 返回顶部按钮 ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-hover);
    transform: translateY(-5px);
}

.back-to-top svg {
    width: 24px;
    height: 24px;
}

/* ===== 响应式设计 ===== */
@media (max-width: 768px) {
    .navbar .container {
        position: relative;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 250px;
        height: calc(100vh - 70px);
        background: var(--gradient-primary);
        flex-direction: column;
        padding: 20px 0;
        box-shadow: var(--shadow-lg);
        transition: right 0.3s ease;
        z-index: 1000;
        border-radius: 0 0 0 10px;
        overflow-y: auto;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu li {
        margin: 0;
        padding: 0;
    }

    .nav-menu a {
        display: block;
        padding: 15px 30px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        color: white;
    }

    .nav-menu a:hover {
        background: rgba(255, 255, 255, 0.1);
    }

    .nav-menu a::after {
        display: none;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-stats {
        flex-direction: column;
        gap: 30px;
    }

    .section-title {
        font-size: 2rem;
    }

    .features-grid,
    .apps-grid,
    .usage-steps,
    .partner-grid {
        grid-template-columns: 1fr;
    }

    .download-card-single {
        padding: 40px 30px;
    }

    .btn-xlarge {
        padding: 18px 40px;
        font-size: 1.1rem;
    }

    .wechat-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .wechat-features {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 120px 0 80px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .btn-large {
        padding: 14px 30px;
        font-size: 1rem;
    }

    .btn-xlarge {
        padding: 16px 30px;
        font-size: 1rem;
    }

    .qr-placeholder {
        width: 220px;
        height: 220px;
    }
}

/* ===== 平滑滚动 ===== */
html {
    scroll-behavior: smooth;
}

/* ===== 选择文本颜色 ===== */
::selection {
    background: var(--primary-color);
    color: white;
}
