/**
 * 科技风格首页模板样式 - Tech (蓝色商务风格)
 * 蓝色主色调，商务大气，参考图片设计
 */

 body{
    margin: 0;
    padding: 0;
 }

/* ========== CSS变量定义 ========== */
:root {
    /* 从模板变量读取，带默认值 */
    --tpl-primary: var(--template-primaryColor, #6366f1);
    --tpl-secondary: var(--template-secondaryColor, #ec4899);
    --tpl-bg: var(--template-bgColor, #fafbfc);
    --tpl-text: var(--template-textColor, #0f172a);
    --tpl-header-bg: var(--template-headerBgColor, rgba(255, 255, 255, 0.8));
    --tpl-footer-bg: var(--template-footerBgColor, #0a0b0f);
    --tpl-radius: var(--template-borderRadius, 16px);
    
    /* 衍生颜色 */
    --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: #475569;
    --tpl-text-muted: #94a3b8;
    --tpl-border: #e2e8f0;
    --tpl-border-light: #f1f5f9;
    --tpl-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    --tpl-shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.1);
    
    /* 新增渐变色 */
    --tpl-gradient-1: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
    --tpl-gradient-2: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
    --tpl-gradient-3: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    --tpl-accent: #06b6d4;
    --tpl-success: #10b981;
    --tpl-bg-glass: rgba(255, 255, 255, 0.8);
    --tpl-bg-card: #ffffff;
    --tpl-bg-elevated: #ffffff;
}

/* ========== 基础重置 ========== */
.tpl-wrapper {
    font-family: 'Plus Jakarta Sans', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: var(--tpl-bg);
    color: var(--tpl-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    position: relative;
    overflow-x: hidden;
}

.tpl-wrapper *,
.tpl-wrapper *::before,
.tpl-wrapper *::after {
    box-sizing: border-box;
}

.tpl-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ========== 背景效果 ========== */
.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.15;
}

.tpl-bg-orb-1 {
    width: 600px;
    height: 600px;
    background: rgba(99,102,241,0.15);
    top: -200px;
    left: -100px;
}

.tpl-bg-orb-2 {
    width: 500px;
    height: 500px;
    background: rgba(236,72,153,0.1);
    bottom: 20%;
    right: -100px;
    animation-delay: -8s;
}

.tpl-bg-orb-3 {
    width: 400px;
    height: 400px;
    background: rgba(6,182,212,0.08);
    top: 50%;
    left: 30%;
    animation-delay: -15s;
}

@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.6;
}

/* ========== 主导航栏 ========== */
.tpl-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    padding: 16px 0;
    transition: all 0.3s ease;
}

.tpl-nav.scrolled {
    background: var(--tpl-bg-glass);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--tpl-border);
    padding: 12px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.tpl-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.tpl-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex-shrink: 0;
}

.tpl-logo-icon {
    width: 44px;
    height: 44px;
    background: var(--tpl-gradient-1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 16px rgba(99,102,241,0.4);
}

.tpl-logo-icon.has-logo {
    background: transparent;
    box-shadow: none;
}

.tpl-logo-icon svg {
    width: 24px;
    height: 24px;
}

.tpl-logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 12px;
}

.tpl-logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--tpl-text);
}

.tpl-nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--tpl-bg-card);
    padding: 6px;
    border-radius: 100px;
    border: 1px solid var(--tpl-border);
}

.tpl-nav-menu.custom-menu {
    display: none;
    padding: 0;
    border: none;
    background: none;
}

.tpl-nav-menu.custom-menu:not(:empty) {
    display: flex;
}

.tpl-nav-menu.custom-menu .tpl-nav-link {
    background: var(--tpl-bg-card);
    border: 1px solid var(--tpl-border);
}

.tpl-nav-link {
    padding: 8px 18px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--tpl-text-secondary);
    text-decoration: none;
    border-radius: 100px;
    transition: all 0.2s ease;
}

.tpl-nav-link:hover {
    color: var(--tpl-text);
    background: var(--tpl-border-light);
}

.tpl-nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.tpl-phone {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--tpl-text);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    margin-right: 8px;
}

.tpl-phone svg {
    width: 18px;
    height: 18px;
    color: var(--tpl-text);
}

.tpl-phone:hover {
    color: var(--tpl-primary);
}

.tpl-phone:hover svg {
    color: var(--tpl-primary);
}

.tpl-auth-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tpl-mobile-btn {
    display: none;
    background: none;
    border: none;
    padding: 10px;
    cursor: pointer;
    color: var(--tpl-text);
    border-radius: 8px;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
}

.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: 12px 24px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 12px;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}

.tpl-btn-primary {
    background: var(--tpl-gradient-1);
    color: white;
    box-shadow: 0 4px 20px rgba(99,102,241,0.4);
}

.tpl-btn-primary:hover {
    background: var(--tpl-gradient-1);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(99,102,241,0.5);
}

.tpl-btn-secondary {
    background: var(--tpl-bg-card);
    color: var(--tpl-text);
    border: 1px solid var(--tpl-border);
}

.tpl-btn-secondary:hover {
    border-color: var(--tpl-primary);
    color: var(--tpl-text);
    background: var(--tpl-bg-elevated);
    transform: translateY(-2px);
}

.tpl-btn-outline {
    background: transparent;
    color: var(--tpl-primary);
    border: 1px solid var(--tpl-primary);
}

.tpl-btn-outline:hover {
    background: var(--tpl-primary);
    color: white;
}

.tpl-btn-white {
    background: white;
    color: var(--tpl-primary);
    border: 2px solid white;
}

.tpl-btn-white:hover {
    background: #f8fafc;
    border-color: #f8fafc;
}

.tpl-btn-white-outline {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.tpl-btn-white-outline:hover {
    background: white;
    color: var(--tpl-primary);
    border-color: white;
}

.tpl-btn-sm {
    padding: 8px 16px;
    font-size: 0.875rem;
    white-space: nowrap;
    border-radius: 8px;
}

.tpl-btn-lg {
    padding: 14px 28px;
    font-size: 0.95rem;
    border-radius: 12px;
}

.tpl-btn-xl {
    padding: 16px 32px;
    font-size: 1rem;
    border-radius: 14px;
}

/* ========== 移动端菜单 ========== */
.tpl-mobile-menu {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    z-index: 1001;
    padding: 80px 24px 32px;
    flex-direction: column;
    gap: 4px;
    overflow-y: auto;
    overflow-x: hidden;
}

.tpl-mobile-menu.active {
    display: flex;
    animation: tpl-slideIn 0.3s ease;
}

@keyframes tpl-slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tpl-mobile-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--tpl-bg-card);
    border: 1px solid var(--tpl-border);
    padding: 10px;
    border-radius: 10px;
    cursor: pointer;
    color: var(--tpl-text);
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.tpl-mobile-close:hover {
    background: var(--tpl-border-light);
}

.tpl-mobile-close svg {
    width: 20px;
    height: 20px;
}

.tpl-mobile-link {
    padding: 16px 20px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--tpl-text);
    text-decoration: none;
    background: transparent;
    border-radius: 12px;
    text-align: left;
    border: none;
    transition: all 0.2s ease;
}

.tpl-mobile-link:hover,
.tpl-mobile-link:active {
    background: var(--tpl-border-light);
    color: var(--tpl-primary);
}

.tpl-mobile-custom-menu {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 8px;
    padding-top: 16px;
    border-top: 1px solid var(--tpl-border);
}

.tpl-mobile-menu-footer {
    margin-top: auto;
    padding: 24px 0 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    border-top: 1px solid var(--tpl-border);
}

.tpl-mobile-menu-footer .tpl-btn {
    display: flex;
    width: 100%;
    justify-content: center;
    padding: 14px 20px;
    font-size: 0.95rem;
    border-radius: 12px;
}

/* ========== Hero 区域 ========== */
.tpl-hero {
    padding: 120px 0 80px;
    margin-top: 0;
    background: transparent;
    position: relative;
    z-index: 1;
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
}

.tpl-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.tpl-hero-content {
    max-width: 560px;
    text-align: left;
}

.tpl-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: var(--tpl-bg-card);
    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-fadeUp 0.6s ease;
}

.tpl-badge-dot {
    width: 8px;
    height: 8px;
    background: var(--tpl-success);
    border-radius: 50%;
    animation: tpl-pulse 2s infinite;
}

@keyframes tpl-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

.tpl-hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
    color: var(--tpl-text);
    animation: tpl-fadeUp 0.6s ease 0.1s both;
}

.tpl-gradient-text {
    background: var(--tpl-gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tpl-highlight {
    color: var(--tpl-primary);
}

.tpl-hero-desc {
    font-size: 1.2rem;
    color: var(--tpl-text-secondary);
    line-height: 1.7;
    margin-bottom: 40px;
    animation: tpl-fadeUp 0.6s ease 0.2s both;
}

.tpl-hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: center;
    animation: tpl-fadeUp 0.6s ease 0.3s both;
}

.tpl-hero-buttons .tpl-btn {
    min-width: 140px;
}

.tpl-hero-visual {
    position: relative;
    animation: tpl-fadeUp 0.6s ease 0.4s both;
}

@keyframes tpl-fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

.tpl-hero-features {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 40px;
    animation: tpl-fadeUp 0.6s ease 0.5s both;
}

.tpl-hero-feature {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255,255,255,0.5);
    border: 1px solid var(--tpl-border);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--tpl-text-secondary);
    transition: all 0.25s ease;
}

.tpl-hero-feature:hover {
    background: white;
    border-color: var(--tpl-primary);
    color: var(--tpl-text);
    transform: translateY(-2px);
}

.tpl-hero-feature svg {
    width: 16px;
    height: 16px;
    color: var(--tpl-primary);
}

.tpl-chat-preview {
    background: white;
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    border: 1px solid var(--tpl-border);
    max-width: 420px;
    margin-left: auto;
}

.tpl-chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: var(--tpl-gradient-1);
    color: white;
    border-bottom: none;
}

.tpl-chat-title-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tpl-chat-header-avatar {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tpl-chat-header-avatar svg {
    width: 20px;
    height: 20px;
}

.tpl-chat-header-info h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 2px 0;
}

.tpl-chat-header-info span {
    font-size: 0.75rem;
    opacity: 0.9;
}

.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;
    flex-shrink: 0;
}

.tpl-chat-avatar svg {
    width: 24px;
    height: 24px;
    color: white;
}

.tpl-chat-info {
    flex: 1;
}

.tpl-chat-info h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 4px 0;
    color: white;
}

.tpl-online-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    opacity: 0.95;
    color: white;
}

.tpl-status-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    display: inline-block;
    animation: tpl-pulse-dot 2s infinite;
}

@keyframes tpl-pulse-dot {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

.tpl-chat-dots {
    display: flex;
    gap: 6px;
}

.tpl-chat-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
}

.tpl-chat-body {
    padding: 16px;
    min-height: 280px;
    background: #f8fafc;
}

.tpl-chat-dialog {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tpl-chat-bubble {
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 0.875rem;
    line-height: 1.5;
    max-width: 85%;
    position: relative;
    animation: tpl-msgIn 0.4s ease;
}

@keyframes tpl-msgIn { from { opacity: 0; transform: translateY(10px); } }

.tpl-bubble-agent {
    background: white;
    color: var(--tpl-text);
    border: 1px solid var(--tpl-border-light);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.tpl-bubble-user {
    background: var(--tpl-gradient-1);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
    box-shadow: 0 4px 12px rgba(99,102,241,0.2);
}

.tpl-chat-bubble p {
    margin: 0;
}

/* ========== 通用区块样式 ========== */
section {
    padding: 100px 0;
    position: relative;
    z-index: 1;
}

.tpl-section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.tpl-channels-header {
    max-width: 100%;
    margin-bottom: 60px;
}

.tpl-channels-header .tpl-section-title {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    text-align: left;
    margin-bottom: 0;
}

.tpl-section-tag {
    display: inline-block;
    padding: 8px 16px;
    background: linear-gradient(135deg, rgba(99,102,241,0.1), rgba(236,72,153,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;
}

/* ========== 沟通渠道展示区 ========== */
.tpl-channels {
    background: var(--tpl-bg-elevated);
    border-top: 1px solid var(--tpl-border);
}

.tpl-channels-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: start;
    margin-bottom: 40px;
}

.tpl-channels-grid-two {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 48px;
}

@media (min-width: 1025px) {
    .tpl-channels-grid-two {
        gap: 64px;
    }
}

.tpl-channels-chat {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.tpl-chat-demo {
    background: var(--tpl-bg-card);
    border: 1px solid var(--tpl-border);
    border-radius: 20px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tpl-chat-demo:hover {
    transform: translateY(-2px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.tpl-chat-messages {
    padding: 20px;
    min-height: 240px;
    max-height: 400px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: linear-gradient(to bottom, #f8fafc 0%, #ffffff 100%);
    flex: 1;
    overflow-y: auto;
}

.tpl-chat-msg {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    animation: tpl-msgIn 0.4s ease;
}

.tpl-chat-msg.tpl-msg-user {
    flex-direction: row-reverse;
}

.tpl-msg-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: var(--tpl-gradient-1);
    color: white;
}

.tpl-msg-avatar svg {
    width: 18px;
    height: 18px;
    color: white;
}

.tpl-msg-avatar-user {
    background: var(--tpl-gradient-2);
}

.tpl-msg-content {
    max-width: 70%;
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 0.95rem;
    line-height: 1.6;
    position: relative;
}

.tpl-msg-content p {
    margin: 0;
}

.tpl-msg-agent-content {
    background: var(--tpl-border-light);
    color: var(--tpl-text);
    border-bottom-left-radius: 4px;
}

.tpl-msg-user-content {
    background: var(--tpl-gradient-1);
    color: white;
    border-bottom-right-radius: 4px;
    box-shadow: 0 4px 12px rgba(99,102,241,0.25);
}

.tpl-chat-actions {
    padding: 16px 20px;
    border-top: 1px solid var(--tpl-border);
    background: white;
    display: flex;
    gap: 10px;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.tpl-quick-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(99,102,241,0.1);
    color: var(--tpl-primary);
    border: none;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.tpl-quick-action-btn svg {
    width: 16px;
    height: 16px;
}

.tpl-quick-action-btn:hover {
    background: var(--tpl-primary);
    color: white;
    transform: translateY(-1px);
}

.tpl-channels-form {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
}

.tpl-ai-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
}

.tpl-ai-content .tpl-section-tag {
    margin-bottom: 12px;
}

.tpl-ai-content .tpl-section-title {
    font-size: 2.25rem;
    line-height: 1.25;
    text-align: left;
    margin-bottom: 16px;
}

.tpl-ai-content .tpl-section-desc {
    max-width: 100%;
    text-align: left;
    margin-bottom: 24px;
}

.tpl-ai-features {
    display: grid;
    gap: 12px;
    width: 100%;
}

.tpl-ai-feature-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: var(--tpl-bg-card);
    border: 1px solid var(--tpl-border);
    border-radius: 12px;
    transition: all 0.25s ease;
}

.tpl-ai-feature-item:hover {
    border-color: var(--tpl-primary);
    transform: translateX(4px);
    box-shadow: var(--tpl-shadow);
}

.tpl-ai-feature-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tpl-ai-feature-icon.purple { background: rgba(139,92,246,0.1); color: #8b5cf6; }
.tpl-ai-feature-icon.blue { background: rgba(59,130,246,0.1); color: #3b82f6; }
.tpl-ai-feature-icon.cyan { background: rgba(6,182,212,0.1); color: #06b6d4; }
.tpl-ai-feature-icon.green { background: rgba(16,185,129,0.1); color: #10b981; }

.tpl-ai-feature-icon svg { width: 22px; height: 22px; }

.tpl-ai-feature-text h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 2px 0;
    color: var(--tpl-text);
}

.tpl-ai-feature-text p {
    font-size: 0.85rem;
    color: var(--tpl-text-muted);
    margin: 0;
}

.tpl-trial-banner {
    background: var(--tpl-gradient-1);
    border-radius: 20px;
    padding: 28px 32px;
    color: white;
    margin-top: 48px;
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.3);
}

.tpl-trial-banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.tpl-trial-text {
    font-size: 1.1rem;
    font-weight: 600;
    white-space: nowrap;
}

.tpl-trial-input-group {
    display: flex;
    gap: 12px;
    flex: 1;
    min-width: 300px;
    max-width: 500px;
}

.tpl-trial-input {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    background: white;
    color: var(--tpl-text);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.tpl-trial-input::placeholder {
    color: var(--tpl-text-muted);
}

/* ========== 功能亮点网格 ========== */
.tpl-features {
    background: #fafbfc;
}

.tpl-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 60px;
}

.tpl-feature-card {
    background: var(--tpl-bg-card);
    padding: 40px 32px;
    border-radius: 24px;
    box-shadow: var(--tpl-shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--tpl-border);
    text-align: left;
    position: relative;
    overflow: hidden;
}

.tpl-feature-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--tpl-gradient-1);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.tpl-feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--tpl-shadow-lg);
    border-color: transparent;
}

.tpl-feature-card:hover::after {
    transform: scaleX(1);
}

.tpl-feature-icon {
    width: 56px;
    height: 56px;
    margin: 0 0 20px 0;
    background: rgba(99,102,241,0.1);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--tpl-primary);
}

.tpl-feature-card:nth-child(2) .tpl-feature-icon { background: rgba(6,182,212,0.1); color: #06b6d4; }
.tpl-feature-card:nth-child(3) .tpl-feature-icon { background: rgba(236,72,153,0.1); color: #ec4899; }
.tpl-feature-card:nth-child(4) .tpl-feature-icon { background: rgba(16,185,129,0.1); color: #10b981; }
.tpl-feature-card:nth-child(5) .tpl-feature-icon { background: rgba(245,158,11,0.1); color: #f59e0b; }
.tpl-feature-card:nth-child(6) .tpl-feature-icon { background: rgba(59,130,246,0.1); color: #3b82f6; }

.tpl-feature-icon svg {
    width: 28px;
    height: 28px;
}

.tpl-feature-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--tpl-text);
}

.tpl-feature-card p {
    font-size: 1rem;
    color: var(--tpl-text-secondary);
    line-height: 1.6;
    margin: 0;
}

.tpl-features-cta {
    text-align: center;
}

/* ========== 服务营销解决方案 ========== */
.tpl-solutions {
    background: var(--tpl-bg);
}

.tpl-solutions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.tpl-solution-card {
    background: white;
    border: 1px solid var(--tpl-border);
    border-radius: 16px;
    padding: 28px 20px;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tpl-solution-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--tpl-shadow-lg);
    border-color: var(--tpl-primary);
}

.tpl-solution-icon {
    width: 56px;
    height: 56px;
    margin: 0 0 16px 0;
    background: var(--tpl-primary-light);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--tpl-primary);
}

.tpl-solution-icon svg {
    width: 28px;
    height: 28px;
}

.tpl-solution-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--tpl-text);
}

.tpl-solution-card p {
    font-size: 0.9rem;
    color: var(--tpl-text-secondary);
    line-height: 1.6;
    margin-bottom: 24px;
    flex: 1;
}


/* ========== 套餐定价 ========== */
.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: 20px;
    padding: 32px 24px;
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.tpl-package-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--tpl-shadow-lg);
}

.tpl-package-card.featured {
    border-color: var(--tpl-primary);
    box-shadow: 0 0 0 1px var(--tpl-primary), var(--tpl-shadow-lg);
}

.tpl-package-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--tpl-gradient-1);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 100px;
}

.tpl-package-name {
    font-size: 1.5rem;
    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: 24px;
}

.tpl-package-price {
    text-align: center;
    padding: 24px 0;
    border-top: 1px solid var(--tpl-border-light);
    border-bottom: 1px solid var(--tpl-border-light);
    margin-bottom: 24px;
}

.tpl-price-value {
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--tpl-text);
    line-height: 1;
}

.tpl-price-currency {
    font-size: 1.5rem;
    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: 32px;
}

.tpl-package-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    font-size: 0.95rem;
    color: var(--tpl-text-secondary);
}

.tpl-check-icon {
    width: 20px;
    height: 20px;
    background: rgba(16,185,129,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tpl-check-icon svg {
    width: 12px;
    height: 12px;
    color: #10b981;
}

/* ========== 行动号召横幅 ========== */
.tpl-cta-banner {
    background: var(--tpl-gradient-1);
    color: white;
    padding: 80px 0;
    overflow: hidden;
}

.tpl-cta-banner-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.tpl-cta-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 32px;
    color: white;
    letter-spacing: -0.02em;
}

.tpl-cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.tpl-cta-buttons .tpl-btn {
    min-width: 160px;
}

/* ========== 联系我们 ========== */
.tpl-contact {
    background: var(--tpl-bg-elevated);
    border-top: 1px solid var(--tpl-border);
}

.tpl-contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.tpl-contact-card {
    background: white;
    padding: 36px 24px;
    border-radius: 20px;
    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: 56px;
    height: 56px;
    margin: 0 auto 20px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tpl-contact-icon svg {
    width: 28px;
    height: 28px;
}

.tpl-icon-email {
    background: rgba(59,130,246,0.1);
    color: #3b82f6;
}

.tpl-icon-phone {
    background: rgba(16,185,129,0.1);
    color: #10b981;
}

.tpl-icon-chat {
    background: rgba(139,92,246,0.1);
    color: #8b5cf6;
}

.tpl-contact-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--tpl-text);
}

.tpl-contact-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--tpl-text);
    margin-bottom: 8px;
}

.tpl-contact-hint {
    font-size: 0.9rem;
    color: var(--tpl-text-muted);
}

/* ========== 页脚 ========== */
.tpl-footer {
    background: var(--tpl-footer-bg);
    padding: 80px 0 40px;
    color: #94a3b8;
}

.tpl-footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(5, 1fr);
    gap: 60px;
    margin-bottom: 60px;
}

.tpl-footer-brand .tpl-logo {
    margin-bottom: 20px;
}

.tpl-footer-brand .tpl-logo-text {
    color: white;
    font-size: 1.5rem;
}

.tpl-footer-brand .tpl-logo-icon {
    background: white;
    color: var(--tpl-primary);
}

.tpl-footer-brand p {
    font-size: 1rem;
    line-height: 1.7;
    color: #94a3b8;
    max-width: 300px;
}

.tpl-footer-links h4 {
    color: white;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.tpl-footer-links a {
    display: block;
    color: #64748b;
    text-decoration: none;
    font-size: 0.95rem;
    margin-bottom: 12px;
    transition: color 0.2s;
}

.tpl-footer-links a:hover {
    color: white;
}

.tpl-footer-contact h4 {
    color: white;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.tpl-footer-phone {
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    margin-bottom: 8px;
}

.tpl-footer-address {
    font-size: 0.95rem;
    color: #64748b;
    margin-bottom: 0;
    line-height: 1.6;
}

.tpl-footer-bottom {
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 0.9rem;
}

.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-nav-link {
        padding: 6px 14px;
        font-size: 0.85rem;
    }
    
    .tpl-phone {
        display: none;
    }
    
    .tpl-btn-sm {
        padding: 6px 14px;
        font-size: 0.85rem;
    }
    
    .tpl-hero {
        min-height: auto;
        padding: 120px 0 80px;
    }
    
    .tpl-hero-grid {
        grid-template-columns: 1fr;
        gap: 48px;
        text-align: center;
    }
    
    .tpl-hero-content {
        max-width: 640px;
        margin: 0 auto;
    }
    
    .tpl-hero-badge {
        margin-bottom: 24px;
    }
    
    .tpl-hero-title {
        font-size: 2.75rem;
    }
    
    .tpl-hero-buttons {
        justify-content: center;
    }
    
    .tpl-hero-features {
        justify-content: center;
    }
    
    .tpl-hero-visual {
        max-width: 420px;
        margin: 0 auto;
    }
    
    .tpl-chat-preview {
        max-width: 100%;
    }
    
    .tpl-channels-grid,
    .tpl-channels-grid-two {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .tpl-channels-grid-two .tpl-ai-content {
        order: -1;
        text-align: center;
        align-items: center;
    }
    
    .tpl-ai-content .tpl-section-title {
        text-align: center;
        font-size: 2rem;
    }
    
    .tpl-ai-content .tpl-section-desc {
        text-align: center;
    }
    
    .tpl-ai-features {
        max-width: 500px;
    }
    
    .tpl-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tpl-solutions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tpl-footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .tpl-footer-brand {
        grid-column: 1 / -1;
    }
    
    /* 平板及以下隐藏桌面导航，显示移动端菜单按钮 */
    .tpl-nav-menu {
        display: none !important;
    }
    
    .tpl-nav-menu.custom-menu {
        display: none !important;
    }
    
    .tpl-mobile-btn {
        display: flex;
    }
}

@media (max-width: 768px) {
    .tpl-container {
        padding: 0 20px;
    }
    
    .tpl-nav {
        padding: 12px 0;
    }
    
    .tpl-nav.scrolled {
        padding: 10px 0;
    }
    
    .tpl-nav-inner {
        gap: 12px;
    }
    
    .tpl-logo-icon {
        width: 36px;
        height: 36px;
        border-radius: 10px;
    }
    
    .tpl-logo-icon svg {
        width: 20px;
        height: 20px;
    }
    
    .tpl-logo-text {
        font-size: 1.1rem;
    }
    
    /* 移动端：隐藏次要按钮，只保留主按钮和汉堡菜单 */
    .tpl-nav-actions .tpl-btn-outline,
    .tpl-nav-actions .tpl-btn-secondary,
    .tpl-nav-actions > a[href="/merchant/login"] {
        display: none !important;
    }
    
    .tpl-nav-actions .tpl-btn-primary {
        padding: 8px 16px;
        font-size: 0.85rem;
        border-radius: 8px;
    }
    
    .tpl-mobile-btn {
        order: 10;
    }
    
    .tpl-auth-buttons {
        gap: 8px;
    }
    
    .tpl-auth-buttons .tpl-btn {
        padding: 8px 14px;
        font-size: 0.85rem;
    }
    
    .tpl-hero {
        padding: 100px 0 60px;
        min-height: auto;
    }
    
    .tpl-hero-title {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .tpl-hero-title br {
        display: none;
    }
    
    .tpl-hero-desc {
        font-size: 0.95rem;
        margin-bottom: 28px;
    }
    
    .tpl-hero-badge {
        padding: 8px 16px;
        font-size: 0.8rem;
        margin-bottom: 20px;
    }
    
    .tpl-hero-buttons {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }
    
    .tpl-hero-buttons .tpl-btn {
        width: auto;
        min-width: 120px;
        flex: 0 0 auto;
        padding: 12px 24px;
        font-size: 0.9rem;
    }
    
    .tpl-hero-buttons .tpl-btn-xl {
        padding: 12px 24px;
    }
    
    .tpl-hero-features {
        gap: 8px;
        margin-top: 28px;
    }
    
    .tpl-hero-feature {
        padding: 6px 12px;
        font-size: 0.75rem;
    }
    
    .tpl-hero-feature svg {
        width: 14px;
        height: 14px;
    }
    
    .tpl-hero-visual {
        max-width: 100%;
    }
    
    .tpl-chat-preview {
        border-radius: 16px;
    }
    
    .tpl-chat-body {
        min-height: 200px;
        padding: 16px;
    }
    
    .tpl-chat-bubble {
        max-width: 90%;
    }
    
    .tpl-chat-bubble p {
        font-size: 0.85rem;
    }
    
    .tpl-channels-header .tpl-section-title {
        text-align: center;
    }
    
    .tpl-channels-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .tpl-chat-demo {
        border-radius: 16px;
    }
    
    .tpl-chat-messages {
        min-height: 180px;
        padding: 16px;
        gap: 12px;
    }
    
    .tpl-msg-content {
        font-size: 0.85rem;
        padding: 10px 14px;
        max-width: 85%;
    }
    
    .tpl-msg-avatar {
        width: 28px;
        height: 28px;
    }
    
    .tpl-msg-avatar svg {
        width: 14px;
        height: 14px;
    }
    
    .tpl-chat-actions {
        padding: 12px;
        gap: 6px;
        flex-wrap: wrap;
    }
    
    .tpl-quick-action-btn {
        padding: 6px 10px;
        font-size: 0.75rem;
    }
    
    .tpl-quick-action-btn svg {
        width: 12px;
        height: 12px;
    }
    
    .tpl-section-tag {
        font-size: 0.7rem;
        padding: 6px 14px;
    }
    
    .tpl-section-title {
        font-size: 1.5rem;
    }
    
    .tpl-section-desc {
        font-size: 0.9rem;
    }
    
    .tpl-ai-content .tpl-section-title {
        font-size: 1.5rem;
    }
    
    .tpl-ai-features {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .tpl-ai-feature-item {
        padding: 14px;
    }
    
    .tpl-trial-banner {
        padding: 32px 20px;
        border-radius: 16px;
    }
    
    .tpl-trial-banner-content {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }
    
    .tpl-trial-text {
        text-align: center;
        font-size: 1rem;
    }
    
    .tpl-trial-input-group {
        min-width: 100%;
        flex-direction: column;
        gap: 12px;
    }
    
    .tpl-trial-input {
        width: 100%;
    }
    
    .tpl-trial-input-group .tpl-btn {
        width: 100%;
    }
    
    .tpl-features-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .tpl-feature-card {
        padding: 24px;
    }
    
    .tpl-feature-card h3 {
        font-size: 1.1rem;
    }
    
    .tpl-solutions-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .tpl-solution-card {
        padding: 24px;
    }
    
    .tpl-contact-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .tpl-contact-card {
        padding: 24px;
    }
    
    .tpl-section-header {
        margin-bottom: 32px;
    }
    
    .tpl-cta-banner {
        padding: 48px 0;
    }
    
    .tpl-cta-banner-content {
        padding: 0 20px;
    }
    
    .tpl-cta-title {
        font-size: 1.35rem;
        line-height: 1.4;
        margin-bottom: 24px;
    }
    
    .tpl-cta-buttons {
        flex-direction: column;
        gap: 12px;
        padding: 0;
    }
    
    .tpl-cta-buttons .tpl-btn {
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
        box-sizing: border-box;
    }
    
    .tpl-footer {
        padding: 48px 0 24px;
    }
    
    .tpl-footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
    
    .tpl-footer-brand {
        grid-column: 1 / -1;
    }
    
    .tpl-footer-links h4,
    .tpl-footer-contact h4 {
        font-size: 0.9rem;
        margin-bottom: 16px;
    }
    
    .tpl-footer-links a {
        font-size: 0.85rem;
        margin-bottom: 10px;
    }
}

@media (max-width: 480px) {
    .tpl-container {
        padding: 0 16px;
    }
    
    /* 极小屏幕：只显示 Logo 和汉堡菜单 */
    .tpl-logo-text {
        display: none;
    }
    
    .tpl-logo-icon {
        width: 40px;
        height: 40px;
    }
    
    .tpl-nav-actions .tpl-btn-primary {
        padding: 8px 12px;
        font-size: 0.8rem;
    }
    
    .tpl-mobile-btn {
        min-width: 40px;
        min-height: 40px;
        padding: 8px;
    }
    
    .tpl-hero-title {
        font-size: 1.75rem;
    }
    
    .tpl-hero-features {
        justify-content: center;
    }
    
    .tpl-hero-feature {
        flex: 0 1 auto;
    }
    
    .tpl-hero-buttons .tpl-btn {
        min-width: 110px;
        padding: 10px 20px;
        font-size: 0.85rem;
    }
    
    .tpl-packages-grid {
        grid-template-columns: 1fr;
    }
    
    .tpl-footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* 超小屏幕优化 */
@media (max-width: 360px) {
    .tpl-nav-actions .tpl-btn-primary {
        display: none !important;
    }
    
    .tpl-hero-title {
        font-size: 1.5rem;
    }
    
    .tpl-hero-buttons {
        flex-direction: column;
    }
    
    .tpl-hero-buttons .tpl-btn {
        width: 100%;
    }
}

@media (min-width: 1025px) {
    .tpl-mobile-menu {
        display: none !important;
    }
}
