/**
 * 企业官网风格首页模板样式 - Minimal
 * 蓝色主色调，红色强调色，商务大气
 * 参考合力亿捷设计风格
 */

 body{
    margin: 0;
    padding: 0;
 }

/* ========== CSS变量定义 ========== */
:root {
    /* 从模板变量读取，带默认值 */
    --tpl-primary: var(--template-primaryColor, #2563eb);
    --tpl-secondary: var(--template-secondaryColor, #ef4444);
    --tpl-bg: var(--template-bgColor, #ffffff);
    --tpl-text: var(--template-textColor, #1e293b);
    --tpl-header-bg: var(--template-headerBgColor, #ffffff);
    --tpl-footer-bg: var(--template-footerBgColor, #1e293b);
    --tpl-radius: var(--template-borderRadius, 8px);
    
    /* 衍生颜色 */
    --tpl-primary-light: color-mix(in srgb, var(--tpl-primary) 15%, white);
    --tpl-primary-dark: color-mix(in srgb, var(--tpl-primary) 85%, black);
    --tpl-text-secondary: #64748b;
    --tpl-text-muted: #94a3b8;
    --tpl-border: #e2e8f0;
    --tpl-border-light: #f1f5f9;
    --tpl-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --tpl-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

/* ========== 基础重置 ========== */
.tpl-wrapper {
    font-family: 'PingFang SC', 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--tpl-bg);
    color: var(--tpl-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    position: relative;
    overflow-x: hidden;
}

/* ========== 背景效果 ========== */
.tpl-bg-effects {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.tpl-bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    animation: tpl-float 25s ease-in-out infinite;
    opacity: 0.3;
}

.tpl-bg-orb-1 {
    width: 600px;
    height: 600px;
    background: var(--tpl-primary);
    top: -200px;
    left: -100px;
}

.tpl-bg-orb-2 {
    width: 500px;
    height: 500px;
    background: var(--tpl-secondary);
    bottom: 20%;
    right: -100px;
    animation-delay: -8s;
}

.tpl-bg-orb-3 {
    width: 400px;
    height: 400px;
    background: var(--tpl-primary);
    top: 50%;
    left: 30%;
    animation-delay: -15s;
    opacity: 0.2;
}

@keyframes tpl-float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(50px, -50px) scale(1.1);
    }
    66% {
        transform: translate(-30px, 30px) scale(0.95);
    }
}

.tpl-bg-grid {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(var(--tpl-border-light) 1px, transparent 1px);
    background-size: 40px 40px;
    mask: radial-gradient(ellipse at center, black 20%, transparent 70%);
    opacity: 0.3;
}

.tpl-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ========== 导航栏 ========== */
.tpl-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--tpl-header-bg);
    border-bottom: 1px solid var(--tpl-border);
    transition: all 0.3s ease;
}

.tpl-nav.scrolled {
    box-shadow: var(--tpl-shadow);
}

.tpl-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    gap: 24px;
}

.tpl-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}

.tpl-logo-icon {
    width: 40px;
    height: 40px;
    background: var(--tpl-primary);
    border-radius: var(--tpl-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.tpl-logo-icon.has-logo {
    background: transparent;
}

.tpl-logo-icon svg {
    width: 22px;
    height: 22px;
}

.tpl-logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: var(--tpl-radius);
}

.tpl-logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--tpl-text);
}

.tpl-nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tpl-custom-menu {
    display: none;
}

.tpl-custom-menu:not(:empty) {
    display: flex;
}

.tpl-nav-link {
    padding: 8px 16px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--tpl-text-secondary);
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.tpl-nav-link:hover {
    color: var(--tpl-primary);
    background: var(--tpl-primary-light);
}

.tpl-nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.tpl-phone {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--tpl-text);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
}

.tpl-phone svg {
    width: 20px;
    height: 20px;
    color: var(--tpl-primary);
}

.tpl-phone:hover {
    color: var(--tpl-primary);
}

.tpl-auth-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tpl-mobile-btn {
    display: none;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: var(--tpl-text);
    border-radius: 6px;
}

.tpl-mobile-btn:hover {
    background: var(--tpl-border-light);
}

.tpl-mobile-btn svg {
    width: 24px;
    height: 24px;
}

/* ========== 按钮样式 ========== */
.tpl-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 24px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--tpl-radius);
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}

.tpl-btn-primary {
    background: var(--tpl-secondary);
    color: white;
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.3);
}

.tpl-btn-primary:hover {
    background: color-mix(in srgb, var(--tpl-secondary) 90%, black);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
}

.tpl-btn-secondary {
    background: white;
    color: var(--tpl-text);
    border: 1px solid var(--tpl-border);
}

.tpl-btn-secondary:hover {
    border-color: var(--tpl-primary);
    color: var(--tpl-primary);
    background: var(--tpl-primary-light);
}

.tpl-btn-sm {
    padding: 8px 16px;
    font-size: 0.875rem;
}

.tpl-btn-lg {
    padding: 14px 32px;
    font-size: 1rem;
}

/* ========== 移动端菜单 ========== */
.tpl-mobile-menu {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--tpl-bg);
    z-index: 1001;
    padding: 80px 24px 40px;
    flex-direction: column;
    gap: 12px;
    overflow-y: auto;
}

.tpl-mobile-menu.active {
    display: flex;
}

.tpl-mobile-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--tpl-border-light);
    border: none;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    color: var(--tpl-text);
}

.tpl-mobile-close svg {
    width: 20px;
    height: 20px;
}

.tpl-mobile-link {
    padding: 14px 20px;
    font-size: 1rem;
    font-weight: 500;
    color: var(--tpl-text);
    text-decoration: none;
    background: var(--tpl-border-light);
    border-radius: var(--tpl-radius);
    text-align: center;
}

.tpl-mobile-link:hover {
    background: var(--tpl-primary-light);
    color: var(--tpl-primary);
}

.tpl-mobile-custom-menu {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ========== Hero 区域 ========== */
.tpl-hero {
    padding: 140px 0 80px;
    background: linear-gradient(180deg, #f8fafc 0%, var(--tpl-bg) 100%);
    position: relative;
    z-index: 1;
}

.tpl-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.tpl-hero-content {
    max-width: 560px;
    text-align: center;
}

.tpl-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: white;
    border: 1px solid var(--tpl-border);
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--tpl-primary);
    margin-bottom: 32px;
    animation: tpl-fade-up 0.6s ease;
}

.tpl-badge-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    animation: tpl-pulse 2s infinite;
}

@keyframes tpl-pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.4;
    }
}

@keyframes tpl-fade-up {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tpl-hero-title {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
    color: var(--tpl-text);
    animation: tpl-fade-up 0.6s ease 0.1s both;
}

.tpl-highlight {
    color: var(--tpl-primary);
}

.tpl-hero-desc {
    font-size: 1.25rem;
    color: var(--tpl-text-secondary);
    line-height: 1.7;
    max-width: 660px;
    margin: 0 auto 48px;
    animation: tpl-fade-up 0.6s ease 0.2s both;
}

.tpl-hero-cta-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    animation: tpl-fade-up 0.6s ease 0.3s both;
    margin-top: 8px;
}

.tpl-hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
}

.tpl-btn-xl {
    padding: 16px 36px;
    font-size: 1.05rem;
    border-radius: 14px;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.tpl-hero-features {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    max-width: 680px;
    margin: 0 auto;
}

.tpl-hero-feature {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 20px;
    background: white;
    border: 1px solid var(--tpl-border);
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--tpl-text-secondary);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.tpl-hero-feature:hover {
    border-color: var(--tpl-primary);
    color: var(--tpl-text);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.15);
    background: var(--tpl-primary-light);
}

.tpl-hero-feature svg {
    width: 18px;
    height: 18px;
    color: var(--tpl-primary);
    flex-shrink: 0;
    opacity: 0.9;
}

.tpl-hero-feature:hover svg {
    opacity: 1;
}

/* ========== 聊天窗口展示 ========== */
.tpl-hero-visual {
    position: relative;
}

.tpl-chat-preview {
    background: white;
    border-radius: 16px;
    box-shadow: var(--tpl-shadow-lg);
    overflow: hidden;
    border: 1px solid var(--tpl-border);
}

.tpl-chat-header {
    padding: 12px 16px;
    background: #f1f5f9;
    border-bottom: 1px solid var(--tpl-border);
}

.tpl-chat-dots {
    display: flex;
    gap: 6px;
}

.tpl-chat-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.tpl-chat-dots span:nth-child(1) { background: #ef4444; }
.tpl-chat-dots span:nth-child(2) { background: #fbbf24; }
.tpl-chat-dots span:nth-child(3) { background: #22c55e; }

.tpl-chat-body {
    display: grid;
    grid-template-columns: 200px 1fr;
    min-height: 300px;
}

.tpl-chat-visitors {
    border-right: 1px solid var(--tpl-border);
    padding: 12px;
    background: #fafbfc;
}

.tpl-visitor {
    display: flex;
    gap: 10px;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 8px;
    transition: background 0.2s;
}

.tpl-visitor:hover {
    background: white;
}

.tpl-visitor-avatar {
    width: 36px;
    height: 36px;
    background: var(--tpl-primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tpl-visitor-avatar svg {
    width: 18px;
    height: 18px;
    color: var(--tpl-primary);
}

.tpl-visitor-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow: hidden;
}

.tpl-visitor-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--tpl-text);
}

.tpl-visitor-tag {
    display: inline-block;
    padding: 2px 6px;
    font-size: 0.7rem;
    border-radius: 4px;
    white-space: nowrap;
}

.tpl-tag-search {
    background: #dbeafe;
    color: #1d4ed8;
}

.tpl-tag-wechat {
    background: #dcfce7;
    color: #16a34a;
}

.tpl-tag-video {
    background: #fce7f3;
    color: #db2777;
}

.tpl-tag-new {
    background: #fef3c7;
    color: #d97706;
}

.tpl-chat-dialog {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tpl-chat-bubble {
    max-width: 70%;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 0.9rem;
}

.tpl-bubble-agent {
    background: var(--tpl-primary);
    color: white;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.tpl-bubble-user {
    background: #f1f5f9;
    color: var(--tpl-text);
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.tpl-chat-rating {
    display: flex;
    gap: 4px;
    align-self: center;
    margin: 8px 0;
}

.tpl-chat-rating svg {
    width: 20px;
    height: 20px;
    color: #fbbf24;
}

.tpl-chat-info-card {
    background: #f8fafc;
    border: 1px solid var(--tpl-border);
    border-radius: 8px;
    padding: 12px;
    align-self: flex-end;
    font-size: 0.8rem;
    min-width: 160px;
}

.tpl-chat-info-card h4 {
    font-size: 0.85rem;
    margin-bottom: 8px;
    color: var(--tpl-text);
}

.tpl-info-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
    color: var(--tpl-text-secondary);
}

.tpl-info-row span:last-child {
    color: var(--tpl-text);
    font-weight: 500;
}

/* ========== 通用区块样式 ========== */
section {
    padding: 120px 0;
    position: relative;
    z-index: 1;
}

.tpl-section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 80px;
}

.tpl-section-tag {
    display: inline-block;
    padding: 8px 16px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(239, 68, 68, 0.1));
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--tpl-primary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 16px;
}

.tpl-section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
    color: var(--tpl-text);
}

.tpl-section-desc {
    font-size: 1.15rem;
    color: var(--tpl-text-secondary);
    line-height: 1.7;
}

/* ========== AI 智能客服展示 ========== */
.tpl-ai-showcase {
    background: #f8fafc;
    border-top: 1px solid var(--tpl-border);
    border-bottom: 1px solid var(--tpl-border);
}

.tpl-ai-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.tpl-ai-visual {
    position: relative;
    padding: 40px;
}

.tpl-ai-chat-demo {
    background: white;
    border: 1px solid var(--tpl-border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.tpl-chat-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: linear-gradient(135deg, var(--tpl-primary) 0%, color-mix(in srgb, var(--tpl-primary) 80%, var(--tpl-secondary)) 100%);
    color: white;
}

.tpl-chat-avatar {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tpl-chat-avatar svg {
    width: 20px;
    height: 20px;
}

.tpl-chat-info h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0;
}

.tpl-chat-info span {
    font-size: 0.8rem;
    opacity: 0.8;
}

.tpl-chat-messages {
    padding: 20px;
    min-height: 280px;
}

.tpl-chat-msg {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    animation: tpl-msg-in 0.4s ease;
}

@keyframes tpl-msg-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
}

.tpl-msg-user {
    flex-direction: row-reverse;
}

.tpl-msg-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--tpl-border);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tpl-msg-avatar.tpl-msg-ai {
    background: linear-gradient(135deg, var(--tpl-primary) 0%, color-mix(in srgb, var(--tpl-primary) 80%, var(--tpl-secondary)) 100%);
    color: white;
}

.tpl-msg-avatar svg {
    width: 18px;
    height: 18px;
}

.tpl-msg-content {
    max-width: 70%;
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.tpl-msg-user .tpl-msg-content {
    background: linear-gradient(135deg, var(--tpl-primary) 0%, color-mix(in srgb, var(--tpl-primary) 80%, var(--tpl-secondary)) 100%);
    color: white;
    border-bottom-right-radius: 4px;
}

.tpl-msg-bot .tpl-msg-content {
    background: var(--tpl-border-light);
    color: var(--tpl-text);
    border-bottom-left-radius: 4px;
}

.tpl-ai-content h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.tpl-ai-content p {
    color: var(--tpl-text-secondary);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 32px;
}

.tpl-ai-features {
    display: grid;
    gap: 16px;
}

.tpl-ai-feature-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: white;
    border: 1px solid var(--tpl-border);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.tpl-ai-feature-item:hover {
    border-color: var(--tpl-primary);
    transform: translateX(8px);
}

.tpl-ai-feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tpl-ai-feature-icon svg {
    width: 24px;
    height: 24px;
}

.tpl-ai-feature-text h4 {
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--tpl-text);
}

.tpl-ai-feature-text p {
    font-size: 0.9rem;
    color: var(--tpl-text-muted);
    margin: 0;
}

/* ========== 使用场景 ========== */
.tpl-scenarios {
    background: var(--tpl-bg);
}

.tpl-scenarios-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.tpl-scenario-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--tpl-shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--tpl-border-light);
}

.tpl-scenario-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--tpl-shadow-lg);
}

.tpl-scenario-img {
    height: 180px;
    background-color: #f1f5f9;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 16px;
}

.tpl-scenario-icon {
    width: 48px;
    height: 48px;
    background: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--tpl-shadow);
}

.tpl-scenario-icon svg {
    width: 24px;
    height: 24px;
    color: var(--tpl-primary);
}

.tpl-scenario-title {
    font-size: 1.1rem;
    font-weight: 700;
    padding: 20px 20px 8px;
    color: var(--tpl-text);
}

.tpl-scenario-desc {
    font-size: 0.9rem;
    color: var(--tpl-text-secondary);
    padding: 0 20px 20px;
    line-height: 1.6;
}

/* ========== 核心功能 ========== */
.tpl-features {
    background: #f8fafc;
}

.tpl-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.tpl-feature-card {
    background: white;
    padding: 32px;
    border-radius: 12px;
    box-shadow: var(--tpl-shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--tpl-border-light);
}

.tpl-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--tpl-shadow-lg);
}

.tpl-feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.tpl-feature-icon svg {
    width: 28px;
    height: 28px;
}

.tpl-icon-blue {
    background: #dbeafe;
    color: #2563eb;
}

.tpl-icon-green {
    background: #dcfce7;
    color: #16a34a;
}

.tpl-icon-orange {
    background: #ffedd5;
    color: #ea580c;
}

.tpl-icon-purple {
    background: #f3e8ff;
    color: #9333ea;
}

.tpl-icon-pink {
    background: #fce7f3;
    color: #db2777;
}

.tpl-icon-cyan {
    background: #cffafe;
    color: #0891b2;
}

.tpl-feature-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--tpl-text);
}

.tpl-feature-card p {
    font-size: 0.95rem;
    color: var(--tpl-text-secondary);
    line-height: 1.6;
}

/* ========== 套餐定价 ========== */
.tpl-packages {
    background: var(--tpl-bg);
}

.tpl-loading {
    display: flex;
    justify-content: center;
    padding: 60px 0;
}

.tpl-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--tpl-border);
    border-top-color: var(--tpl-primary);
    border-radius: 50%;
    animation: tpl-spin 1s linear infinite;
}

@keyframes tpl-spin {
    to { transform: rotate(360deg); }
}

.tpl-packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.tpl-package-card {
    background: white;
    border: 1px solid var(--tpl-border);
    border-radius: 12px;
    padding: 32px 24px;
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.tpl-package-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--tpl-shadow-lg);
}

.tpl-package-card.featured {
    border-color: var(--tpl-primary);
    box-shadow: 0 0 0 1px var(--tpl-primary);
}

.tpl-package-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--tpl-primary);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 16px;
    border-radius: 100px;
}

.tpl-package-name {
    font-size: 1.35rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 8px;
    color: var(--tpl-text);
}

.tpl-package-desc {
    font-size: 0.9rem;
    color: var(--tpl-text-muted);
    text-align: center;
    margin-bottom: 20px;
}

.tpl-package-price {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid var(--tpl-border-light);
    border-bottom: 1px solid var(--tpl-border-light);
    margin-bottom: 20px;
}

.tpl-price-value {
    font-size: 3rem;
    font-weight: 800;
    color: var(--tpl-text);
    line-height: 1;
}

.tpl-price-currency {
    font-size: 1.25rem;
    color: var(--tpl-text-muted);
    vertical-align: super;
}

.tpl-price-period {
    font-size: 0.9rem;
    color: var(--tpl-text-muted);
    margin-top: 8px;
}

.tpl-package-features {
    flex: 1;
    margin-bottom: 20px;
}

.tpl-package-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 0.9rem;
    color: var(--tpl-text-secondary);
}

.tpl-check-icon {
    width: 20px;
    height: 20px;
    background: #dcfce7;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tpl-check-icon svg {
    width: 12px;
    height: 12px;
    color: #16a34a;
}

/* ========== 联系我们 ========== */
.tpl-contact {
    background: #f8fafc;
}

.tpl-contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.tpl-contact-card {
    background: white;
    padding: 40px 32px;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--tpl-shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--tpl-border-light);
}

.tpl-contact-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--tpl-shadow-lg);
}

.tpl-contact-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tpl-contact-icon svg {
    width: 28px;
    height: 28px;
}

.tpl-icon-email {
    background: #dbeafe;
    color: #2563eb;
}

.tpl-icon-phone {
    background: #dcfce7;
    color: #16a34a;
}

.tpl-icon-chat {
    background: #f3e8ff;
    color: #9333ea;
}

.tpl-contact-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--tpl-text);
}

.tpl-contact-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--tpl-text);
    margin-bottom: 8px;
}

.tpl-contact-hint {
    font-size: 0.85rem;
    color: var(--tpl-text-muted);
}

/* ========== 页脚 ========== */
.tpl-footer {
    background: var(--tpl-footer-bg);
    padding: 60px 0 30px;
    color: #94a3b8;
}

.tpl-footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.tpl-footer-brand .tpl-logo {
    margin-bottom: 16px;
}

.tpl-footer-brand .tpl-logo-text {
    color: white;
}

.tpl-footer-brand .tpl-logo-icon {
    background: white;
    color: var(--tpl-primary);
}

.tpl-footer-brand p {
    font-size: 0.9rem;
    line-height: 1.6;
}

.tpl-footer-links h4 {
    color: white;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.tpl-footer-links a {
    display: block;
    color: #64748b;
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 10px;
    transition: color 0.2s;
}

.tpl-footer-links a:hover {
    color: white;
}

.tpl-footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 0.85rem;
}

.tpl-footer-bottom a {
    color: #64748b;
    text-decoration: none;
}

.tpl-footer-bottom a:hover {
    color: white;
}

/* ========== 响应式设计 ========== */
@media (max-width: 1024px) {
    section {
        padding: 80px 0;
    }
    
    .tpl-hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .tpl-hero-visual {
        max-width: 500px;
        margin: 0 auto;
    }
    
    .tpl-ai-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .tpl-scenarios-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tpl-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tpl-footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tpl-footer-brand {
        grid-column: 1 / -1;
    }
    
    /* 平板及以下隐藏桌面导航，显示移动端菜单按钮 */
    .tpl-nav-menu,
    .tpl-custom-menu,
    .tpl-phone {
        display: none !important;
    }
    
    .tpl-mobile-btn {
        display: flex;
    }
}

@media (max-width: 768px) {
    .tpl-container {
        padding: 0 16px;
    }
    
    .tpl-nav-inner {
        height: 60px;
    }
    
    .tpl-hero {
        padding: 100px 0 60px;
    }
    
    .tpl-hero-title {
        font-size: 1.75rem;
    }
    
    .tpl-hero-desc {
        font-size: 1rem;
    }
    
    .tpl-hero-buttons {
        flex-direction: column;
    }
    
    .tpl-hero-buttons .tpl-btn {
        width: 100%;
        justify-content: center;
    }
    
    .tpl-hero-features {
        flex-direction: column;
        gap: 12px;
    }
    
    .tpl-chat-body {
        grid-template-columns: 1fr;
    }
    
    .tpl-chat-visitors {
        display: none;
    }
    
    .tpl-scenarios-grid,
    .tpl-features-grid,
    .tpl-contact-grid {
        grid-template-columns: 1fr;
    }
    
    .tpl-section-header {
        margin-bottom: 40px;
    }
    
    section {
        padding: 60px 0;
    }
    
    .tpl-section-header {
        margin-bottom: 40px;
    }
    
    .tpl-footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .tpl-logo-text {
        font-size: 1rem;
    }
    
    .tpl-auth-buttons .tpl-btn {
        padding: 8px 14px;
        font-size: 0.85rem;
    }
    
    .tpl-hero-title {
        font-size: 1.5rem;
    }
    
    .tpl-section-title {
        font-size: 1.5rem;
    }
    
    .tpl-footer-grid {
        grid-template-columns: 1fr;
    }
}

/* ========== 桌面端大屏 ========== */
@media (min-width: 1025px) {
    .tpl-mobile-menu {
        display: none !important;
    }
}

