/* ============================================
   服务项目模板统一样式文件
   ============================================ */

/* 主题变量 */
:root {
    --theme-primary: #0ea5e9;
    --theme-secondary: #06b6d4;
    --theme-green: #22c55e;
    --theme-red: #ef4444;
    --bg-dark: #020617;
    --bg-card: rgba(15, 23, 42, 0.6);
    --border-color: rgba(51, 65, 85, 0.5);
}

/* 主题色类 */
.text-theme-primary { color: #0ea5e9; }
.text-theme-secondary { color: #06b6d4; }
.text-theme-green { color: #22c55e; }
.bg-theme-primary { background-color: #0ea5e9; }
.border-theme-primary { border-color: #0ea5e9; }

/* 全局样式 */
* {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
}
html { scroll-behavior: smooth; }

/* 背景网格 */
.bg-grid {
    background-image: linear-gradient(to right, rgba(148, 163, 184, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(148, 163, 184, 0.03) 1px, transparent 1px);
    background-size: 100px 100px;
}

/* 主按钮 */
.btn-primary {
    background: linear-gradient(135deg, #0ea5e9, #06b6d4);
    transition: all 0.3s ease;
}
.btn-primary:hover {
    background: linear-gradient(135deg, #06b6d4, #0ea5e9);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px -10px rgba(14, 165, 233, 0.4);
}

/* 滚动动画 */
.fade-in-up {
    opacity: 0;
    transform: translateY(60px);
    transition: all 1.1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Hero 背景 */
.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}
.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(2, 6, 23, 0.9) 0%, rgba(2, 6, 23, 0.7) 50%, rgba(2, 6, 23, 0.9) 100%);
}

/* ============================================
   企业介绍页面样式 (lists_single_about)
   ============================================ */

/* 统计数据卡片 */
.stat-card {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(51, 65, 85, 0.5);
    border-radius: 20px;
    padding: 32px 24px;
    text-align: center;
    transition: all 0.5s ease;
}
.stat-card:hover {
    border-color: rgba(14, 165, 233, 0.5);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.3);
}

/* 企业简介卡片 */
.intro-card {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(51, 65, 85, 0.5);
    border-radius: 20px;
    padding: 48px 40px;
    transition: all 0.5s ease;
}
.intro-card:hover {
    border-color: rgba(14, 165, 233, 0.5);
}

/* 业务布局卡片 */
.service-card {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(51, 65, 85, 0.5);
    border-radius: 20px;
    padding: 32px 28px;
    transition: all 0.5s ease;
}
.service-card:hover {
    border-color: rgba(14, 165, 233, 0.5);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
}

/* 时间线 */
.timeline-item {
    position: relative;
    padding-left: 80px;
    margin-bottom: 48px;
}
.timeline-item:last-child {
    margin-bottom: 0;
}
.timeline-year {
    position: absolute;
    left: 0;
    top: 0;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.2), rgba(6, 182, 212, 0.1));
    border: 1px solid rgba(14, 165, 233, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 600;
    color: #0ea5e9;
}
.timeline-item::before {
    content: '';
    position: absolute;
    left: 27px;
    top: 56px;
    width: 2px;
    height: calc(100% + 48px);
    background: linear-gradient(to bottom, rgba(14, 165, 233, 0.3), transparent);
}
.timeline-item:last-child::before {
    display: none;
}

/* 价值观卡片 */
.value-card {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(51, 65, 85, 0.5);
    border-radius: 20px;
    padding: 40px 32px;
    text-align: center;
    transition: all 0.5s ease;
}
.value-card:hover {
    border-color: rgba(14, 165, 233, 0.5);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
}

/* 团队成员卡片 */
.team-card {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(51, 65, 85, 0.5);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.5s ease;
}
.team-card:hover {
    border-color: rgba(14, 165, 233, 0.4);
    transform: translateY(-4px);
}

/* 荣誉资质卡片 */
.honor-card {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(51, 65, 85, 0.4);
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    transition: all 0.4s ease;
}
.honor-card:hover {
    border-color: rgba(14, 165, 233, 0.4);
    transform: translateY(-4px);
}

/* 合作伙伴卡片 */
.partner-card {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(51, 65, 85, 0.3);
    border-radius: 12px;
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}
.partner-card:hover {
    border-color: rgba(14, 165, 233, 0.4);
    background: rgba(14, 165, 233, 0.05);
}

/* ============================================
   AI外呼系统页面样式 (lists_single_ai_call)
   ============================================ */

/* 痛点卡片 */
.pain-card {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 16px;
    padding: 32px 24px;
    transition: all 0.3s ease;
}
.pain-card:hover {
    border-color: rgba(239, 68, 68, 0.4);
    transform: translateY(-4px);
}

/* 解决方案卡片 */
.solution-card {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(51, 65, 85, 0.5);
    border-radius: 20px;
    padding: 40px 32px;
    transition: all 0.5s ease;
}
.solution-card:hover {
    border-color: rgba(14, 165, 233, 0.5);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
}

/* 价目表卡片 */
.price-card {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(51, 65, 85, 0.5);
    border-radius: 24px;
    padding: 40px 32px;
    transition: all 0.5s ease;
    position: relative;
    overflow: hidden;
}
.price-card.featured {
    border-color: rgba(14, 165, 233, 0.6);
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.1), rgba(6, 182, 212, 0.05));
}
.price-card.featured::before {
    content: '推荐';
    position: absolute;
    top: 12px;
    right: -28px;
    background: linear-gradient(135deg, #0ea5e9, #06b6d4);
    color: white;
    padding: 6px 40px;
    font-size: 12px;
    transform: rotate(45deg);
    z-index: 10;
}
.price-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
}

/* 案例卡片 */
.case-card {
    background: rgba(15, 23, 42, 0.6);
    border-radius: 20px;
    border: 1px solid rgba(51, 65, 85, 0.4);
    overflow: hidden;
    transition: all 0.5s ease;
}
.case-card:hover {
    border-color: rgba(14, 165, 233, 0.4);
    transform: translateY(-4px);
}

/* 数据展示 */
.stat-item {
    text-align: center;
    padding: 32px 16px;
}
.stat-number {
    font-size: 3rem;
    font-weight: 200;
    background: linear-gradient(135deg, #0ea5e9, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 流程步骤 */
.process-step {
    position: relative;
    padding-left: 80px;
    margin-bottom: 40px;
}
.process-step:last-child {
    margin-bottom: 0;
}
.process-step .step-num {
    position: absolute;
    left: 0;
    top: 0;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(14, 165, 233, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    font-weight: 600;
    color: #0ea5e9;
}
.process-step::before {
    content: '';
    position: absolute;
    left: 25px;
    top: 52px;
    width: 2px;
    height: calc(100% + 40px);
    background: linear-gradient(to bottom, rgba(14, 165, 233, 0.3), transparent);
}
.process-step:last-child::before {
    display: none;
}

/* ============================================
   联系页面样式 (lists_single_contact)
   ============================================ */

/* 联系信息卡片 */
.contact-card {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(51, 65, 85, 0.5);
    border-radius: 20px;
    padding: 40px 32px;
    text-align: center;
    transition: all 0.5s ease;
}
.contact-card:hover {
    border-color: rgba(14, 165, 233, 0.5);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
}

/* 联系表单卡片 */
.form-card {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(51, 65, 85, 0.5);
    border-radius: 24px;
    padding: 48px 40px;
    transition: all 0.5s ease;
}
.form-card:hover {
    border-color: rgba(14, 165, 233, 0.3);
}

/* 地图卡片 */
.map-card {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(51, 65, 85, 0.5);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.5s ease;
}
.map-card:hover {
    border-color: rgba(14, 165, 233, 0.3);
}

/* 二维码卡片 */
.qrcode-card {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(51, 65, 85, 0.5);
    border-radius: 20px;
    padding: 32px 24px;
    text-align: center;
    transition: all 0.5s ease;
}
.qrcode-card:hover {
    border-color: rgba(14, 165, 233, 0.4);
    transform: translateY(-4px);
}

/* 社交媒体图标 */
.social-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(51, 65, 85, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}
.social-icon:hover {
    border-color: rgba(14, 165, 233, 0.5);
    background: rgba(14, 165, 233, 0.1);
    transform: translateY(-4px);
}

/* ============================================
   通用样式
   ============================================ */

/* FAQ 项 */
.faq-item {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(51, 65, 85, 0.3);
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
}
.faq-question {
    padding: 20px 24px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
}
.faq-question:hover {
    background: rgba(14, 165, 233, 0.05);
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}
.faq-answer.active {
    max-height: 500px;
    padding: 0 24px 20px;
}
.faq-icon {
    transition: transform 0.3s ease;
}
.faq-icon.active {
    transform: rotate(180deg);
}

/* 联系表单弹窗 */
.modal-overlay {
    position: fixed !important;
    inset: 0 !important;
    background: rgba(0, 0, 0, 0.8) !important;
    backdrop-filter: blur(8px) !important;
    z-index: 99999 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 20px !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: all 0.3s ease !important;
}
.modal-overlay.active {
    opacity: 1 !important;
    visibility: visible !important;
}
.modal-content {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border: 1px solid rgba(51, 65, 85, 0.5);
    border-radius: 1.5rem;
    max-width: 560px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: #06b6d4 rgba(30, 41, 59, 0.5);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
    position: relative;
    z-index: 100000;
}
.modal-content::-webkit-scrollbar {
    width: 6px;
}
.modal-content::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 3px;
}
.modal-content::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #0ea5e9, #06b6d4);
    border-radius: 3px;
    box-shadow: 0 0 6px rgba(6, 182, 212, 0.5);
}
.modal-content::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #38bdf8, #22d3ee);
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.8);
}
.modal-overlay.active .modal-content {
    transform: scale(1) translateY(0);
}
.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(51, 65, 85, 0.5);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}
.modal-close:hover {
    background: rgba(239, 68, 68, 0.5);
}
.modal-input {
    width: 100%;
    padding: 16px 0;
    border: none;
    border-bottom: 1px solid rgba(51, 65, 85, 0.5);
    background: transparent;
    color: white;
    font-size: 1.125rem;
    font-weight: 300;
    outline: none;
    transition: border-color 0.3s ease;
}
.modal-input:focus {
    border-bottom-color: #0ea5e9;
}
.modal-input::placeholder {
    color: #64748b;
}
.modal-select {
    width: 100%;
    padding: 16px 0;
    border: none;
    border-bottom: 1px solid rgba(51, 65, 85, 0.5);
    background: transparent;
    color: white;
    font-size: 1.125rem;
    font-weight: 300;
    outline: none;
    appearance: none;
    cursor: pointer;
}
.modal-select option {
    background: #1e293b;
    color: white;
}
.input-line:focus {
    border-bottom-color: #06b6d4;
}

/* 向下滚动指示器动画 */
.scroll-indicator {
    animation: bounce 2s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite;
}
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}