/* ==========================================================================
   T1 高端商务模板 — 专属样式
   命名空间:ds-t1-
   风格:大留白 / 宽幅通栏 / 磨砂渐变 / 轻奢稳重
   ========================================================================== */

.ds-t1-header {
    position: sticky;
    top: 0;
    z-index: 100;
    height: 72px;
    display: flex;
    align-items: center;
}
.ds-t1-header-bg {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    z-index: -1;
}
.ds-t1-header-inner {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    align-items: center;
    gap: 32px;
}
.ds-t1-logo { flex-shrink: 0; }
.ds-t1-logo img { max-height: 40px; }
.ds-t1-logo-text {
    font-size: 22px;
    font-weight: 800;
    background: linear-gradient(135deg, #165DFF 0%, #722ED1 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -0.5px;
}
.ds-t1-nav { display: flex; gap: 4px; }
.ds-t1-nav a {
    display: inline-block;
    padding: 8px 16px;
    color: var(--ds-color-text-2);
    font-size: 15px;
    font-weight: 500;
    border-radius: 8px;
    transition: all var(--ds-tx);
}
.ds-t1-nav a:hover { color: var(--ds-color-primary); background: var(--ds-color-bg); }
.ds-t1-search {
    flex: 1;
    max-width: 320px;
    margin-left: auto;
    position: relative;
}
.ds-t1-search input {
    width: 100%;
    height: 40px;
    padding: 0 40px 0 16px;
    background: var(--ds-color-bg);
    border: 1px solid transparent;
    border-radius: 20px;
    font-size: 14px;
    transition: all var(--ds-tx);
}
.ds-t1-search input:focus {
    outline: none;
    background: var(--ds-color-white);
    border-color: var(--ds-color-primary);
    box-shadow: 0 0 0 4px rgba(22, 93, 255, 0.1);
}
.ds-t1-search button {
    position: absolute;
    right: 8px; top: 8px;
    width: 24px; height: 24px;
    display: flex; align-items: center; justify-content: center;
    color: var(--ds-color-text-3);
}
.ds-t1-actions { display: flex; align-items: center; gap: 4px; }
.ds-t1-action-btn {
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    color: var(--ds-color-text-2);
    transition: all var(--ds-tx);
}
.ds-t1-action-btn:hover { background: var(--ds-color-bg); color: var(--ds-color-primary); }
.ds-t1-action-btn img { border-radius: 50%; width: 32px; height: 32px; }

/* 2. Hero 全屏渐变横幅 */
.ds-t1-hero {
    position: relative;
    padding: 80px 0 100px;
    overflow: hidden;
    isolation: isolate;
}
.ds-t1-hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #165DFF 0%, #722ED1 50%, #165DFF 100%);
    background-size: 200% 200%;
    animation: ds-t1-hero-shift 15s ease infinite;
    z-index: -2;
}
.ds-t1-hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 30%, rgba(255,255,255,0.2) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(255,255,255,0.15) 0%, transparent 50%);
}
@keyframes ds-t1-hero-shift {
    0%, 100% { background-position: 0% 50%; }
    50%      { background-position: 100% 50%; }
}
.ds-t1-hero-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 32px;
    color: #fff;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 60px;
}
.ds-t1-hero-content { max-width: 720px; }
.ds-t1-hero-title {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.1;
    margin: 0 0 16px;
    letter-spacing: -1px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.1);
}
.ds-t1-hero-subtitle {
    font-size: 18px;
    margin: 0 0 32px;
    opacity: 0.9;
    line-height: 1.6;
}
.ds-t1-hero-search {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    padding: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    margin-bottom: 24px;
}
.ds-t1-hero-search form {
    display: flex;
    gap: 8px;
}
.ds-t1-hero-search input {
    flex: 1;
    height: 48px;
    padding: 0 20px;
    background: transparent;
    border: none;
    color: var(--ds-color-text-1);
    font-size: 16px;
}
.ds-t1-hero-search input:focus { outline: none; }
.ds-t1-hero-search button {
    height: 48px;
    padding: 0 24px;
    background: var(--ds-color-primary);
    color: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    transition: background var(--ds-tx);
}
.ds-t1-hero-search button:hover { background: var(--ds-color-primary-light); }
.ds-t1-hero-cta { display: flex; gap: 16px; }
.ds-t1-cta-primary, .ds-t1-cta-ghost {
    display: inline-flex;
    align-items: center;
    padding: 12px 32px;
    border-radius: 24px;
    font-size: 15px;
    font-weight: 600;
    transition: all var(--ds-tx);
}
.ds-t1-cta-primary {
    background: #fff;
    color: var(--ds-color-primary);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}
.ds-t1-cta-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15); color: var(--ds-color-primary); }
.ds-t1-cta-ghost {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}
.ds-t1-cta-ghost:hover { background: rgba(255, 255, 255, 0.25); color: #fff; }

.ds-t1-hero-stats {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 32px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.ds-t1-stat { text-align: center; color: #fff; }
.ds-t1-stat-num {
    font-size: 32px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 4px;
}
.ds-t1-stat-label {
    font-size: 13px;
    opacity: 0.85;
}

/* 3. 分类横向滚动 */
.ds-t1-cats {
    padding: 60px 0;
    background: var(--ds-color-white);
}
.ds-t1-cats-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 32px;
}
.ds-t1-section-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--ds-color-text-1);
    margin: 0 0 32px;
    letter-spacing: -0.5px;
}
.ds-t1-cats-scroll {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: thin;
}
.ds-t1-cats-scroll::-webkit-scrollbar { height: 6px; }
.ds-t1-cats-scroll::-webkit-scrollbar-thumb { background: var(--ds-color-border); border-radius: 3px; }
.ds-t1-cat-card {
    flex-shrink: 0;
    width: 180px;
    padding: 32px 24px;
    background: var(--ds-color-white);
    border: 1px solid var(--ds-color-border);
    border-radius: 20px;
    text-align: center;
    color: var(--ds-color-text-1);
    transition: all 0.3s;
}
.ds-t1-cat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(22, 93, 255, 0.12);
    border-color: var(--ds-color-primary);
    color: var(--ds-color-primary);
}
.ds-t1-cat-icon { font-size: 40px; margin-bottom: 12px; }
.ds-t1-cat-name { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.ds-t1-cat-count { font-size: 12px; color: var(--ds-color-text-3); }

/* 4. 最新资源 */
.ds-t1-latest {
    padding: 60px 0;
    background: var(--ds-color-bg);
}
.ds-t1-latest-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 32px;
}
.ds-t1-section-head {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}
.ds-t1-section-head .ds-t1-section-title { margin: 0; }
.ds-t1-sort {
    display: flex;
    gap: 8px;
    background: var(--ds-color-white);
    border-radius: 12px;
    padding: 4px;
}
.ds-t1-sort a {
    padding: 6px 16px;
    border-radius: 8px;
    color: var(--ds-color-text-2);
    font-size: 14px;
    transition: all var(--ds-tx);
}
.ds-t1-sort a:hover { color: var(--ds-color-primary); }
.ds-t1-sort a.is-active {
    background: var(--ds-color-primary);
    color: #fff;
}
.ds-t1-more {
    margin-left: auto;
    color: var(--ds-color-text-3);
    font-size: 14px;
}
.ds-t1-more:hover { color: var(--ds-color-primary); }

.ds-t1-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.ds-t1-card {
    background: var(--ds-color-white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: all 0.3s;
    border: 1px solid var(--ds-color-border);
}
.ds-t1-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(22, 93, 255, 0.1);
    border-color: transparent;
}
.ds-t1-card-thumb {
    display: block;
    aspect-ratio: 16/10;
    position: relative;
    overflow: hidden;
    background: var(--ds-color-bg);
}
.ds-t1-card-thumb img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.5s;
}
.ds-t1-card:hover .ds-t1-card-thumb img { transform: scale(1.08); }
.ds-t1-card-thumb-empty {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    font-size: 60px;
    color: var(--ds-color-text-3);
    background: linear-gradient(135deg, var(--ds-color-bg) 0%, var(--ds-color-bg-soft) 100%);
}
.ds-t1-card-access {
    position: absolute;
    top: 16px; left: 16px;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    backdrop-filter: blur(8px);
}
.ds-t1-card-access-free  { background: rgba(0, 180, 42, 0.9); }
.ds-t1-card-access-login { background: rgba(91, 123, 154, 0.9); }
.ds-t1-card-access-vip   { background: rgba(255, 125, 0, 0.9); }
.ds-t1-card-access-pay   { background: rgba(245, 63, 63, 0.9); }
.ds-t1-card-access-dead  { background: rgba(136, 142, 150, 0.9); }
.ds-t1-card-body { padding: 24px; }
.ds-t1-card-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 8px;
    color: var(--ds-color-text-1);
}
.ds-t1-card-title a { color: var(--ds-color-text-1); }
.ds-t1-card-title a:hover { color: var(--ds-color-primary); }
.ds-t1-card-excerpt {
    color: var(--ds-color-text-3);
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ds-t1-card-meta {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: var(--ds-color-text-3);
    flex-wrap: wrap;
}

/* 5. VIP 横幅 */
.ds-t1-vip-banner {
    padding: 80px 0;
    margin-top: 60px;
}
.ds-t1-vip-banner-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 32px;
}
.ds-t1-vip-banner-bg {
    position: relative;
    border-radius: 32px;
    overflow: hidden;
    background: linear-gradient(135deg, #722ED1 0%, #165DFF 100%);
    padding: 80px 60px;
    color: #fff;
    text-align: center;
    box-shadow: 0 20px 60px rgba(114, 46, 209, 0.3);
}
.ds-t1-vip-banner-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(255,255,255,0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 30%, rgba(255,255,255,0.1) 0%, transparent 40%);
}
.ds-t1-vip-banner-content { position: relative; z-index: 1; }
.ds-t1-vip-banner h2 { font-size: 40px; font-weight: 800; margin: 0 0 12px; }
.ds-t1-vip-banner p { font-size: 16px; opacity: 0.9; margin: 0 0 32px; }
.ds-t1-vip-cta {
    display: inline-block;
    padding: 14px 48px;
    background: #fff;
    color: #722ED1;
    border-radius: 28px;
    font-size: 16px;
    font-weight: 700;
    transition: all 0.3s;
}
.ds-t1-vip-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2); color: #722ED1; }

/* 6. 详情页 */
.ds-t1-single {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px;
}
.ds-t1-single-breadcrumb {
    font-size: 13px;
    color: var(--ds-color-text-3);
    margin-bottom: 24px;
}
.ds-t1-single-breadcrumb a { color: var(--ds-color-text-3); }
.ds-t1-single-breadcrumb a:hover { color: var(--ds-color-primary); }

.ds-t1-single-cover-wrap {
    margin-bottom: 32px;
}
.ds-t1-single-cover {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
    max-width: 800px;
    margin: 0 auto;
}
.ds-t1-single-cover img { width: 100%; height: auto; display: block; }

.ds-t1-single-title-wrap { text-align: center; margin-bottom: 48px; }
.ds-t1-single-title {
    font-size: 36px;
    font-weight: 800;
    line-height: 1.3;
    margin: 0 0 16px;
    color: var(--ds-color-text-1);
    letter-spacing: -0.5px;
}
.ds-t1-single-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    font-size: 14px;
    color: var(--ds-color-text-3);
    flex-wrap: wrap;
}

.ds-t1-single-container {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 32px;
    align-items: start;
}
.ds-t1-single-main { min-width: 0; }
.ds-t1-single-content {
    background: var(--ds-color-white);
    border-radius: 16px;
    padding: 40px;
    line-height: 1.8;
    color: var(--ds-color-text-2);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.ds-t1-single-side { display: flex; flex-direction: column; gap: 20px; }
.ds-t1-download-card {
    background: linear-gradient(135deg, rgba(22, 93, 255, 0.05) 0%, rgba(114, 46, 209, 0.05) 100%);
    border: 1px solid var(--ds-color-border);
    border-radius: 20px;
    padding: 24px;
}
.ds-t1-download-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 16px;
    color: var(--ds-color-text-1);
}
.ds-t1-side-card {
    background: var(--ds-color-white);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.ds-t1-side-card h4 {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 12px;
    color: var(--ds-color-text-1);
}
.ds-t1-stat-list { list-style: none; padding: 0; margin: 0; }
.ds-t1-stat-list li {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
    border-bottom: 1px solid var(--ds-color-divider);
}
.ds-t1-stat-list li:last-child { border-bottom: none; }
.ds-t1-stat-list li span { color: var(--ds-color-text-3); }
.ds-t1-stat-list li strong { color: var(--ds-color-text-1); }

.ds-t1-fav-btn {
    width: 100%;
    padding: 12px;
    background: var(--ds-color-bg);
    color: var(--ds-color-text-2);
    border: 1px solid var(--ds-color-border);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    transition: all var(--ds-tx);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.ds-t1-fav-btn:hover { color: var(--ds-color-warning); border-color: var(--ds-color-warning); }
.ds-t1-fav-btn.is-faved { color: var(--ds-color-warning); border-color: var(--ds-color-warning); }

.ds-t1-side-vip {
    background: linear-gradient(135deg, #FFF4E5 0%, #FFE0B2 100%);
    border: none;
}
.ds-t1-side-vip h4 { color: var(--ds-color-warning); }
.ds-t1-side-vip p {
    font-size: 13px;
    color: var(--ds-color-text-2);
    margin: 0 0 16px;
    line-height: 1.6;
}
.ds-t1-vip-btn {
    display: block;
    text-align: center;
    padding: 12px;
    background: linear-gradient(135deg, #FF7D00 0%, #FF5500 100%);
    color: #fff;
    border-radius: 10px;
    font-weight: 600;
    transition: all var(--ds-tx);
}
.ds-t1-vip-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(255, 125, 0, 0.3); color: #fff; }

/* 7. 归档 / 搜索 / 404 共用 */
.ds-t1-archive, .ds-t1-page {
    padding: 60px 0;
    background: var(--ds-color-bg);
    min-height: 60vh;
}
.ds-t1-archive-inner, .ds-t1-page-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 32px;
}
.ds-t1-archive-head { margin-bottom: 32px; }
.ds-t1-archive-title {
    font-size: 36px;
    font-weight: 800;
    margin: 0 0 12px;
    color: var(--ds-color-text-1);
}
.ds-t1-archive-desc {
    color: var(--ds-color-text-3);
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 24px;
}
.ds-t1-archive-sort {
    display: inline-flex;
    gap: 4px;
    background: var(--ds-color-white);
    border-radius: 12px;
    padding: 4px;
}
.ds-t1-archive-sort a {
    padding: 6px 16px;
    border-radius: 8px;
    color: var(--ds-color-text-2);
    font-size: 14px;
}
.ds-t1-archive-sort a.is-active {
    background: var(--ds-color-primary);
    color: #fff;
}

.ds-t1-page-title {
    font-size: 36px;
    font-weight: 800;
    margin: 0 0 24px;
    color: var(--ds-color-text-1);
}
.ds-t1-page-content {
    background: var(--ds-color-white);
    border-radius: 16px;
    padding: 40px;
    line-height: 1.8;
    color: var(--ds-color-text-2);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.ds-t1-empty {
    grid-column: 1 / -1;
    padding: 80px 20px;
    text-align: center;
    color: var(--ds-color-text-3);
}
.ds-t1-empty-icon { font-size: 64px; margin-bottom: 16px; opacity: 0.5; }

.ds-t1-404 {
    padding: 120px 32px;
    text-align: center;
}
.ds-t1-404-inner { max-width: 480px; margin: 0 auto; }
.ds-t1-404-num {
    font-size: 160px;
    font-weight: 900;
    background: linear-gradient(135deg, #165DFF 0%, #722ED1 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1;
    margin-bottom: 24px;
}
.ds-t1-404 h2 { font-size: 28px; margin-bottom: 12px; }
.ds-t1-404 p { color: var(--ds-color-text-3); margin-bottom: 32px; }
.ds-t1-404-btn {
    display: inline-block;
    padding: 12px 32px;
    background: linear-gradient(135deg, #165DFF 0%, #722ED1 100%);
    color: #fff;
    border-radius: 24px;
    font-weight: 600;
}
.ds-t1-404-btn:hover { transform: translateY(-2px); color: #fff; }

/* 8. 移动端 */
@media (max-width: 1024px) {
    .ds-t1-hero-inner { grid-template-columns: 1fr; }
    .ds-t1-hero-stats { flex-direction: row; justify-content: space-around; }
    .ds-t1-single-container { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .ds-t1-header { height: 56px; }
    .ds-t1-header-inner { padding: 0 16px; gap: 12px; }
    .ds-t1-nav, .ds-t1-search { display: none; }
    .ds-t1-hero { padding: 48px 0 60px; }
    .ds-t1-hero-inner { padding: 0 16px; }
    .ds-t1-hero-title { font-size: 32px; }
    .ds-t1-hero-subtitle { font-size: 15px; }
    .ds-t1-hero-cta { flex-direction: column; }
    .ds-t1-hero-cta a { width: 100%; justify-content: center; }
    .ds-t1-section-title { font-size: 24px; }
    .ds-t1-card-grid { grid-template-columns: 1fr; gap: 16px; }
    .ds-t1-latest-inner, .ds-t1-cats-inner, .ds-t1-vip-banner-inner, .ds-t1-archive-inner, .ds-t1-page-inner, .ds-t1-single { padding: 0 16px; }
    .ds-t1-single-title { font-size: 24px; }
    .ds-t1-single-content { padding: 24px; }
    .ds-t1-vip-banner-bg { padding: 48px 24px; }
    .ds-t1-vip-banner h2 { font-size: 28px; }
    .ds-t1-archive-title, .ds-t1-page-title { font-size: 24px; }
}
