/* ========== AI 导航详情页专属样式 ========== */

/* 页面基础：详情页去除大背景，改为浅灰实心 */
.aid-detail-page .main-content {
    background: #f5f6f8;
}

.aid-detail-page .right-hero-bg,
.aid-detail-page .right-hero-overlay {
    display: none;
}

/* 详情布局：左右分屏 */
.aid-detail-layout {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

/* 左侧主内容区 */
.aid-detail-main {
    flex: 1;
    min-width: 0;
}

/* 右侧边栏 */
.aid-detail-sidebar {
    width: 320px;
    flex-shrink: 0;
    min-width: 0;
    overflow: hidden;
    position: sticky;
    top: 32px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* ========== 网站信息卡片 ========== */
.aid-site-card {
    background: #fff;
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    border: 1px solid #f3f4f6;
    margin-bottom: 24px;
}

.aid-site-header {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding-bottom: 22px;
    border-bottom: 1px dashed #f0f1f3;
    margin-bottom: 18px;
}

/* 网站 Logo */
.aid-site-logo-wrap {
    width: 88px;
    height: 88px;
    flex-shrink: 0;
    border-radius: 22px;
    padding: 2px;
    background: linear-gradient(135deg, #e0e7ff, #ede9fe);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
}

.aid-site-logo-img {
    width: 100%;
    height: 100%;
    border-radius: 20px;
    object-fit: cover;
    background: #fff;
}

/* 网站基本信息 */
.aid-site-basic {
    flex: 1;
    min-width: 0;
}

.aid-site-name-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.aid-site-name {
    font-size: 26px;
    font-weight: 800;
    color: #111827;
    margin: 0;
    line-height: 1.2;
    letter-spacing: 0.5px;
}

.aid-site-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
}

.aid-badge-hot {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #b45309;
}

.aid-badge-official {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    color: #1e40af;
}

/* 星级评分行 */
.aid-site-rating-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.aid-site-stars {
    display: inline-flex;
    gap: 2px;
}

.aid-site-stars svg {
    width: 18px;
    height: 18px;
    color: #fbbf24;
    fill: #fbbf24;
}

.aid-site-rating-num {
    font-size: 18px;
    font-weight: 700;
    color: #b45309;
}

.aid-site-rating-text {
    font-size: 12px;
    color: #9ca3af;
}

/* Meta 信息行 */
.aid-site-meta-row {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.aid-site-meta {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12.5px;
    color: #6b7280;
}

.aid-site-meta svg {
    color: #9ca3af;
    flex-shrink: 0;
}

.aid-site-meta strong {
    color: #6366f1;
    font-weight: 700;
    margin-right: 2px;
}

.aid-site-cat {
    background: linear-gradient(135deg, #eef2ff, #ede9fe);
    color: #6366f1;
    padding: 4px 10px;
    border-radius: 8px;
    font-weight: 600;
}

/* 操作按钮区 */
.aid-site-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-shrink: 0;
}

.aid-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 18px;
    height: 44px;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    white-space: nowrap;
    position: relative;
}

.aid-btn-primary {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    box-shadow: 0 6px 18px rgba(99, 102, 241, 0.35);
}

.aid-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(99, 102, 241, 0.4);
    color: #fff;
}

.aid-btn-ghost {
    background: #f5f6f8;
    color: #4b5563;
    border: 1px solid #e5e7eb;
}

.aid-btn-ghost:hover {
    background: #eef2ff;
    color: #6366f1;
    border-color: #c7d2fe;
}

.aid-btn-jump {
    height: 52px;
    padding: 0 24px;
    font-size: 15px;
}

.aid-btn-fav em {
    font-style: normal;
    font-weight: 600;
    color: inherit;
    opacity: 0.85;
}

/* 网站标签 */
.aid-site-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.aid-site-tag {
    display: inline-flex;
    padding: 5px 12px;
    border-radius: 10px;
    background: #f5f6f8;
    color: #4b5563;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.aid-site-tag:hover {
    background: #eef2ff;
    color: #6366f1;
}

/* ========== 详情通用区块 ========== */
.aid-detail-section {
    background: #fff;
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    border: 1px solid #f3f4f6;
    margin-bottom: 24px;
}

.aid-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 20px;
    line-height: 1.3;
}

.aid-title-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.aid-section-count {
    font-size: 14px;
    color: #9ca3af;
    font-weight: 500;
    margin-left: 4px;
}

.aid-detail-body {
    font-size: 14.5px;
    line-height: 1.85;
    color: #4b5563;
}

.aid-detail-body > p {
    margin-bottom: 16px;
}

.aid-subtitle {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    margin: 28px 0 14px;
    padding-left: 12px;
    border-left: 3px solid #6366f1;
    line-height: 1.3;
}

/* 功能列表 */
.aid-feature-list {
    list-style: none;
    padding: 0;
    margin: 0 0 10px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.aid-feature-list li {
    display: flex;
    gap: 14px;
    padding: 16px;
    background: #fafafa;
    border-radius: 14px;
    border: 1px solid #f3f4f6;
    transition: all 0.2s ease;
}

.aid-feature-list li:hover {
    background: #fafbff;
    border-color: #e0e7ff;
    transform: translateX(2px);
}

.aid-feat-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #fff;
}

.aid-feature-list li > div {
    flex: 1;
}

.aid-feature-list li strong {
    display: block;
    font-size: 14.5px;
    color: #111827;
    margin-bottom: 4px;
}

.aid-feature-list li p {
    font-size: 13px;
    color: #6b7280;
    margin: 0;
    line-height: 1.6;
}

/* 场景卡片网格 */
.aid-scene-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 10px;
}

.aid-scene-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background: linear-gradient(135deg, #f9fafb, #f3f4f6);
    border-radius: 12px;
    font-size: 13.5px;
    font-weight: 500;
    color: #374151;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.aid-scene-card:hover {
    background: linear-gradient(135deg, #eef2ff, #f5f3ff);
    border-color: #c7d2fe;
    color: #6366f1;
}

.aid-scene-emoji {
    font-size: 20px;
    flex-shrink: 0;
}

/* 提示框 */
.aid-tip-box {
    display: flex;
    gap: 14px;
    padding: 20px;
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    border-radius: 16px;
    border-left: 4px solid #f59e0b;
    margin-bottom: 10px;
}

.aid-tip-icon {
    font-size: 28px;
    flex-shrink: 0;
    line-height: 1;
}

.aid-tip-content {
    flex: 1;
}

.aid-tip-content p {
    font-size: 13.5px;
    color: #78350f;
    line-height: 1.8;
    margin: 0 0 6px;
}

.aid-tip-content p:last-child {
    margin-bottom: 0;
}

/* ========== 标签云 ========== */
.aid-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 4px 0 0;
}

.aid-tag {
    display: inline-flex;
    align-items: center;
    font-size: 13px;
    color: #6366f1;
    background: rgba(99, 102, 241, 0.08);
    padding: 5px 14px;
    border-radius: 999px;
    text-decoration: none;
    transition: all 0.2s;
    line-height: 1.6;
}

.aid-tag:hover {
    background: #6366f1;
    color: #fff;
    transform: translateY(-1px);
}

/* ========== 评分统计卡片 ========== */
.aid-rating-card {
    display: flex;
    gap: 28px;
    padding: 24px;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border-radius: 16px;
    border: 1px solid #fde68a;
    margin-bottom: 24px;
    align-items: center;
}

.aid-rating-big {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    padding: 0 12px;
    border-right: 1px solid #fde68a;
    padding-right: 28px;
}

.aid-rating-num {
    font-size: 48px;
    font-weight: 800;
    line-height: 1;
    color: #b45309;
}

.aid-rating-stars-big {
    display: inline-flex;
    gap: 3px;
}

.aid-rating-stars-big svg {
    width: 22px;
    height: 22px;
    fill: #fbbf24;
    color: #fbbf24;
}

.aid-rating-total {
    font-size: 12px;
    color: #92400e;
    margin-top: 4px;
}

.aid-rating-bars {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.aid-bar-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.aid-bar-label {
    width: 24px;
    font-size: 12px;
    color: #78350f;
    font-weight: 600;
    text-align: right;
    flex-shrink: 0;
}

.aid-bar {
    flex: 1;
    height: 8px;
    background: #fef3c7;
    border-radius: 999px;
    overflow: hidden;
}

.aid-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
    border-radius: 999px;
    transition: width 0.8s ease;
}

.aid-bar-num {
    width: 32px;
    font-size: 12px;
    color: #78350f;
    font-weight: 600;
    text-align: right;
    flex-shrink: 0;
}

/* ========== 评论区 ========== */
.aid-comment-input {
    display: flex;
    gap: 14px;
    padding: 20px;
    background: #fafafa;
    border-radius: 16px;
    margin-bottom: 20px;
    border: 1px solid #f3f4f6;
}

.aid-cmt-avatar {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.aid-cmt-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.aid-cmt-stars-input {
    display: inline-flex;
    gap: 4px;
}

.aid-cmt-stars-input svg {
    width: 22px;
    height: 22px;
    cursor: pointer;
    transition: all 0.15s ease;
    fill: #e5e7eb;
    color: #e5e7eb;
}

.aid-cmt-stars-input svg:hover,
.aid-cmt-stars-input svg.aid-star-active {
    fill: #fbbf24;
    color: #fbbf24;
    transform: scale(1.1);
}

.aid-cmt-textarea {
    width: 100%;
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 14px;
    line-height: 1.6;
    color: #111827;
    background: #fff;
    font-family: inherit;
    resize: none;
    outline: none;
    transition: all 0.2s ease;
}

.aid-cmt-textarea:focus {
    border-color: rgba(99,102,241,0.5);
    box-shadow: 0 0 0 4px rgba(99,102,241,0.08);
}

.aid-cmt-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.aid-cmt-hint {
    font-size: 12px;
    color: #9ca3af;
}

.aid-btn-cmt-submit {
    height: 38px;
    padding: 0 22px;
    font-size: 13px;
}

/* 评论列表 */
.aid-comment-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.aid-comment-item {
    display: flex;
    gap: 12px;
    padding-bottom: 18px;
    border-bottom: 1px solid #f3f4f6;
}

.aid-comment-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.aid-cmter-avatar {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
}

.aid-cmter-info {
    flex: 1;
    min-width: 0;
}

.aid-cmter-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.aid-cmter-name {
    font-size: 13.5px;
    font-weight: 700;
    color: #111827;
}

.aid-cmter-stars {
    display: inline-flex;
    gap: 1px;
}

.aid-cmter-stars svg {
    width: 13px;
    height: 13px;
    fill: #fbbf24;
    color: #fbbf24;
}

.aid-cmter-date {
    margin-left: auto;
    font-size: 12px;
    color: #9ca3af;
}

.aid-cmter-text {
    font-size: 13.5px;
    line-height: 1.7;
    color: #4b5563;
    margin: 0 0 8px;
}

.aid-cmter-actions {
    display: flex;
    gap: 18px;
}

.aid-cmter-action {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #9ca3af;
    cursor: pointer;
    transition: color 0.2s ease;
    background: none;
    border: none;
    padding: 0;
}

.aid-cmter-action svg {
    width: 14px;
    height: 14px;
}

.aid-cmter-action:hover {
    color: #6366f1;
}

.aid-cmter-action.liked {
    color: #ef4444;
}

/* ========== 同类推荐网格 ========== */
.aid-related-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.aid-related-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 10px;
    background: #fff;
    border: 1px solid #f3f4f6;
    border-radius: 14px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
    min-width: 0;
    overflow: hidden;
}

.aid-related-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(99,102,241,0.12);
    border-color: #e0e7ff;
}

.aid-related-logo {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    object-fit: cover;
    margin-bottom: 10px;
}

.aid-related-name {
    font-size: 13px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 2px;
    text-align: center;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}

.aid-related-card:hover .aid-related-name {
    color: #6366f1;
}

.aid-related-desc {
    font-size: 11px;
    color: #9ca3af;
    text-align: center;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}

/* ========== 右侧边栏卡片 ========== */
.aid-sidebar-card {
    background: #fff;
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    border: 1px solid #f3f4f6;
}

/* 固定跳转卡 */
.aid-sticky-card {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 16px;
    background: linear-gradient(135deg, #fff 0%, #fafbff 100%);
    border: 1px solid #e0e7ff;
}

.aid-sticky-logo {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    border-radius: 14px;
    padding: 2px;
    background: linear-gradient(135deg, #e0e7ff, #ede9fe);
}

.aid-sticky-logo img {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    object-fit: cover;
    background: #fff;
}

.aid-sticky-info {
    flex: 1;
    min-width: 0;
}

.aid-sticky-name {
    font-size: 15px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.aid-sticky-stars {
    display: inline-flex;
    gap: 1px;
}

.aid-sticky-stars svg {
    width: 13px;
    height: 13px;
    fill: #fbbf24;
    color: #fbbf24;
}

.aid-btn-sticky {
    width: 100%;
    margin-top: 6px;
    height: 40px;
    font-size: 13.5px;
}

/* 边栏标题 */
.aid-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f3f4f6;
}

.aid-sidebar-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    font-weight: 700;
    color: #111827;
    margin: 0;
}

.aid-sidebar-more {
    font-size: 12px;
    color: #6366f1;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.aid-sidebar-more:hover {
    color: #4f46e5;
}

/* 边栏列表 */
.aid-sidebar-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.aid-sidebar-list li {
    margin: 0;
}

.aid-sidebar-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 8px;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

.aid-sidebar-link:hover {
    background: #f9fafb;
    transform: translateX(2px);
}

.aid-sidebar-logo {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    border-radius: 9px;
    object-fit: cover;
    background: #fff;
}

.aid-sidebar-noimg {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
}

.aid-sidebar-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.aid-sidebar-name {
    font-size: 13.5px;
    font-weight: 600;
    color: #1f2937;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.aid-sidebar-link:hover .aid-sidebar-name {
    color: #6366f1;
}

.aid-sidebar-desc {
    font-size: 11.5px;
    color: #9ca3af;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.aid-sidebar-views {
    font-size: 11px;
    color: #d1d5db;
    font-weight: 600;
    flex-shrink: 0;
}

/* 热榜编号 */
.aid-hot-list .aid-sidebar-link {
    padding-left: 4px;
}

.aid-hot-rank {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 800;
    background: #f3f4f6;
    color: #9ca3af;
}

.aid-hot-list li:nth-child(1) .aid-hot-rank {
    background: linear-gradient(135deg, #ef4444, #f97316);
    color: #fff;
}
.aid-hot-list li:nth-child(2) .aid-hot-rank {
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    color: #fff;
}
.aid-hot-list li:nth-child(3) .aid-hot-rank {
    background: linear-gradient(135deg, #f59e0b, #fde047);
    color: #92400e;
}

/* 推广卡片 */
.aid-promote-card {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
    border: none;
    color: #fff;
    overflow: hidden;
    position: relative;
}

.aid-promote-card::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -30%;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(255,255,255,0.18) 0%, transparent 70%);
    border-radius: 50%;
}

.aid-promote-card > * {
    position: relative;
    z-index: 1;
}

.aid-promote-tag {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    background: rgba(255,255,255,0.2);
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    margin-bottom: 14px;
    backdrop-filter: blur(4px);
    letter-spacing: 0.5px;
}

.aid-promote-body {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.aid-promote-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.aid-promote-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 2px;
}

.aid-promote-desc {
    font-size: 12px;
    opacity: 0.85;
    line-height: 1.4;
}

.aid-btn-promote {
    width: 100%;
    background: #fff;
    color: #6366f1;
    font-weight: 700;
    height: 42px;
    font-size: 14px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

.aid-btn-promote:hover {
    background: #fff;
    color: #4f46e5;
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(0,0,0,0.16);
}

/* ========== 相关教程资料 ========== */
.aid-tutorial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.aid-tutorial-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #f0f1f3;
    transition: all 0.25s ease;
}

.aid-tutorial-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.12);
    border-color: rgba(99, 102, 241, 0.2);
}

.aid-tutorial-image {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: #f5f6f8;
}

.aid-tutorial-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.aid-tutorial-card:hover .aid-tutorial-image img {
    transform: scale(1.06);
}

.aid-tutorial-body {
    padding: 12px 14px 14px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.aid-tutorial-title {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    line-height: 1.5;
    margin: 0 0 6px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.aid-tutorial-desc {
    font-size: 12px;
    color: #6b7280;
    line-height: 1.6;
    margin: 0 0 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.aid-tutorial-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.aid-tutorial-tag {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    background: rgba(99, 102, 241, 0.08);
    color: #6366f1;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 500;
}

.aid-tutorial-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    font-size: 11px;
    color: #9ca3af;
}

.aid-tutorial-views {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.aid-tutorial-date {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

/* ========== 相关笔记 ========== */
.aid-note-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.aid-note-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
    padding: 14px 0;
    border-bottom: 1px solid #f3f4f6;
    transition: all 0.2s;
}

.aid-note-item:last-child {
    border-bottom: none;
}

.aid-note-item:hover {
    background: rgba(99, 102, 241, 0.03);
    padding-left: 8px;
    padding-right: 8px;
    border-radius: 8px;
}

.aid-note-cat {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 10px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    border-radius: 6px;
    margin-right: 12px;
    white-space: nowrap;
}

.aid-note-title {
    font-size: 14px;
    color: #374151;
    font-weight: 500;
    line-height: 1.5;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding-right: 16px;
}

.aid-note-item:hover .aid-note-title {
    color: #6366f1;
}

.aid-note-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: #9ca3af;
    flex-shrink: 0;
}

.aid-note-views {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

/* ========== 相关附件（紧跟简介，紧凑布局） ========== */
.aid-attach-title {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    font-weight: 600;
    color: #6b7280;
    margin-top: 20px;
    margin-bottom: 2px;
}

.aid-attach-title svg {
    color: #6366f1;
}

.aid-attach-list {
    display: flex;
    flex-direction: column;
}

.aid-attach-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
}

/* 灰色线隔开（第一条不加） */
.aid-attach-item + .aid-attach-item {
    border-top: 1px solid #f0f0f0;
}

/* 文件图标 */
.aid-attach-icon {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #fff;
}

.aid-attach-icon-file {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
}

/* 中间信息 */
.aid-attach-info {
    flex: 1;
    min-width: 0;
}

.aid-attach-name {
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 查看按钮 */
.aid-attach-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 14px;
    background: rgba(99, 102, 241, 0.08);
    color: #6366f1;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 6px;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.aid-attach-btn:hover {
    background: #6366f1;
    color: #fff;
    border-color: #6366f1;
    box-shadow: 0 3px 10px rgba(99, 102, 241, 0.25);
}

/* ========== 响应式 ========== */
@media (max-width: 1180px) {
    .aid-detail-sidebar {
        width: 280px;
    }

    .aid-site-card,
    .aid-detail-section {
        padding: 22px;
    }

    .aid-related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .aid-site-name {
        font-size: 22px;
    }
}

@media (max-width: 1024px) {
    .aid-detail-layout {
        flex-direction: column;
    }

    .aid-detail-sidebar {
        width: 100%;
        position: static;
    }

    .aid-site-logo-wrap {
        width: 72px;
        height: 72px;
        border-radius: 18px;
    }

    .aid-site-header {
        flex-wrap: wrap;
    }

    .aid-site-actions {
        flex-direction: row;
        width: 100%;
        margin-top: 4px;
    }

    .aid-site-actions .aid-btn {
        flex: 1;
    }

    .aid-related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .aid-tutorial-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .aid-site-card,
    .aid-detail-section {
        padding: 18px;
        border-radius: 16px;
    }

    .aid-site-header {
        gap: 14px;
    }

    .aid-site-logo-wrap {
        width: 64px;
        height: 64px;
        border-radius: 16px;
    }

    .aid-site-name {
        font-size: 20px;
    }

    .aid-scene-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .aid-related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .aid-tutorial-grid {
        grid-template-columns: 1fr;
    }

    .aid-rating-card {
        flex-direction: column;
        gap: 16px;
        padding: 20px;
    }

    .aid-rating-big {
        border-right: none;
        border-bottom: 1px solid #fde68a;
        padding-right: 0;
        padding-bottom: 16px;
    }
}

@media (max-width: 520px) {
    .aid-detail-main {
        min-width: 0;
    }

    .aid-scene-grid {
        grid-template-columns: 1fr;
    }

    .aid-site-meta-row {
        gap: 10px;
    }

    .aid-feature-list li {
        flex-direction: column;
        gap: 10px;
    }
}
