:root {
    --ali-primary: #FF6A00;
    --ali-primary-dark: #E45E00;
    --ali-bg: #F5F7FA;
    --ali-card: #FFFFFF;
    --ali-text: #333333;
    --ali-text-light: #667085;
    --ali-border: #E5EAF1;
    --ali-shadow: 0 10px 24px rgba(31, 35, 41, 0.06);
    --ali-radius: 12px;
    --ali-radius-sm: 8px;
    --ali-quark: #16C15D;
    --ali-xunlei: #1D76FF;
    --ali-baidu: #305CFF;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    color: var(--ali-text);
    font: 14px/1.7 "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
    background: linear-gradient(180deg, #fff7f1 0, var(--ali-bg) 160px);
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    border: 0;
}

.site-shell {
    width: 1280px;
    max-width: calc(100% - 32px);
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    border-bottom: 1px solid rgba(255, 106, 0, 0.1);
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(10px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 72px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.brand-logo {
    width: 42px;
    height: 42px;
    padding: 6px;
    border-radius: 12px;
    background: linear-gradient(135deg, #fff2e8 0, #ffe1cc 100%);
    box-shadow: inset 0 0 0 1px rgba(255, 106, 0, 0.08);
}

.brand-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.brand-text {
    font-size: 20px;
    font-weight: 700;
    color: #1f2329;
}

.main-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
}

.main-nav a {
    padding: 10px 14px;
    border-radius: 999px;
    color: var(--ali-text-light);
    transition: all .2s ease;
}

.main-nav a:hover,
.main-nav a.is-active {
    color: var(--ali-primary);
    background: #fff2e8;
}

.mobile-menu-toggle,
.mobile-nav,
.mobile-nav-mask {
    display: none;
}

.mobile-menu-toggle {
    position: relative;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid var(--ali-border);
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
}

.mobile-menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    border-radius: 2px;
    background: #1f2329;
}

.mobile-nav-mask {
    position: fixed;
    inset: 0;
    z-index: 80;
    background: rgba(31, 35, 41, 0.38);
    cursor: pointer;
}

.mobile-nav {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 90;
    width: 182px;
    max-width: 70vw;
    height: 100vh;
    padding: 54px 10px 16px;
    overflow-y: auto;
    background: #fff;
    box-shadow: -16px 0 36px rgba(31, 35, 41, 0.16);
    transform: translateX(100%);
    transition: transform .22s ease;
}

.mobile-nav a {
    display: block;
    padding: 11px 8px;
    color: var(--ali-text);
    border-bottom: 1px solid var(--ali-border);
}

.mobile-nav a.is-active {
    color: var(--ali-primary);
}

.mobile-nav-close {
    position: absolute;
    top: 14px;
    right: 10px;
    width: 34px;
    height: 34px;
    color: var(--ali-text-light);
    font-size: 24px;
    line-height: 1;
    border: 0;
    background: transparent;
    cursor: pointer;
}

body.mobile-menu-open {
    overflow: hidden;
}

body.mobile-menu-open .mobile-nav-mask {
    display: block;
}

body.mobile-menu-open .mobile-nav {
    transform: translateX(0);
}

.hero-banner {
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at right top, rgba(255, 148, 77, 0.28), transparent 36%), linear-gradient(120deg, #fff7f1 0, #ffe9d8 48%, #fff 100%);
    background-position: center;
    background-size: cover;
}

.hero-overlay {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.94) 0, rgba(255, 255, 255, 0.84) 46%, rgba(255, 255, 255, 0.55) 100%);
}

.hero-copy {
    width: 700px;
    max-width: 100%;
    padding: 38px 0 42px;
}

.hero-eyebrow {
    display: inline-block;
    margin: 0 0 12px;
    padding: 4px 10px;
    color: var(--ali-primary);
    border-radius: 999px;
    background: rgba(255, 106, 0, 0.1);
}

.hero-copy h1 {
    margin: 0 0 14px;
    font-size: 34px;
    line-height: 1.25;
}

.hero-desc {
    max-width: 640px;
    margin: 0;
    color: var(--ali-text-light);
    font-size: 15px;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 16px;
    padding: 12px 22px;
    color: #fff;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--ali-primary) 0, #ff8c3a 100%);
    box-shadow: 0 10px 20px rgba(255, 106, 0, 0.22);
}

.page-main {
    padding: 16px 0 28px;
}

.panel {
    margin-bottom: 10px;
    padding: 20px;
    border: 1px solid var(--ali-border);
    border-radius: var(--ali-radius);
    background: var(--ali-card);
    box-shadow: var(--ali-shadow);
}

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.section-head h2 {
    margin: 0;
    font-size: 20px;
    line-height: 1.3;
}

.section-head a {
    color: var(--ali-primary);
}

.resource-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.resource-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    min-height: 92px;
    padding: 10px;
    border: 1px solid var(--ali-border);
    border-radius: 10px;
    background: linear-gradient(180deg, #fff 0, #fcfdff 100%);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.resource-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 106, 0, 0.3);
    box-shadow: 0 14px 26px rgba(31, 35, 41, 0.08);
}

.resource-card.is-no-download {
    grid-template-columns: 1fr;
}

.resource-main {
    display: flex;
    gap: 8px;
    min-width: 0;
}

.resource-icon {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    padding: 6px;
    border-radius: 14px;
    background: #f8fafc;
    box-shadow: inset 0 0 0 1px #eef2f6;
}

.resource-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.resource-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.resource-title {
    display: -webkit-box;
    overflow: hidden;
    min-height: 38px;
    font-size: 16px;
    line-height: 1.5;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}



.resource-actions {
    display: flex;
    width: 100%;
}

.download-buttons {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    width: 100%;
}

.download-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    height: 30px;
    color: #1e0202;
    font-size: 13px;
    border-radius: 7px;
}

.download-btn.is-quark {
    background: #D3EEDE;
}

.download-btn.is-xunlei {
    background: #E5E2F0;
}

.download-btn.is-baidu {
    background: #E0E0A7;
}

.resource-vip {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 2px 8px;
    color: #fff;
    font-size: 11px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--ali-primary) 0, #ff8d3e 100%);
}

.single-panel {
    padding: 20px;
}

.single-hero {
    display: grid;
    grid-template-columns: 380px minmax(0, 1fr);
    gap: 22px;
}

.single-cover {
    overflow: hidden;
    border-radius: var(--ali-radius);
    background: linear-gradient(135deg, #fff2e8 0, #fff 100%);
    box-shadow: inset 0 0 0 1px rgba(255, 106, 0, 0.08);
}

.single-cover img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 320px;
    object-fit: cover;
}

.single-summary h1 {
    margin: 10px 0 12px;
    font-size: 30px;
    line-height: 1.3;
}

.single-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.meta-chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    color: var(--ali-text-light);
    font-size: 11px;
    border-radius: 999px;
    background: #f7f8fb;
}

.meta-chip.is-vip {
    color: var(--ali-primary);
    background: #fff2e8;
}

.single-intro {
    margin: 0 0 16px;
    color: var(--ali-text-light);
    font-size: 15px;
}

.single-info {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.single-info li {
    padding: 10px;
    border: 1px solid var(--ali-border);
    border-radius: 10px;
    background: #fbfcfe;
}

.single-info span,
.single-info strong {
    display: block;
}

.single-info span {
    margin-bottom: 6px;
    color: var(--ali-text-light);
    font-size: 11px;
}

.single-download {
    margin-top: 18px;
    padding: 16px;
    border-radius: var(--ali-radius-sm);
    background: #f8fafc;
}

.single-download h3 {
    margin: 0 0 12px;
    font-size: 18px;
}

.single-download .download-buttons {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
}

.single-download .download-btn {
    height: 42px;
    font-size: 14px;
}

.single-section {
    margin-top: 24px;
}

.single-desc,
.article-content {
    color: var(--ali-text);
}

.article-content img {
    border-radius: 10px;
}

.article-content table {
    max-width: 100%;
}

.comments-box,
.comment-form {
    margin-top: 14px;
}

.comments-list {
    display: grid;
    gap: 8px;
}

.comment-item,
.comment-reply {
    padding: 10px;
    border: 1px solid var(--ali-border);
    border-radius: 10px;
    background: #fcfdff;
}

.comment-reply {
    margin-top: 10px;
    margin-left: 18px;
    background: #f8fafc;
}

.comment-head,
.comment-foot {
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

.comment-head span,
.comment-foot a,
.comment-reply span {
    color: var(--ali-text-light);
    font-size: 11px;
}

.comment-body {
    margin-top: 10px;
}

.comment-form textarea,
.comment-fields input,
.comment-verify input {
    width: 100%;
    padding: 12px 14px;
    color: var(--ali-text);
    border: 1px solid var(--ali-border);
    border-radius: 10px;
    background: #fff;
    outline: none;
}

.comment-form textarea:focus,
.comment-fields input:focus,
.comment-verify input:focus {
    border-color: rgba(255, 106, 0, 0.4);
    box-shadow: 0 0 0 3px rgba(255, 106, 0, 0.08);
}

.comment-fields {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    margin-top: 10px;
}

.comment-verify {
    display: grid;
    grid-template-columns: 160px 120px;
    gap: 6px;
    align-items: center;
    margin-top: 10px;
}

.comment-verify img {
    width: 120px;
    height: 42px;
    cursor: pointer;
    border-radius: 7px;
}

.comment-submit {
    margin-top: 10px;
}

.comment-submit button {
    min-width: 120px;
    height: 42px;
    color: #fff;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--ali-primary) 0, #ff8d3e 100%);
    cursor: pointer;
}

.pagebar-wrap {
    margin-top: 18px;
    text-align: center;
}

.pagebar-wrap .now-page,
.pagebar-wrap a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    margin: 0 4px;
    padding: 0 12px;
    border: 1px solid var(--ali-border);
    border-radius: 10px;
    background: #fff;
}

.pagebar-wrap .now-page {
    color: #fff;
    border-color: var(--ali-primary);
    background: var(--ali-primary);
}

.pagebar-wrap a:hover {
    color: var(--ali-primary);
    border-color: rgba(255, 106, 0, 0.3);
}

.empty-block {
    padding: 36px 20px;
    color: var(--ali-text-light);
    text-align: center;
    border: 1px dashed var(--ali-border);
    border-radius: 10px;
    background: #fafbfd;
}

.site-footer {
    padding: 18px 0 26px;
    color: var(--ali-text-light);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    padding: 0 4px;
}

.footer-inner p {
    margin: 0;
}

.vip-float {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 25;
    width: 300px;
    padding: 10px;
    border: 1px solid rgba(255, 106, 0, 0.16);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 36px rgba(31, 35, 41, 0.14);
}

.vip-float-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 24px;
    height: 24px;
    color: #98a2b3;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.vip-float .vip-tag {
    display: inline-flex;
    margin-bottom: 10px;
    padding: 4px 10px;
    color: var(--ali-primary);
    font-size: 11px;
    border-radius: 999px;
    background: #fff2e8;
}

.vip-float strong {
    display: block;
    margin-bottom: 8px;
    font-size: 18px;
    line-height: 1.4;
}

.vip-float p {
    margin: 0 0 12px;
    color: var(--ali-text-light);
}

.vip-float a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 40px;
    color: #fff;
    border-radius: 999px;
    background: var(--ali-primary);
}

@media (max-width: 1120px) {
    .resource-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .single-hero {
        grid-template-columns: 1fr;
    }

    .single-cover img {
        min-height: 260px;
    }
}

@media (max-width: 860px) {
    .header-inner,
    .footer-inner,
    .section-head,
    .comment-head,
    .comment-foot {
        flex-direction: column;
        align-items: flex-start;
    }

    .header-inner {
        flex-direction: row;
        align-items: center;
        min-height: 58px;
    }

    .brand-logo {
        width: 36px;
        height: 36px;
    }

    .brand-text {
        font-size: 18px;
    }

    .main-nav {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
        margin-left: auto;
    }

    .mobile-nav {
        display: block;
    }

    .resource-grid,
    .single-info,
    .comment-fields,
    .single-download .download-buttons {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .resource-actions {
        align-items: initial;
    }

    .download-buttons {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .download-btn {
        flex: initial;
    }

}

@media (max-width: 640px) {
    .site-shell {
        max-width: calc(100% - 20px);
    }

    .hero-copy {
        padding: 34px 0 38px;
    }

    .hero-copy h1 {
        font-size: 28px;
    }

    .resource-grid,
    .single-info,
    .comment-fields,
    .single-download .download-buttons {
        grid-template-columns: 1fr;
    }

    .comment-verify {
        grid-template-columns: 1fr;
    }

    .vip-float {
        right: 10px;
        bottom: 10px;
        width: calc(100% - 20px);
    }
}



