/* 演示页面样式 - 基于主站风格简化版 */

/* 英雄区域 - 统一与其他页面风格 */
.demo-hero {
    margin-top: 80px; /* 与 brand.php 保持一致，考虑到页头高度 */
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #0d1854 0%, #1a237e 50%, #3949ab 100%);
    position: relative;
    overflow: hidden;
}

.demo-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(183, 28, 28, 0.1) 0%, transparent 70%);
    animation: rotate 30s linear infinite;
}

.demo-hero-content {
    text-align: center;
    color: var(--white);
    position: relative;
    z-index: 1;
}

.demo-hero h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    letter-spacing: 2px;
    animation: fadeInUp 0.8s ease-out;
}

.demo-hero .subtitle {
    font-size: 20px;
    opacity: 0.9;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

/* 表单区域样式 */
.demo-form-section {
    padding: 80px 0;
    background: var(--white);
}

.demo-form-wrapper {
    display: flex;
    justify-content: space-between;
    gap: 50px;
}

.demo-form-content {
    flex: 1;
    max-width: 550px;
}

.form-header {
    margin-bottom: 40px;
}

.form-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.form-header p {
    color: var(--text-medium);
    font-size: 1.1rem;
    margin-bottom: 25px;
}

/* 进度指示器 */
.form-progress {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 30px;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    width: 80px;
}

.step-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #f0f0f0;
    border: 2px solid var(--border-color);
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 600;
    color: var(--text-medium);
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.step-label {
    font-size: 0.9rem;
    color: var(--text-medium);
    text-align: center;
}

.progress-step.active .step-number {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.progress-step.active .step-label {
    color: var(--primary-color);
    font-weight: 600;
}

.progress-step.completed .step-number {
    background-color: var(--success-color);
    border-color: var(--success-color);
    color: white;
}

.progress-step.completed .step-number::after {
    content: '✓';
    position: absolute;
    font-size: 14px;
}

.progress-line {
    flex: 1;
    height: 2px;
    background-color: var(--border-color);
    position: relative;
    margin: 0 10px;
    margin-bottom: 24px;
}

.progress-line.active {
    background-color: var(--primary-color);
}

.demo-form {
    background-color: #fff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.form-step-content {
    display: none;
}

.form-step-content.active {
    display: block;
}

/* 表单字段样式 */
.form-group {
    margin-bottom: 25px;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.form-group.half {
    flex: 1;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.required-mark {
    color: var(--error-color);
    margin-left: 2px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #fff;
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(26, 35, 126, 0.1);
    outline: none;
}

.input-description {
    font-size: 0.85rem;
    color: var(--text-medium);
    margin-top: 6px;
}

/* 复选框样式 */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    position: relative;
}

.checkbox-group input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: auto;
}

.checkbox-label {
    position: relative;
    padding-left: 32px;
    margin-bottom: 0;
    font-weight: 400;
    cursor: pointer;
    line-height: 1.5;
}

.checkbox-label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 2px;
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.checkbox-group input[type="checkbox"]:checked + .checkbox-label::before {
    border-color: var(--primary-color);
    background-color: var(--primary-color);
}

.checkbox-group input[type="checkbox"]:checked + .checkbox-label::after {
    content: '';
    position: absolute;
    left: 7px;
    top: 5px;
    width: 6px;
    height: 12px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-group a {
    color: var(--primary-color);
    text-decoration: none;
    position: relative;
    z-index: 1;
}

.checkbox-group a:hover {
    text-decoration: underline;
}

.form-note {
    font-size: 0.85rem;
    color: var(--text-medium);
    margin-bottom: 25px;
}

.form-submit {
    margin-top: 40px;
}

.form-submit .btn-primary {
    width: 100%;
    padding: 16px;
    font-size: 1.1rem;
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.form-submit .btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.security-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
    color: var(--text-medium);
    font-size: 0.9rem;
}

.security-note i {
    color: var(--success-color);
}

/* 演示预览样式 */
.demo-preview {
    flex: 1;
    max-width: 600px;
}

.demo-screen {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 30px;
    border: 1px solid var(--border-color);
    position: relative;
    height: 600px;
    animation: fadeIn 0.8s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.demo-header {
    background-color: var(--primary-color);
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* 模拟UI元素样式 */
.demo-logo {
    width: 120px;
    height: 30px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.demo-nav {
    display: flex;
    gap: 20px;
}

.nav-item {
    width: 80px;
    height: 16px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.demo-user {
    display: flex;
    align-items: center;
}

.user-avatar {
    width: 30px;
    height: 30px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
}

.demo-body {
    display: flex;
    height: calc(100% - 60px);
}

.demo-sidebar {
    width: 200px;
    background-color: #f5f7fa;
    border-right: 1px solid var(--border-color);
    padding: 20px 0;
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
}

.menu-item {
    height: 16px;
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 3px;
}

.menu-item.active {
    background-color: rgba(26, 35, 126, 0.1);
    position: relative;
}

.menu-item.active::before {
    content: '';
    position: absolute;
    left: -15px;
    top: 0;
    bottom: 0;
    width: 3px;
    background-color: var(--primary-color);
}

/* 模拟仪表盘区域 */
.demo-main {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.demo-dashboard {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.dashboard-title {
    width: 150px;
    height: 24px;
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

.dashboard-actions {
    width: 100px;
    height: 20px;
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 3px;
}

.dashboard-stats {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.stat-card {
    flex: 1;
    background-color: #fff;
    border-radius: 6px;
    padding: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
}

.stat-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(26, 35, 126, 0.1);
    border-radius: 50%;
    margin-right: 15px;
}

.stat-content {
    flex: 1;
}

.stat-value {
    height: 20px;
    width: 70%;
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 3px;
    margin-bottom: 8px;
}

.stat-label {
    height: 12px;
    width: 90%;
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 2px;
}

/* 图表和数据表模拟 */
.dashboard-charts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.chart-container {
    background-color: #fff;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
}

.chart-header {
    height: 16px;
    width: 60%;
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 3px;
    margin-bottom: 20px;
}

.chart-body {
    height: 150px;
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    padding-top: 20px;
}

.chart-bars {
    display: flex;
    align-items: flex-end;
    width: 100%;
    height: 100%;
    gap: 15px;
    justify-content: space-around;
    padding: 0 10px;
}

.chart-bar {
    width: 20px;
    background-color: var(--primary-color);
    border-radius: 3px 3px 0 0;
    position: relative;
    opacity: 0.7;
    animation: barRise 1.5s ease;
}

@keyframes barRise {
    from {
        height: 0;
    }
}

.chart-bar:nth-child(even) {
    background-color: var(--accent-color);
}

.data-table {
    background-color: #fff;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
}

.table-header {
    display: flex;
    gap: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 10px;
}

.header-cell {
    flex: 1;
    height: 16px;
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 3px;
}

.table-row {
    display: flex;
    gap: 15px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.table-cell {
    flex: 1;
    height: 14px;
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 2px;
}

/* AI助手预览 */
.ai-assistant-preview {
    background-color: #fff;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
}

.ai-assistant-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.assistant-title {
    height: 16px;
    width: 40%;
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 3px;
}

.assistant-toggle {
    width: 30px;
    height: 16px;
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 8px;
}

.ai-conversation {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 15px;
    padding: 10px 0;
}

.message-bubble {
    max-width: 80%;
    padding: 10px 15px;
    border-radius: 8px;
}

.message-bubble.ai {
    align-self: flex-start;
    background-color: rgba(26, 35, 126, 0.1);
}

.message-bubble.user {
    align-self: flex-end;
    background-color: rgba(41, 98, 255, 0.1);
}

.message-content {
    height: 14px;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 2px;
}

.message-bubble.ai .message-content {
    width: 180px;
}

.message-bubble.user .message-content {
    width: 120px;
}

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

.input-field {
    flex: 1;
    height: 36px;
    background-color: rgba(0, 0, 0, 0.03);
    border-radius: 18px;
    border: 1px solid var(--border-color);
}

.send-button {
    width: 36px;
    height: 36px;
    background-color: var(--primary-color);
    border-radius: 50%;
}

.demo-features {
    padding: 20px;
    background-color: var(--bg-light);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.demo-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.demo-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.demo-features li i {
    color: var(--success-color);
}

/* 免费试用优势 */
.demo-benefits {
    padding: 80px 0;
    background-color: var(--bg-light);
}

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

.benefit-card {
    background-color: #fff;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.benefit-icon {
    margin-bottom: 20px;
}

.icon-circle {
    width: 80px;
    height: 80px;
    background-color: rgba(26, 35, 126, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.benefit-card:hover .icon-circle {
    background-color: var(--primary-color);
    color: #fff;
}

.benefit-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.benefit-card p {
    color: var(--text-medium);
    line-height: 1.6;
}

/* 客户成功案例 */
.demo-case-studies {
    padding: 80px 0;
    background-color: #fff;
}

.case-studies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.case-study-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.case-study-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.case-study-content {
    padding: 30px;
}

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

.logo-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    font-size: 1.5rem;
    color: #fff;
}

.logo-1 {
    background: linear-gradient(135deg, #3f51b5, #2196f3);
}

.logo-2 {
    background: linear-gradient(135deg, #9c27b0, #e91e63);
}

.logo-3 {
    background: linear-gradient(135deg, #4caf50, #8bc34a);
}

.case-study-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.case-stats {
    color: var(--text-medium);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.case-stats strong {
    color: var(--primary-color);
}

.case-summary {
    color: var(--text-dark);
    margin-bottom: 20px;
    line-height: 1.6;
    font-style: italic;
}

.btn-text {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.btn-text:hover {
    color: var(--primary-dark);
}

/* FAQ部分 - 修复手风琴效果 */
.demo-faq {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.faq-question {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
    position: relative;
    z-index: 1;
}

.faq-question:hover {
    background-color: rgba(26, 35, 126, 0.05);
}

.faq-question h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
    padding-right: 20px;
}

.faq-question i {
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question {
    background-color: rgba(26, 35, 126, 0.05);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.5s ease-out;
    padding: 0 20px;
}

.faq-item.active .faq-answer {
    max-height: 500px; /* 足够容纳内容的高度 */
    padding: 0 20px 20px;
}

.faq-answer p {
    color: var(--text-medium);
    line-height: 1.6;
    margin: 0;
}

/* CTA区域 - 使用全局风格 */
/* 注意：这里使用全局的 .cta 类而不是创建新的，保持风格一致 */

/* 响应式样式 */
@media (max-width: 1200px) {
    .demo-hero h1 {
        font-size: 2.5rem;
    }
    
    .demo-hero .subtitle {
        font-size: 1.2rem;
    }
}

@media (max-width: 992px) {
    .demo-form-wrapper {
        flex-direction: column;
    }
    
    .demo-form-content,
    .demo-preview {
        max-width: 100%;
    }
    
    .demo-screen {
        height: 500px;
    }
    
    .dashboard-charts {
        grid-template-columns: 1fr;
    }
    
    .demo-nav {
        display: none;
    }
}

@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 20px;
    }
    
    .form-group.half {
        width: 100%;
    }
    
    .demo-body {
        flex-direction: column;
    }
    
    .demo-sidebar {
        width: 100%;
        height: auto;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding: 10px 0;
    }
    
    .sidebar-menu {
        flex-direction: row;
        overflow-x: auto;
        padding: 0 10px;
    }
    
    .menu-item {
        min-width: 100px;
    }
    
    .case-studies-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .demo-hero h1 {
        font-size: 2rem;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .demo-screen {
        height: 400px;
    }
}