/* ==========================================================================
   久存网 · 页面级样式
   ========================================================================== */

/* Home latest ------------------------------------------------------------- */
.home-latest {
    padding-top: 76px;
}

.home-latest-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 336px;
    gap: 48px;
    align-items: start;
}

.home-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.post-grid-home .post-card:not(.post-card-featured) .post-card-title {
    font-size: 16.5px;
}

.post-grid-home .post-card:not(.post-card-featured) .post-card-excerpt {
    display: none;
}

.side-panel {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #fff;
    box-shadow: var(--shadow-xs);
}

.side-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.side-panel-head .eyebrow {
    margin-bottom: 5px;
}

.side-panel-head h3 {
    font-size: 20px;
    letter-spacing: -0.03em;
}

.side-panel-icon {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 11px;
    color: var(--blue-600);
    background: var(--blue-75);
}

.side-panel-icon .icon {
    width: 18px;
    height: 18px;
}

.rank-list {
    display: flex;
    flex-direction: column;
    list-style: none;
}

.rank-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 13px 0;
    border-top: 1px solid #eef5fc;
}

.rank-list li:first-child {
    padding-top: 0;
    border-top: 0;
}

.rank-list li:last-child {
    padding-bottom: 0;
}

.rank-number {
    flex: 0 0 auto;
    width: 27px;
    padding-top: 1px;
    color: #b2c4d9;
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: 12px;
    font-weight: 700;
}

.rank-number.rank-1 { color: var(--blue-600); }
.rank-number.rank-2 { color: #5f9be8; }
.rank-number.rank-3 { color: #80b3e9; }

.rank-list a {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.rank-list strong {
    color: var(--ink-2);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.55;
    transition: color 0.2s;
}

.rank-list a:hover strong {
    color: var(--blue-600);
}

.rank-list span:last-child {
    color: var(--muted-2);
    font-size: 10.5px;
}

.editor-panel {
    position: relative;
    overflow: hidden;
    border-color: #dcecff;
    background:
        radial-gradient(360px 180px at 100% 0%, rgba(114, 190, 255, 0.22), transparent 65%),
        linear-gradient(145deg, #eff8ff, #fbfdff);
}

.editor-mark {
    position: absolute;
    top: 18px;
    right: 18px;
    color: rgba(47, 124, 246, 0.18);
}

.editor-mark .icon {
    width: 54px;
    height: 54px;
}

.editor-panel blockquote {
    margin: 14px 0 20px;
    color: #2c4e73;
    font-family: "Songti SC", "STSong", "Noto Serif SC", serif;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.9;
}

.editor-sign {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 16px;
    border-top: 1px solid #dcecff;
}

.editor-sign > span:last-child {
    display: flex;
    flex-direction: column;
}

.editor-sign strong {
    font-size: 12px;
}

.editor-sign small {
    color: var(--muted-2);
    font-size: 10.5px;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.tag-cloud a {
    padding: 6px 10px;
    border: 1px solid #e4eefb;
    border-radius: 8px;
    color: #65809f;
    background: #fbfdff;
    font-size: 11.5px;
    transition: all 0.2s;
}

.tag-cloud a:hover {
    color: var(--blue-600);
    border-color: var(--blue-200);
    background: var(--blue-50);
}

/* Visual ------------------------------------------------------------------ */
.visual-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 0.82fr);
    grid-template-rows: repeat(2, 224px);
    gap: 14px;
}

.visual-card {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 18px;
    background: #b7d8f7;
    isolation: isolate;
}

.visual-card-1 {
    grid-column: 1;
    grid-row: 1 / 3;
}

.visual-card-2 {
    grid-column: 2;
    grid-row: 1;
}

.visual-card-3 {
    grid-column: 2;
    grid-row: 2;
}

.visual-quote {
    grid-column: 3;
    grid-row: 1 / 3;
}

.visual-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.65s var(--ease);
}

.visual-card:hover img {
    transform: scale(1.04);
}

.visual-shade {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(6, 32, 64, 0.04) 30%, rgba(6, 32, 64, 0.78) 100%);
}

.visual-top {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
}

.visual-body {
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: 19px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 5px;
    color: #fff;
}

.visual-cat {
    color: rgba(255, 255, 255, 0.72);
    font-size: 10.5px;
    font-weight: 500;
}

.visual-body strong {
    font-size: 17px;
    line-height: 1.45;
    letter-spacing: -0.02em;
}

.visual-card-1 .visual-body strong {
    font-size: 23px;
}

.visual-meta {
    color: rgba(255, 255, 255, 0.65);
    font-size: 10.5px;
}

.visual-quote {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 28px;
    border: 1px solid #dcecff;
    border-radius: 18px;
    background:
        radial-gradient(260px 150px at 100% 0%, rgba(117, 192, 255, 0.22), transparent 70%),
        linear-gradient(145deg, #f0f8ff, #fcfdff);
}

.visual-quote-mark {
    color: rgba(47, 124, 246, 0.24);
    margin-bottom: 12px;
}

.visual-quote-mark .icon {
    width: 34px;
    height: 34px;
}

.visual-quote p {
    color: #27486c;
    font-family: "Songti SC", "STSong", "Noto Serif SC", serif;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.8;
}

.visual-quote-line {
    width: 30px;
    height: 2px;
    margin: 18px 0 10px;
    border-radius: 2px;
    background: var(--blue-400);
}

.visual-quote small {
    color: var(--muted-2);
    font-size: 10.5px;
    letter-spacing: 0.08em;
}

/* Video ------------------------------------------------------------------- */
.video-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.video-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.video-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.video-thumb {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #d7e9fb;
}

.video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease);
}

.video-card:hover .video-thumb img {
    transform: scale(1.04);
}

.video-thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(8, 33, 64, 0.38));
}

.video-play {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 50%;
    color: #fff;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(9px);
    transform: translate(-50%, -50%);
    transition: all 0.25s var(--ease);
}

.video-play .icon {
    width: 20px;
    height: 20px;
    margin-left: 2px;
    fill: currentColor;
}

.video-card:hover .video-play {
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%) scale(1.06);
}

.video-duration {
    position: absolute;
    right: 10px;
    bottom: 10px;
    z-index: 2;
    padding: 3px 7px;
    border-radius: 5px;
    color: #fff;
    background: rgba(7, 26, 51, 0.68);
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: 10px;
}

.video-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 6px;
    padding: 17px 18px 18px;
}

.video-cat {
    color: var(--blue-600);
    font-size: 10.5px;
    font-weight: 700;
}

.video-body strong {
    color: var(--ink);
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: -0.02em;
}

.video-meta {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: auto;
    padding-top: 8px;
    color: var(--muted-2);
    font-size: 10.5px;
}

.video-meta .icon {
    width: 12px;
    height: 12px;
}

/* Downloads --------------------------------------------------------------- */
.download-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 318px;
    gap: 44px;
    align-items: stretch;
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px;
}

.download-card {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 15px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: #fff;
    transition: all 0.22s var(--ease);
}

.download-card:hover {
    border-color: var(--blue-200);
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
}

.download-file-icon {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 50px;
    height: 58px;
    border-radius: 8px;
    color: #fff;
    background: linear-gradient(150deg, #5aa7ff, #2f7cf6);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.download-file-icon::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 12px;
    height: 12px;
    border-radius: 0 0 0 5px;
    background: rgba(255, 255, 255, 0.26);
}

.download-file-icon .icon {
    width: 21px;
    height: 21px;
    margin-bottom: 3px;
}

.download-file-icon small {
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.06em;
}

.download-file-icon.kind-pdf { background: linear-gradient(150deg, #ff8e8e, #e95365); }
.download-file-icon.kind-archive { background: linear-gradient(150deg, #ffc26a, #ef9a22); }
.download-file-icon.kind-doc { background: linear-gradient(150deg, #6ba8ff, #2f7cf6); }
.download-file-icon.kind-xls { background: linear-gradient(150deg, #5fd0a6, #20a66e); }
.download-file-icon.kind-ppt { background: linear-gradient(150deg, #ffa376, #eb6c3d); }
.download-file-icon.kind-code { background: linear-gradient(150deg, #8c9eff, #6373e8); }
.download-file-icon.kind-video { background: linear-gradient(150deg, #7fc5ff, #2d8de0); }
.download-file-icon.kind-audio { background: linear-gradient(150deg, #9b8cff, #6c5ce7); }

.download-card-body {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.download-cat {
    color: var(--blue-600);
    font-size: 10px;
    font-weight: 700;
}

.download-card-body strong {
    display: -webkit-box;
    overflow: hidden;
    color: var(--ink-2);
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.45;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.download-meta {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--muted-2);
    font-size: 10px;
}

.download-meta i {
    width: 2px;
    height: 2px;
    border-radius: 50%;
    background: #c1cedd;
}

.download-price {
    flex: 0 0 auto;
    margin-left: auto;
    padding: 4px 8px;
    border-radius: 6px;
    color: var(--success);
    background: #f0fbf5;
    font-size: 10.5px;
    font-weight: 700;
}

.download-price.is-paid {
    color: #99600a;
    background: var(--premium-soft);
}

.download-guide {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 34px;
    border-radius: 22px;
    color: #fff;
    background:
        radial-gradient(420px 220px at 100% 0%, rgba(255, 255, 255, 0.22), transparent 60%),
        linear-gradient(145deg, #5aabff 0%, #2f7cf6 60%, #2870e4 100%);
    box-shadow: 0 22px 50px rgba(47, 124, 246, 0.22);
}

.download-guide .eyebrow {
    color: rgba(255, 255, 255, 0.66);
    margin-bottom: 12px;
}

.download-guide-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin-bottom: 20px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.24);
}

.download-guide-icon .icon {
    width: 23px;
    height: 23px;
}

.download-guide h3 {
    margin-bottom: 14px;
    font-size: 27px;
    font-weight: 700;
    line-height: 1.45;
    letter-spacing: -0.04em;
}

.download-guide p {
    color: rgba(255, 255, 255, 0.78);
    font-size: 12.5px;
    line-height: 1.85;
}

.download-guide ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 20px 0 24px;
    list-style: none;
    color: rgba(255, 255, 255, 0.9);
    font-size: 12px;
}

.download-guide li {
    display: flex;
    align-items: center;
    gap: 7px;
}

.download-guide li .icon {
    width: 14px;
    height: 14px;
    color: #b8f4df;
}

.download-guide .text-link {
    color: #fff;
    font-size: 12px;
}

/* Drive preview ----------------------------------------------------------- */
.drive-section {
    background:
        radial-gradient(900px 400px at 82% 30%, rgba(139, 205, 255, 0.18), transparent 60%),
        linear-gradient(180deg, #fbfdff, #f3faff);
    border-top: 1px solid #edf5ff;
    border-bottom: 1px solid #edf5ff;
}

.drive-home-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
    gap: 52px;
    align-items: center;
}

.drive-home-copy h2 {
    margin: 12px 0 18px;
    font-size: clamp(32px, 3.4vw, 45px);
    font-weight: 800;
    line-height: 1.32;
    letter-spacing: -0.05em;
}

.drive-home-copy > p {
    max-width: 460px;
    color: var(--muted);
    font-size: 14.5px;
    line-height: 1.9;
}

.drive-feature-list {
    display: grid;
    gap: 13px;
    margin: 28px 0;
}

.drive-feature-list > div {
    display: grid;
    grid-template-columns: 38px 1fr;
    grid-template-rows: auto auto;
    column-gap: 12px;
    align-items: center;
}

.drive-feature-list > div > span {
    grid-row: 1 / 3;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 11px;
    color: var(--blue-600);
    background: #fff;
    border: 1px solid #e1efff;
    box-shadow: var(--shadow-xs);
}

.drive-feature-list .icon {
    width: 17px;
    height: 17px;
}

.drive-feature-list strong {
    font-size: 13px;
    line-height: 1.4;
}

.drive-feature-list small {
    color: var(--muted-2);
    font-size: 11px;
}

.drive-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.drive-window-preview {
    overflow: hidden;
    border: 1px solid #d9e9fb;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 32px 80px rgba(36, 89, 156, 0.2);
    transform: perspective(1400px) rotateY(-2deg) rotateX(1deg);
    transform-origin: center;
    transition: transform 0.5s var(--ease);
}

.drive-window-preview:hover {
    transform: perspective(1400px) rotateY(0) rotateX(0);
}

.win-titlebar {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 38px;
    padding: 0 12px;
    border-bottom: 1px solid #e6eff9;
    background: #f6faff;
    color: #55708e;
    font-size: 11px;
}

.win-dots {
    display: flex;
    gap: 6px;
}

.win-dots span {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #f1b0b7;
}

.win-dots span:nth-child(2) { background: #f5d293; }
.win-dots span:nth-child(3) { background: #a9dfb9; }

.win-title {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #49637f;
    font-weight: 600;
}

.win-title .icon {
    width: 13px;
    height: 13px;
    color: var(--blue-500);
}

.win-title span {
    color: #91a5ba;
    font-weight: 400;
}

.win-controls {
    display: flex;
    gap: 13px;
    margin-left: auto;
    color: #93a6ba;
    font-size: 11px;
}

.win-navbar {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 9px 10px;
    border-bottom: 1px solid #eef4fb;
}

.win-nav-arrow {
    display: grid;
    place-items: center;
    width: 25px;
    height: 25px;
    border-radius: 6px;
    color: #8da2b8;
    background: #f7faff;
}

.win-nav-arrow .icon {
    width: 12px;
    height: 12px;
}

.win-address {
    display: flex;
    align-items: center;
    gap: 5px;
    flex: 1;
    min-width: 0;
    height: 28px;
    padding: 0 8px;
    border: 1px solid #e4eef9;
    border-radius: 5px;
    color: #7f94aa;
    background: #fbfdff;
    font-size: 10px;
}

.win-address .icon {
    width: 11px;
    height: 11px;
    color: #7e9bb8;
}

.win-address strong {
    color: #4b6886;
    font-weight: 600;
}

.win-search {
    display: flex;
    align-items: center;
    gap: 5px;
    width: 130px;
    height: 28px;
    padding: 0 8px;
    border: 1px solid #e4eef9;
    border-radius: 5px;
    color: #9cafc2;
    background: #fbfdff;
    font-size: 10px;
}

.win-search .icon {
    width: 11px;
    height: 11px;
}

.win-toolbar {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 7px 12px;
    border-bottom: 1px solid #edf4fb;
    color: #6d849c;
    font-size: 10px;
    background: #fff;
}

.win-toolbar span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.win-toolbar .icon {
    width: 13px;
    height: 13px;
    color: var(--blue-500);
}

.win-toolbar-sep {
    width: 1px;
    height: 14px;
    background: #e6eef8;
}

.win-main {
    display: grid;
    grid-template-columns: 148px minmax(0, 1fr);
    min-height: 370px;
}

.win-side {
    padding: 12px 9px;
    border-right: 1px solid #edf4fb;
    background: #f7fbff;
}

.win-side-group {
    display: flex;
    flex-direction: column;
    gap: 1px;
    margin-bottom: 12px;
}

.win-side-title {
    padding: 4px 7px;
    color: #9aadc0;
    font-size: 8.5px;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.win-side-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 7px;
    border-radius: 5px;
    color: #667f99;
    font-size: 9.5px;
}

.win-side-item .icon {
    width: 12px;
    height: 12px;
    color: #7f9bb8;
}

.win-side-item.is-active {
    color: #245fa8;
    background: #e8f3ff;
}

.win-side-item small {
    margin-left: auto;
    color: #a4b5c7;
    font-size: 8px;
}

.win-content {
    min-width: 0;
    display: flex;
    flex-direction: column;
    background: #fff;
}

.win-content-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px 6px;
}

.win-content-head strong {
    color: #334f6c;
    font-size: 12px;
}

.win-content-head span {
    color: #9bafc3;
    font-size: 9px;
}

.win-file-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 3px;
    padding: 6px 10px 14px;
    align-content: start;
}

.win-file {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 10px 5px 8px;
    border: 1px solid transparent;
    border-radius: 5px;
    text-align: center;
}

.win-file:hover {
    border-color: #d8e9fb;
    background: #f4faff;
}

.win-file-icon {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 7px;
    color: var(--blue-500);
    background: #ecf6ff;
}

.win-file-icon.is-folder {
    color: #3d8adf;
    background: #eaf4ff;
}

.win-file-icon .icon {
    width: 21px;
    height: 21px;
}

.win-file-name {
    display: -webkit-box;
    overflow: hidden;
    color: #4c657f;
    font-size: 8.5px;
    line-height: 1.35;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.win-file-meta {
    color: #a5b5c7;
    font-size: 7.5px;
}

.win-statusbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
    padding: 7px 14px;
    border-top: 1px solid #edf4fb;
    color: #98abbf;
    font-size: 8.5px;
}

.win-statusbar span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.win-statusbar .icon {
    width: 10px;
    height: 10px;
    color: #79b896;
}

/* CTA --------------------------------------------------------------------- */
.home-cta {
    padding-top: 30px;
}

.cta-panel {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 60px 64px;
    border-radius: 28px;
    color: #fff;
    background:
        linear-gradient(120deg, #5eb1ff 0%, #2f7cf6 45%, #1f68e0 100%);
    box-shadow: 0 28px 70px rgba(47, 124, 246, 0.26);
}

.cta-orb {
    position: absolute;
    top: -130px;
    right: 18%;
    width: 360px;
    height: 360px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.11), transparent 68%);
}

.cta-orb::after {
    content: "";
    position: absolute;
    inset: 48px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.cta-copy {
    position: relative;
    z-index: 1;
    max-width: 620px;
}

.cta-copy .eyebrow {
    color: rgba(255, 255, 255, 0.66);
}

.cta-copy h2 {
    margin: 12px 0 14px;
    font-size: clamp(31px, 3.2vw, 43px);
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: -0.05em;
}

.cta-copy p {
    color: rgba(255, 255, 255, 0.78);
    font-size: 13.5px;
    line-height: 1.8;
}

.cta-actions {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 0 0 auto;
}

/* Listing pages ----------------------------------------------------------- */
.page-hero {
    position: relative;
    overflow: hidden;
    padding: 54px 0 50px;
    background:
        radial-gradient(700px 300px at 92% 0%, rgba(111, 190, 255, 0.2), transparent 62%),
        linear-gradient(135deg, #f3f9ff, #fbfdff 55%, #eff8ff);
    border-bottom: 1px solid #e9f3ff;
}

.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(47, 124, 246, 0.12) 0.6px, transparent 0.6px);
    background-size: 22px 22px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.25), transparent 75%);
    pointer-events: none;
}

.page-hero-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
}

.page-hero-copy {
    max-width: 780px;
}

.page-hero-copy .eyebrow {
    margin-bottom: 10px;
}

.page-hero-copy h1 {
    margin-bottom: 13px;
    font-size: clamp(35px, 4vw, 54px);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.055em;
}

.page-hero-copy p {
    max-width: 680px;
    color: #58718e;
    font-size: 14.5px;
    line-height: 1.85;
}

.page-hero-meta {
    display: flex;
    align-items: center;
    gap: 26px;
    flex: 0 0 auto;
    padding-bottom: 6px;
}

.page-hero-meta > div:not(.page-hero-meta-icon) {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.page-hero-meta strong {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.1;
}

.page-hero-meta span {
    color: var(--muted-2);
    font-size: 10.5px;
}

.page-hero-meta-icon {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border: 1px solid #d9eaff;
    border-radius: 17px;
    color: var(--blue-500);
    background: rgba(255, 255, 255, 0.66);
    box-shadow: var(--shadow-sm);
}

.page-hero-meta-icon .icon {
    width: 26px;
    height: 26px;
}

.page-hero-badge {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 14px 18px;
    border: 1px solid #dcecff;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: var(--shadow-sm);
}

.page-hero-badge-icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    color: var(--blue-600);
    background: var(--blue-75);
}

.page-hero-badge span:last-child {
    display: flex;
    flex-direction: column;
}

.page-hero-badge strong {
    font-size: 23px;
    line-height: 1.1;
}

.page-hero-badge small {
    color: var(--muted);
    font-size: 10.5px;
}

.page-hero-compact {
    padding: 44px 0 40px;
}

.listing-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 328px;
    gap: 44px;
    align-items: start;
    padding-top: 36px;
    padding-bottom: 80px;
}

.listing-main {
    min-width: 0;
}

.category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 26px;
}

.category-tabs a {
    padding: 7px 13px;
    border-radius: 8px;
    color: #69809b;
    font-size: 12.5px;
    font-weight: 500;
    transition: all 0.2s;
}

.category-tabs a:hover {
    color: var(--blue-600);
    background: var(--blue-50);
}

.category-tabs a.is-active {
    color: var(--blue-700);
    background: var(--blue-75);
    font-weight: 700;
}

.featured-strip {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    grid-template-rows: 1fr 1fr;
    gap: 11px;
    margin-bottom: 26px;
    height: 346px;
}

.featured-strip-item {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    color: #fff;
    background: #b7d8f7;
    isolation: isolate;
}

.featured-strip-item.is-lead {
    grid-row: 1 / 3;
}

.featured-strip-item img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease);
}

.featured-strip-item:hover img {
    transform: scale(1.035);
}

.featured-strip-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(6, 28, 57, 0.03), rgba(6, 28, 57, 0.75));
}

.featured-strip-body {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 17px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 1;
}

.featured-strip-body > strong {
    font-size: 17px;
    line-height: 1.45;
}

.featured-strip-item.is-lead .featured-strip-body > strong {
    font-size: 22px;
}

.featured-strip-body > span:last-child {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: rgba(255, 255, 255, 0.68);
    font-size: 10px;
}

.featured-strip-body .icon {
    width: 11px;
    height: 11px;
}

.featured-strip-body .pill {
    align-self: flex-start;
    margin-bottom: 2px;
}

.listing-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
    color: var(--muted-2);
    font-size: 11.5px;
}

.listing-toolbar strong {
    color: var(--ink-2);
}

.listing-toolbar-note {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.listing-toolbar-note .icon {
    width: 13px;
    height: 13px;
}

.listing-sidebar {
    position: sticky;
    top: 96px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.channel-list {
    display: flex;
    flex-direction: column;
}

.channel-list > a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-top: 1px solid #eef5fc;
}

.channel-list > a:first-child {
    border-top: 0;
    padding-top: 0;
}

.channel-list > a:last-child {
    padding-bottom: 0;
}

.channel-list > a:hover strong {
    color: var(--blue-600);
}

.channel-icon {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    color: var(--blue-600);
    background: var(--blue-50);
}

.channel-icon .icon {
    width: 16px;
    height: 16px;
}

.channel-list a > span:nth-child(2) {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.channel-list strong {
    font-size: 12.5px;
    font-weight: 600;
}

.channel-list small {
    overflow: hidden;
    color: var(--muted-2);
    font-size: 10.5px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.channel-arrow {
    width: 13px;
    height: 13px;
    margin-left: auto;
    color: #b4c5d8;
}

.channel-list > a.is-active .channel-icon {
    color: #fff;
    background: var(--blue-500);
}

.feed-panel {
    background: linear-gradient(145deg, #f2f9ff, #fcfdff);
}

.feed-panel .side-panel-icon {
    margin-bottom: 15px;
}

.feed-panel h3 {
    margin-bottom: 8px;
    font-size: 17px;
}

.feed-panel p {
    margin-bottom: 15px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.75;
}

/* Pagination -------------------------------------------------------------- */
.pagination {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 34px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
}

.page-numbers {
    display: flex;
    align-items: center;
    gap: 4px;
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-width: 35px;
    height: 35px;
    padding: 0 9px;
    border: 1px solid transparent;
    border-radius: 8px;
    color: #6d849f;
    font-size: 12px;
    font-weight: 500;
}

.page-link:hover {
    color: var(--blue-600);
    background: var(--blue-50);
}

.page-link.is-current {
    color: #fff;
    background: var(--blue-500);
    box-shadow: 0 5px 12px rgba(47, 124, 246, 0.22);
}

.page-link.is-disabled {
    opacity: 0.4;
    cursor: default;
}

.page-link .icon {
    width: 13px;
    height: 13px;
}

.page-prev,
.page-next {
    padding-inline: 11px;
}

.page-ellipsis {
    padding: 0 2px;
    color: #b2c3d6;
}

.page-total {
    margin-left: auto;
    color: var(--muted-2);
    font-size: 11px;
}

.pagination-comments {
    margin-top: 18px;
    padding-top: 16px;
}

.page-status {
    color: var(--muted-2);
    font-size: 11.5px;
}

/* Article detail ---------------------------------------------------------- */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 200;
    width: 100%;
    height: 3px;
    pointer-events: none;
}

.reading-progress span {
    display: block;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--blue-500), var(--cyan-400));
    box-shadow: 0 0 8px rgba(47, 124, 246, 0.4);
}

.article-header {
    padding: 42px 0 0;
}

.article-header-inner {
    max-width: 900px;
}

.article-kicker {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 18px;
}

.article-category {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--blue-600);
    font-size: 12px;
    font-weight: 700;
}

.article-category .icon {
    width: 15px;
    height: 15px;
}

.article-header h1 {
    margin-bottom: 18px;
    font-size: clamp(34px, 4vw, 54px);
    font-weight: 800;
    line-height: 1.28;
    letter-spacing: -0.05em;
}

.article-deck {
    margin-bottom: 24px;
    color: #5d7898;
    font-family: "Songti SC", "STSong", "Noto Serif SC", serif;
    font-size: 18px;
    line-height: 1.9;
}

.article-meta-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
    padding: 15px 0;
    border-top: 1px solid var(--line);
    color: var(--muted-2);
    font-size: 11.5px;
}

.article-author-mini {
    display: flex;
    align-items: center;
    gap: 9px;
}

.article-author-mini > span:last-child {
    display: flex;
    flex-direction: column;
}

.article-author-mini strong {
    color: var(--ink-2);
    font-size: 12.5px;
}

.article-author-mini small {
    color: var(--muted-2);
    font-size: 10px;
}

.meta-divider {
    width: 1px;
    height: 26px;
    background: var(--line);
}

.article-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.article-meta-item .icon {
    width: 13px;
    height: 13px;
}

.article-meta-share {
    gap: 7px;
    margin-left: auto;
}

.article-meta-share .icon-button {
    width: 30px;
    height: 30px;
}

.article-cover {
    margin-top: 30px;
}

.article-cover img {
    width: 100%;
    max-height: 620px;
    object-fit: cover;
    border-radius: 22px;
    background: var(--blue-75);
}

.article-cover figcaption {
    margin-top: 9px;
    color: var(--muted-2);
    font-size: 10.5px;
    text-align: right;
}

.article-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 318px;
    gap: 56px;
    align-items: start;
    padding-top: 44px;
    padding-bottom: 70px;
}

.article-main {
    min-width: 0;
    max-width: 860px;
}

.article-content {
    color: #29425f;
    font-family: "Songti SC", "STSong", "Noto Serif SC", "PingFang SC", serif;
    font-size: 17px;
    line-height: 2;
}

.article-content > *:first-child {
    margin-top: 0;
}

.article-content p {
    margin: 1.25em 0;
}

.article-content h2 {
    margin: 2.1em 0 0.8em;
    color: var(--ink);
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
    font-size: 27px;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.45;
    scroll-margin-top: 100px;
}

.article-content h3 {
    margin: 1.7em 0 0.65em;
    color: var(--ink);
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
    font-size: 21px;
    font-weight: 700;
    line-height: 1.5;
    scroll-margin-top: 100px;
}

.article-content blockquote {
    margin: 1.7em 0;
    padding: 18px 24px;
    border-left: 3px solid var(--blue-400);
    border-radius: 0 12px 12px 0;
    background: var(--blue-50);
    color: #3b587a;
    font-size: 16.5px;
    line-height: 1.9;
}

.article-content ul,
.article-content ol {
    margin: 1.2em 0;
    padding-left: 1.3em;
}

.article-content li {
    margin: 0.45em 0;
}

.article-content a {
    color: var(--blue-600);
    border-bottom: 1px solid rgba(47, 124, 246, 0.28);
}

.article-content a:hover {
    border-color: var(--blue-500);
}

.article-content img {
    height: auto;
    margin: 1.7em auto;
    border-radius: 14px;
}

.article-content figure img {
    margin-bottom: 7px;
}

.article-content figcaption {
    color: var(--muted-2);
    font-size: 11px;
    text-align: center;
}

.article-content hr {
    width: 60px;
    height: 1px;
    margin: 2.6em auto;
    border: 0;
    background: var(--line-strong);
}

.article-content table {
    width: 100%;
    margin: 1.5em 0;
    border-collapse: collapse;
    font-family: "PingFang SC", sans-serif;
    font-size: 13px;
}

.article-content th,
.article-content td {
    padding: 10px 12px;
    border: 1px solid var(--line);
    text-align: left;
}

.article-content th {
    background: var(--blue-50);
    color: var(--ink-2);
}

.article-content pre {
    overflow-x: auto;
    padding: 16px 18px;
    border-radius: 12px;
    background: #f2f7fd;
    font-size: 12.5px;
    line-height: 1.7;
}

.article-content code {
    padding: 2px 5px;
    border-radius: 4px;
    background: #eef5fd;
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: 0.86em;
}

.article-content pre code {
    padding: 0;
    background: transparent;
}

.article-content > p:first-of-type {
    font-size: 18px;
    color: #203a59;
}

.paywall {
    position: relative;
    margin-top: 30px;
}

.paywall-gradient {
    position: absolute;
    top: -150px;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0), #fff 88%);
    pointer-events: none;
}

.paywall-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 42px 36px 34px;
    border: 1px solid #dbeaff;
    border-radius: 22px;
    background:
        radial-gradient(420px 220px at 50% 0%, rgba(121, 195, 255, 0.16), transparent 65%),
        linear-gradient(180deg, #f8fcff, #fff);
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.paywall-icon {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    margin-bottom: 15px;
    border: 1px solid #d7eaff;
    border-radius: 17px;
    color: var(--blue-600);
    background: #fff;
    box-shadow: 0 8px 20px rgba(47, 124, 246, 0.12);
}

.paywall-icon .icon {
    width: 25px;
    height: 25px;
}

.paywall-card h2 {
    margin: 9px 0 9px;
    font-size: 25px;
    letter-spacing: -0.04em;
}

.paywall-card > p {
    max-width: 480px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.8;
}

.paywall-price {
    display: flex;
    align-items: baseline;
    gap: 2px;
    margin: 20px 0 18px;
}

.paywall-price > span {
    color: var(--blue-600);
    font-size: 20px;
    font-weight: 700;
}

.paywall-price strong {
    font-size: 46px;
    font-weight: 800;
    letter-spacing: -0.05em;
    line-height: 1;
}

.paywall-price small {
    margin-left: 8px;
    color: var(--muted-2);
    font-size: 11px;
}

.paywall-form {
    width: 100%;
    max-width: 300px;
}

.paywall-balance {
    margin-top: 11px !important;
    color: var(--muted-2) !important;
    font-size: 11px !important;
}

.paywall-balance strong {
    color: var(--ink-2);
}

.paywall-benefits {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid #e8f2fd;
    color: var(--muted-2);
    font-size: 10.5px;
}

.paywall-benefits span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.paywall-benefits .icon {
    width: 12px;
    height: 12px;
    color: var(--success);
}

.article-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    margin: 28px 0 0;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}

.article-tags-label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-right: 3px;
    color: var(--muted-2);
    font-size: 11px;
}

.article-tags-label .icon {
    width: 13px;
    height: 13px;
}

.article-tags a {
    padding: 5px 10px;
    border: 1px solid var(--line);
    border-radius: 7px;
    color: #6f87a2;
    background: #fbfdff;
    font-size: 11px;
}

.article-tags a:hover {
    color: var(--blue-600);
    border-color: var(--blue-200);
    background: var(--blue-50);
}

.article-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 24px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: #fbfdff;
}

.article-actions-left,
.article-actions-right {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}

.article-actions form {
    margin: 0;
}

.action-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 36px;
    padding: 0 11px;
    border-radius: 9px;
    color: #6d849f;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s;
}

.action-button:hover {
    color: var(--blue-600);
    background: var(--blue-50);
}

.action-button .icon {
    width: 16px;
    height: 16px;
}

.action-button em {
    padding: 1px 5px;
    border-radius: 5px;
    color: var(--muted-2);
    background: #eef5fc;
    font-size: 10px;
    font-style: normal;
}

.action-button.is-active {
    color: var(--blue-600);
    background: var(--blue-75);
}

.action-button.is-active .icon {
    fill: rgba(47, 124, 246, 0.14);
}

.action-reward {
    color: #9a6518;
    background: #fff9ee;
}

.action-reward:hover {
    color: #82520d;
    background: #fff4e0;
}

.action-reward .icon {
    color: var(--premium);
}

.author-box {
    display: flex;
    align-items: center;
    gap: 17px;
    margin-top: 28px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background:
        radial-gradient(300px 140px at 100% 0%, rgba(130, 199, 255, 0.14), transparent 65%),
        #fbfdff;
}

.author-box-body {
    flex: 1;
    min-width: 0;
}

.author-box-body .eyebrow {
    font-size: 9.5px;
}

.author-box h3 {
    margin: 2px 0 4px;
    font-size: 18px;
}

.author-box p {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.7;
}

.article-prevnext {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 22px;
}

.prevnext-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: #fff;
    transition: all 0.2s;
}

.prevnext-item:hover {
    border-color: var(--blue-200);
    background: var(--blue-25);
}

.prevnext-item > span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--muted-2);
    font-size: 10.5px;
}

.prevnext-item .icon {
    width: 12px;
    height: 12px;
}

.prevnext-item strong {
    display: -webkit-box;
    overflow: hidden;
    color: var(--ink-2);
    font-size: 12.5px;
    line-height: 1.5;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.prevnext-item.next {
    text-align: right;
}

.prevnext-item.next > span {
    justify-content: flex-end;
}

.article-sidebar {
    position: sticky;
    top: 96px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.article-side-card {
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow-xs);
}

.author-side-head {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 12px;
}

.author-side-head > div {
    display: flex;
    flex-direction: column;
}

.author-side-head strong {
    font-size: 14px;
}

.author-side-head span {
    color: var(--muted-2);
    font-size: 10.5px;
}

.author-side-card > p {
    color: var(--muted);
    font-size: 11.5px;
    line-height: 1.75;
}

.author-side-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    margin: 15px 0;
    padding: 12px 0;
    border-top: 1px solid #eef5fc;
    border-bottom: 1px solid #eef5fc;
    text-align: center;
}

.author-side-stats div {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.author-side-stats strong {
    font-size: 15px;
    font-weight: 800;
}

.author-side-stats span {
    color: var(--muted-2);
    font-size: 9.5px;
}

.side-card-title {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 13px;
}

.side-card-title .eyebrow {
    font-size: 8.5px;
}

.side-card-title strong {
    font-size: 15px;
}

.toc-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
    position: relative;
    list-style: none;
    border-left: 1px solid #e8f1fc;
}

.toc-list li a {
    display: block;
    padding: 5px 0 5px 13px;
    margin-left: -1px;
    border-left: 2px solid transparent;
    color: #6f87a2;
    font-size: 11.5px;
    line-height: 1.55;
}

.toc-list li a:hover,
.toc-list li a.is-active {
    color: var(--blue-600);
    border-left-color: var(--blue-400);
}

.toc-list .toc-level-3 a {
    padding-left: 25px;
    font-size: 10.5px;
}

.toc-progress {
    height: 2px;
    margin-top: 13px;
    border-radius: 2px;
    background: #eef5fc;
    overflow: hidden;
}

.toc-progress span {
    display: block;
    width: 0;
    height: 100%;
    background: var(--blue-400);
}

.share-buttons {
    display: flex;
    gap: 6px;
}

.share-buttons a,
.share-buttons button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    height: 32px;
    border: 1px solid var(--line);
    border-radius: 7px;
    color: #6d849f;
    font-size: 10.5px;
}

.share-buttons a:hover,
.share-buttons button:hover {
    color: var(--blue-600);
    border-color: var(--blue-200);
    background: var(--blue-50);
}

.related-mini-list {
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.related-mini-list a {
    display: flex;
    gap: 9px;
    min-width: 0;
}

.related-mini-list img {
    width: 54px;
    height: 44px;
    flex: 0 0 auto;
    border-radius: 6px;
    object-fit: cover;
}

.related-mini-list a > span {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.related-mini-list strong {
    display: -webkit-box;
    overflow: hidden;
    font-size: 11.5px;
    font-weight: 600;
    line-height: 1.45;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.related-mini-list a:hover strong {
    color: var(--blue-600);
}

.related-mini-list small {
    color: var(--muted-2);
    font-size: 9.5px;
}

.related-section {
    padding-top: 60px;
}

/* Comments ---------------------------------------------------------------- */
.comments-section {
    margin-top: 48px;
    padding-top: 34px;
    border-top: 1px solid var(--line);
}

.comment-form {
    display: flex;
    gap: 13px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fbfdff;
}

.comment-form-main {
    flex: 1;
    min-width: 0;
}

.comment-form textarea {
    width: 100%;
    min-height: 94px;
    padding: 12px 14px;
    border: 1px solid var(--line-strong);
    border-radius: 11px;
    background: #fff;
    font-size: 13px;
    line-height: 1.75;
    resize: vertical;
}

.comment-form textarea:focus {
    outline: none;
    border-color: var(--blue-400);
    box-shadow: 0 0 0 4px rgba(47, 124, 246, 0.09);
}

.comment-form-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 10px;
}

.comment-form-foot .form-hint {
    font-size: 10.5px;
}

.comment-reply-hint {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    padding: 7px 10px;
    border-radius: 7px;
    background: var(--blue-75);
    color: var(--blue-700);
    font-size: 11px;
}

.comment-reply-hint button {
    color: var(--blue-600);
    font-size: 10.5px;
    text-decoration: underline;
}

.comment-login {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px;
    border: 1px dashed var(--line-strong);
    border-radius: 16px;
    background: #fbfdff;
}

.comment-login-icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    color: var(--blue-500);
    background: var(--blue-75);
}

.comment-login > div {
    flex: 1;
}

.comment-login strong {
    font-size: 13.5px;
}

.comment-login p {
    color: var(--muted);
    font-size: 11.5px;
}

.comment-list {
    margin-top: 16px;
}

.comment-item {
    display: flex;
    gap: 12px;
    padding: 18px 0;
    border-top: 1px solid #eef5fc;
}

.comment-item:first-child {
    border-top: 0;
}

.comment-content {
    flex: 1;
    min-width: 0;
}

.comment-head {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 4px;
}

.comment-head strong {
    font-size: 12.5px;
}

.comment-head time {
    color: var(--muted-2);
    font-size: 10px;
}

.comment-role {
    margin-left: 5px;
    padding: 1px 5px;
    border-radius: 4px;
    color: var(--blue-600);
    background: var(--blue-75);
    font-size: 8.5px;
    font-weight: 600;
    vertical-align: 1px;
}

.comment-text {
    color: #425d7b;
    font-size: 13px;
    line-height: 1.8;
    word-break: break-word;
}

.comment-actions {
    margin-top: 4px;
}

.comment-reply {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--muted-2);
    font-size: 10.5px;
}

.comment-reply:hover {
    color: var(--blue-600);
}

.comment-reply .icon {
    width: 12px;
    height: 12px;
}

.comment-replies {
    margin-top: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #f7fbff;
}

.comment-reply-item {
    padding: 10px 0;
    border-top: 1px dashed #e1ecf9;
}

.comment-reply-item:first-child {
    padding-top: 0;
    border-top: 0;
}

.comment-reply-item:last-child {
    padding-bottom: 0;
}

.empty-comments {
    padding: 34px 20px;
}

/* Gallery ----------------------------------------------------------------- */
.page-hero-gallery .page-hero-copy h1 {
    max-width: 780px;
}

.gallery-index {
    padding-top: 34px;
    padding-bottom: 80px;
}

.gallery-featured {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
    grid-template-rows: 1fr 1fr;
    gap: 13px;
    height: 460px;
    margin-bottom: 42px;
}

.gallery-feature-card {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    color: #fff;
    background: #b7d8f7;
    isolation: isolate;
}

.gallery-feature-1 {
    grid-row: 1 / 3;
}

.gallery-feature-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s var(--ease);
}

.gallery-feature-card:hover img {
    transform: scale(1.035);
}

.gallery-feature-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(5, 29, 57, 0.02) 30%, rgba(5, 29, 57, 0.78));
}

.gallery-feature-body {
    position: absolute;
    left: 22px;
    right: 22px;
    bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.gallery-feature-body strong {
    font-size: 20px;
    line-height: 1.45;
    letter-spacing: -0.02em;
}

.gallery-feature-1 .gallery-feature-body strong {
    font-size: 27px;
}

.gallery-feature-body > span:last-child {
    color: rgba(255, 255, 255, 0.68);
    font-size: 11px;
    line-height: 1.6;
}

.gallery-feature-body .pill {
    align-self: flex-start;
    margin-bottom: 2px;
}

.gallery-list-head {
    margin-bottom: 24px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.gallery-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.gallery-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.gallery-card-media {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: #d7e9fb;
}

.gallery-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease);
}

.gallery-card:hover .gallery-card-media img {
    transform: scale(1.04);
}

.gallery-photo-count {
    position: absolute;
    right: 10px;
    bottom: 10px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 7px;
    border-radius: 5px;
    color: #fff;
    background: rgba(8, 28, 53, 0.58);
    backdrop-filter: blur(6px);
    font-size: 10px;
}

.gallery-photo-count .icon {
    width: 11px;
    height: 11px;
}

.gallery-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 5px;
    padding: 17px 18px 18px;
}

.gallery-card-cat {
    color: var(--blue-600);
    font-size: 10.5px;
    font-weight: 700;
}

.gallery-card-body strong {
    font-size: 16.5px;
    line-height: 1.5;
    letter-spacing: -0.02em;
}

.gallery-card-desc {
    display: -webkit-box;
    overflow: hidden;
    color: var(--muted);
    font-size: 11.5px;
    line-height: 1.7;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.gallery-card-meta {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: auto;
    padding-top: 9px;
    color: var(--muted-2);
    font-size: 10px;
}

.gallery-card-meta i {
    width: 2px;
    height: 2px;
    border-radius: 50%;
    background: #c3d1e0;
}

.gallery-card-meta .icon {
    width: 11px;
    height: 11px;
}

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

.gallery-detail-header {
    padding: 42px 0 0;
}

.gallery-detail-head-inner {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
    max-width: 1000px;
}

.gallery-detail-head-inner h1 {
    margin-bottom: 14px;
    font-size: clamp(32px, 3.7vw, 50px);
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -0.05em;
}

.gallery-head-count {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 0 0 auto;
    padding: 14px 20px;
    border: 1px solid #dcecff;
    border-radius: 16px;
    background: #fbfdff;
}

.gallery-head-count span {
    color: var(--blue-500);
    margin-bottom: 4px;
}

.gallery-head-count span .icon {
    width: 19px;
    height: 19px;
}

.gallery-head-count strong {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.1;
}

.gallery-head-count small {
    color: var(--muted-2);
    font-size: 8px;
    letter-spacing: 0.08em;
}

.gallery-stage {
    margin-top: 28px;
}

.gallery-cover-button {
    position: relative;
    display: block;
    width: 100%;
    overflow: hidden;
    border-radius: 22px;
    background: #d7e9fb;
}

.gallery-cover-button img {
    width: 100%;
    max-height: 620px;
    object-fit: cover;
}

.gallery-cover-hint {
    position: absolute;
    right: 16px;
    bottom: 16px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 11px;
    border-radius: 7px;
    color: #fff;
    background: rgba(8, 28, 53, 0.55);
    backdrop-filter: blur(7px);
    font-size: 10.5px;
}

.gallery-cover-hint .icon {
    width: 12px;
    height: 12px;
}

.gallery-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 48px;
    align-items: start;
    padding-top: 34px;
    padding-bottom: 70px;
}

.gallery-main {
    min-width: 0;
}

.gallery-photo-stream {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.gallery-photo {
    overflow: hidden;
    border-radius: 15px;
    background: #f7fbff;
}

.gallery-photo-button {
    display: block;
    width: 100%;
    overflow: hidden;
    background: #dcecfb;
}

.gallery-photo-button img {
    width: 100%;
    max-height: 720px;
    object-fit: cover;
    transition: transform 0.6s var(--ease);
}

.gallery-photo:hover .gallery-photo-button img {
    transform: scale(1.015);
}

.gallery-photo figcaption {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    color: var(--muted);
    font-size: 11.5px;
}

.photo-number {
    color: var(--blue-500);
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: 10px;
    font-weight: 700;
}

.gallery-end-note {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin-top: 24px;
    padding: 16px 18px;
    border: 1px dashed var(--line-strong);
    border-radius: 12px;
    background: #fbfdff;
    color: var(--muted);
    font-size: 11.5px;
    line-height: 1.7;
}

.gallery-end-note > span {
    color: var(--blue-500);
}

.gallery-end-note .icon {
    width: 18px;
    height: 18px;
}

.gallery-actions {
    margin-top: 20px;
}

.gallery-sidebar {
    position: sticky;
    top: 96px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.info-list {
    display: flex;
    flex-direction: column;
}

.info-list > div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 15px;
    padding: 8px 0;
    border-top: 1px solid #eef5fc;
    font-size: 11.5px;
}

.info-list > div:first-child {
    border-top: 0;
    padding-top: 0;
}

.info-list dt {
    color: var(--muted-2);
}

.info-list dd {
    color: var(--ink-2);
    font-weight: 500;
    text-align: right;
}

.related-gallery-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.related-gallery-list a {
    display: flex;
    align-items: center;
    gap: 9px;
}

.related-gallery-list img {
    width: 58px;
    height: 46px;
    flex: 0 0 auto;
    border-radius: 6px;
    object-fit: cover;
}

.related-gallery-list a > span {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.related-gallery-list strong {
    display: -webkit-box;
    overflow: hidden;
    font-size: 11.5px;
    line-height: 1.45;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.related-gallery-list small {
    color: var(--muted-2);
    font-size: 9.5px;
}

.gallery-tip-card {
    padding: 20px;
    border: 1px solid #dcecff;
    border-radius: 18px;
    background:
        radial-gradient(220px 120px at 100% 0%, rgba(120, 194, 255, 0.18), transparent 65%),
        linear-gradient(145deg, #f1f9ff, #fcfdff);
}

.gallery-tip-card > span {
    display: grid;
    place-items: center;
    width: 35px;
    height: 35px;
    margin-bottom: 11px;
    border-radius: 10px;
    color: var(--blue-600);
    background: #fff;
}

.gallery-tip-card .icon {
    width: 17px;
    height: 17px;
}

.gallery-tip-card p {
    color: #506b8a;
    font-size: 11.5px;
    line-height: 1.75;
}

.gallery-tip-card a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 10px;
    color: var(--blue-600);
    font-size: 11.5px;
    font-weight: 600;
}

/* Video pages ------------------------------------------------------------- */
.page-hero-video .page-hero-copy h1 {
    line-height: 1.28;
}

.video-page {
    padding-top: 34px;
    padding-bottom: 80px;
}

.video-hero {
    position: relative;
    display: block;
    overflow: hidden;
    min-height: 430px;
    margin-bottom: 42px;
    border-radius: 24px;
    color: #fff;
    background: #b7d8f7;
    isolation: isolate;
}

.video-hero > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s var(--ease);
}

.video-hero:hover > img {
    transform: scale(1.025);
}

.video-hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(6, 28, 57, 0.78) 0%, rgba(6, 28, 57, 0.32) 56%, rgba(6, 28, 57, 0.08) 100%);
}

.video-hero-play {
    position: absolute;
    top: 50%;
    right: 13%;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 76px;
    height: 76px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 50%;
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(10px);
    transform: translateY(-50%);
    transition: all 0.3s var(--ease);
}

.video-hero:hover .video-hero-play {
    background: rgba(255, 255, 255, 0.24);
    transform: translateY(-50%) scale(1.05);
}

.video-hero-play .icon {
    width: 27px;
    height: 27px;
    margin-left: 3px;
    fill: currentColor;
}

.video-hero-body {
    position: absolute;
    left: 40px;
    bottom: 34px;
    z-index: 2;
    max-width: 590px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.video-hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 11px;
}

.video-hero-kicker .icon {
    width: 14px;
    height: 14px;
}

.video-hero-body > strong {
    font-size: clamp(28px, 3.4vw, 43px);
    line-height: 1.35;
    letter-spacing: -0.04em;
}

.video-hero-body > p {
    max-width: 500px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 12.5px;
    line-height: 1.75;
}

.video-hero-meta {
    display: flex;
    gap: 16px;
    color: rgba(255, 255, 255, 0.65);
    font-size: 10.5px;
}

.video-hero-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.video-hero-meta .icon {
    width: 12px;
    height: 12px;
}

.video-list-head {
    margin-bottom: 24px;
}

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

.video-detail-header {
    padding: 40px 0 0;
}

.video-detail-header h1 {
    max-width: 1000px;
    margin-bottom: 18px;
    font-size: clamp(30px, 3.6vw, 46px);
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -0.05em;
}

.video-player-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 306px;
    gap: 38px;
    align-items: start;
    padding-top: 30px;
    padding-bottom: 70px;
}

.video-player-main {
    min-width: 0;
}

.video-player {
    overflow: hidden;
    border-radius: 18px;
    background: #0d1b2c;
    box-shadow: var(--shadow-md);
}

.video-player video,
.video-player iframe {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
    background: #0d1b2c;
}

.video-unavailable {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    aspect-ratio: 16 / 9;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
}

.video-unavailable > span .icon {
    width: 38px;
    height: 38px;
    color: rgba(255, 255, 255, 0.4);
}

.video-unavailable strong {
    color: #fff;
    font-size: 15px;
}

.video-unavailable p {
    font-size: 12px;
}

.video-caption {
    padding: 16px 2px 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.8;
}

.video-caption p {
    padding-left: 12px;
    border-left: 3px solid var(--blue-200);
}

.video-sidebar {
    position: sticky;
    top: 96px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.related-video-list {
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.related-video-list a {
    display: flex;
    align-items: center;
    gap: 9px;
}

.related-video-thumb {
    position: relative;
    flex: 0 0 auto;
    width: 78px;
    height: 50px;
    overflow: hidden;
    border-radius: 6px;
    background: #dcecfb;
}

.related-video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-video-thumb > span {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #fff;
    background: rgba(8, 28, 53, 0.22);
}

.related-video-thumb .icon {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.related-video-list a > span:last-child {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.related-video-list strong {
    display: -webkit-box;
    overflow: hidden;
    font-size: 11.5px;
    line-height: 1.45;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.related-video-list small {
    color: var(--muted-2);
    font-size: 9.5px;
}

/* Downloads pages --------------------------------------------------------- */
.page-hero-download .page-hero-copy h1 {
    max-width: 700px;
}

.download-page {
    padding-top: 30px;
    padding-bottom: 80px;
}

.download-category-tabs {
    margin-bottom: 24px;
}

.download-page-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 328px;
    gap: 40px;
    align-items: start;
}

.download-page-main {
    min-width: 0;
}

.download-list {
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.download-list-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    transition: all 0.22s var(--ease);
}

.download-list-item:hover {
    border-color: #cfe4fb;
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
}

.download-list-item .download-file-icon {
    width: 56px;
    height: 66px;
}

.download-list-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 0;
}

.download-list-top {
    display: flex;
    align-items: center;
    gap: 7px;
}

.download-list-body > strong {
    display: -webkit-box;
    overflow: hidden;
    color: var(--ink);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: -0.02em;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.download-list-desc {
    display: -webkit-box;
    overflow: hidden;
    color: var(--muted);
    font-size: 11.5px;
    line-height: 1.65;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.download-list-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 13px;
    margin-top: 3px;
    color: var(--muted-2);
    font-size: 10px;
}

.download-list-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.download-list-meta .icon {
    width: 11px;
    height: 11px;
}

.download-list-action {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 7px;
    flex: 0 0 auto;
}

.download-list-action > strong {
    color: var(--ink-2);
    font-size: 15px;
}

.download-list-action .btn {
    pointer-events: none;
}

.download-page-sidebar {
    position: sticky;
    top: 96px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.download-rank-list {
    display: flex;
    flex-direction: column;
    list-style: none;
}

.download-rank-list li {
    display: flex;
    gap: 10px;
    padding: 11px 0;
    border-top: 1px solid #eef5fc;
}

.download-rank-list li:first-child {
    padding-top: 0;
    border-top: 0;
}

.download-rank-list a {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.download-rank-list strong {
    display: -webkit-box;
    overflow: hidden;
    color: var(--ink-2);
    font-size: 12px;
    line-height: 1.5;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.download-rank-list a:hover strong {
    color: var(--blue-600);
}

.download-rank-list a span {
    color: var(--muted-2);
    font-size: 9.5px;
}

.download-safe-card {
    padding: 24px;
    border-radius: 20px;
    color: #fff;
    background:
        radial-gradient(300px 160px at 100% 0%, rgba(255, 255, 255, 0.18), transparent 65%),
        linear-gradient(145deg, #5eafff, #2f7cf6);
    box-shadow: 0 18px 40px rgba(47, 124, 246, 0.18);
}

.download-safe-icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    margin-bottom: 14px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.14);
}

.download-safe-icon .icon {
    width: 20px;
    height: 20px;
}

.download-safe-card h3 {
    margin-bottom: 8px;
    font-size: 18px;
}

.download-safe-card p {
    color: rgba(255, 255, 255, 0.76);
    font-size: 11.5px;
    line-height: 1.75;
}

.download-safe-card ul {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-top: 15px;
    list-style: none;
    color: rgba(255, 255, 255, 0.9);
    font-size: 11px;
}

.download-safe-card li {
    display: flex;
    align-items: center;
    gap: 5px;
}

.download-safe-card li .icon {
    width: 12px;
    height: 12px;
    color: #c3f1e1;
}

.download-header {
    padding: 40px 0 28px;
    background:
        radial-gradient(700px 300px at 90% 0%, rgba(128, 198, 255, 0.16), transparent 60%),
        #fbfdff;
    border-bottom: 1px solid #eaf3fd;
}

.download-head-inner {
    display: flex;
    align-items: center;
    gap: 24px;
}

.download-head-file {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 112px;
    height: 132px;
    border-radius: 15px;
    color: #fff;
    background: linear-gradient(150deg, #66b1ff, #2f7cf6);
    box-shadow: 0 18px 40px rgba(47, 124, 246, 0.22);
}

.download-head-file .icon {
    width: 42px;
    height: 42px;
    margin-bottom: 9px;
}

.download-head-file > span {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.download-head-file.kind-pdf { background: linear-gradient(150deg, #ff9494, #e95365); }
.download-head-file.kind-archive { background: linear-gradient(150deg, #ffc76c, #ef9a22); }
.download-head-file.kind-doc { background: linear-gradient(150deg, #6ba8ff, #2f7cf6); }
.download-head-file.kind-xls { background: linear-gradient(150deg, #64d3aa, #20a66e); }
.download-head-file.kind-ppt { background: linear-gradient(150deg, #ffa878, #eb6c3d); }

.download-head-copy {
    flex: 1;
    min-width: 0;
}

.download-head-copy h1 {
    max-width: 900px;
    margin-bottom: 12px;
    font-size: clamp(28px, 3.2vw, 43px);
    font-weight: 800;
    line-height: 1.32;
    letter-spacing: -0.05em;
}

.download-head-copy .article-deck {
    margin-bottom: 16px;
    font-size: 15px;
}

.download-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 48px;
    align-items: start;
    padding-top: 36px;
    padding-bottom: 70px;
}

.download-detail-main {
    min-width: 0;
}

.download-preview-panel {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 17px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: #fbfdff;
}

.download-preview-icon {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 50px;
    height: 58px;
    border-radius: 8px;
    color: #fff;
    background: linear-gradient(150deg, #66b1ff, #2f7cf6);
}

.download-preview-icon .icon {
    width: 23px;
    height: 23px;
}

.download-preview-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.download-preview-info .eyebrow {
    font-size: 8.5px;
}

.download-preview-info strong {
    overflow: hidden;
    color: var(--ink-2);
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.download-preview-info span {
    color: var(--muted-2);
    font-size: 10.5px;
}

.download-preview-info small {
    color: var(--blue-600);
    font-size: 10px;
}

.download-preview-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-left: auto;
    padding: 5px 9px;
    border-radius: 6px;
    color: #1c7a51;
    background: #f0fbf5;
    font-size: 10px;
    white-space: nowrap;
}

.status-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 0 3px rgba(34, 160, 107, 0.13);
}

.download-description {
    margin-top: 26px;
}

.download-facts {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-top: 26px;
    padding: 18px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.download-facts > div {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    padding: 0 14px;
    border-left: 1px solid #eef5fc;
}

.download-facts > div:first-child {
    border-left: 0;
    padding-left: 0;
}

.download-facts > div > span {
    color: var(--blue-500);
    margin-bottom: 3px;
}

.download-facts .icon {
    width: 17px;
    height: 17px;
}

.download-facts strong {
    font-size: 13px;
}

.download-facts small {
    color: var(--muted-2);
    font-size: 9.5px;
}

.download-locked-note {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 24px;
    padding: 15px 17px;
    border: 1px solid #f3e0bd;
    border-radius: 12px;
    background: #fffaf1;
}

.download-locked-note > span {
    color: var(--premium);
}

.download-locked-note .icon {
    width: 19px;
    height: 19px;
}

.download-locked-note strong {
    font-size: 12.5px;
    color: #775014;
}

.download-locked-note p {
    margin-top: 2px;
    color: #9b7b49;
    font-size: 11px;
}

.download-detail-sidebar {
    position: sticky;
    top: 96px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.download-action-card {
    padding: 24px;
    border: 1px solid #dbeaff;
    border-radius: 20px;
    background:
        radial-gradient(300px 160px at 100% 0%, rgba(118, 194, 255, 0.17), transparent 65%),
        linear-gradient(180deg, #f8fcff, #fff);
    box-shadow: var(--shadow-sm);
}

.download-price-large {
    display: flex;
    align-items: baseline;
    gap: 2px;
    margin: 8px 0 12px;
}

.download-price-large span {
    color: var(--blue-600);
    font-size: 18px;
    font-weight: 700;
}

.download-price-large strong {
    font-size: 43px;
    font-weight: 800;
    letter-spacing: -0.05em;
    line-height: 1;
}

.download-action-card > p {
    color: var(--muted);
    font-size: 11.5px;
    line-height: 1.75;
}

.download-action-card > form {
    margin-top: 16px;
}

.download-balance-note {
    display: block;
    margin-top: 9px;
    color: var(--muted-2);
    font-size: 10.5px;
    text-align: center;
}

.download-ready-icon {
    display: grid;
    place-items: center;
    width: 45px;
    height: 45px;
    margin: 12px 0;
    border-radius: 13px;
    color: var(--success);
    background: #eefbf4;
}

.download-ready-icon .icon {
    width: 24px;
    height: 24px;
}

.download-action-card h2 {
    margin-bottom: 8px;
    font-size: 21px;
}

.download-action-card > .btn-block {
    margin-top: 16px;
}

.download-info-list {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid #e8f2fd;
}

.download-info-list > div {
    padding: 7px 0;
}

.download-safety {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e8f2fd;
    color: var(--muted-2);
    font-size: 9.5px;
    line-height: 1.6;
}

.download-safety .icon {
    width: 13px;
    height: 13px;
    color: var(--success);
}

.related-download-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.related-download-list a {
    display: flex;
    align-items: center;
    gap: 9px;
}

.mini-file-icon {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 32px;
    height: 37px;
    border-radius: 6px;
    color: #fff;
    background: linear-gradient(150deg, #6cb4ff, #2f7cf6);
}

.mini-file-icon .icon {
    width: 16px;
    height: 16px;
}

.mini-file-icon.kind-pdf { background: linear-gradient(150deg, #ff9494, #e95365); }
.mini-file-icon.kind-archive { background: linear-gradient(150deg, #ffc76c, #ef9a22); }
.mini-file-icon.kind-xls { background: linear-gradient(150deg, #64d3aa, #20a66e); }

.related-download-list a > span:last-child {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.related-download-list strong {
    display: -webkit-box;
    overflow: hidden;
    font-size: 11px;
    line-height: 1.45;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.related-download-list small {
    color: var(--muted-2);
    font-size: 9px;
}

/* ==========================================================================
   Drive (Windows-like)
   ========================================================================== */
.drive-page-hero {
    position: relative;
    overflow: hidden;
    padding: 48px 0 78px;
    background:
        radial-gradient(800px 350px at 85% 0%, rgba(93, 184, 255, 0.2), transparent 68%),
        linear-gradient(135deg, #f1f9ff 0%, #fbfdff 55%, #eef8ff 100%);
    border-bottom: 1px solid #e7f2ff;
}

.drive-hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(47, 124, 246, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(47, 124, 246, 0.045) 1px, transparent 1px);
    background-size: 32px 32px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.5), transparent 80%);
    pointer-events: none;
}

.drive-page-head {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
}

.drive-page-head h1 {
    margin: 8px 0 10px;
    font-size: clamp(38px, 4.5vw, 58px);
    font-weight: 800;
    letter-spacing: -0.055em;
}

.drive-page-head p {
    max-width: 620px;
    color: #58718e;
    font-size: 14px;
    line-height: 1.8;
}

.drive-page-tabs {
    display: flex;
    gap: 5px;
    padding: 5px;
    border: 1px solid #dcecff;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(8px);
}

.drive-page-tabs a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 9px 14px;
    border-radius: 8px;
    color: #647f9c;
    font-size: 12px;
    font-weight: 600;
}

.drive-page-tabs a:hover {
    color: var(--blue-600);
}

.drive-page-tabs a.is-active {
    color: var(--blue-700);
    background: #fff;
    box-shadow: var(--shadow-xs);
}

.drive-page-tabs .icon {
    width: 15px;
    height: 15px;
}

.drive-page-body {
    position: relative;
    z-index: 2;
    margin-top: -52px;
    padding-bottom: 64px;
}

.drive-app {
    position: relative;
}

.drive-window {
    overflow: hidden;
    border: 1px solid #cfe2f7;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 36px 90px rgba(28, 77, 142, 0.22);
}

.drive-window .win-titlebar {
    min-height: 42px;
    padding: 0 14px;
    background: linear-gradient(180deg, #f7fbff, #f2f8ff);
}

.drive-window .win-dots span {
    width: 10px;
    height: 10px;
}

.drive-window .win-title {
    font-size: 11.5px;
}

.drive-window .win-controls {
    gap: 3px;
}

.drive-window .win-controls button {
    display: grid;
    place-items: center;
    width: 30px;
    height: 27px;
    border-radius: 5px;
    color: #8197ad;
}

.drive-window .win-controls button:hover {
    background: #eaf3fe;
    color: #456581;
}

.drive-window .win-controls button:last-child:hover {
    background: #ffecef;
    color: #d94d5f;
}

.drive-window .win-controls .icon {
    width: 13px;
    height: 13px;
}

.win-addressbar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    border-bottom: 1px solid #edf4fb;
    background: #fbfdff;
}

.win-nav-buttons {
    display: flex;
    align-items: center;
    gap: 2px;
}

.win-nav-buttons button {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    color: #6e849b;
}

.win-nav-buttons button:hover:not(:disabled) {
    color: var(--blue-600);
    background: #eef6ff;
}

.win-nav-buttons button:disabled {
    opacity: 0.32;
    cursor: default;
}

.win-nav-buttons .icon {
    width: 14px;
    height: 14px;
}

.drive-window .win-address {
    height: 30px;
    padding: 0 9px;
    border-color: #e1ecf8;
    background: #fff;
    font-size: 10.5px;
    overflow: hidden;
}

.drive-window .win-address > button {
    color: #7189a3;
    font-size: 10.5px;
    padding: 2px 3px;
    border-radius: 3px;
    white-space: nowrap;
}

.drive-window .win-address > button:hover {
    color: var(--blue-600);
    background: var(--blue-50);
}

.drive-window .win-address strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.drive-window .win-address > .icon {
    width: 11px;
    height: 11px;
    flex: 0 0 auto;
}

.win-search input {
    width: 100%;
    border: 0;
    outline: none;
    background: transparent;
    color: #4f6b87;
    font-size: 10.5px;
}

.win-search input::placeholder {
    color: #a4b5c7;
}

.drive-window .win-search {
    width: 190px;
    flex: 0 0 auto;
}

.win-ribbon {
    display: flex;
    align-items: center;
    gap: 3px;
    padding: 6px 10px;
    border-bottom: 1px solid #edf4fb;
    background: #fff;
}

.win-ribbon-button {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    min-width: 60px;
    padding: 5px 8px;
    border-radius: 6px;
    color: #637a93;
    font-size: 8.5px;
}

.win-ribbon-button:hover {
    color: var(--blue-600);
    background: #f1f8ff;
}

.win-ribbon-button .icon {
    width: 17px;
    height: 17px;
    color: var(--blue-500);
}

.win-ribbon-button.is-danger .icon {
    color: #d47b84;
}

.win-ribbon-sep {
    width: 1px;
    height: 29px;
    margin: 0 5px;
    background: #edf3fa;
}

.win-ribbon-spacer {
    flex: 1;
}

.win-sort {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #8da1b5;
    font-size: 9px;
}

.win-sort select {
    height: 26px;
    padding: 0 23px 0 7px;
    border: 1px solid #e3edf8;
    border-radius: 5px;
    background: #fbfdff;
    color: #647d96;
    font-size: 9.5px;
    outline: none;
}

.win-view-toggle {
    display: flex;
    gap: 2px;
    margin-left: 7px;
}

.win-view-toggle button {
    display: grid;
    place-items: center;
    width: 28px;
    height: 26px;
    border-radius: 4px;
    color: #8da1b5;
}

.win-view-toggle button:hover,
.win-view-toggle button.is-active {
    color: var(--blue-600);
    background: #eaf4ff;
}

.win-view-toggle .icon {
    width: 13px;
    height: 13px;
}

.drive-window .win-main {
    grid-template-columns: 206px minmax(0, 1fr) 248px;
    min-height: 565px;
    max-height: 565px;
}

.drive-window .win-side {
    padding: 16px 10px;
}

.drive-window .win-side-group {
    margin-bottom: 16px;
}

.drive-window .win-side-title {
    padding: 4px 8px;
    font-size: 9px;
}

.drive-window .win-side-item {
    padding: 7px 8px;
    font-size: 10.5px;
}

.drive-window .win-side-item .icon {
    width: 14px;
    height: 14px;
}

.win-side-item small {
    display: block;
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.win-storage {
    margin: 14px 7px 0;
    padding-top: 13px;
    border-top: 1px solid #e7f0fa;
}

.win-storage-head {
    display: flex;
    justify-content: space-between;
    color: #7f94a9;
    font-size: 9px;
}

.win-storage-head strong {
    color: var(--blue-600);
    font-size: 9px;
}

.win-storage-bar {
    height: 4px;
    margin: 6px 0 4px;
    border-radius: 4px;
    background: #e7f0fa;
    overflow: hidden;
}

.win-storage-bar span {
    display: block;
    height: 100%;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--blue-400), var(--blue-500));
}

.win-storage small {
    color: #a0b2c4;
    font-size: 8px;
}

.win-side-tip {
    margin: 14px 7px 0;
    padding: 10px;
    border: 1px solid #e0edfb;
    border-radius: 7px;
    background: #fff;
    color: #8da1b5;
    font-size: 8.5px;
    line-height: 1.6;
}

.win-side-tip .icon {
    width: 13px;
    height: 13px;
    color: var(--blue-400);
    margin-bottom: 4px;
}

.win-side-tip p {
    margin: 0;
}

.drive-window .win-content {
    min-width: 0;
    max-height: 565px;
    overflow: hidden;
}

.drive-window .win-content-head {
    flex: 0 0 auto;
    padding: 13px 16px 9px;
    border-bottom: 1px solid #f1f6fc;
}

.drive-window .win-content-head strong {
    font-size: 13px;
}

.win-readonly {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #9b7a44 !important;
    background: #fff9ee;
    padding: 4px 7px;
    border-radius: 5px;
    font-size: 8.5px !important;
}

.win-readonly .icon {
    width: 10px;
    height: 10px;
}

.drive-items.is-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(122px, 1fr));
    gap: 3px;
    flex: 1;
    overflow-y: auto;
    align-content: start;
    padding: 12px 13px;
}

.drive-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    min-width: 0;
    padding: 12px 7px 10px;
    border: 1px solid transparent;
    border-radius: 7px;
    color: #4c647d;
    text-align: center;
    cursor: default;
    user-select: none;
    transition: background 0.14s, border-color 0.14s;
}

.drive-item:hover {
    background: #f5faff;
    border-color: #e2effc;
}

.drive-item.is-selected {
    background: #eaf5ff;
    border-color: #bfdefa;
}

.drive-item:focus-visible {
    outline: 2px solid var(--blue-400);
    outline-offset: -2px;
}

.drive-item-thumb {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 8px;
    color: var(--blue-500);
    background: #edf7ff;
}

.drive-item-thumb.is-folder {
    color: #3e8ede;
    background: #e9f4ff;
}

.drive-item-thumb.is-image { color: #3d9a80; background: #edfaf5; }
.drive-item-thumb.is-video { color: #4c78d8; background: #eef3ff; }
.drive-item-thumb.is-audio { color: #7a63cb; background: #f3f0ff; }
.drive-item-thumb.is-pdf { color: #d65c6b; background: #fff1f3; }
.drive-item-thumb.is-archive { color: #c28b29; background: #fff8ea; }
.drive-item-thumb.is-doc { color: #357bd1; background: #eef6ff; }
.drive-item-thumb.is-xls { color: #28936a; background: #edfaf4; }

.drive-item-thumb .icon {
    width: 31px;
    height: 31px;
}

.drive-item-name {
    display: -webkit-box;
    overflow: hidden;
    width: 100%;
    color: #405a74;
    font-size: 9.5px;
    line-height: 1.4;
    word-break: break-all;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.drive-item.is-selected .drive-item-name {
    color: var(--blue-700);
}

.drive-item-meta {
    color: #a2b3c5;
    font-size: 7.5px;
}

.drive-item-date,
.drive-item-type {
    display: none;
}

.drive-items.is-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 7px 10px;
    overflow-y: auto;
}

.drive-items.is-list .drive-item {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) 110px 90px;
    gap: 10px;
    align-items: center;
    padding: 6px 8px;
    border-radius: 5px;
    text-align: left;
}

.drive-items.is-list .drive-item-thumb {
    width: 30px;
    height: 30px;
    border-radius: 5px;
}

.drive-items.is-list .drive-item-thumb .icon {
    width: 18px;
    height: 18px;
}

.drive-items.is-list .drive-item-name {
    display: block;
    width: auto;
    overflow: hidden;
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.drive-items.is-list .drive-item-meta {
    display: none;
}

.drive-items.is-list .drive-item-date {
    display: block;
    color: #8da1b5;
    font-size: 8.5px;
}

.drive-items.is-list .drive-item-type {
    display: block;
    color: #8da1b5;
    font-size: 8.5px;
}

.win-empty {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 380px;
    color: #8da1b5;
    text-align: center;
}

.win-empty[hidden] {
    display: none;
}

.win-empty-icon {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    margin-bottom: 4px;
    border: 1px solid #e2eefb;
    border-radius: 14px;
    color: #78a6d4;
    background: #f8fcff;
}

.win-empty-icon .icon {
    width: 27px;
    height: 27px;
}

.win-empty strong {
    color: #536e88;
    font-size: 12px;
}

.win-empty p {
    font-size: 9.5px;
}

.drive-window .win-statusbar {
    flex: 0 0 auto;
    padding: 7px 15px;
    font-size: 8.5px;
}

.win-details {
    overflow-y: auto;
    padding: 18px 16px;
    border-left: 1px solid #edf4fb;
    background: #fbfdff;
}

.win-details-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 420px;
    color: #97aabd;
    text-align: center;
}

.win-details-empty > span {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    margin-bottom: 9px;
    border: 1px solid #e2eefb;
    border-radius: 11px;
    color: #8eabc7;
    background: #fff;
}

.win-details-empty .icon {
    width: 19px;
    height: 19px;
}

.win-details-empty strong {
    color: #617b94;
    font-size: 10.5px;
}

.win-details-empty p {
    max-width: 150px;
    margin-top: 4px;
    font-size: 8.5px;
    line-height: 1.65;
}

.win-details-head {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding-bottom: 14px;
    border-bottom: 1px solid #eef5fc;
    text-align: center;
}

.win-details-thumb {
    display: grid;
    place-items: center;
    width: 62px;
    height: 62px;
    border-radius: 12px;
    color: var(--blue-500);
    background: #eef7ff;
}

.win-details-thumb.is-folder {
    color: #3e8ede;
    background: #e9f4ff;
}

.win-details-thumb .icon {
    width: 34px;
    height: 34px;
}

.win-details-head strong {
    width: 100%;
    overflow-wrap: anywhere;
    color: #3f5a74;
    font-size: 11px;
    line-height: 1.45;
}

.win-details-head span {
    color: #9badc0;
    font-size: 8.5px;
}

.win-details-list {
    display: flex;
    flex-direction: column;
    margin-top: 10px;
}

.win-details-list div {
    display: grid;
    grid-template-columns: 58px 1fr;
    gap: 8px;
    padding: 6px 0;
    border-bottom: 1px solid #f0f6fc;
    font-size: 8.5px;
}

.win-details-list dt {
    color: #9badc0;
}

.win-details-list dd {
    color: #5e7690;
    text-align: right;
    overflow-wrap: anywhere;
}

.win-details-actions {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-top: 13px;
}

.win-details-actions button,
.win-details-actions a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    height: 30px;
    border: 1px solid #e1edf9;
    border-radius: 6px;
    color: #5f7b96;
    background: #fff;
    font-size: 9px;
}

.win-details-actions button:hover,
.win-details-actions a:hover {
    color: var(--blue-600);
    border-color: var(--blue-200);
    background: var(--blue-50);
}

.win-details-actions .icon {
    width: 12px;
    height: 12px;
}

.drive-hint-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 14px;
    padding: 0 4px;
    color: var(--muted-2);
    font-size: 10.5px;
}

.drive-hint-bar span,
.drive-hint-bar a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.drive-hint-bar .icon {
    width: 13px;
    height: 13px;
}

.drive-hint-bar a {
    color: var(--blue-600);
    font-weight: 600;
}

.drive-context-menu {
    position: fixed;
    z-index: 230;
    width: 184px;
    padding: 5px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: #fff;
    box-shadow: var(--shadow-lg);
}

.drive-context-menu button {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 7px 9px;
    border-radius: 5px;
    color: #4d6885;
    font-size: 11px;
    text-align: left;
}

.drive-context-menu button:hover {
    background: var(--blue-50);
    color: var(--blue-600);
}

.drive-context-menu button.is-danger {
    color: #c64c5b;
}

.drive-context-menu button[hidden] {
    display: none;
}

.drive-context-menu .icon {
    width: 13px;
    height: 13px;
}

.context-sep {
    display: block;
    height: 1px;
    margin: 4px 3px;
    background: #eef4fb;
}

.drive-reopen {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 70px 20px;
    border: 1px dashed var(--line-strong);
    border-radius: 15px;
    background: #fbfdff;
    color: var(--muted);
    text-align: center;
}

.drive-reopen[hidden] {
    display: none;
}

.drive-reopen > span .icon {
    width: 38px;
    height: 38px;
    color: var(--blue-400);
}

.drive-reopen p {
    font-size: 13px;
}

.drive-window.is-minimized .win-main,
.drive-window.is-minimized .win-addressbar,
.drive-window.is-minimized .win-ribbon {
    display: none;
}

.drive-window.is-maximized {
    position: fixed;
    inset: 14px;
    z-index: 235;
    max-height: none;
    box-shadow: 0 0 0 9999px rgba(10, 30, 55, 0.35), var(--shadow-lg);
}

.drive-window.is-maximized .win-main {
    max-height: calc(100vh - 200px);
    min-height: calc(100vh - 200px);
}

.upload-dropzone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 160px;
    padding: 24px;
    border: 1px dashed #b9dafa;
    border-radius: 13px;
    background: #f8fcff;
    color: var(--muted);
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.upload-dropzone:hover,
.upload-dropzone.is-dragover {
    border-color: var(--blue-400);
    background: #f0f8ff;
}

.upload-dropzone > span {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    color: var(--blue-500);
    background: #eaf5ff;
}

.upload-dropzone > span .icon {
    width: 21px;
    height: 21px;
}

.upload-dropzone strong {
    color: var(--ink-2);
    font-size: 12.5px;
}

.upload-dropzone small {
    color: var(--muted-2);
    font-size: 9.5px;
}

.upload-file-info {
    margin-top: 10px;
    padding: 9px 11px;
    border-radius: 8px;
    color: #54708b;
    background: #f4faff;
    font-size: 11px;
}

.upload-progress {
    height: 5px;
    margin-top: 12px;
    border-radius: 5px;
    background: #edf4fb;
    overflow: hidden;
}

.upload-progress span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: 5px;
    background: linear-gradient(90deg, var(--blue-400), var(--blue-500));
    transition: width 0.2s;
}

.modal-preview {
    width: min(900px, 100%);
}

.modal-preview .modal-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    background: #f7fbff;
}

.modal-preview img,
.modal-preview video {
    max-width: 100%;
    max-height: 65vh;
    border-radius: 8px;
}

.modal-preview iframe {
    width: 100%;
    height: 65vh;
    border: 0;
    border-radius: 8px;
    background: #fff;
}

.modal-preview pre {
    width: 100%;
    max-height: 62vh;
    overflow: auto;
    padding: 16px;
    border-radius: 8px;
    background: #fff;
    font-size: 12px;
    line-height: 1.7;
    white-space: pre-wrap;
}

.modal-preview .preview-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: var(--muted);
    font-size: 12px;
    text-align: center;
}

/* ==========================================================================
   Auth
   ========================================================================== */
.auth-page {
    padding: 54px 0 84px;
    background:
        radial-gradient(800px 400px at 10% 0%, rgba(133, 201, 255, 0.14), transparent 65%),
        #f7fbff;
}

.auth-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    max-width: 1020px;
    overflow: hidden;
    border: 1px solid #e2eefb;
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 30px 80px rgba(31, 81, 148, 0.13);
}

.auth-aside {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 38px 40px 30px;
    color: #fff;
    background:
        radial-gradient(500px 350px at 100% 0%, rgba(255, 255, 255, 0.18), transparent 65%),
        linear-gradient(150deg, #63b4ff 0%, #2f7cf6 52%, #246bdd 100%);
    isolation: isolate;
}

.auth-orb {
    position: absolute;
    top: -110px;
    right: -100px;
    width: 300px;
    height: 300px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1), transparent 68%);
    pointer-events: none;
}

.auth-orb::after {
    content: "";
    position: absolute;
    inset: 44px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
}

.auth-orb-2 {
    top: auto;
    right: -120px;
    bottom: -80px;
}

.auth-brand {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: #fff;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.auth-brand .brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.24);
    box-shadow: none;
}

.auth-brand .brand-mark svg {
    width: 25px;
    height: 25px;
}

.auth-aside-body {
    position: relative;
    z-index: 1;
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: center;
    padding: 36px 0 26px;
}

.auth-aside .eyebrow {
    color: rgba(255, 255, 255, 0.62);
    margin-bottom: 12px;
}

.auth-aside h1 {
    margin-bottom: 16px;
    font-size: clamp(30px, 3.2vw, 39px);
    font-weight: 800;
    line-height: 1.4;
    letter-spacing: -0.045em;
}

.auth-aside-body > p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 12.5px;
    line-height: 1.9;
}

.auth-points {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 28px;
    list-style: none;
}

.auth-points li {
    display: flex;
    align-items: center;
    gap: 11px;
}

.auth-points li > span {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.12);
}

.auth-points li > span .icon {
    width: 17px;
    height: 17px;
}

.auth-points li > div {
    display: flex;
    flex-direction: column;
}

.auth-points strong {
    font-size: 12px;
}

.auth-points small {
    color: rgba(255, 255, 255, 0.6);
    font-size: 10.5px;
}

.auth-register-gift {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-top: 24px;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
}

.auth-register-gift > span {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.14);
}

.auth-register-gift .icon {
    width: 17px;
    height: 17px;
}

.auth-register-gift div {
    display: flex;
    flex-direction: column;
}

.auth-register-gift strong {
    font-size: 11.5px;
}

.auth-register-gift small {
    color: rgba(255, 255, 255, 0.65);
    font-size: 9.5px;
}

.auth-aside-foot {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.55);
    font-size: 9.5px;
}

.auth-aside-foot span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.auth-aside-foot .icon {
    width: 12px;
    height: 12px;
}

.auth-form-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 48px 54px;
}

.auth-form-head {
    margin-bottom: 24px;
}

.auth-form-head .eyebrow {
    margin-bottom: 7px;
}

.auth-form-head h2 {
    margin-bottom: 6px;
    font-size: 28px;
    letter-spacing: -0.04em;
}

.auth-form-head p {
    color: var(--muted);
    font-size: 11.5px;
}

.auth-form-head p a {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    color: var(--blue-600);
    font-weight: 600;
}

.auth-form .field {
    margin-bottom: 15px;
}

.auth-form .btn-lg {
    margin-top: 6px;
}

.auth-form-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 4px 0 17px;
}

.auth-help {
    color: var(--muted-2);
    font-size: 10px;
}

.auth-divider {
    position: relative;
    margin: 20px 0;
    text-align: center;
}

.auth-divider::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--line);
}

.auth-divider span {
    position: relative;
    padding: 0 10px;
    color: var(--muted-2);
    background: #fff;
    font-size: 9.5px;
}

.auth-terms {
    margin-top: 17px;
    color: var(--muted-2);
    font-size: 9.5px;
    line-height: 1.7;
    text-align: center;
}

.auth-terms a {
    color: var(--blue-600);
}

.checkbox-agree {
    margin: 4px 0 17px;
    font-size: 11.5px;
}

.password-strength {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: -4px 0 14px;
}

.strength-bar {
    width: 76px;
    height: 4px;
    border-radius: 4px;
    background: #eef4fb;
    overflow: hidden;
}

.strength-bar i {
    display: block;
    width: 0;
    height: 100%;
    border-radius: 4px;
    background: linear-gradient(90deg, #ffb25e, #f07070);
    transition: width 0.2s;
}

.password-strength small {
    color: var(--muted-2);
    font-size: 9.5px;
}

/* ==========================================================================
   User center
   ========================================================================== */
.user-page {
    padding: 36px 0 80px;
    background:
        radial-gradient(700px 300px at 90% 0%, rgba(133, 201, 255, 0.1), transparent 65%),
        #f7fbff;
    min-height: 70vh;
}

.user-page-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 28px;
}

.user-page-head .eyebrow {
    margin-bottom: 6px;
}

.user-page-head h1 {
    margin-bottom: 5px;
    font-size: clamp(29px, 3vw, 38px);
    font-weight: 800;
    letter-spacing: -0.045em;
}

.user-page-head p {
    color: var(--muted);
    font-size: 12.5px;
}

.user-head-actions {
    display: flex;
    gap: 8px;
}

.user-layout {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

.user-sidebar {
    position: sticky;
    top: 96px;
}

.user-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 26px 20px 20px;
    border: 1px solid #dceeff;
    border-radius: 19px;
    background:
        radial-gradient(300px 150px at 50% 0%, rgba(129, 201, 255, 0.18), transparent 68%),
        #fff;
    text-align: center;
    box-shadow: var(--shadow-xs);
}

.user-card > .avatar {
    margin-bottom: 11px;
    box-shadow: 0 0 0 4px #fff, 0 8px 20px rgba(47, 124, 246, 0.15);
}

.user-card > strong {
    font-size: 16px;
}

.user-handle {
    color: var(--muted-2);
    font-size: 10.5px;
}

.user-role-badge {
    margin-top: 7px;
    padding: 3px 8px;
    border-radius: 5px;
    color: var(--blue-600);
    background: var(--blue-75);
    font-size: 8.5px;
    font-weight: 600;
}

.user-balance-mini {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    width: 100%;
    margin-top: 17px;
    padding-top: 14px;
    border-top: 1px solid #edf5fc;
}

.user-balance-mini span {
    color: var(--muted-2);
    font-size: 10px;
}

.user-balance-mini strong {
    color: var(--ink);
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.user-balance-link {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    align-self: flex-end;
    margin-top: 2px;
    color: var(--blue-600);
    font-size: 9.5px;
}

.user-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 14px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: #fff;
}

.user-nav a {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 11px;
    border-radius: 8px;
    color: #5d7692;
    font-size: 12px;
    font-weight: 500;
}

.user-nav a:hover {
    color: var(--blue-600);
    background: var(--blue-50);
}

.user-nav a.is-active {
    color: var(--blue-700);
    background: var(--blue-75);
    font-weight: 600;
}

.user-nav .icon {
    width: 16px;
    height: 16px;
    color: #8ba2b9;
}

.user-nav a.is-active .icon {
    color: var(--blue-600);
}

.user-nav-sep {
    height: 1px;
    margin: 7px 8px;
    background: #eef4fb;
}

.user-nav .nav-ext {
    width: 11px;
    height: 11px;
    margin-left: auto;
}

.user-nav .user-nav-admin {
    color: #98611a;
}

.user-nav .user-nav-admin .icon {
    color: var(--premium);
}

.user-logout-form {
    margin-top: 10px;
}

.user-logout-form button {
    display: flex;
    align-items: center;
    gap: 7px;
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #f1dfe2;
    border-radius: 12px;
    color: #b35a65;
    background: #fff;
    font-size: 11px;
}

.user-logout-form button:hover {
    background: #fff7f8;
}

.user-logout-form .icon {
    width: 14px;
    height: 14px;
}

.user-main {
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-width: 0;
}

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

.stat-card {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 17px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: #fff;
    box-shadow: var(--shadow-xs);
}

.stat-icon {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 37px;
    height: 37px;
    border-radius: 11px;
}

.stat-icon .icon {
    width: 17px;
    height: 17px;
}

.stat-icon.blue { color: #2774e8; background: #edf6ff; }
.stat-icon.cyan { color: #199dae; background: #edfbfd; }
.stat-icon.violet { color: #6d63d8; background: #f3f1ff; }
.stat-icon.amber { color: #c27b17; background: #fff8eb; }

.stat-card > div {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.stat-card span {
    color: var(--muted-2);
    font-size: 9.5px;
}

.stat-card strong {
    margin: 1px 0;
    color: var(--ink);
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.25;
}

.stat-card small {
    color: var(--muted-2);
    font-size: 8.5px;
    line-height: 1.4;
}

.user-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.user-panel {
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow-xs);
}

.user-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 15px;
}

.user-panel-head .eyebrow {
    margin-bottom: 4px;
    font-size: 9px;
}

.user-panel-head h2 {
    font-size: 18px;
    letter-spacing: -0.03em;
}

.user-panel-head > a {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    color: var(--blue-600);
    font-size: 10px;
    font-weight: 600;
}

.user-panel-head > a .icon {
    width: 12px;
    height: 12px;
}

.user-panel > .empty-state {
    padding: 25px 16px;
}

.mini-order-list,
.balance-log-list,
.user-comment-list {
    display: flex;
    flex-direction: column;
}

.mini-order,
.balance-log {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 0;
    border-top: 1px solid #f0f6fc;
}

.mini-order:first-child,
.balance-log:first-child {
    padding-top: 0;
    border-top: 0;
}

.mini-order-icon {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    color: var(--blue-600);
    background: var(--blue-50);
}

.mini-order-icon.reward { color: #b7791b; background: #fff8eb; }
.mini-order-icon.download { color: #217d5e; background: #effbf5; }

.mini-order-icon .icon {
    width: 14px;
    height: 14px;
}

.mini-order-body {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}

.mini-order-body strong {
    overflow: hidden;
    font-size: 11px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mini-order-body span {
    color: var(--muted-2);
    font-size: 9px;
}

.mini-order-amount {
    color: var(--ink-2);
    font-size: 10.5px;
    font-weight: 600;
    white-space: nowrap;
}

.balance-log > div {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.balance-log strong {
    overflow: hidden;
    font-size: 11px;
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.balance-log span {
    color: var(--muted-2);
    font-size: 9px;
}

.balance-log-icon {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 27px;
    height: 27px;
    border-radius: 7px;
    color: var(--success);
    background: #effbf5;
}

.balance-log-icon.expense {
    color: #b76c35;
    background: #fff7ef;
}

.balance-log-icon .icon {
    width: 13px;
    height: 13px;
}

.balance-amount {
    color: var(--ink-2);
    font-size: 10.5px;
    font-weight: 600;
    white-space: nowrap;
}

.balance-amount.is-income {
    color: var(--success);
}

.cloud-usage {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cloud-usage-icon {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    color: var(--blue-600);
    background: var(--blue-50);
}

.cloud-usage-icon .icon {
    width: 25px;
    height: 25px;
}

.cloud-usage-body {
    flex: 1;
    min-width: 0;
}

.cloud-usage-head {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.cloud-usage-head strong {
    font-size: 18px;
    font-weight: 800;
}

.cloud-usage-head span {
    color: var(--muted-2);
    font-size: 10px;
}

.cloud-usage-head em {
    margin-left: auto;
    color: var(--blue-600);
    font-size: 10px;
    font-style: normal;
    font-weight: 600;
}

.cloud-usage-bar {
    height: 5px;
    margin: 5px 0 4px;
    border-radius: 5px;
    background: #edf4fb;
    overflow: hidden;
}

.cloud-usage-bar span {
    display: block;
    height: 100%;
    border-radius: 5px;
    background: linear-gradient(90deg, var(--blue-400), var(--blue-500));
}

.cloud-usage-body p {
    color: var(--muted-2);
    font-size: 9px;
}

.user-comment p {
    display: -webkit-box;
    overflow: hidden;
    color: #4f6985;
    font-size: 11.5px;
    line-height: 1.65;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.user-comment {
    display: flex;
    gap: 9px;
    padding: 9px 0;
    border-top: 1px solid #f0f6fc;
}

.user-comment:first-child {
    padding-top: 0;
    border-top: 0;
}

.user-comment-icon {
    color: var(--blue-400);
}

.user-comment-icon .icon {
    width: 15px;
    height: 15px;
}

.user-comment span {
    color: var(--muted-2);
    font-size: 9px;
}

.data-table-wrap {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 11px;
    white-space: nowrap;
}

.data-table th {
    padding: 9px 10px;
    border-bottom: 1px solid var(--line);
    color: var(--muted-2);
    font-size: 9.5px;
    font-weight: 600;
    text-align: left;
}

.data-table td {
    padding: 11px 10px;
    border-bottom: 1px solid #f2f7fc;
    color: #5b738d;
}

.data-table tr:last-child td {
    border-bottom: 0;
}

.data-table td strong {
    color: var(--ink-2);
    font-weight: 600;
}

.favorite-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.favorite-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: #fff;
}

.favorite-cover {
    position: relative;
    display: block;
    aspect-ratio: 16 / 8.5;
    overflow: hidden;
    background: #dfefff;
}

.favorite-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s var(--ease);
}

.favorite-card:hover .favorite-cover img {
    transform: scale(1.03);
}

.favorite-cover-fallback {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    color: var(--blue-400);
}

.favorite-cover-fallback .icon {
    width: 32px;
    height: 32px;
}

.favorite-type {
    position: absolute;
    left: 9px;
    bottom: 9px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 7px;
    border-radius: 5px;
    color: #fff;
    background: rgba(8, 30, 57, 0.56);
    backdrop-filter: blur(5px);
    font-size: 8.5px;
}

.favorite-type .icon {
    width: 10px;
    height: 10px;
}

.favorite-body {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 12px 13px 10px;
}

.favorite-title {
    display: -webkit-box;
    overflow: hidden;
    color: var(--ink-2);
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.5;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.favorite-title:hover {
    color: var(--blue-600);
}

.favorite-body > p {
    display: -webkit-box;
    overflow: hidden;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.6;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}

.favorite-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding-top: 6px;
    color: var(--muted-2);
    font-size: 9px;
}

.favorite-foot button {
    color: #a26b73;
    font-size: 9px;
}

.favorite-foot button:hover {
    color: var(--danger);
}

.my-comment-list {
    display: flex;
    flex-direction: column;
}

.my-comment {
    display: flex;
    gap: 12px;
    padding: 15px 0;
    border-top: 1px solid #f0f6fc;
}

.my-comment:first-child {
    padding-top: 0;
    border-top: 0;
}

.my-comment-icon {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 33px;
    height: 33px;
    border-radius: 9px;
    color: var(--blue-500);
    background: var(--blue-50);
}

.my-comment-icon .icon {
    width: 16px;
    height: 16px;
}

.my-comment-body {
    flex: 1;
    min-width: 0;
}

.my-comment-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 4px;
}

.my-comment-meta a {
    overflow: hidden;
    color: var(--ink-2);
    font-size: 11.5px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.my-comment-meta a:hover {
    color: var(--blue-600);
}

.my-comment-meta time {
    color: var(--muted-2);
    font-size: 9px;
    white-space: nowrap;
}

.my-comment-body p {
    color: #506a85;
    font-size: 11.5px;
    line-height: 1.7;
}

.my-comment-body .text-link {
    margin-top: 5px;
    font-size: 9.5px;
}

.wallet-summary {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 0.7fr) minmax(0, 0.7fr);
    gap: 12px;
}

.wallet-balance-card {
    padding: 20px;
    border-radius: 17px;
    color: #fff;
    background:
        radial-gradient(260px 140px at 100% 0%, rgba(255, 255, 255, 0.18), transparent 65%),
        linear-gradient(145deg, #5eafff, #2f7cf6);
    box-shadow: 0 14px 30px rgba(47, 124, 246, 0.16);
}

.wallet-balance-card .eyebrow {
    color: rgba(255, 255, 255, 0.6);
    font-size: 8.5px;
}

.wallet-amount {
    display: flex;
    align-items: baseline;
    gap: 2px;
    margin: 5px 0;
}

.wallet-amount span {
    font-size: 15px;
    font-weight: 700;
}

.wallet-amount strong {
    font-size: 34px;
    font-weight: 800;
    letter-spacing: -0.05em;
    line-height: 1.1;
}

.wallet-balance-card p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 9.5px;
}

.wallet-note {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 9px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 9px;
}

.wallet-note .icon {
    width: 11px;
    height: 11px;
}

.wallet-stat {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 17px;
    background: #fff;
}

.wallet-stat > span {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    color: var(--success);
    background: #effbf5;
}

.wallet-stat:nth-child(3) > span {
    color: #b76c35;
    background: #fff7ef;
}

.wallet-stat .icon {
    width: 13px;
    height: 13px;
}

.wallet-stat strong {
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.wallet-stat small {
    color: var(--muted-2);
    font-size: 9px;
}

.profile-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.profile-avatar-row {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 22px;
    padding-bottom: 18px;
    border-bottom: 1px solid #f0f6fc;
}

.profile-avatar-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 104px;
    height: 104px;
    overflow: hidden;
    border: 4px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 1px var(--line), 0 8px 20px rgba(47, 124, 246, 0.1);
}

.profile-avatar-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.upload-label {
    cursor: pointer;
}

.static-field {
    min-height: 42px;
    padding: 9px 12px;
    border: 1px solid #edf4fb;
    border-radius: 10px;
    color: var(--muted);
    background: #f8fbfe;
    font-size: 12px;
}

.profile-actions {
    display: flex;
    justify-content: flex-end;
    gap: 9px;
}

/* ==========================================================================
   Search / tag / pages / sitemap / error
   ========================================================================== */
.search-page {
    padding: 48px 0 80px;
    background:
        radial-gradient(700px 300px at 50% 0%, rgba(128, 199, 255, 0.12), transparent 65%),
        #fbfdff;
    min-height: 65vh;
}

.search-hero {
    max-width: 860px;
    margin: 0 auto 38px;
    text-align: center;
}

.search-hero .eyebrow {
    margin-bottom: 9px;
}

.search-hero h1 {
    margin-bottom: 22px;
    font-size: clamp(34px, 4.2vw, 49px);
    letter-spacing: -0.05em;
}

.search-page-form {
    display: flex;
    align-items: center;
    gap: 9px;
    height: 60px;
    padding: 0 8px 0 20px;
    border: 1px solid #dcecff;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 14px 40px rgba(35, 86, 153, 0.08);
}

.search-page-form > .icon {
    width: 21px;
    height: 21px;
    color: var(--blue-400);
}

.search-page-form input {
    flex: 1;
    border: 0;
    outline: none;
    font-size: 14px;
    background: transparent;
}

.search-page-form .btn {
    height: 44px;
    min-height: 44px;
}

.search-suggestions {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 14px;
    color: var(--muted-2);
    font-size: 10px;
}

.search-suggestions a {
    padding: 3px 8px;
    border: 1px solid #e6f0fb;
    border-radius: 999px;
    background: #fff;
    color: #69819c;
    font-size: 10px;
}

.search-suggestions a:hover {
    color: var(--blue-600);
    border-color: var(--blue-200);
}

.search-result-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    max-width: 1050px;
    margin: 0 auto 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
    color: var(--muted);
    font-size: 12.5px;
}

.search-result-head strong {
    color: var(--ink-2);
}

.search-result-head span {
    color: var(--muted-2);
    font-size: 10.5px;
}

.search-results {
    max-width: 1050px;
    margin: 0 auto;
}

.search-group {
    margin-bottom: 30px;
}

.search-group-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: var(--ink-2);
    font-size: 14px;
    font-weight: 700;
}

.search-group-head > span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.search-group-head .icon {
    width: 16px;
    height: 16px;
    color: var(--blue-500);
}

.search-group-head em {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 18px;
    padding: 0 5px;
    border-radius: 5px;
    color: var(--blue-600);
    background: var(--blue-75);
    font-size: 9.5px;
    font-style: normal;
}

.search-article-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.search-article {
    display: flex;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
}

.search-article:hover {
    border-color: var(--blue-200);
    box-shadow: var(--shadow-sm);
}

.search-article img {
    width: 96px;
    height: 72px;
    flex: 0 0 auto;
    border-radius: 7px;
    object-fit: cover;
}

.search-article > span {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.search-article-cat {
    color: var(--blue-600);
    font-size: 9px;
    font-weight: 700;
}

.search-article strong {
    display: -webkit-box;
    overflow: hidden;
    color: var(--ink-2);
    font-size: 12px;
    line-height: 1.45;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.search-article-desc {
    display: -webkit-box;
    overflow: hidden;
    color: var(--muted);
    font-size: 9.5px;
    line-height: 1.5;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}

.search-article-meta {
    color: var(--muted-2);
    font-size: 8.5px;
}

.search-gallery-grid,
.search-video-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.search-gallery {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    aspect-ratio: 16 / 9;
    background: #dceeff;
}

.search-gallery img,
.search-video img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.search-gallery::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(6, 27, 53, 0.72));
}

.search-gallery strong {
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 9px;
    z-index: 1;
    color: #fff;
    font-size: 11px;
    line-height: 1.4;
}

.search-video {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    aspect-ratio: 16 / 9;
    background: #dceeff;
}

.search-video > span {
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: #fff;
    background: rgba(8, 30, 57, 0.5);
    transform: translate(-50%, -50%);
}

.search-video > span .icon {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.search-video strong {
    position: absolute;
    left: 9px;
    right: 9px;
    bottom: 8px;
    color: #fff;
    font-size: 10.5px;
    line-height: 1.35;
}

.search-browse {
    max-width: 1050px;
    margin: 0 auto;
}

.search-channel-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.search-channel-grid a {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    transition: all 0.2s;
}

.search-channel-grid a:hover {
    border-color: var(--blue-200);
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
}

.search-channel-grid > a > span {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    margin-bottom: 6px;
    border-radius: 10px;
    color: var(--blue-600);
    background: var(--blue-50);
}

.search-channel-grid .icon {
    width: 17px;
    height: 17px;
}

.search-channel-grid strong {
    font-size: 13px;
}

.search-channel-grid small {
    color: var(--muted-2);
    font-size: 10px;
}

.tag-page {
    padding-top: 34px;
    padding-bottom: 80px;
}

.page-document-header {
    padding: 48px 0 32px;
    background:
        radial-gradient(600px 280px at 90% 0%, rgba(128, 199, 255, 0.12), transparent 65%),
        #fbfdff;
    border-bottom: 1px solid #eef5fc;
}

.page-document-head .eyebrow {
    margin-bottom: 8px;
}

.page-document-head h1 {
    font-size: clamp(34px, 4vw, 50px);
    letter-spacing: -0.05em;
}

.page-document-meta {
    margin-top: 10px;
    color: var(--muted-2);
    font-size: 10.5px;
}

.page-document-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 52px;
    align-items: start;
    padding-top: 34px;
    padding-bottom: 80px;
}

.page-document-content {
    max-width: 820px;
}

.page-document-aside {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.page-document-aside .article-side-card h3 {
    margin: 5px 0 6px;
    font-size: 17px;
}

.page-document-aside .article-side-card p {
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 11.5px;
    line-height: 1.7;
}

.quick-link-list {
    display: flex;
    flex-direction: column;
}

.quick-link-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7px 0;
    border-top: 1px solid #eef5fc;
    color: var(--ink-2);
    font-size: 11.5px;
}

.quick-link-list a:first-child {
    border-top: 0;
}

.quick-link-list a:hover {
    color: var(--blue-600);
}

.quick-link-list .icon {
    width: 12px;
    height: 12px;
    color: var(--muted-2);
}

.sitemap-page {
    padding-top: 34px;
    padding-bottom: 80px;
}

.sitemap-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.sitemap-group {
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
}

.sitemap-group h2 {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 11px;
    font-size: 16px;
}

.sitemap-group h2 .icon {
    width: 16px;
    height: 16px;
    color: var(--blue-500);
}

.sitemap-links {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.sitemap-links a {
    overflow: hidden;
    padding: 4px 0;
    color: #5f7894;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sitemap-links a:hover {
    color: var(--blue-600);
}

.error-page {
    padding: 64px 0 90px;
    background:
        radial-gradient(700px 350px at 50% 0%, rgba(126, 198, 255, 0.14), transparent 65%),
        #f8fcff;
    min-height: 60vh;
}

.error-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 56px;
    max-width: 860px;
}

.error-art {
    position: relative;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 280px;
    height: 280px;
    border: 1px solid #d9eaff;
    border-radius: 50%;
    background: radial-gradient(circle, #fff 35%, #f2f9ff 100%);
}

.error-code {
    position: relative;
    z-index: 1;
    color: transparent;
    background: linear-gradient(135deg, var(--blue-500), #6cc3ff);
    -webkit-background-clip: text;
    background-clip: text;
    font-size: 88px;
    font-weight: 800;
    letter-spacing: -0.06em;
}

.error-orbit {
    position: absolute;
    inset: 24px;
    border: 1px dashed #c7e2ff;
    border-radius: 50%;
    animation: spin 26s linear infinite;
}

.error-orbit span {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--blue-400);
}

.error-orbit span:nth-child(1) { top: -4px; left: 50%; }
.error-orbit span:nth-child(2) { bottom: 18%; left: 6%; background: var(--cyan-400); }
.error-orbit span:nth-child(3) { right: 10%; top: 22%; background: #9fc9ff; }

@keyframes spin {
    to { transform: rotate(360deg); }
}

.error-copy h1 {
    margin: 7px 0 9px;
    font-size: 31px;
    letter-spacing: -0.04em;
}

.error-copy > p {
    max-width: 390px;
    color: var(--muted);
    font-size: 12.5px;
    line-height: 1.8;
}

.error-actions {
    display: flex;
    gap: 8px;
    margin-top: 19px;
}

.error-links {
    display: flex;
    gap: 15px;
    margin-top: 14px;
    color: var(--muted-2);
    font-size: 10px;
}

.error-links a:hover {
    color: var(--blue-600);
}

.error-detail {
    margin-top: 13px;
    color: var(--muted-2);
    font-size: 10px;
}

.error-detail summary {
    cursor: pointer;
}

.error-detail code {
    display: block;
    margin-top: 5px;
    padding: 8px;
    border-radius: 6px;
    background: #fff;
    word-break: break-all;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1180px) {
    .header-inner {
        gap: 20px;
    }

    .brand-text small {
        display: none;
    }

    .header-search {
        max-width: 360px;
    }

    .account-name {
        display: none;
    }

    .home-hero-inner {
        gap: 36px;
        grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    }

    .hero-collage {
        height: 470px;
    }

    .home-latest-layout,
    .listing-layout,
    .article-layout {
        grid-template-columns: minmax(0, 1fr) 300px;
        gap: 34px;
    }

    .drive-home-layout {
        gap: 34px;
    }

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

    .download-page-layout,
    .download-detail-layout {
        grid-template-columns: minmax(0, 1fr) 300px;
        gap: 32px;
    }

    .video-player-layout {
        grid-template-columns: minmax(0, 1fr) 280px;
        gap: 26px;
    }

    .gallery-detail-layout {
        grid-template-columns: minmax(0, 1fr) 280px;
        gap: 30px;
    }

    .drive-window .win-main {
        grid-template-columns: 190px minmax(0, 1fr) 220px;
    }

    .stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1024px) {
    .container {
        width: calc(100% - 40px);
    }

    .section {
        padding: 64px 0;
    }

    .header-cloud {
        display: none;
    }

    .header-search {
        max-width: 300px;
    }

    .nav-item {
        padding-inline: 12px;
    }

    .nav-item::after {
        left: 12px;
        right: 12px;
    }

    .nav-user-link {
        display: none;
    }

    .home-hero-inner {
        grid-template-columns: 1fr;
        gap: 38px;
    }

    .hero-copy {
        max-width: 660px;
        padding: 0;
    }

    .hero-copy h1 {
        font-size: clamp(44px, 6.2vw, 62px);
    }

    .hero-collage {
        height: 440px;
        max-width: 760px;
    }

    .home-latest-layout {
        grid-template-columns: 1fr;
    }

    .home-sidebar {
        display: grid;
        grid-template-columns: 1fr 1fr;
        align-items: start;
    }

    .home-sidebar .tag-panel {
        grid-column: 1 / -1;
    }

    .visual-grid {
        grid-template-columns: 1.3fr 1fr;
        grid-template-rows: repeat(2, 220px);
    }

    .visual-card-1 {
        grid-column: 1;
        grid-row: 1 / 3;
    }

    .visual-card-2 {
        grid-column: 2;
        grid-row: 1;
    }

    .visual-card-3 {
        grid-column: 2;
        grid-row: 2;
    }

    .visual-quote {
        display: none;
    }

    .download-layout {
        grid-template-columns: 1fr;
    }

    .download-guide {
        padding: 30px;
    }

    .download-guide h3 {
        font-size: 24px;
    }

    .drive-home-layout {
        grid-template-columns: 1fr;
    }

    .drive-home-copy {
        max-width: 650px;
    }

    .drive-window-preview {
        max-width: 760px;
        transform: none;
    }

    .cta-panel {
        flex-direction: column;
        align-items: flex-start;
        padding: 44px;
    }

    .cta-actions {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .page-hero-inner {
        align-items: flex-start;
    }

    .listing-layout,
    .article-layout,
    .download-page-layout,
    .download-detail-layout,
    .video-player-layout,
    .gallery-detail-layout {
        grid-template-columns: 1fr;
    }

    .listing-sidebar,
    .article-sidebar,
    .download-page-sidebar,
    .download-detail-sidebar,
    .video-sidebar,
    .gallery-sidebar {
        position: static;
        display: grid;
        grid-template-columns: 1fr 1fr;
        align-items: start;
    }

    .listing-sidebar .side-panel,
    .article-sidebar .article-side-card,
    .download-page-sidebar .side-panel,
    .download-detail-sidebar .article-side-card,
    .video-sidebar .article-side-card,
    .gallery-sidebar .article-side-card {
        margin: 0;
    }

    .listing-sidebar .feed-panel,
    .article-sidebar .share-card,
    .download-page-sidebar .download-safe-card,
    .download-detail-sidebar .download-action-card,
    .video-sidebar .article-side-card:first-child,
    .gallery-sidebar .gallery-tip-card {
        grid-column: 1 / -1;
    }

    .article-sidebar {
        grid-template-columns: 1fr 1fr;
    }

    .article-sidebar .author-side-card,
    .article-sidebar .toc-card {
        grid-column: auto;
    }

    .article-sidebar .share-card,
    .article-sidebar .related-side-card {
        grid-column: 1 / -1;
    }

    .download-detail-sidebar .download-action-card {
        grid-column: 1 / -1;
    }

    .video-sidebar .article-side-card:last-child {
        grid-column: 1 / -1;
    }

    .gallery-detail-layout {
        display: flex;
        flex-direction: column-reverse;
    }

    .gallery-sidebar {
        width: 100%;
    }

    .gallery-main {
        width: 100%;
    }

    .auth-form-panel {
        padding: 40px;
    }

    .user-layout {
        grid-template-columns: 220px minmax(0, 1fr);
        gap: 20px;
    }

    .user-grid-2 {
        grid-template-columns: 1fr;
    }

    .drive-window .win-main {
        grid-template-columns: 180px minmax(0, 1fr);
    }

    .win-details {
        display: none;
    }

    .auth-layout {
        grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    }

    .footer-main {
        grid-template-columns: 1.45fr 1fr 1fr 1fr;
        gap: 22px;
    }
}

@media (max-width: 820px) {
    .topbar-right a:not(.topbar-user):not(.topbar-register) {
        display: none;
    }

    .topbar-date {
        display: none;
    }

    .site-header {
        position: relative;
    }

    .header-inner {
        min-height: 70px;
        gap: 12px;
    }

    .header-search {
        display: none;
    }

    .brand-mark {
        width: 40px;
        height: 40px;
        border-radius: 12px;
    }

    .brand-text strong {
        font-size: 21px;
    }

    .brand-text small {
        display: none;
    }

    .header-actions {
        gap: 6px;
    }

    .header-actions .btn {
        min-height: 34px;
        padding-inline: 13px;
        font-size: 12px;
    }

    .mobile-menu-button {
        display: grid;
        place-items: center;
        width: 38px;
        height: 38px;
        border: 1px solid var(--line);
        border-radius: 10px;
        color: var(--ink-2);
    }

    .mobile-menu-button .icon {
        width: 19px;
        height: 19px;
    }

    .account-trigger {
        padding: 3px;
    }

    .account-trigger .chevron,
    .account-trigger .account-name {
        display: none;
    }

    .main-nav {
        display: none;
    }

    .main-nav.is-open {
        display: block;
    }

    .nav-inner {
        position: relative;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 10px 0 16px;
    }

    .nav-item {
        height: 44px;
        padding: 0 4px;
        border-bottom: 1px solid #f2f7fc;
        font-size: 14px;
    }

    .nav-item::after {
        display: none;
    }

    .nav-has-dropdown .nav-dropdown {
        display: none;
    }

    .nav-has-dropdown > a .chevron {
        display: none;
    }

    .nav-spacer {
        display: none;
    }

    .nav-user-link {
        display: none;
    }

    .mobile-search {
        display: block;
        padding: 13px 0 0;
    }

    .mobile-search form {
        display: flex;
        align-items: center;
        gap: 8px;
        height: 42px;
        padding: 0 13px;
        border: 1px solid var(--line);
        border-radius: 10px;
        background: var(--blue-25);
    }

    .mobile-search .icon {
        width: 17px;
        height: 17px;
        color: var(--muted-2);
    }

    .mobile-search input {
        flex: 1;
        border: 0;
        outline: none;
        background: transparent;
        font-size: 13px;
    }

    .mobile-channels {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        padding-top: 13px;
    }

    .mobile-channels a {
        padding: 5px 9px;
        border-radius: 6px;
        color: #6b829d;
        background: var(--blue-50);
        font-size: 10.5px;
    }

    .breadcrumbs ol {
        min-height: 41px;
        flex-wrap: nowrap;
        overflow: hidden;
    }

    .breadcrumbs li {
        flex: 0 0 auto;
    }

    .breadcrumbs span[aria-current="page"] {
        max-width: 230px;
    }

    .section {
        padding: 52px 0;
    }

    .section-heading {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 24px;
    }

    .section-heading h2 {
        font-size: 29px;
    }

    .section-heading p {
        font-size: 13px;
    }

    .home-hero {
        padding-top: 34px;
    }

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

    .hero-lead {
        font-size: 14.5px;
    }

    .hero-actions .btn {
        flex: 1;
        padding-inline: 16px;
    }

    .hero-stats {
        gap: 13px;
    }

    .hero-stat {
        min-width: 85px;
        padding-right: 14px;
        margin-right: 14px;
    }

    .hero-stat strong {
        font-size: 23px;
    }

    .hero-stat-note {
        display: none;
    }

    .hero-collage {
        height: 360px;
        grid-template-columns: 1.3fr 1fr;
    }

    .hero-feature-body {
        left: 16px;
        right: 16px;
        bottom: 16px;
    }

    .hero-feature-body strong {
        font-size: 19px;
    }

    .hero-feature-meta {
        display: none;
    }

    .hero-feature-arrow {
        display: none;
    }

    .hero-mini-body {
        left: 12px;
        right: 12px;
        bottom: 11px;
    }

    .hero-mini-body strong {
        font-size: 12.5px;
    }

    .hero-channel-bar {
        align-items: flex-start;
        flex-direction: column;
        gap: 9px;
    }

    .hero-channels {
        flex-wrap: nowrap;
        width: 100%;
        overflow-x: auto;
        padding-bottom: 3px;
    }

    .hero-channels a {
        flex: 0 0 auto;
    }

    .post-grid,
    .post-grid-home,
    .post-grid-listing,
    .post-grid-3,
    .video-grid,
    .video-grid-home,
    .video-grid-page,
    .gallery-grid,
    .gallery-grid-3 {
        grid-template-columns: 1fr;
    }

    .post-grid-home {
        grid-template-columns: 1fr;
    }

    .post-card-featured {
        display: flex;
    }

    .post-card-featured .post-card-media {
        min-height: 0;
        aspect-ratio: 16 / 10;
    }

    .post-card-featured .post-card-body {
        padding: 20px;
    }

    .post-card-featured .post-card-title {
        font-size: 21px;
    }

    .post-card-title {
        font-size: 17px;
    }

    .home-sidebar {
        display: flex;
    }

    .visual-grid {
        grid-template-columns: 1fr;
        grid-template-rows: 300px 180px 180px;
    }

    .visual-card-1,
    .visual-card-2,
    .visual-card-3 {
        grid-column: auto;
        grid-row: auto;
    }

    .download-grid {
        grid-template-columns: 1fr;
    }

    .download-layout {
        gap: 22px;
    }

    .drive-home-copy h2 {
        font-size: 33px;
    }

    .drive-window-preview {
        border-radius: 13px;
    }

    .win-main {
        grid-template-columns: 1fr;
    }

    .win-side {
        display: none;
    }

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

    .win-search {
        display: none;
    }

    .cta-panel {
        padding: 32px 26px;
        border-radius: 22px;
    }

    .cta-copy h2 {
        font-size: 29px;
    }

    .cta-actions {
        width: 100%;
        flex-direction: column;
    }

    .cta-actions .btn {
        width: 100%;
    }

    .page-hero {
        padding: 36px 0 32px;
    }

    .page-hero-inner {
        flex-direction: column;
        gap: 20px;
    }

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

    .page-hero-meta {
        gap: 20px;
        padding-bottom: 0;
    }

    .page-hero-meta-icon {
        width: 46px;
        height: 46px;
    }

    .page-hero-meta-icon .icon {
        width: 21px;
        height: 21px;
    }

    .featured-strip {
        grid-template-columns: 1fr;
        grid-template-rows: 240px 130px 130px;
        height: auto;
    }

    .featured-strip-item.is-lead {
        grid-row: auto;
    }

    .featured-strip-item.is-lead .featured-strip-body > strong {
        font-size: 19px;
    }

    .listing-layout {
        padding-top: 26px;
        padding-bottom: 55px;
    }

    .category-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 12px;
        margin-bottom: 20px;
    }

    .category-tabs a {
        flex: 0 0 auto;
    }

    .listing-sidebar,
    .article-sidebar,
    .download-page-sidebar,
    .download-detail-sidebar,
    .video-sidebar,
    .gallery-sidebar {
        display: flex;
    }

    .article-header {
        padding-top: 28px;
    }

    .article-header h1 {
        font-size: 31px;
    }

    .article-deck {
        font-size: 15.5px;
    }

    .article-meta-bar {
        gap: 11px;
    }

    .article-meta-share {
        margin-left: 0;
    }

    .article-cover {
        margin-top: 20px;
    }

    .article-cover img {
        border-radius: 15px;
    }

    .article-layout {
        padding-top: 26px;
        padding-bottom: 50px;
    }

    .article-content {
        font-size: 16px;
        line-height: 1.95;
    }

    .article-content h2 {
        font-size: 23px;
    }

    .article-content h3 {
        font-size: 19px;
    }

    .article-content > p:first-of-type {
        font-size: 17px;
    }

    .paywall-card {
        padding: 30px 18px 24px;
    }

    .paywall-card h2 {
        font-size: 21px;
    }

    .author-box {
        flex-wrap: wrap;
    }

    .author-box > .btn {
        width: 100%;
    }

    .article-prevnext {
        grid-template-columns: 1fr;
    }

    .prevnext-item.next {
        text-align: left;
    }

    .prevnext-item.next > span {
        justify-content: flex-start;
    }

    .comment-form {
        flex-direction: column;
    }

    .comment-form > .comment-form-avatar {
        display: none;
    }

    .comment-form-foot {
        flex-direction: column;
        align-items: flex-start;
    }

    .comment-login {
        flex-wrap: wrap;
    }

    .comment-login .btn {
        width: 100%;
    }

    .gallery-detail-head-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
    }

    .gallery-head-count {
        flex-direction: row;
        gap: 7px;
        align-items: center;
    }

    .gallery-head-count small {
        display: none;
    }

    .gallery-featured {
        grid-template-columns: 1fr;
        grid-template-rows: 280px 160px;
        height: auto;
    }

    .gallery-feature-1 {
        grid-row: auto;
    }

    .gallery-feature-3 {
        display: none;
    }

    .gallery-feature-card:last-child {
        display: none;
    }

    .gallery-grid-3 {
        grid-template-columns: 1fr;
    }

    .video-hero {
        min-height: 360px;
    }

    .video-hero-body {
        left: 20px;
        right: 20px;
        bottom: 20px;
    }

    .video-hero-play {
        top: 32%;
        right: 22px;
        width: 58px;
        height: 58px;
    }

    .video-hero-body > strong {
        font-size: 24px;
    }

    .video-detail-header {
        padding-top: 28px;
    }

    .video-detail-header h1 {
        font-size: 28px;
    }

    .download-head-inner {
        align-items: flex-start;
    }

    .download-head-file {
        width: 74px;
        height: 88px;
        border-radius: 11px;
    }

    .download-head-file .icon {
        width: 28px;
        height: 28px;
        margin-bottom: 5px;
    }

    .download-head-file > span {
        font-size: 10px;
    }

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

    .download-facts {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .download-facts > div:nth-child(3) {
        border-left: 0;
        padding-left: 0;
    }

    .download-facts > div:nth-child(n+3) {
        padding-top: 11px;
        border-top: 1px solid #eef5fc;
    }

    .download-list-item {
        flex-wrap: wrap;
        gap: 12px;
    }

    .download-list-action {
        flex-direction: row;
        align-items: center;
        width: 100%;
        justify-content: space-between;
    }

    .download-list-action .btn {
        display: none;
    }

    .download-list-desc {
        -webkit-line-clamp: 2;
    }

    .drive-page-hero {
        padding: 34px 0 74px;
    }

    .drive-page-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
    }

    .drive-page-head h1 {
        font-size: 42px;
    }

    .drive-window .win-main {
        grid-template-columns: 1fr;
        min-height: 480px;
        max-height: none;
    }

    .drive-window .win-side {
        display: none;
    }

    .drive-items.is-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }

    .drive-window .win-search {
        display: none;
    }

    .win-ribbon {
        overflow-x: auto;
    }

    .win-sort {
        display: none;
    }

    .win-details {
        display: none;
    }

    .drive-hint-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .drive-window.is-maximized {
        inset: 0;
        border-radius: 0;
    }

    .drive-window.is-maximized .win-main {
        max-height: calc(100vh - 170px);
        min-height: calc(100vh - 170px);
    }

    .auth-page {
        padding: 24px 0 50px;
    }

    .auth-layout {
        grid-template-columns: 1fr;
    }

    .auth-aside {
        padding: 26px;
        min-height: 0;
    }

    .auth-aside-body {
        padding: 26px 0 10px;
    }

    .auth-aside h1 {
        font-size: 28px;
    }

    .auth-points {
        display: none;
    }

    .auth-aside-foot {
        display: none;
    }

    .auth-form-panel {
        padding: 28px 22px 32px;
    }

    .form-grid-2 {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .field-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .user-page {
        padding-top: 24px;
    }

    .user-page-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .user-layout {
        grid-template-columns: 1fr;
    }

    .user-sidebar {
        position: static;
    }

    .user-card {
        display: grid;
        grid-template-columns: 64px 1fr auto;
        grid-template-rows: auto auto;
        column-gap: 14px;
        align-items: center;
        text-align: left;
        padding: 18px;
    }

    .user-card > .avatar {
        grid-row: 1 / 3;
        width: 60px;
        height: 60px;
        margin: 0;
        font-size: 22px;
    }

    .user-card > strong {
        align-self: end;
    }

    .user-handle {
        align-self: start;
    }

    .user-role-badge {
        grid-column: 3;
        grid-row: 1;
        margin: 0;
    }

    .user-balance-mini {
        grid-column: 2 / 4;
        margin-top: 6px;
        padding-top: 8px;
    }

    .user-balance-link {
        display: none;
    }

    .user-nav {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 2px;
        margin-top: 10px;
    }

    .user-nav a {
        flex: 1 0 auto;
        justify-content: center;
        padding: 8px 10px;
        font-size: 11px;
    }

    .user-nav-sep,
    .user-nav .user-nav-admin,
    .user-logout-form {
        display: none;
    }

    .user-grid-2 {
        grid-template-columns: 1fr;
    }

    .stat-grid {
        grid-template-columns: 1fr 1fr;
    }

    .stat-card {
        padding: 13px;
    }

    .stat-card strong {
        font-size: 17px;
    }

    .favorite-grid {
        grid-template-columns: 1fr;
    }

    .wallet-summary {
        grid-template-columns: 1fr 1fr;
    }

    .wallet-balance-card {
        grid-column: 1 / -1;
    }

    .profile-avatar-row {
        align-items: flex-start;
    }

    .search-page {
        padding-top: 30px;
    }

    .search-page-form {
        height: 54px;
        padding-left: 15px;
    }

    .search-page-form .btn {
        height: 40px;
        min-height: 40px;
        padding-inline: 15px;
        font-size: 12px;
    }

    .search-article-list {
        grid-template-columns: 1fr;
    }

    .search-gallery-grid,
    .search-video-grid {
        grid-template-columns: 1fr 1fr;
    }

    .search-channel-grid {
        grid-template-columns: 1fr 1fr;
    }

    .page-document-header {
        padding: 30px 0 22px;
    }

    .page-document-layout {
        grid-template-columns: 1fr;
        gap: 24px;
        padding-top: 24px;
        padding-bottom: 50px;
    }

    .page-document-aside {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .sitemap-grid {
        grid-template-columns: 1fr;
    }

    .error-inner {
        flex-direction: column;
        gap: 26px;
        text-align: center;
    }

    .error-art {
        width: 210px;
        height: 210px;
    }

    .error-code {
        font-size: 68px;
    }

    .error-copy > p {
        margin-inline: auto;
    }

    .error-actions,
    .error-links {
        justify-content: center;
    }

    .error-copy h1 {
        font-size: 27px;
    }

    .footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 26px;
        padding: 38px 0 26px;
    }

    .footer-brand {
        grid-column: 1 / -1;
        max-width: 560px;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        gap: 8px;
        padding: 14px 0;
    }
}

@media (max-width: 520px) {
    .container {
        width: calc(100% - 28px);
    }

    .topbar {
        font-size: 10.5px;
    }

    .topbar-inner {
        min-height: 33px;
    }

    .topbar-left > span:first-of-type:not(.topbar-pulse) {
        display: none;
    }

    .topbar-left .topbar-sep {
        display: none;
    }

    .topbar-right {
        gap: 9px;
    }

    .topbar-right a {
        font-size: 10.5px;
    }

    .header-inner {
        min-height: 64px;
    }

    .brand-text strong {
        font-size: 20px;
    }

    .header-actions .btn-primary {
        display: none;
    }

    .header-actions .btn-ghost {
        display: inline-flex;
        min-height: 32px;
        padding-inline: 10px;
        font-size: 11px;
    }

    .account-trigger {
        height: 38px;
    }

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

    .hero-eyebrow {
        margin-bottom: 16px;
        font-size: 10px;
    }

    .hero-actions {
        margin: 22px 0 26px;
    }

    .hero-actions .btn {
        width: 100%;
        flex: auto;
    }

    .hero-stats {
        padding-top: 16px;
    }

    .hero-stat {
        min-width: 0;
        flex: 1;
        padding-right: 10px;
        margin-right: 10px;
    }

    .hero-stat strong {
        font-size: 20px;
    }

    .hero-stat > span:last-child {
        font-size: 9.5px;
    }

    .hero-collage {
        height: 300px;
        grid-template-columns: 1fr;
        grid-template-rows: 200px 90px;
    }

    .hero-side {
        display: none;
    }

    .hero-feature-body strong {
        font-size: 18px;
    }

    .section {
        padding: 42px 0;
    }

    .section-heading h2 {
        font-size: 26px;
    }

    .post-card-title {
        font-size: 16px;
    }

    .post-card-featured .post-card-title {
        font-size: 19px;
    }

    .visual-grid {
        grid-template-rows: 250px 160px;
    }

    .visual-card:nth-child(3) {
        display: none;
    }

    .download-card {
        padding: 12px;
    }

    .download-card-body strong {
        font-size: 11.5px;
    }

    .drive-home-copy h2 {
        font-size: 29px;
    }

    .win-file-grid {
        grid-template-columns: 1fr 1fr;
    }

    .win-addressbar {
        gap: 4px;
        padding: 7px;
    }

    .win-nav-buttons button {
        width: 24px;
        height: 24px;
    }

    .drive-window .win-address {
        font-size: 9px;
    }

    .win-ribbon-button {
        min-width: 50px;
        font-size: 8px;
    }

    .win-ribbon-sep,
    .win-ribbon-spacer {
        display: none;
    }

    .cta-panel {
        padding: 28px 20px;
    }

    .cta-copy h2 {
        font-size: 25px;
    }

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

    .page-hero-meta {
        gap: 15px;
    }

    .page-hero-meta strong {
        font-size: 23px;
    }

    .list-layout {
        padding-bottom: 40px;
    }

    .article-header h1 {
        font-size: 27px;
    }

    .article-meta-bar {
        font-size: 10.5px;
    }

    .article-meta-item:nth-of-type(3) {
        display: none;
    }

    .article-actions {
        padding: 9px;
    }

    .action-button {
        padding-inline: 8px;
        font-size: 11px;
    }

    .action-button em {
        display: none;
    }

    .paywall-price strong {
        font-size: 38px;
    }

    .comment-replies {
        margin-left: -54px;
    }

    .gallery-detail-head-inner h1 {
        font-size: 27px;
    }

    .gallery-featured {
        grid-template-rows: 240px;
    }

    .gallery-feature-card:not(:first-child) {
        display: none;
    }

    .video-hero {
        min-height: 300px;
    }

    .video-hero-body > strong {
        font-size: 21px;
    }

    .video-hero-body > p {
        display: none;
    }

    .video-hero-meta {
        gap: 10px;
    }

    .download-head-inner {
        flex-direction: column;
    }

    .download-head-copy h1 {
        font-size: 24px;
    }

    .download-facts {
        grid-template-columns: 1fr 1fr;
    }

    .download-preview-panel {
        flex-wrap: wrap;
    }

    .download-preview-status {
        margin-left: 0;
    }

    .drive-page-head h1 {
        font-size: 36px;
    }

    .drive-page-tabs {
        width: 100%;
    }

    .drive-page-tabs a {
        flex: 1;
        justify-content: center;
        padding-inline: 8px;
        font-size: 10.5px;
    }

    .drive-window .win-controls button {
        width: 26px;
    }

    .drive-items.is-grid {
        grid-template-columns: 1fr 1fr;
        padding: 9px;
    }

    .drive-item {
        padding: 9px 4px;
    }

    .drive-item-thumb {
        width: 44px;
        height: 44px;
    }

    .drive-item-thumb .icon {
        width: 26px;
        height: 26px;
    }

    .drive-item-name {
        font-size: 8.5px;
    }

    .auth-form-panel {
        padding: 24px 18px 28px;
    }

    .auth-aside {
        padding: 22px 20px;
    }

    .auth-aside h1 {
        font-size: 24px;
    }

    .auth-aside-body > p {
        font-size: 11.5px;
    }

    .auth-register-gift {
        margin-top: 15px;
    }

    .auth-form-head h2 {
        font-size: 24px;
    }

    .user-page-head h1 {
        font-size: 27px;
    }

    .stat-grid {
        grid-template-columns: 1fr;
    }

    .user-panel {
        padding: 17px;
    }

    .user-head-actions {
        width: 100%;
    }

    .user-head-actions .btn {
        flex: 1;
    }

    .wallet-summary {
        grid-template-columns: 1fr;
    }

    .page-document-aside {
        grid-template-columns: 1fr;
    }

    .search-page-form input {
        font-size: 12px;
    }

    .search-suggestions {
        display: none;
    }

    .search-channel-grid {
        grid-template-columns: 1fr;
    }

    .search-result-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .sitemap-links a {
        font-size: 10.5px;
    }

    .error-art {
        width: 180px;
        height: 180px;
    }

    .error-code {
        font-size: 57px;
    }

    .error-actions {
        flex-direction: column;
        width: 100%;
    }

    .error-actions .btn {
        width: 100%;
    }
}

