/* --- 1. 定义高级变量 --- */
:root {
    --hero-purple: #6366f1;
    --hero-pink: #ec4899;
    --btn-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --glass-surface: rgba(255, 255, 255, 0.6);
    --header-height: 70px;
    --primary-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --hover-gradient: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    --glass-bg: rgba(255, 255, 255, 0.9);
    --glass-border: 1px solid rgba(255, 255, 255, 0.5);
    --card-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.05);
    --glow-shadow: 0 8px 20px -5px rgba(99, 102, 241, 0.4);
    --text-main: #111827;
    --text-sub: #6b7280;
    --primary: #6366f1;
    --glass: rgba(255, 255, 255, 0.75);
    --border-light: rgba(255, 255, 255, 0.8);
}

/* 防止出现横向滚动条及页面顶部间距 */
body {
    overflow-x: hidden;
    margin-top: 0 !important;
}

/* ==========================================
   2. 首页 Hero 区域：背景与极光魔法 (Noiz 风格)
   ========================================== */
.hero-wrapper {
    position: relative;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    text-align: center;
    padding: 140px 20px 150px 20px;
    /* 增加底部呼吸空间 */
    font-family: 'Inter', -apple-system, sans-serif;
    color: #111;
    background-color: transparent;
    /* 去除纯白背景 */
}

/* 底部渐变白纱，消除所有物理割裂感 */
.hero-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 300px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 100%);
    z-index: 1;
    pointer-events: none;
}

.hero-grid-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(99, 102, 241, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.4;
    z-index: 0;
    pointer-events: none;
}

/* 弥散光斑 */
.hero-blob {
    position: absolute;
    filter: blur(140px);
    border-radius: 50%;
    z-index: 0;
    opacity: 0.8;
}

.blob-1 {
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(255, 113, 113, 0.3) 0%, transparent 70%);
    top: -15%;
    right: -10%;
    animation: floatAurora1 20s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
}

.blob-2 {
    width: 70vw;
    height: 70vw;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.25) 0%, transparent 70%);
    bottom: -10%;
    left: -15%;
    animation: floatAurora2 25s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes floatAurora1 {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(-80px, 120px) scale(1.1);
    }
}

@keyframes floatAurora2 {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(120px, -80px) scale(1.15);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}

.hero-title {
    font-size: 64px;
    font-weight: 800;
    letter-spacing: -2px;
    line-height: 1.1;
    margin-bottom: 24px;
    background: linear-gradient(to right, #0f172a 20%, #6366f1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 20px;
    color: #4b5563;
    margin-bottom: 48px;
    font-weight: 500;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.btn-hero-primary {
    background: var(--btn-gradient);
    color: #fff !important;
    padding: 16px 40px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 18px;
    text-decoration: none !important;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 10px 25px -5px rgba(99, 102, 241, 0.5);
}

.btn-hero-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 35px -5px rgba(99, 102, 241, 0.6);
    opacity: 0.95;
}

.btn-hero-secondary {
    background: #fff;
    color: #374151 !important;
    padding: 16px 40px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 18px;
    text-decoration: none !important;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.btn-hero-secondary:hover {
    background: #f9fafb;
    border-color: #6366f1;
    color: #6366f1 !important;
}

.hero-note {
    font-size: 14px;
    color: #9ca3af;
    margin-top: 15px;
    margin-bottom: 70px;
}

.hero-video-container {
    position: relative;
    width: 100%;
    max-width: 960px;
    aspect-ratio: 16 / 9;
    margin: 0 auto;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 0 0 0 10px rgba(255, 255, 255, 0.4);
    background: #000;
    z-index: 2;
}

.hero-video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .hero-title {
        font-size: 42px;
    }

    .hero-actions {
        flex-direction: column;
        padding: 0 30px;
    }

    .hero-wrapper {
        padding-top: 100px;
    }

    .blob-1,
    .blob-2 {
        opacity: 0.4;
    }

    .homepage-nav {
        display: none !important;
    }

    .custom-input-group input {
        font-size: 36px;
        width: 80px;
    }

    .plan-card.featured {
        transform: scale(1);
    }

    .plan-card.featured:hover {
        transform: scale(1.02);
    }
}

/* ==========================================
   3. 顶部导航栏 (动态与UI)
   ========================================== */
.saas-header,
.nihao-header-dynamic {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height);
    padding: 0 40px;
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.brand-logo,
.logo-box {
    font-size: 22px;
    font-weight: 800;
    color: #111;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: -0.5px;
}

.brand-logo img,
.logo-box img {
    height: 32px !important;
    width: auto !important;
    display: block !important;
}

@media (max-width: 768px) {
    .saas-header {
        padding: 0 20px;
    }

    .brand-logo span {
        display: none;
    }
}

/* 左侧文本导航 (首页特有) */
a.nav-item {
    text-decoration: none !important;
    transition: color 0.3s ease;
    font-weight: 600;
    font-size: 14px;
    color: #64748b;
}

a.nav-item:hover {
    color: #111 !important;
}

/* 登录/状态切换逻辑 */
.nihao-header-dynamic .state-guest {
    display: block !important;
}

.nihao-header-dynamic .state-user {
    display: none !important;
}

body.logged-in .nihao-header-dynamic .state-guest {
    display: none !important;
}

body.logged-in .nihao-header-dynamic .state-user {
    display: flex !important;
    align-items: center;
    gap: 15px;
}

.hero-auth-btn-group .btn-guest {
    display: inline-block !important;
}

.hero-auth-btn-group .btn-user {
    display: none !important;
}

body.logged-in .hero-auth-btn-group .btn-guest {
    display: none !important;
}

body.logged-in .hero-auth-btn-group .btn-user {
    display: inline-block !important;
}

.btn-login {
    display: inline-block !important;
    padding: 8px 16px !important;
    background: linear-gradient(135deg, #6366f1, #8b5cf6) !important;
    color: #fff !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    transition: opacity 0.3s ease !important;
}

.btn-login:hover {
    opacity: 0.9;
}

/* 个人中心与下拉菜单 */
.link-dashboard {
    font-size: 14px;
    font-weight: 600;
    color: #4b5563;
    text-decoration: none !important;
    padding: 8px 16px;
    border-radius: 12px;
    transition: all 0.3s ease;
    background: transparent;
}

.link-dashboard:hover {
    color: #6366f1;
    background: #eef2ff;
}

.avatar-container {
    position: relative;
    display: inline-block;
    z-index: 9999;
}

.avatar-link {
    display: block;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.avatar-container:hover .avatar-link {
    transform: scale(1.05);
}

.avatar-container #user-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    border-radius: 50%;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 15px;
    background: #fff;
    border-radius: 16px;
    padding: 8px 0;
    min-width: 160px;
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.15), 0 0 1px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 1000;
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 15px;
    width: 12px;
    height: 12px;
    background: #fff;
    transform: rotate(45deg);
    border-left: 1px solid rgba(0, 0, 0, 0.05);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.avatar-container:hover .dropdown-menu {
    opacity: 1 !important;
    visibility: visible !important;
    margin-top: 10px !important;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: 12px 20px;
    color: #374151;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none !important;
    transition: all 0.2s ease;
    position: relative;
    z-index: 2;
}

.dropdown-item:hover {
    background: #f9fafb;
    color: #111;
    padding-left: 24px;
}

.dropdown-item[style*="color: #ef4444"]:hover,
.dropdown-item[style*="color:#ef4444"]:hover {
    background: #fef2f2 !important;
    color: #dc2626 !important;
}

/* ==========================================
   4. 价格计算器区块 (融入极光白纱)
   ========================================== */
.nihaovid-wrapper {
    font-family: 'Inter', -apple-system, sans-serif;
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px;
    background: radial-gradient(circle at 50% 0%, rgba(99, 102, 241, 0.08) 0%, rgba(255, 255, 255, 0) 50%);
    border-radius: 30px;
    margin-top: -120px;
    /* 关键：向上穿插白纱 */
    position: relative;
    z-index: 10;
}

/* 极致毛玻璃卡片 */
.calculator-section {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 32px;
    padding: 50px;
    text-align: center;
    box-shadow: 0 30px 60px -15px rgba(99, 102, 241, 0.08), 0 0 0 1px rgba(255, 255, 255, 0.5) inset;
    margin-bottom: 60px;
    position: relative;
    overflow: hidden;
    transform: translateY(0);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.calculator-section:hover {
    transform: translateY(-8px);
    box-shadow: 0 40px 80px -20px rgba(99, 102, 241, 0.15), 0 0 0 1px rgba(255, 255, 255, 0.6) inset;
}

.calc-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.calc-desc {
    color: var(--text-sub);
    font-size: 16px;
    margin-bottom: 40px;
}

.input-area-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

/* 价格输入框内凹质感 */
.custom-input-group {
    position: relative;
    display: inline-flex;
    align-items: baseline;
    background: rgba(243, 244, 246, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.02);
    border-radius: 20px;
    padding: 12px 25px;
    transition: all 0.3s ease;
}

.custom-input-group:focus-within {
    background: #fff;
    border-color: #8b5cf6;
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.15), inset 0 2px 6px rgba(0, 0, 0, 0);
}

.custom-input-group input {
    width: 120px;
    background: transparent;
    border: none;
    font-size: 48px;
    font-weight: 700;
    color: var(--text-main);
    text-align: right;
    outline: none;
    padding-right: 10px;
    font-family: inherit;
}

.custom-input-group input::-webkit-inner-spin-button {
    -webkit-appearance: none;
}

.custom-input-group span {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-sub);
}

.price-tag {
    font-size: 18px;
    color: var(--text-sub);
    background: #fff;
    padding: 8px 16px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    margin-top: -10px;
    margin-bottom: 20px;
    font-weight: 500;
}

.price-tag b {
    color: #6366f1;
    font-size: 20px;
}

/* 购买按钮 */
.btn-main {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 16px 32px;
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    color: white !important;
    font-weight: 600;
    font-size: 18px;
    border-radius: 16px;
    text-decoration: none !important;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 25px -5px rgba(139, 92, 246, 0.4);
    transform: translateY(0);
    transition: all 0.3s ease;
}

.btn-main:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 35px -5px rgba(139, 92, 246, 0.6);
    filter: brightness(1.1);
}

.btn-outline {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 14px 24px;
    background: white;
    color: #4B5563 !important;
    font-weight: 600;
    border-radius: 12px;
    text-decoration: none !important;
    border: 1px solid #E5E7EB;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    border-color: #6366f1;
    color: #6366f1 !important;
    background: #F9FAFB;
}

.black-btn {
    background: #111 !important;
    color: #fff !important;
    box-shadow: none !important;
}

.black-btn:hover {
    background: #333 !important;
}

/* 充值卡片布局 */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    align-items: center;
}

.plan-card {
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.plan-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--card-shadow);
    border-color: #d1d5db;
}

.plan-card.featured {
    border: 2px solid #8b5cf6;
    transform: scale(1.05);
    box-shadow: 0 25px 50px -12px rgba(139, 92, 246, 0.15);
    z-index: 2;
}

.plan-card.featured:hover {
    transform: scale(1.08) translateY(-5px);
}

.badge-pop {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-gradient);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(139, 92, 246, 0.3);
}

.coin-icon {
    font-size: 24px;
    margin-bottom: 10px;
    display: block;
}

.plan-price {
    font-size: 36px;
    font-weight: 800;
    color: var(--text-main);
    margin: 10px 0 5px 0;
}

.plan-price small {
    font-size: 14px;
    font-weight: normal;
    color: var(--text-sub);
}

.plan-credits {
    font-size: 16px;
    color: #6366f1;
    font-weight: 600;
    margin-bottom: 25px;
    background: #EEF2FF;
    display: inline-block;
    padding: 4px 12px;
    border-radius: 8px;
}

.plan-card .btn-main,
.plan-card .btn-outline {
    margin-top: 20px;
    margin-bottom: 30px;
    width: 100%;
}

.plan-features {
    text-align: left;
    padding: 0;
    margin: 0;
}

.plan-features li {
    list-style: none;
    position: relative;
    padding-left: 28px;
    margin-bottom: 16px;
    font-size: 15px;
    color: #444;
}

.plan-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: #6366f1;
    font-weight: 900;
    font-size: 16px;
}

/* ==========================================
   5. 全局 Modal 弹窗
   ========================================== */
.saas-modal {
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.saas-modal.active {
    opacity: 1;
    visibility: visible;
}

.saas-modal-content {
    background-color: #fff;
    border-radius: 24px;
    padding: 50px;
    width: 90%;
    max-width: 1100px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.2);
    transform: translateY(20px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.saas-modal.active .saas-modal-content {
    transform: translateY(0) scale(1);
}

.saas-modal-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: #f3f4f6;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.saas-modal-close:hover {
    background: #e5e7eb;
    color: #111;
}

.saas-modal-header {
    text-align: center;
    margin-bottom: 40px;
}

/* 飞书弹窗特供 */
.feishu-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(12px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

#feishuModal {
    z-index: 999999 !important;
}

.modal-content {
    width: 90%;
    max-width: 550px;
    height: 85vh;
    background: white;
    border-radius: 28px;
    position: relative;
    overflow: hidden;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 30px;
    color: #ccc;
    cursor: pointer;
    z-index: 11;
}

.feishu-iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ==========================================
   6. 控制台页面基础框架
   ========================================== */
.elementor-widget-html .elementor-widget-container {
    width: 100vw !important;
    position: relative;
    left: 50%;
    margin-left: -50vw;
}

.dashboard-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
    background-image: linear-gradient(rgba(99, 102, 241, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(99, 102, 241, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
}

.main-wrapper {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 60px 20px;
    position: relative;
    z-index: 1;
}

.page-content {
    display: none;
}

.page-content.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.glass-card {
    background: var(--glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-light);
    border-radius: 32px;
    padding: 40px;
    box-shadow: var(--card-shadow);
}

.config-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
    text-align: left;
}

.config-item label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #64748b;
    margin-bottom: 8px;
}

.select-modern {
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: white;
    font-size: 14px;
    font-weight: 600;
    outline: none;
    cursor: pointer;
}

.btn-action {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    border: none;
    padding: 18px 45px;
    border-radius: 16px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
}

/* ==========================================
   🔥 紧急修复：导航栏间距 & 完美无缝背景融合
   ========================================== */

/* --- 1. 强制修复导航栏排版 --- */
.nav-links {
    display: flex !important;
    flex-direction: row !important;
    /* 强制水平排列，修复控制台上下堆叠 */
    align-items: center !important;
    gap: 35px !important;
    /* 强制设置 35px 的完美间距 */
    margin-left: 40px !important;
}

.nav-item {
    display: inline-block !important;
    /* 强制内联块，防止被折叠 */
    padding: 10px 0 !important;
    white-space: nowrap !important;
    /* 强制不换行 */
}

/* --- 2. 完美解决背景“一刀切”的割裂感 --- */
/* 绝招：给科技网格加上“由深到透明”的底部渐变遮罩 */
.hero-grid-bg {
    -webkit-mask-image: linear-gradient(to bottom, black 50%, transparent 100%) !important;
    mask-image: linear-gradient(to bottom, black 50%, transparent 100%) !important;
}

/* 绝招：给极光光斑加上“径向渐变遮罩”，让光斑的边缘自动羽化消失 */
/* 这样无论光斑多大，都绝不会触碰到物理边界，自然融入页面 */
.hero-blob {
    -webkit-mask-image: radial-gradient(circle at center, black 30%, transparent 70%) !important;
    mask-image: radial-gradient(circle at center, black 30%, transparent 70%) !important;
}

/* 解除 Elementor 可能对 Hero 区域进行的强制裁剪 */
.hero-wrapper,
.elementor-widget-html .elementor-widget-container {
    overflow: visible !important;
}

/* ==========================================
   弹窗内部：整合版价格计算器样式
   ========================================== */
.calculator-in-modal {
    background: #f8fafc;
    /* 淡灰蓝色背景，与上方纯白卡片区分层次 */
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 35px 30px;
    margin-top: 40px;
    /* 和上方的定价卡片拉开距离 */
    position: relative;
    overflow: hidden;
}

/* 横向排版布局 */
.modal-calc-layout {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 30px;
}

/* 缩小弹窗内的输入框尺寸 */
.modal-input-group {
    padding: 10px 20px !important;
    border-radius: 16px !important;
    background: #fff !important;
}

.modal-input-group input {
    font-size: 36px !important;
    width: 80px !important;
}

/* 缩小弹窗内的价格标签尺寸 */
.modal-price-tag {
    margin: 0 !important;
    padding: 14px 24px !important;
    font-size: 16px !important;
    background: #fff !important;
    border: 1px solid #e2e8f0 !important;
}

.modal-price-tag b {
    font-size: 24px !important;
    margin-left: 5px;
}

/* 手机端适配：改为上下堆叠 */
@media (max-width: 768px) {
    .modal-calc-layout {
        flex-direction: column;
        gap: 15px;
    }

    .modal-calc-layout>div:nth-child(2) {
        transform: rotate(90deg);
        /* 手机端等号竖过来 */
    }
}

/* ==========================================
   7. 首页用户评价 (无缝横向跑马灯 Marquee)
   ========================================== */
.nihaovid-testimonial-section {
    width: 100vw;
    position: relative;
    left: 50%;
    margin-left: -50vw;
    padding: 80px 0;
    background: transparent;
    overflow: hidden;
    /* 防止撑出横向滚动条 */
}

.testimonial-header {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    margin-bottom: 40px;
}

.testimonial-header .section-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.5px;
    text-align: left;
    /* 与参考图保持一致的左对齐 */
}

.marquee-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    display: flex;
}

/* 完美边缘融合：左右两侧纯白渐变遮罩 (白纱效果) */
.marquee-container::before,
.marquee-container::after {
    content: "";
    position: absolute;
    top: 0;
    width: 15vw;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.marquee-container::before {
    left: 0;
    background: linear-gradient(to right, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
}

.marquee-container::after {
    right: 0;
    background: linear-gradient(to left, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
}

.marquee-track {
    display: flex;
    width: max-content;
}

/* 由 JS 动态生成的包裹层，负责动画执行 */
.marquee-group {
    display: flex;
    gap: 24px;
    padding-right: 24px;
    /* 补齐组别连接处的缝隙 */
    animation: scrollMarquee 45s linear infinite;
    /* 滚动速度 */
}

/* 悬停时暂停滚动，方便用户阅读内容 */
.marquee-track:hover .marquee-group {
    animation-play-state: paused;
}

@keyframes scrollMarquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

/* 极致拟态浅灰卡片 */
.t-card {
    width: 380px;
    background: #f8fafc;
    /* 参考图的极简浅灰底色 */
    border-radius: 20px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    border: 1px solid transparent;
}

/* 卡片悬停微动效 */
.t-card:hover {
    background: #ffffff;
    border-color: #e2e8f0;
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.05);
    transform: translateY(-5px);
}

.t-text {
    font-size: 15px;
    color: #334155;
    line-height: 1.6;
    margin-bottom: 30px;
    margin-top: 0;
}

.t-author {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.t-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.t-user-info img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e2e8f0;
    object-fit: cover;
}

.t-name {
    font-weight: 700;
    font-size: 14px;
    color: #0f172a;
}

.t-handle {
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
}

/* 手机端适配 */
@media (max-width: 768px) {
    .testimonial-header {
        text-align: center;
    }

    .testimonial-header .section-title {
        text-align: center;
        font-size: 24px;
    }

    .t-card {
        width: 300px;
        /* 缩小卡片以适应屏幕 */
        padding: 24px;
    }

    .marquee-container::before,
    .marquee-container::after {
        width: 40px;
        /* 缩小遮罩面积 */
    }
}

