/* ===== 基础样式 ===== */
:root {
    /* 主色调 */
    --primary: #4361ee;
    --primary-dark: #3a56d4;
    --primary-light: #6c8aff;
    --secondary: #ff6b6b;
    --secondary-dark: #e05858;
    
    /* 中性色 */
    --dark: #2b2d42;
    --gray-dark: #555b6e;
    --gray: #8d99ae;
    --gray-light: #edf2f4;
    --white: #ffffff;
    
    /* 功能色 */
    --success: #2ecc71;
    --warning: #f39c12;
    --danger: #e74c3c;
    --info: #3498db;
    
    /* 字体 */
    --font-family: 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
    
    /* 阴影 */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.15);
    
    /* 圆角 */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    
    /* 过渡 */
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
}

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

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

ul, ol {
    list-style: none;
}

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

/* 容器 */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 按钮 */
.btn {
    display: inline-block;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    border: none;
    outline: none;
}

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

.btn-primary:hover {
    background-color: var(--primary-dark);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* 文本渐变 */
.text-gradient {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

/* 部分标题 */
.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title h2:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
}

.section-title p {
    font-size: 1.1rem;
    color: var(--gray-dark);
    max-width: 700px;
    margin: 0 auto;
}

/* ===== 导航栏 ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.header.fixed {
    box-shadow: var(--shadow-md);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

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

.logo img {
    height: 40px;
    margin-right: 10px;
}

.logo h1 {
    font-size: 1.5rem;
    margin-bottom: 0;
    color: var(--primary);
}

.nav-links {
    display: flex;
    align-items: center;
}

.nav-links li {
    margin: 0 15px;
}

.nav-links a {
    color: var(--dark);
    font-weight: 500;
    position: relative;
}

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

.nav-links a:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition);
}

.nav-links a:hover:after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
}

.mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--dark);
    border-radius: 3px;
    transition: var(--transition);
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: translateY(8.5px) rotate(45deg);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: translateY(-8.5px) rotate(-45deg);
}

/* ===== 主横幅 ===== */
.hero {
    padding: 150px 0 80px;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e7eb 100%);
    position: relative;
    overflow: hidden;
}

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

.hero-text {
    flex: 1;
    padding-right: 50px;
}

.hero-text h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero-text p {
    font-size: 1.2rem;
    color: var(--gray-dark);
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.hero-image {
    flex: 1;
    position: relative;
}

.hero-image img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

/* ===== 特点介绍 ===== */
.features {
    padding: 100px 0;
    background-color: var(--white);
}

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

.feature-item {
    background-color: var(--white);
    border-radius: var(--radius-md);
    padding: 30px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    text-align: center;
}

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

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: var(--white);
}

.feature-item h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.feature-item p {
    color: var(--gray-dark);
}

/* ===== 工作流程 ===== */
.workflow {
    padding: 100px 0;
    background-color: var(--gray-light);
}

.workflow-container {
    display: flex;
    gap: 60px;
    align-items: flex-start;
    margin-top: 60px;
}

.workflow-image {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    padding: 20px;
    position: sticky;
    top: 120px;
}

.workflow-image img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
    transition: transform 0.3s ease;
}

.workflow-image img:hover {
    transform: scale(1.02);
}

.steps {
    position: relative;
    flex: 1;
}

.steps:before {
    content: '';
    position: absolute;
    top: 0;
    left: 80%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background-color: var(--primary);
}

.step {
    display: flex;
    align-items: center;
    margin-bottom: 60px;
    position: relative;
}

.step:last-child {
    margin-bottom: 0;
}

.step-content {
    width: calc(80% - 50px);
    background-color: var(--white);
    padding: 30px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

/* 修改工作流程布局，确保步骤二和步骤四在右侧 */
.step:nth-child(2n+1) .step-content {
    margin-right: 100px;
    order: 1;
}

.step:nth-child(2n) .step-content {
    margin-left: 100px;
    order: 2;
}

/* 添加明确的类来控制步骤位置 */
.step.left .step-content {
    margin-right: 100px;
    margin-left: 0;
    order: 1;
}

.step.right .step-content {
    margin-left: 100px;
    margin-right: 0;
    order: 2;
}

.step-content h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary);
}

.step-content p {
    color: var(--gray-dark);
}

.step-number {
    width: 50px;
    height: 50px;
    background-color: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    position: absolute;
    left: 80%;
    transform: translateX(-50%);
    z-index: 1;
}

/* ===== 功能亮点 ===== */
.highlights {
    padding: 100px 0;
    background-color: var(--white);
}

.highlights-container {
    display: flex;
    align-items: center;
    gap: 50px;
}

.highlights-image {
    flex: 1;
}

.highlights-image img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.highlights-content {
    flex: 1;
}

.highlight-item {
    margin-bottom: 30px;
}

.highlight-item:last-child {
    margin-bottom: 0;
}

.highlight-item h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--primary);
}

.highlight-item p {
    color: var(--gray-dark);
}

/* ===== 技术架构 ===== */
.architecture {
    padding: 100px 0;
    background-color: var(--gray-light);
}

.arch-diagram {
    text-align: center;
    margin-bottom: 50px;
}

.arch-diagram img {
    max-width: 800px;
    margin: 0 auto;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.arch-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.arch-feature {
    background-color: var(--white);
    padding: 25px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

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

.arch-feature h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--primary);
}

.arch-feature p {
    color: var(--gray-dark);
}

/* ===== 案例展示 ===== */
.cases {
    padding: 100px 0;
    background-color: var(--white);
}

.case-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.case-item {
    background-color: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.case-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.case-image {
    height: 200px;
    overflow: hidden;
}

.case-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.case-item:hover .case-image img {
    transform: scale(1.1);
}

.case-content {
    padding: 25px;
}

.case-content h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.case-description {
    color: var(--gray-dark);
    margin-bottom: 15px;
}

.case-highlights {
    padding-left: 20px;
}

.case-highlights li {
    position: relative;
    margin-bottom: 8px;
    color: var(--gray-dark);
    font-size: 0.95rem;
}

.case-highlights li:before {
    content: '•';
    position: absolute;
    left: -15px;
    color: var(--primary);
    font-weight: bold;
}

/* ===== 价格方案 ===== */
.pricing {
    padding: 100px 0;
    background-color: var(--gray-light);
}

.pricing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 50px;
}

.pricing-toggle span {
    font-size: 1.1rem;
    font-weight: 500;
    margin: 0 15px;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--gray);
    border-radius: 34px;
    transition: var(--transition);
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: var(--white);
    border-radius: 50%;
    transition: var(--transition);
}

input:checked + .toggle-slider {
    background-color: var(--primary);
}

input:checked + .toggle-slider:before {
    transform: translateX(26px);
}

.pricing-plans {
    display: flex;
    justify-content: space-between;
    gap: 30px;
}

.pricing-plan {
    background-color: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    padding: 40px 30px;
    flex: 1;
    transition: var(--transition);
}

.pricing-plan:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.pricing-plan.popular {
    transform: scale(1.05);
    border: 2px solid var(--primary);
    position: relative;
    z-index: 1;
}

.pricing-plan.popular:hover {
    transform: scale(1.05) translateY(-10px);
}

.pricing-header {
    text-align: center;
    margin-bottom: 30px;
}

.pricing-header h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.pricing-price {
    margin-bottom: 20px;
}

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

.price span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--gray);
}

.price.annual {
    display: none;
}

.pricing-price p {
    font-size: 0.9rem;
    color: var(--gray);
    margin-top: 10px;
}

.pricing-features {
    margin-bottom: 30px;
}

.pricing-features ul {
    padding-left: 10px;
}

.pricing-features li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.pricing-features i {
    margin-right: 10px;
    font-size: 1.1rem;
}

.pricing-features i.bi-check-circle-fill {
    color: var(--success);
}

.pricing-features i.bi-x-circle-fill {
    color: var(--gray);
}

.pricing-footer {
    text-align: center;
}

/* ===== 联系我们 ===== */
.contact {
    padding: 100px 0;
    background-color: var(--white);
}

.contact-container {
    display: flex;
    gap: 50px;
}

.contact-info {
    flex: 1;
}

.contact-item {
    display: flex;
    margin-bottom: 30px;
}

.contact-icon {
    width: 60px;
    height: 60px;
    background-color: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    color: var(--primary);
    font-size: 1.5rem;
}

.contact-text h3 {
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.contact-text p {
    color: var(--gray-dark);
}

.contact-social {
    margin-top: 40px;
}

.contact-social h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    width: 50px;
    height: 50px;
    background-color: var(--gray-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.5rem;
    transition: var(--transition);
}

.social-icons a:hover {
    background-color: var(--primary);
    color: var(--white);
    transform: translateY(-5px);
}

.contact-form {
    flex: 1;
    background-color: var(--white);
    padding: 40px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: 20px;
    width: calc(50% - 10px);
    display: inline-block;
}

.form-group.full-width {
    width: 100%;
}

.form-group:nth-child(odd) {
    margin-right: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--gray-light);
    border-radius: var(--radius-sm);
    font-family: var(--font-family);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
}

.form-group textarea {
    resize: vertical;
}

/* ===== 页脚 ===== */
.footer {
    background-color: var(--dark);
    color: var(--white);
    padding: 80px 0 30px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 50px;
}

.footer-info {
    max-width: 350px;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-logo img {
    height: 40px;
}

.footer-description p {
    color: var(--gray-light);
    font-size: 0.95rem;
}

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

.footer-links-column h4 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
}

.footer-links-column h4:after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--primary);
}

.footer-links-column ul li {
    margin-bottom: 12px;
}

.footer-links-column ul li a {
    color: var(--gray-light);
    font-size: 0.95rem;
    transition: var(--transition);
}

.footer-links-column ul li a:hover {
    color: var(--primary-light);
    padding-left: 5px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 0;
}

.footer-bottom a {
    color: var(--gray-light);
}

.footer-bottom a:hover {
    color: var(--primary-light);
}

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

.fade-in {
    animation: fadeIn 0.8s ease forwards;
}

/* 页面加载动画 */
body:not(.loaded) {
    overflow: hidden;
}

body.loaded {
    overflow-x: hidden;
}

/* 滚动到顶部按钮 */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 99;
}

.scroll-top.active {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background-color: var(--primary-dark);
    transform: translateY(-5px);
}


.contact-qrcode {
    flex: 1;
    min-width: 250px;
    background: rgba(255, 255, 255, 0.95);
    padding: 35px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(52, 152, 219, 0.1);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.contact-qrcode:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--purple-color));
}

.contact-qrcode:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    border-color: rgba(52, 152, 219, 0.2);
}

.contact-qrcode img {
    max-width: 200px;
    margin: 0 auto 20px;
    border: 5px solid var(--white);
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.contact-qrcode:hover img {
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.contact-qrcode h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    background: linear-gradient(135deg, var(--primary-color), var(--purple-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

.contact-qrcode p {
    color: var(--text-color);
    font-size: 1.05rem;
}