/* ============================================================
   show-ai.css —— AI工具详情页专属样式
   包含：Hero 区差异覆盖、详情页内容模块（含背景浮动图形特效）
   ============================================================ */

/* --- Hero 区（页面差异：min-height 200px、字号缩小） --- */
.page-header { min-height: 200px; }
.hero-section { padding-top: 10px; }
.hero-title { font-size: 32px; margin-bottom: 20px; }
.hero-title i { font-size: 30px; }

/* ================= 详情页内容模块 ================= */
.tool-detail-wrapper {
    flex: 1;
    padding: 20px 0 60px 0;
    width: 80%;
    margin: 0 auto;
}

.detail-header {
    position: relative; /* 为浮动背景提供定位基准 */
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
    align-items: flex-start;
    /* 移除 overflow: hidden，让浮动图形可以略微溢出边界，看起来更自然 */
}

/* ====== 背景浮动几何图形特效 ====== */
.header-bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* 不影响内容点击 */
    z-index: 0;
    overflow: visible;
}

.shape {
    position: absolute;
    opacity: 0.6;
}

/* 三角形 */
.shape-triangle {
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-bottom: 26px solid #7dd3fc;
    animation: floatTriangle 12s ease-in-out infinite;
}
.shape-triangle.t2 {
    border-left-width: 10px;
    border-right-width: 10px;
    border-bottom-width: 18px;
    border-bottom-color: #a5b4fc;
    animation-duration: 15s;
    animation-delay: -4s;
}

/* 空心圆环 */
.shape-ring {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 3px solid #c4b5fd;
    animation: floatRing 10s ease-in-out infinite;
}
.shape-ring.r2 {
    width: 16px;
    height: 16px;
    border-color: #6ee7b7;
    animation-duration: 14s;
    animation-delay: -6s;
}

/* 实心圆点 */
.shape-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #fca5a5;
    animation: floatDot 8s ease-in-out infinite;
}
.shape-dot.d2 {
    width: 6px;
    height: 6px;
    background: #93c5fd;
    animation-duration: 11s;
    animation-delay: -3s;
}

/* 十字/加号 */
.shape-cross {
    width: 20px;
    height: 20px;
    animation: floatCross 13s ease-in-out infinite;
}
.shape-cross::before,
.shape-cross::after {
    content: '';
    position: absolute;
    background: #fdba74;
}
.shape-cross::before { width: 100%; height: 4px; top: 50%; left: 0; transform: translateY(-50%); }
.shape-cross::after { width: 4px; height: 100%; left: 50%; top: 0; transform: translateX(-50%); }

/* 波浪线/弧线 */
.shape-wave {
    width: 40px;
    height: 20px;
    border-bottom: 3px solid #a7f3d0;
    border-radius: 0 0 50% 50%;
    animation: floatWave 16s ease-in-out infinite;
}

/* 各个图形的初始位置 */
.shape-triangle { top: 8%; left: 2%; }
.shape-triangle.t2 { bottom: 15%; right: 5%; }
.shape-ring { top: 20%; right: 12%; }
.shape-ring.r2 { bottom: 30%; left: 8%; }
.shape-dot { top: 60%; left: 15%; }
.shape-dot.d2 { top: 30%; right: 25%; }
.shape-cross { bottom: 20%; left: 30%; }
.shape-wave { top: 50%; right: 2%; }

/* 浮动动画关键帧 */
@keyframes floatTriangle {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(10deg); }
}
@keyframes floatRing {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-15px) scale(1.1); }
}
@keyframes floatDot {
    0%, 100% { transform: translate(0, 0); opacity: 0.6; }
    50% { transform: translate(-10px, -18px); opacity: 1; }
}
@keyframes floatCross {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-12px) rotate(45deg); }
}
@keyframes floatWave {
    0%, 100% { transform: translateX(0) rotate(0deg); }
    50% { transform: translateX(12px) rotate(5deg); }
}

/* 确保内容层在背景图形之上 */
.detail-header > .detail-left,
.detail-header > .detail-right {
    position: relative;
    z-index: 1;
}

/* 左侧图片容器 */
.detail-left {
    position: relative;
    width: 460px;
    height: 320px;
    flex-shrink: 0;
    background: #f3f4f6;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    overflow: hidden;
}

.detail-left img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cover-stats {
    position: absolute;
    bottom: 16px;
    left: 16px;
    display: flex;
    gap: 12px;
}

.stat-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: #374151;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.stat-badge i { color: #6b7280; }

/* 右侧信息区 */
.detail-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding-top: 10px;
}

.tool-type-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.tag-blue {
    background: #eff6ff;
    color: #2563eb;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid #dbeafe;
}

.detail-title {
    font-size: 32px;
    font-weight: 800;
    color: #1e3a8a;
    margin-bottom: 12px;
}

.detail-slogan {
    font-size: 16px;
    color: #4b5563;
    margin-bottom: 20px;
}

.tag-label {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tag-label span {
    background: #f3f4f6;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    color: #4b5563;
}

.action-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    align-items: center;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f3f4f6;
    color: #374151;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    border: 1px solid #e5e7eb;
    transition: all 0.2s;
}

.btn-primary:hover {
    background: #e5e7eb;
    color: #1e3a8a;
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: #1e3a8a;
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-size: 18px;
    transition: all 0.2s;
}
.btn-icon:hover { background: #1e40af; }

.detail-links {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: #6b7280;
}

.detail-links a {
    color: #2563eb;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
}
.detail-links a:hover { text-decoration: underline; }

/* ================= 底部内容区（仅保留上边距30px） ================= */
.detail-body {
    margin-top: 30px;
}

.detail-body img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px 0;
    border-radius: 8px;
}

.detail-body p {
    font-size: 15px;
    line-height: 1.8;
    color: #4b5563;
    margin-bottom: 20px;
}

.detail-body p:last-child {
    margin-bottom: 0;
}

.detail-body a {
    color: #2563eb;
    text-decoration: none;
}

.detail-body a:hover {
    text-decoration: underline;
}

/* ================= 响应式适配 ================= */
@media (max-width: 1024px) {
    .detail-header { flex-direction: column; }
    .detail-left { width: 100%; height: 300px; }
    .tool-detail-wrapper { width: 90%; }
    /* 小屏幕减少一些浮动图形，避免杂乱 */
    .shape-wave, .shape-cross { display: none; }
}
@media (max-width: 768px) {
    .detail-body { padding: 0; }
    .action-buttons { flex-wrap: wrap; }
    .tool-detail-wrapper { width: 95%; }
    /* 移动端仅保留少量浮动图形 */
    .shape-triangle.t2, .shape-ring.r2, .shape-dot.d2 { display: none; }
}
