/* ============================================================
   home.css — 首页专用样式
   按模块拆分为 8 个 section，方便其他页面引用
   ============================================================ */

/* ============================================================
   1. 幻灯片轮播 (从 public.css 提取 + 新增)
   ============================================================ */
.border-l-3 { border-left-width: 3px; }
.slider-nav-item { cursor: pointer; transition: all 0.3s ease; }
.slider-nav-item:hover { background: rgba(255, 255, 255, 0.05); }
.slider-slide { transition: opacity 0.5s ease, transform 0.4s ease; }
.slider-dot { cursor: pointer; transition: all 0.3s ease; border: none; background-color: transparent; }

/* SVG 流体扭曲滤镜层 */
.ken-burns-wrapper {
    position: absolute; inset: 0; overflow: hidden;
    pointer-events: none; z-index: 0;
}
.ken-burns-wrapper svg { display: block; width: 100%; height: 100%; }
.fluid-img { will-change: filter; filter: url(#fluidImgFilter); }
.fluid-img-paused { filter: none !important; }

.fluid-path-1 {
    animation: fluidMorph1 14s ease-in-out infinite alternate;
    transform-origin: center;
}
.fluid-path-2 {
    animation: fluidMorph2 18s ease-in-out infinite alternate;
    transform-origin: center;
}

@keyframes fluidMorph1 {
    0% { transform: translate(0,0) scale(1) rotate(0deg); }
    25% { transform: translate(-15px,10px) scale(1.03) rotate(2deg); }
    50% { transform: translate(10px,-8px) scale(0.97) rotate(-1deg); }
    75% { transform: translate(-5px,15px) scale(1.02) rotate(3deg); }
    100% { transform: translate(8px,-5px) scale(0.98) rotate(-2deg); }
}
@keyframes fluidMorph2 {
    0% { transform: translate(0,0) scale(1) rotate(0deg); }
    33% { transform: translate(20px,-15px) scale(1.05) rotate(-3deg); }
    66% { transform: translate(-10px,10px) scale(0.95) rotate(2deg); }
    100% { transform: translate(15px,-5px) scale(1.02) rotate(-1deg); }
}

/* ============================================================
   2. 域名搜索卡片
   ============================================================ */
.domain-search-card { box-shadow: 0 4px 24px rgba(0,0,0,0.08); }
.domain-search-card .suffix-check-label input[type="checkbox"] {
    width: 14px; height: 14px; accent-color: #0052D9;
}

/* ============================================================
   3. 产品区域 — Tab 切换（旧模板风格增强）
   ============================================================ */
.product-tab-nav {
    display: flex; gap: 0;
    border-bottom: 2px solid #E5E6EB;
    margin-bottom: 32px;
    overflow-x: auto;
}
.product-tab-btn {
    position: relative;
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 500;
    color: #86909C;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    background: none;
    border: none;
    outline: none;
}
.product-tab-btn:hover { color: #0052D9; }
.product-tab-btn.active {
    color: #0052D9;
    font-weight: 600;
}
.product-tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px; left: 0; right: 0;
    height: 2px;
    background: #0052D9;
}
.product-tab-panel { display: none; }
.product-tab-panel.active { display: block; }

/* 产品卡片 */
.product-card {
    background: #fff;
    border: 1px solid #E5E6EB;
    border-radius: 12px;
    padding: 24px;
    transition: all 0.3s ease;
    position: relative;
}
.product-card:hover {
    border-color: #0052D9;
    box-shadow: 0 8px 24px rgba(0,82,217,0.10);
    transform: translateY(-2px);
}
.product-card .hot-tag {
    position: absolute;
    top: -1px; right: 20px;
    background: #F53F3F;
    color: #fff;
    font-size: 11px;
    padding: 2px 10px;
    border-radius: 0 0 6px 6px;
    font-weight: 600;
}
.product-card .product-name {
    font-size: 18px;
    font-weight: 600;
    color: #1D2129;
    margin-bottom: 4px;
}
.product-card .product-subtitle {
    font-size: 13px;
    color: #86909C;
    margin-bottom: 16px;
}
.product-card .price-area {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #F2F3F5;
}
.product-card .price-area .price-symbol {
    font-size: 16px; color: #0052D9; font-weight: 600;
}
.product-card .price-area .price-num {
    font-size: 28px; color: #0052D9; font-weight: 700;
    letter-spacing: -0.02em;
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
}
.product-card .price-area .price-unit {
    font-size: 13px; color: #86909C; margin-left: 2px;
}
.product-card .spec-list { margin-bottom: 20px; }
.product-card .spec-item {
    display: flex; justify-content: space-between;
    padding: 5px 0;
    font-size: 13px;
    color: #4E5969;
    border-bottom: 1px dashed #F2F3F5;
}
.product-card .spec-item:last-child { border-bottom: none; }
.product-card .spec-item .spec-label { color: #86909C; }
.product-card .spec-item .spec-value { color: #1D2129; font-weight: 500; }

/* ============================================================
   4. 六大优势（旧模板风格重制）
   ============================================================ */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.advantage-card {
    text-align: center;
    padding: 32px 24px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #F2F3F5;
    transition: all 0.3s ease;
}
.advantage-card:hover {
    border-color: #0052D9;
    box-shadow: 0 8px 24px rgba(0,82,217,0.08);
    transform: translateY(-2px);
}
.advantage-card .adv-icon {
    width: 56px; height: 56px;
    margin: 0 auto 16px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px;
}
.advantage-card h4 {
    font-size: 16px;
    font-weight: 600;
    color: #1D2129;
    margin-bottom: 8px;
}
.advantage-card p {
    font-size: 13px;
    color: #86909C;
    line-height: 1.7;
}

/* ============================================================
   5. 客户评价（旧模板 50万+ 用户的选择）
   ============================================================ */
.testimonials-container {
    position: relative;
    overflow: hidden;
}
.testimonial-card {
    background: #fff;
    border: 1px solid #F2F3F5;
    border-radius: 12px;
    padding: 28px;
    position: relative;
    transition: all 0.3s ease;
}
.testimonial-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}
.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 12px; left: 20px;
    font-size: 48px;
    color: #0052D9;
    opacity: 0.15;
    line-height: 1;
    font-family: Georgia, serif;
}
.testimonial-card p.quote {
    font-size: 14px;
    color: #4E5969;
    line-height: 1.8;
    margin-bottom: 16px;
    padding-top: 16px;
}
.testimonial-card p.author {
    font-size: 13px;
    color: #86909C;
    font-weight: 500;
}

/* ============================================================
   6. 合作伙伴/信任标识
   ============================================================ */
.partner-section {
    padding: 40px 0;
    text-align: center;
}
.partner-section h3 {
    font-size: 16px;
    color: #86909C;
    font-weight: 500;
    margin-bottom: 24px;
}
.partner-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}
.partner-logos img {
    height: 32px;
    opacity: 0.4;
    transition: opacity 0.3s ease;
    filter: grayscale(100%);
}
.partner-logos img:hover {
    opacity: 0.8;
    filter: grayscale(0%);
}

/* ============================================================
   7. CTA 底部号召
   ============================================================ */
.cta-section .btn-press:active {
    transform: scale(0.97);
    transition: transform 0.1s;
}

/* ============================================================
   8. 价格/标签预设复用类
   ============================================================ */
.price-highlight {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* ============================================================
   9. 活动卡片区域
   ============================================================ */
.card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -8px rgba(0,82,217,0.15);
}

/* ============================================================
   10. 响应式适配
   ============================================================ */
@media (max-width: 768px) {
    .advantages-grid { grid-template-columns: repeat(2, 1fr); }
    .product-tab-btn { padding: 10px 16px; font-size: 14px; }
    .partner-logos { gap: 24px; }
    .partner-logos img { height: 24px; }
}
@media (max-width: 480px) {
    .advantages-grid { grid-template-columns: 1fr; }
    .product-card { padding: 16px; }
    .product-card .price-area .price-num { font-size: 22px; }
}


/* ============================================================
 * ⭐ 域名后缀列表样式（严格按旧模板 index.css + domain.css 抄出）
 * 关键差异（修复 80px 装不下 2 行 24 个的问题）：
 *   - 折叠态：height: 40px + overflow: hidden（与 index.css 一致）
 *   - 展开态：height: auto !important（解除 index.css 的 80px 限制）
 * ============================================================ */

/* 默认（折叠态）= 与 index.css 一致 */
.domext-wrapper {
    height: 40px !important;
    overflow: hidden !important;
    padding: 0 !important;
    -webkit-transition: all .3s ease;
    -moz-transition: all .3s ease;
    transition: all .3s ease;
}
/* 加 .collapse class = 展开态（注意：旧模板语义是"展开"，与 class 名相反） */
.domext-wrapper.collapse {
    height: auto !important;
    overflow: visible !important;
}

/* label 复选框（严格按 domain.css 抄，!important 覆盖 global.css） */
.domext-wrapper label {
    display: inline-block !important;
    visibility: visible !important;
    padding: 10px 0 10px 23px !important;
    line-height: 20px !important;
    height: 20px !important;
    font-size: 14px !important;
    color: #4A4A4A !important;
    width: 90px !important;
    float: left !important;
    background: url(/template/Tpl_2016/images/icon.png) no-repeat 0 -325px !important;
    cursor: pointer !important;
    user-select: none !important;
    -webkit-user-select: none !important;
    margin: 0 !important;
}
.domext-wrapper label.checked {
    background-position: 0 -288px !important;
}
.domext-wrapper label input {
    display: none !important;
}
.domext-wrapper label.collapsed-domain {
    display: none !important;
}
.domext-wrapper label .icon {
    display: inline-block !important;
    width: 17px !important;
    height: 17px !important;
    vertical-align: top !important;
    margin-left: 3px !important;
    background-image: url(/template/Tpl_2016/images/icon.png) !important;
    background-repeat: no-repeat !important;
}
.domext-wrapper label .icon.new { background-position: 0 -498px !important; }
.domext-wrapper label .icon.hot { background-position: -36px -498px !important; }
.domext-wrapper label .icon.promotion { background-position: -74px -498px !important; }

/* 展开按钮（向下展开 / 向上折叠） */
.domext-container .expand-icon {
    display: inline-block !important;
    visibility: visible !important;
    white-space: nowrap !important;
}

/* 工具栏（○全选 / ○全不选 / ◉常用 / 更多>>） */
.domext-select-container {
    margin: 5px 0 !important;
    height: auto !important;
    visibility: visible !important;
}
.domext-select-container.hide {
    display: none !important;
}
.domext-select-container label {
    display: inline-block !important;
    visibility: visible !important;
    vertical-align: middle !important;
    padding: 5px 5px 5px 0 !important;
    font-size: 14px !important;
    color: #72616a !important;
    background: none !important;
    float: none !important;
    width: auto !important;
    height: auto !important;
}
.domext-select-container label input {
    display: inline-block !important;
    margin-right: 3px !important;
}
.domext-select-container .more-domains {
    border: 1px solid #c2edfb !important;
    color: #67b9ec !important;
    padding: 5px 7px !important;
    vertical-align: middle !important;
    margin-left: 24px !important;
    display: inline-block !important;
    text-decoration: none !important;
}

/* ==========================================================
   2026-07-29 修复 6-Tab 产品卡片(铁律 #205)
   - .column .new 角标(规格:颜色 #55d564 + 三角旗形状,对齐 .column .hot 热销角标)
   - .column .price .date-unit 斜杠背景图(从切图集 /template/.../2017/icon.jpg -566px 切)
   ========================================================== */
.column .new {
    position: absolute;
    right: 0;
    top: 0;
    height: 59px;
    width: 71px;
    background: #55d564 !important;
    /* 三角旗形:对齐 .column .hot 的 hot-flag.jpg 切图(右上角直角三角形,斜边从左上到右下) */
    clip-path: polygon(100% 0, 0 0, 100% 100%);
    -webkit-clip-path: polygon(100% 0, 0 0, 100% 100%);
    text-align: center;
    padding-top: 5px;
    text-indent: 27px;
    color: #fff;
    font-size: 14px;
    font-style: normal;
    z-index: 1;
}
.column .price .date-unit {
    padding-left: 10px !important;
    background: url(/template/Tpl_2016/images/2017/icon.jpg) no-repeat left -566px !important;
    display: inline-block;
    height: 27px;
    line-height: 27px;
}
