/* ============================================================
   EyouCMS Premium Product / Content Styles v3.0
   卡片 | 动效 | 分页 | 详情页 | 深度响应式
   ============================================================ */

/* ---------- Page Body ---------- */
.v2 {
    background: linear-gradient(180deg, #f0f2f5 0%, #e8ecf5 50%, #f0f2f5 100%);
    min-height: 100vh;
}

/* ---------- Hero Banner ---------- */
.product-hero {
    width: 100%;
    min-height: 220px;
    background: linear-gradient(135deg, #0f0c29 0%, #302b63 40%, #4361ee 70%, #4895ef 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
}
.product-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.product-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 40px 20px;
}
.product-hero-content h1 {
    color: #fff;
    font-size: 2.6rem;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 12px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.product-hero-content p {
    color: rgba(255,255,255,0.8);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ---------- Main Container ---------- */
.product-main {
    min-height: 600px;
    width: var(--content-width);
    max-width: 96%;
    margin: 0 auto 60px;
    padding: 0 10px;
}

/* ---------- Card Box ---------- */
.product-main .box {
    width: 100%;
    padding: 28px 0;
    opacity: 0;
    transform: translateY(24px);
    animation: fadeInUp 0.55s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
.product-main .box:nth-child(1) { animation-delay: 0.04s; }
.product-main .box:nth-child(2) { animation-delay: 0.08s; }
.product-main .box:nth-child(3) { animation-delay: 0.12s; }
.product-main .box:nth-child(4) { animation-delay: 0.16s; }
.product-main .box:nth-child(5) { animation-delay: 0.20s; }
.product-main .box:nth-child(6) { animation-delay: 0.24s; }
.product-main .box:nth-child(7) { animation-delay: 0.28s; }
.product-main .box:nth-child(8) { animation-delay: 0.32s; }
.product-main .box:nth-child(9) { animation-delay: 0.36s; }
.product-main .box:nth-child(10) { animation-delay: 0.40s; }

@keyframes fadeInUp {
    to { opacity: 1; transform: translateY(0); }
}

/* ---------- Section Header ---------- */
.product-main .main-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    padding: 0 4px;
}
.product-main .main-top .blue {
    width: 5px;
    height: 26px;
    background: linear-gradient(180deg, #4361ee, #f72585);
    border-radius: 3px;
    flex-shrink: 0;
}
.product-main .main-top .title {
    font-size: 19px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.3px;
}
.product-main .main-top .title a {
    color: var(--text-primary);
    transition: var(--transition-fast);
}
.product-main .main-top .title a:hover { color: var(--primary); }

/* ---------- Card Grid ---------- */
.product-main .main-data { width: 100%; }
.product-main .main-data ul {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    padding: 0;
}

/* Individual Card */
.product-main .main-data li {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.product-main .main-data li::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(67,97,238,0.05) 0%, rgba(247,37,133,0.03) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.product-main .main-data li:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(67,97,238,0.12);
    border-color: rgba(67,97,238,0.25);
}
.product-main .main-data li:hover::before { opacity: 1; }

/* Ripple */
.product-main .main-data li .ripple-effect {
    position: absolute;
    border-radius: 50%;
    background: rgba(67,97,238,0.15);
    transform: scale(0);
    animation: rippleAnim 0.6s linear;
    pointer-events: none;
}
@keyframes rippleAnim {
    to { transform: scale(3); opacity: 0; }
}

/* Logo / Thumbnail */
.product-main li .logo {
    flex-shrink: 0;
    width: 62px;
    height: 62px;
    border-radius: var(--radius-md);
    background-size: cover !important;
    background-position: center !important;
    background-color: #eef0f5;
    overflow: hidden;
    position: relative;
    z-index: 1;
}
.product-main li .logo .mask {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0);
    transition: var(--transition-base);
    border-radius: var(--radius-md);
}
.product-main li:hover .logo .mask {
    background: rgba(67,97,238,0.12);
}

/* Text Content */
.product-main li .text {
    flex: 1;
    min-width: 0;
    position: relative;
    z-index: 1;
}
.product-main li .text .title {
    font-size: 14.5px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
    display: block;
    margin-bottom: 5px;
    transition: var(--transition-fast);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.product-main li .text .title:hover {
    color: var(--primary);
    text-decoration: none;
}
.product-main li .text .dosc {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Action Buttons */
.product-main li .btn-1 {
    width: auto;
    min-width: 52px;
    height: 34px;
    padding: 0 10px;
    border-radius: var(--radius-md);
    background: var(--primary);
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    transition: var(--transition-base);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
}
.product-main li .btn-1::after {
    content: '下载';
    display: block;
    font-size: 12px;
    color: #fff;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}
.product-main li .btn-1:hover {
    background: var(--accent);
    transform: scale(1.1);
    box-shadow: 0 4px 16px rgba(247,37,133,0.35);
}
.product-main li .btnn {
    background: #b0b0c0 !important;
}
.product-main li .btnn:hover {
    background: var(--text-secondary) !important;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15) !important;
}

/* ============================================================
   PAGINATION - Modern Pills
   ============================================================ */
.pagelist { text-align: center; margin: 40px 0; }
.pagelist ul { display: inline-flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: center; }
.pagelist li { display: inline-block; }
.pagelist li a,
.pagelist li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    background: #fff;
    border: 1px solid var(--border-light);
    transition: var(--transition-base);
    text-decoration: none;
}
.pagelist li a:hover {
    background: rgba(67,97,238,0.08);
    color: var(--primary);
    border-color: rgba(67,97,238,0.3);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}
.pagelist li .current,
.pagelist li.active a {
    background: linear-gradient(135deg, #4361ee, #4895ef);
    color: #fff !important;
    border-color: transparent;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(67,97,238,0.3);
}
.pagelist .hover { background: rgba(67,97,238,0.08); color: var(--primary); }

/* ============================================================
   ARTICLE LIST
   ============================================================ */
.mod_page_content_li {
    border-bottom: 1px dashed var(--border-light);
    padding: 16px 0;
    transition: var(--transition-fast);
}
.mod_page_content_li:hover { background: rgba(67,97,238,0.02); padding-left: 10px; }

/* ============================================================
   ARTICLE DETAIL
   ============================================================ */
.product-main .main-data .article-content {
    padding: 32px;
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    line-height: 1.9;
    font-size: 15px;
    color: var(--text-primary);
}
.product-main .main-data .article-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    margin: 16px 0;
}
.product-main .main-data .article-content h1,
.product-main .main-data .article-content h2,
.product-main .main-data .article-content h3 {
    margin: 24px 0 12px;
    color: var(--text-primary);
}
.product-main .main-data .article-body {
    word-break: break-word;
    overflow-wrap: break-word;
}

/* ============================================================
   TABLE WRAPPER（响应式表格）
   ============================================================ */
.table-wrap {
    overflow-x: auto;
    max-width: 100%;
    -webkit-overflow-scrolling: touch;
    margin: 12px 0;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-light);
}
.table-wrap table {
    min-width: 600px;
    width: 100%;
}
.table-wrap td, .table-wrap th {
    padding: 10px 14px;
    border: 1px solid var(--border-light);
    text-align: left;
    font-size: 14px;
}
.table-wrap th {
    background: #f8f9fc;
    font-weight: 600;
}

/* ============================================================
   RESPONSIVE - Large tablet (769px ~ 1024px)
   ============================================================ */
@media (max-width: 1024px) {
    .product-main .main-data ul { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .product-hero { min-height: 180px; }
    .product-hero-content h1 { font-size: 2rem; }
    .product-main { max-width: 100%; padding: 0 14px; }
}

/* ============================================================
   RESPONSIVE - Mobile (≤ 768px)
   ============================================================ */
@media (max-width: 768px) {
    .product-main {
        max-width: 100%;
        padding: 0 12px;
        margin-bottom: 40px;
    }
    .product-hero { min-height: 130px; margin-bottom: 20px; }
    .product-hero-content h1 { font-size: 1.6rem; }
    .product-hero-content p { font-size: 0.9rem; }

    .product-main .main-top .title { font-size: 16px; }
    .product-main .box { padding: 20px 0; }

    .product-main .main-data ul {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .product-main .main-data li {
        padding: 16px;
        gap: 14px;
        border-radius: var(--radius-md);
    }
    .product-main li .logo { width: 52px; height: 52px; }
    .product-main li .text .title { font-size: 14px; }
    .product-main li .text .dosc { display: none; } /* 移动端隐藏描述节省空间 */
    .product-main li .btn-1 { min-width: 48px; height: 32px; padding: 0 8px; }

    .pagelist li a,
    .pagelist li span {
        min-width: 34px;
        height: 34px;
        padding: 0 10px;
        font-size: 13px;
    }

    .product-main .main-data .article-content {
        padding: 18px;
        font-size: 14.5px;
        border-radius: var(--radius-md);
    }
}

/* ============================================================
   RESPONSIVE - Small Mobile (≤ 480px)
   ============================================================ */
@media (max-width: 480px) {
    .product-main .main-data li { padding: 12px 14px; gap: 12px; }
    .product-main li .logo { width: 44px; height: 44px; border-radius: var(--radius-sm); }
    .product-main li .btn-1 { min-width: 44px; height: 30px; padding: 0 7px; }
    .product-main li .text .title { font-size: 13.5px; }
    .footer-links { gap: 7px; }
}

/* ============================================================
   TOUCH DEVICES - 增大点击热区
   ============================================================ */
@media (hover: none) and (pointer: coarse) {
    .product-main .main-data li { cursor: default; }
    .product-main li .btn-1 {
        min-width: 48px;
        height: 36px;
        padding: 0 10px;
        touch-action: manipulation;
    }
    .pagelist li a,
    .pagelist li span {
        min-width: 42px;
        height: 42px;
    }
}

/* ============================================================
   PRINT STYLES
   ============================================================ */
@media print {
    .head_v2, .global-footer, .back-to-top, .btn-1 { display: none !important; }
    body { margin-top: 0 !important; background: #fff !important; }
    .product-main { max-width: 100% !important; }
}
