/* ============================================================
   迅达酷客 - 产品详情页共享样式 v2.0
   配套 main.css 「云脉 Indigo」设计系统
   适用于 app/index/view/product/ 下全部产品详情页
   ============================================================ */

/* ---------- 产品 Hero ---------- */
.product-hero {
    position: relative;
    padding: 64px 0 120px;
    background: var(--gradient-hero);
    color: #fff;
    overflow: hidden;
}
.product-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 520px 340px at 10% 0%, rgba(255, 255, 255, 0.12), transparent 60%),
        radial-gradient(ellipse 560px 380px at 92% 100%, rgba(167, 139, 250, 0.22), transparent 62%);
    pointer-events: none;
}
.product-hero .container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 48px;
    align-items: center;
}

.product-hero-content { max-width: 640px; }

.product-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.25);
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 18px;
    backdrop-filter: blur(6px);
}

.product-hero h1 {
    font-size: 34px;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.25;
    margin-bottom: 14px;
}
.product-hero-content > p {
    font-size: 15px;
    line-height: 1.75;
    opacity: 0.88;
    margin-bottom: 22px;
}

.badges-container { display: flex; gap: 10px; flex-wrap: wrap; }
.product-type-badge,
.product-scope-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 16px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    font-size: 13px;
    font-weight: 500;
}
.product-type-badge i,
.product-scope-badge i { color: #a5b4fc; }

/* 购买卡片 */
.product-hero-card {
    background: #fff;
    border-radius: var(--radius-xl);
    padding: 30px 28px;
    color: var(--text-primary);
    box-shadow: 0 20px 48px rgba(19, 17, 41, 0.3);
    text-align: center;
}
.product-brand-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 52px;
    margin-bottom: 18px;
    padding: 6px 12px;
    background: var(--bg-muted);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
}
/* ★ 品牌 Logo 尺寸约束：统一高度，宽度自适应，防止图标篡位 */
.product-brand-logo img {
    height: 30px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.product-price-section { margin-bottom: 20px; }
.product-price {
    font-size: 38px;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.02em;
    line-height: 1.1;
}
.product-price-period {
    font-size: 14px;
    color: var(--text-tertiary);
    font-weight: 400;
    margin-left: 4px;
}

.product-buy-btn-large {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    padding: 14px 20px;
    border-radius: var(--radius-md);
    background: var(--gradient-primary);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: all var(--transition);
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
}
.product-buy-btn-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(79, 70, 229, 0.45);
    opacity: 0.96;
}

/* ---------- 产品详情 ---------- */
.product-details { padding: var(--space-3xl) 0; background: var(--bg-page); }
.product-details .section-title { text-align: center; margin-bottom: var(--space-2xl); }
.product-details .section-title h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}
.product-details .section-title p { color: var(--text-secondary); font-size: 15px; }

.product-description {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 28px 30px;
    margin-bottom: var(--space-lg);
}
.product-description h3,
.product-features-list h3,
.product-specs h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 14px;
    padding-left: 12px;
    border-left: 3px solid var(--primary);
    line-height: 1.3;
}
.product-description p { font-size: 14px; color: var(--text-secondary); line-height: 1.8; }

.product-features-list {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 28px 30px;
    margin-bottom: var(--space-lg);
}
.features-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px 24px; }
.features-list li {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 0;
    font-size: 14px;
    color: var(--text-secondary);
}
.features-list i { color: var(--success); font-size: 13px; flex-shrink: 0; }

/* 特性卡片 */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
}
.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 26px 24px;
    transition: all var(--transition-slow);
}
.feature-card:hover {
    border-color: var(--primary-200);
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}
.feature-icon {
    width: 46px;
    height: 46px;
    border-radius: var(--radius-md);
    background: var(--gradient-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    margin-bottom: 16px;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.28);
}
.feature-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; color: var(--text-primary); }
.feature-card p { font-size: 13px; color: var(--text-secondary); line-height: 1.7; }

/* 技术规格 */
.product-specs {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 28px 30px;
}
.specs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}
.spec-item {
    background: var(--bg-page);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 16px 18px;
    transition: all var(--transition);
}
.spec-item:hover { border-color: var(--primary-200); background: var(--primary-50); }
.spec-item-label { font-size: 12px; color: var(--text-tertiary); margin-bottom: 5px; }
.spec-item-value { font-size: 15px; font-weight: 700; color: var(--text-primary); }

/* ---------- CTA ---------- */
.cta-section {
    padding: var(--space-3xl) 0;
    background: var(--gradient-hero);
    color: var(--text-inverse);
    position: relative;
    overflow: hidden;
}
.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 600px 300px at 50% -20%, rgba(255, 255, 255, 0.12), transparent 60%);
    pointer-events: none;
}
.cta-content { position: relative; z-index: 1; text-align: center; max-width: 700px; margin: 0 auto; }
.cta-content h2 { font-size: 30px; font-weight: 800; margin-bottom: 14px; letter-spacing: -0.02em; }
.cta-content p { font-size: 15px; margin-bottom: 30px; opacity: 0.9; }
.cta-buttons { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.cta-btn {
    padding: 13px 34px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 15px;
    display: inline-block;
    transition: all var(--transition);
}
.cta-btn-primary { background: #fff; color: var(--primary); box-shadow: var(--shadow-md); }
.cta-btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.cta-btn-outline { background: transparent; color: #fff; border: 1.5px solid rgba(255, 255, 255, 0.55); }
.cta-btn-outline:hover { background: rgba(255, 255, 255, 0.12); border-color: #fff; }

/* ---------- 交互动效（原页面内联样式合并至此） ---------- */
@keyframes ripple-animation {
    to { transform: scale(2); opacity: 0; }
}
.btn, .cta-btn, .product-buy-btn-large { position: relative; overflow: hidden; }
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    transform: scale(0);
    animation: ripple-animation 0.55s ease-out;
    pointer-events: none;
}
.loading { pointer-events: none; opacity: 0.6; }
a { transition: color 0.2s ease; }

/* ---------- 响应式 ---------- */
@media (max-width: 992px) {
    .product-hero .container { grid-template-columns: 1fr; gap: 32px; }
    .product-hero { padding: 48px 0 96px; }
    .product-hero-card { max-width: 420px; }
    .features-grid { grid-template-columns: 1fr; }
    .specs-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .product-hero h1 { font-size: 25px; }
    .features-list { grid-template-columns: 1fr; }
    .specs-grid { grid-template-columns: 1fr; }
    .cta-content h2 { font-size: 22px; }
    .cta-buttons { flex-direction: column; align-items: stretch; padding: 0 16px; }
    .cta-btn { text-align: center; }
}
