/**
 * 图集站演示主题样式
 */
:root {
    --bg: #060606;
    --bg-glow: rgba(190, 38, 40, 0.16);
    --panel: #ffffff;
    --panel-dark: #101010;
    --accent: #be2628;
    --accent-deep: #99191c;
    --text: #111111;
    --muted: #6f6a67;
    --white: #ffffff;
    --radius-xl: 30px;
    --radius-lg: 22px;
    --radius-md: 16px;
    --shadow: 0 24px 60px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] {
    --bg: #060606;
    --bg-glow: rgba(190, 38, 40, 0.16);
    --panel: #ffffff;
    --panel-dark: #101010;
    --accent: #be2628;
    --accent-deep: #99191c;
    --text: #111111;
    --muted: #6f6a67;
    --white: #ffffff;
}

[data-theme="light"] {
    --bg: #ffffff;
    --bg-glow: rgba(190, 38, 40, 0.05);
    --panel: #ffffff;
    --panel-dark: #101010;
    --accent: #be2628;
    --accent-deep: #99191c;
    --text: #111111;
    --muted: #6f6a67;
    --white: #ffffff;
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(circle at top, var(--bg-glow), transparent 24%),
        linear-gradient(180deg, var(--bg) 0%, var(--bg) 100%);
    font: 16px/1.7 "Trebuchet MS", "Segoe UI", Verdana, sans-serif;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
    transition: 0.2s ease;
}

button,
input,
textarea,
select {
    font: inherit;
}

input,
textarea,
select {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #ddd8d4;
    border-radius: 16px;
    background: var(--white);
    color: var(--text);
    outline: none;
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(190, 38, 40, 0.1);
}

textarea {
    min-height: 150px;
    resize: vertical;
}

button,
.btn,
input[type="submit"] {
    border: 0;
    cursor: pointer;
}

.container {
    width: min(100%, 1240px);
    margin: 0 auto;
    padding: 0 18px;
}

.blog-container {
    padding-bottom: 40px;
}

.panel,
.shadow-theme {
    background: var(--panel);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
}

.empty-state {
    margin: 0;
    padding: 28px 12px 4px;
    text-align: center;
    color: var(--muted);
}

.subtitle-overflow {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.unstyle-li {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.row {
    display: flex;
    flex-wrap: wrap;
}

.column-small,
.column-big {
    width: 100%;
}

.blog-header {
    padding: 14px 0 0;
}

.brand-shell {
    display: grid;
    gap: 12px;
}

.site-shell {
    width: 100%;
}

.brand-card,
.nav-card,
.footer-panel {
    background: linear-gradient(180deg, var(--accent) 0%, #c42729 100%);
    color: var(--white);
    border-radius: var(--radius-xl);
}

.brand-card {
    padding: 14px 16px 12px;
    text-align: center;
}

.brand-logo--text,
.footer-brand--text {
    display: inline-block;
    font-family: "Brush Script MT", "Segoe Script", "Lucida Handwriting", cursive;
    font-size: clamp(34px, 3.8vw, 56px);
    line-height: 1;
    color: var(--white);
    letter-spacing: 1px;
    text-shadow: 0 3px 14px rgba(0, 0, 0, 0.18);
}

.brand-logo--image img,
.footer-brand--image img {
    width: auto;
    max-height: 56px;
    margin: 0 auto;
}

.brand-meta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.brand-tagline,
.footer-description {
    max-width: 880px;
    margin: 0;
    color: rgba(255, 255, 255, 0.84);
    letter-spacing: 0.05em;
    font-size: 12px;
}

.theme-switch {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-width: 48px;
    height: 26px;
    padding: 0 8px;
    border-radius: 999px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.theme-switch:hover {
    background: rgba(255, 255, 255, 0.14);
}

.theme-switch__icon {
    font-size: 11px;
    line-height: 1;
}

.theme-switch[data-theme="dark"] .theme-switch__icon--dark,
.theme-switch[data-theme="light"] .theme-switch__icon--light {
    opacity: 1;
}

.theme-switch[data-theme="dark"] .theme-switch__icon--light,
.theme-switch[data-theme="light"] .theme-switch__icon--dark {
    opacity: 0.42;
}

.nav-card {
    position: relative;
    padding: 0 12px;
}

.blog-header-toggle {
    display: none;
    padding: 0;
    background: transparent;
    color: var(--white);
}

.blogtoggle-icon {
    width: 28px;
    height: 18px;
    fill: currentColor;
}

.blog-header-nav {
    width: 100%;
}

.nav-list {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 0;
}

.list-menu {
    position: relative;
    list-style: none;
}

.nav-link {
    display: block;
    padding: 11px 8px;
    font-family: "Arial Rounded MT Bold", "Trebuchet MS", sans-serif;
    font-size: clamp(14px, 1.1vw, 18px);
    color: var(--white);
}

.nav-link:hover,
.nav-link.active {
    color: #ffe6dc;
}

.list-menu--translate {
    display: inline-flex;
    align-items: center;
    margin-left: 10px;
}

#translate {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 112px;
    min-height: 34px;
    padding: 0 10px 0 14px;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.92);
    background: rgba(255, 255, 255, 0.06);
    font-family: "Arial Rounded MT Bold", "Trebuchet MS", sans-serif;
    font-size: 14px;
    letter-spacing: 0.02em;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

#translate::before {
    content: "";
    width: 14px;
    height: 14px;
    margin-right: 8px;
    border-radius: 50%;
    background: no-repeat center/14px 14px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18'/%3E%3Cpath d='M12 3a15 15 0 0 1 0 18'/%3E%3Cpath d='M12 3a15 15 0 0 0 0 18'/%3E%3C/svg%3E");
    opacity: 0.92;
}

#translate:empty::after {
    content: attr(data-label);
}

#translate:hover,
#translate:focus-within {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

#translate *,
#translate select,
#translate button,
#translate a {
    color: inherit !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    font: inherit !important;
}

#translate select,
#translate button {
    min-height: 34px;
    padding: 0 !important;
    cursor: pointer;
}

#translate option {
    color: #111 !important;
    background: #fff !important;
}

.dropdown-menus {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    min-width: 180px;
    margin: 0;
    padding: 10px;
    transform: translateX(-50%);
    background: #fff2ef;
    border-radius: 18px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
    opacity: 0;
    pointer-events: none;
    z-index: 12;
}

.list-menu:hover .dropdown-menus {
    opacity: 1;
    pointer-events: auto;
}

.dropdown-menus .nav-link {
    padding: 10px 12px;
    color: var(--accent-deep);
    font-size: 16px;
}

.dropdown-menus .nav-link:hover {
    border-radius: 12px;
    background: rgba(190, 38, 40, 0.08);
}

.nav-overlay {
    display: none;
}

.search-band {
    padding: 14px 0 20px;
}

.hero-search {
    display: flex;
    align-items: center;
    min-height: 60px;
    padding-left: 16px;
    border: 2px solid rgba(255, 255, 255, 0.92);
    border-radius: 20px;
    overflow: hidden;
    background: var(--white);
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.2);
}

.hero-search__input {
    padding: 0;
    border: 0;
    background: transparent;
    font-size: clamp(17px, 1.5vw, 24px);
    font-style: italic;
    color: #2d2a29;
}

.hero-search__input::placeholder {
    color: #beb8b4;
}

.hero-search__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    margin-left: auto;
    background: #0d0d0d;
    color: var(--white);
}

.hero-search__button svg {
    width: 22px;
    height: 22px;
}

.feature-panel {
    margin-bottom: 28px;
    padding: 16px;
}

.feature-grid {
    display: grid;
    grid-template-columns: 1.45fr 1fr 1fr;
    gap: 16px;
}

.feature-card {
    position: relative;
    min-height: 300px;
    overflow: hidden;
    border-radius: 22px;
}

.feature-card--large {
    grid-row: span 2;
    min-height: 616px;
}

.feature-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feature-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.78) 100%);
}

.feature-card__title {
    position: absolute;
    right: 20px;
    bottom: 20px;
    left: 20px;
    color: var(--white);
    font-family: "Arial Rounded MT Bold", "Trebuchet MS", sans-serif;
    font-size: clamp(20px, 2vw, 32px);
    line-height: 1.25;
}

.gallery-board {
    padding: 18px 16px 24px;
}

.section-heading {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
}

.section-heading h2 {
    margin: 0;
    white-space: nowrap;
    font-family: "Arial Rounded MT Bold", "Trebuchet MS", sans-serif;
    font-size: clamp(22px, 1.9vw, 32px);
}

.section-heading__line {
    flex: 1;
    height: 2px;
    background: rgba(17, 17, 17, 0.26);
}

.section-heading--compact h2 {
    font-size: clamp(22px, 2vw, 30px);
}

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

.gallery-card {
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 18px;
    background: #0d0d0d;
}

.gallery-card__media {
    position: relative;
    display: block;
    overflow: hidden;
    background: linear-gradient(180deg, #dad4d1 0%, #b4acaa 100%);
    aspect-ratio: 0.78 / 1;
}

.gallery-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

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

.gallery-card__placeholder {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    color: rgba(255, 255, 255, 0.8);
    font-family: "Arial Rounded MT Bold", "Trebuchet MS", sans-serif;
    letter-spacing: 0.08em;
}

.gallery-card__count {
    position: absolute;
    top: 14px;
    right: 14px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.7);
    color: var(--white);
    font: 700 14px/1 "Arial Rounded MT Bold", "Trebuchet MS", sans-serif;
    letter-spacing: 0.08em;
}

.gallery-card__body {
    padding: 16px 14px 14px;
    background: #090909;
    color: var(--white);
}

.gallery-card__title {
    display: -webkit-box;
    overflow: hidden;
    margin: 0 0 10px;
    font-family: "Arial Rounded MT Bold", "Trebuchet MS", sans-serif;
    font-size: clamp(18px, 1.4vw, 23px);
    line-height: 1.35;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.gallery-card__title a:hover {
    color: #ffdbcf;
}

.gallery-card__meta {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.9);
    font-family: "Arial Rounded MT Bold", "Trebuchet MS", sans-serif;
    font-size: 13px;
    letter-spacing: 0.04em;
}

.gallery-card__dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.58);
}

.gallery-card__cat {
    color: #ffd7ce;
}

.gallery-pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding-top: 32px;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 46px;
    min-height: 46px;
    padding: 0 14px;
    border-radius: 999px;
    font-family: "Arial Rounded MT Bold", "Trebuchet MS", sans-serif;
    font-size: 18px;
}

.pagination a {
    color: #2770c3;
    background: rgba(39, 112, 195, 0.08);
}

.pagination a:hover {
    background: rgba(39, 112, 195, 0.18);
}

.pagination span {
    color: var(--white);
    background: var(--accent);
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 22px;
}

.detail-main,
.detail-sidebar {
    min-width: 0;
}

.article-hero,
.article-content-panel,
.comment-panel,
.sidebar-panel,
.page-panel {
    padding: 22px;
    margin-bottom: 22px;
}

.log-title,
.page-title {
    margin: 0;
    font-family: "Arial Rounded MT Bold", "Trebuchet MS", sans-serif;
    font-size: clamp(26px, 2.1vw, 40px);
    line-height: 1.18;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    margin-top: 18px;
    color: #5c6877;
    font-family: "Arial Rounded MT Bold", "Trebuchet MS", sans-serif;
}

.article-meta__item a {
    color: #3177c4;
}

.article-head-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 14px;
    color: var(--white);
    font: 700 22px/1 "Arial Rounded MT Bold", "Trebuchet MS", sans-serif;
}

.share-btn--facebook { background: #3b5998; }
.share-btn--x { background: #1d9bf0; }
.share-btn--pinterest { background: #cc2331; }
.share-btn--whatsapp { background: #25d366; }

.download-panel {
    padding: 22px;
    margin-bottom: 24px;
    border-radius: 24px;
    background: #fff7f3;
}

.download-panel h2 {
    margin: 0 0 18px;
    font-family: "Arial Rounded MT Bold", "Trebuchet MS", sans-serif;
    font-size: clamp(22px, 1.8vw, 30px);
    line-height: 1.3;
}

.download-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 24px;
    border-radius: 16px;
    color: var(--white);
    font-family: "Arial Rounded MT Bold", "Trebuchet MS", sans-serif;
    font-size: clamp(16px, 1.2vw, 22px);
    line-height: 1.1;
    box-shadow: 0 14px 24px rgba(0, 0, 0, 0.12);
}

.download-btn--primary {
    background: linear-gradient(180deg, #f47d00 0%, #ec6200 100%);
}

.download-btn--secondary {
    background: linear-gradient(180deg, #3387d8 0%, #296fbc 100%);
}

.article-facts {
    display: grid;
    gap: 8px;
    margin-bottom: 24px;
    font-family: "Arial Rounded MT Bold", "Trebuchet MS", sans-serif;
    font-size: clamp(18px, 1.4vw, 28px);
    line-height: 1.3;
}

.article-summary {
    margin: 0 0 24px;
    padding: 18px 20px;
    border-left: 6px solid var(--accent);
    border-radius: 18px;
    background: #faf6f2;
    color: #514845;
}

.article-copy {
    font-size: 17px;
}

.article-copy img {
    margin: 22px auto;
    border-radius: 16px;
    cursor: zoom-in;
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

.tags,
.tags-side,
.loglist-sort,
.log-topflg {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    background: #fff1ec;
    color: var(--accent-deep);
    font: 700 13px/1 "Arial Rounded MT Bold", "Trebuchet MS", sans-serif;
}

.neighbor-log {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    margin-top: 30px;
}

.neighbor-link {
    flex: 1;
    padding: 16px 18px;
    border-radius: 18px;
    background: #f7f3f1;
}

.neighbor-link strong {
    display: block;
    margin-bottom: 6px;
    color: var(--accent);
    font-size: 13px;
    letter-spacing: 0.08em;
}

.neighbor-link span {
    display: block;
    line-height: 1.45;
}

.neighbor-link--next {
    text-align: right;
}

.sidebar-gallery-list,
.related-grid {
    display: grid;
    gap: 16px;
}

.sidebar-gallery {
    overflow: hidden;
    border-radius: 18px;
    background: #0d0d0d;
}

.sidebar-gallery__thumb {
    overflow: hidden;
    aspect-ratio: 0.82 / 1;
}

.sidebar-gallery__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar-gallery__body {
    padding: 16px 15px;
    color: var(--white);
}

.sidebar-gallery__title {
    margin: 0 0 8px;
    font-family: "Arial Rounded MT Bold", "Trebuchet MS", sans-serif;
    font-size: 18px;
    line-height: 1.35;
}

.sidebar-gallery__meta {
    color: rgba(255, 255, 255, 0.74);
    font-size: 13px;
    letter-spacing: 0.05em;
}

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

.comment-panel {
    padding-bottom: 12px;
}

#comments {
    margin-top: 28px;
}

.comment-post {
    margin-bottom: 24px;
}

.commentform .log_comment {
    margin-bottom: 14px;
}

.commentform .comment-info {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 14px;
}

.captcha-container {
    grid-column: 1 / -1;
}

#comment_submit,
.commentform input[type="submit"] {
    width: auto;
    padding: 14px 24px;
    border-radius: 14px;
    color: var(--white);
    background: var(--accent);
    font-family: "Arial Rounded MT Bold", "Trebuchet MS", sans-serif;
}

.comment {
    display: flex;
    gap: 14px;
    margin-bottom: 18px;
}

.comment .avatar {
    flex: 0 0 54px;
}

.comment .avatar img {
    width: 54px;
    height: 54px;
    border-radius: 50%;
}

.comment .comment-infos {
    flex: 1;
    padding: 16px 18px;
    border-radius: 18px;
    background: #faf6f3;
}

.comment-time {
    margin-left: 8px;
    color: var(--muted);
    font-size: 14px;
}

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

.comment .comment-reply {
    margin-top: 10px;
    color: var(--accent);
    font-size: 14px;
}

.comment-children {
    margin-left: 42px;
}

.side-bar .widget {
    padding: 24px;
    margin-bottom: 22px;
    border-radius: 24px;
    background: var(--panel);
    box-shadow: var(--shadow);
}

.bloggerinfo {
    text-align: center;
}

.bloggerinfo-img {
    width: 96px;
    height: 96px;
    margin: 0 auto 14px;
    border-radius: 50%;
    object-fit: cover;
}

.bloginfo-name {
    margin-bottom: 8px;
    font-family: "Arial Rounded MT Bold", "Trebuchet MS", sans-serif;
    font-size: 22px;
}

.bloginfo-descript {
    color: var(--muted);
}

.widget-title {
    margin-bottom: 16px;
}

.widget-title h3 {
    margin: 0;
    font-family: "Arial Rounded MT Bold", "Trebuchet MS", sans-serif;
    font-size: 26px;
}

.widget-list li,
.side-bar li {
    margin-bottom: 10px;
}

.tag-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.widget-search {
    display: flex;
    gap: 10px;
}

.search {
    flex: 1;
}

.widget-search input[type="submit"] {
    width: auto;
    padding: 0 18px;
    border-radius: 14px;
    color: var(--white);
    background: var(--accent);
}

.archive {
    background: #fff7f3;
}

.blog-footer {
    padding: 18px 0 48px;
}

.footer-panel {
    padding: 26px 20px 28px;
    text-align: center;
}

.footer-description {
    max-width: 900px;
    font-size: 14px;
}

.footer-friends {
    margin-top: 18px;
}

.footer-friends__title {
    margin-bottom: 12px;
    font-family: "Arial Rounded MT Bold", "Trebuchet MS", sans-serif;
    font-size: 18px;
    letter-spacing: 0.08em;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 0;
}

.footer-friends__item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    color: var(--white);
    font-family: "Arial Rounded MT Bold", "Trebuchet MS", sans-serif;
    font-size: 14px;
}

.footer-friends__item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.footer-note {
    margin-top: 18px;
    color: rgba(255, 255, 255, 0.92);
}

.footer-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin-top: 18px;
    color: rgba(255, 255, 255, 0.74);
}

.footer-meta a {
    color: rgba(255, 255, 255, 0.9);
}

.side-toolbar {
    position: fixed;
    right: 22px;
    bottom: 28px;
    z-index: 50;
}

.side-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    color: var(--white);
    background: var(--accent);
    box-shadow: 0 18px 30px rgba(0, 0, 0, 0.28);
}

.side-btn:hover {
    background: var(--accent-deep);
}

.image-viewer {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: none;
}

.image-viewer.is-open {
    display: block;
}

.image-viewer__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(4px);
}

.image-viewer__dialog {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    width: min(92vw, 980px);
    height: min(88vh, 860px);
    margin: 4vh auto 0;
    border-radius: 10px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.image-viewer__toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
    background: #f6f6f6;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.image-viewer__meta {
    color: #4a4a4a;
    font-family: "Arial Rounded MT Bold", "Trebuchet MS", sans-serif;
    font-size: 13px;
}

.image-viewer__actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.image-viewer__toolbar button,
.image-viewer__toolbar span {
    min-width: 44px;
    height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    color: #2f2f2f;
    background: #ececec;
    font-family: "Arial Rounded MT Bold", "Trebuchet MS", sans-serif;
    font-size: 13px;
}

.image-viewer__toolbar button:hover {
    background: #e2e2e2;
}

.image-viewer__stage {
    display: grid;
    flex: 1;
    place-items: center;
    overflow: auto;
    padding: 18px;
    background: #ffffff;
}

.image-viewer__stage img {
    max-width: 100%;
    max-height: 100%;
    transform-origin: center center;
    transition: transform 0.18s ease;
    will-change: transform;
}

.image-viewer__footer {
    padding: 10px 14px 12px;
    color: #666;
    font-size: 13px;
    background: #fbfbfb;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

img[data-action="zoom"] {
    cursor: zoom-in;
}

.zoom-img,
.zoom-img-wrap {
    position: relative;
    z-index: 666;
    transition: all 300ms;
}

img.zoom-img {
    cursor: zoom-out;
}

.zoom-overlay {
    position: fixed;
    inset: 0;
    z-index: 420;
    background: rgba(0, 0, 0, 0.92);
    opacity: 0;
    pointer-events: none;
    transition: opacity 300ms;
}

.zoom-overlay-open .zoom-overlay {
    opacity: 1;
}

.modal-dialog {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: 100;
    width: min(92vw, 360px);
    padding: 22px;
    border-radius: 24px;
    background: var(--panel);
    transform: translate(-50%, -50%);
    box-shadow: var(--shadow);
}

.lock-screen {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99;
    background: rgba(0, 0, 0, 0.58);
}

.scroll-fix {
    overflow: hidden;
}

.toc-con {
    z-index: 20;
}

blockquote {
    margin: 22px 0;
    padding: 16px 18px;
    border-left: 5px solid var(--accent);
    border-radius: 16px;
    background: #fff7f3;
}

table {
    width: 100%;
    border-collapse: collapse;
}

table th,
table td {
    padding: 12px;
    border: 1px solid #ece7e3;
}

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

    .detail-layout {
        grid-template-columns: 1fr;
    }

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

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

    .feature-card--large {
        grid-column: span 2;
        min-height: 420px;
    }
}

@media (max-width: 991px) {
    .blog-header {
        padding-top: 18px;
    }

    .nav-card {
        padding: 18px 18px 16px;
    }

    .blog-header-toggle {
        display: inline-flex;
        margin-left: auto;
    }

    .blog-header-nav {
        display: none;
        position: fixed;
        top: 0;
        left: -320px;
        z-index: 999;
        width: 300px;
        height: 100vh;
        padding: 88px 18px 28px;
        overflow-y: auto;
        background: linear-gradient(180deg, #b82325 0%, #8f1719 100%);
        transition: left 0.28s ease;
    }

    .blog-header-nav.show {
        display: block;
        left: 0;
    }

    .nav-overlay {
        position: fixed;
        inset: 0;
        z-index: 998;
        background: rgba(0, 0, 0, 0.52);
    }

    .nav-overlay.show {
        display: block;
    }

    .nav-list {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
    }

    .nav-link {
        padding: 11px 4px;
        font-size: 22px;
    }

    .dropdown-menus {
        position: static;
        min-width: 0;
        margin: 0 0 0 12px;
        padding: 2px 0 6px;
        transform: none;
        opacity: 1;
        pointer-events: auto;
        background: transparent;
        box-shadow: none;
    }

    .dropdown-menus .nav-link {
        padding: 8px 0;
        color: rgba(255, 255, 255, 0.82);
        font-size: 16px;
    }

    .list-menu--translate {
        margin-left: 0;
        padding: 10px 4px 0;
    }

    #translate {
        min-width: 0;
    }

    .hero-search {
        min-height: 58px;
        padding-left: 16px;
    }

    .hero-search__button {
        width: 58px;
        height: 58px;
    }

    .hero-search__input {
        font-size: 20px;
    }

    .article-copy {
        font-size: 16px;
    }
}

@media (max-width: 767px) {
    .container {
        padding: 0 12px;
    }

    .brand-card,
    .footer-panel,
    .gallery-board,
    .article-hero,
    .article-content-panel,
    .comment-panel,
    .sidebar-panel,
    .page-panel {
        border-radius: 22px;
    }

    .brand-card {
        padding: 18px 14px 14px;
    }

    .brand-logo--text,
    .footer-brand--text {
        font-size: 38px;
    }

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

    .related-grid {
        grid-template-columns: 1fr;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .feature-card--large {
        grid-column: auto;
        min-height: 320px;
    }

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

    .neighbor-log {
        flex-direction: column;
    }

    .neighbor-link--next {
        text-align: left;
    }

    .article-facts {
        font-size: 24px;
    }

    .image-viewer__dialog {
        width: 94vw;
        height: auto;
        max-height: 88vh;
        margin-top: 3vh;
    }

    .image-viewer__toolbar {
        flex-wrap: wrap;
        align-items: flex-start;
    }

    .image-viewer__meta {
        width: 100%;
        font-size: 12px;
    }

    .image-viewer__actions {
        width: 100%;
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .image-viewer__toolbar button,
    .image-viewer__toolbar span {
        min-width: 40px;
        height: 32px;
        padding: 0 10px;
    }

    .image-viewer__stage {
        padding: 12px;
    }

    .image-viewer__footer {
        padding: 8px 12px 10px;
        font-size: 12px;
    }
}

@media (max-width: 520px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .hero-search__input {
        font-size: 18px;
    }

    .section-heading h2 {
        font-size: 24px;
    }

    .share-btn {
        width: 48px;
        height: 48px;
        font-size: 18px;
    }

    .download-buttons {
        flex-direction: column;
    }

    .download-btn {
        width: 100%;
    }

    .brand-meta {
        gap: 8px;
    }

    .theme-switch {
        height: 24px;
        min-width: 44px;
    }
}
