@import url('https://fonts.googleapis.com/css2?family=Newsreader:opsz,wght@6..72,500;6..72,650&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
    --color-bg: #fbfaf6;
    --color-bg-soft: #f4f1e9;
    --color-surface: #ffffff;
    --color-surface-soft: #f8f6f0;
    --color-text: #24211d;
    --color-text-soft: #6e675f;
    --color-line: #e7e0d6;
    --color-line-strong: #d8cfc2;
    --color-accent: #6f8a5f;
    --color-accent-dark: #445b3b;
    --color-accent-soft: #edf3e7;
    --color-clay: #a7674b;
    --color-clay-soft: #f4e8df;
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --shadow-soft: 0 18px 45px rgba(70, 55, 38, 0.07);
    --shadow-lift: 0 22px 58px rgba(70, 55, 38, 0.11);
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --font-sans: "Plus Jakarta Sans", "Microsoft YaHei", "PingFang SC", sans-serif;
    --font-serif: "Newsreader", "Songti SC", "Noto Serif SC", serif;
}

* {
    box-sizing: border-box;
    text-rendering: geometricPrecision;
}

html {
    scroll-behavior: smooth;
}

body.taste-site {
    min-height: 100dvh;
    margin: 0;
    background:
        radial-gradient(circle at 8% 0%, rgba(111, 138, 95, 0.09), transparent 24rem),
        radial-gradient(circle at 92% 12%, rgba(167, 103, 75, 0.07), transparent 22rem),
        var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-sans);
    line-height: 1.65;
    letter-spacing: 0;
    overflow-x: hidden;
}

body.taste-site::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.22;
    background-image:
        linear-gradient(rgba(36, 33, 29, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(36, 33, 29, 0.025) 1px, transparent 1px);
    background-size: 52px 52px;
    mask-image: linear-gradient(to bottom, black, transparent 68%);
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 240ms var(--ease), background-color 240ms var(--ease), border-color 240ms var(--ease), transform 240ms var(--ease), box-shadow 240ms var(--ease);
}

a:hover {
    color: var(--color-accent-dark);
}

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

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 20;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    background: var(--color-text);
    color: #fff;
    transform: translateY(-140%);
}

.skip-link:focus {
    transform: translateY(0);
}

.taste-container,
#main > .container {
    width: min(100% - 32px, 1180px);
    max-width: 1180px;
    margin-inline: auto;
    padding-inline: 0;
}

#header {
    position: sticky;
    top: 14px;
    z-index: 5;
    padding: 0 16px;
}

.taste-topbar {
    position: static !important;
    width: min(100%, 1120px);
    margin: 0 auto;
    padding: 8px 10px;
    border: 1px solid rgba(36, 33, 29, 0.08) !important;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.82) !important;
    box-shadow: 0 14px 36px rgba(70, 55, 38, 0.08);
    backdrop-filter: blur(18px);
}

.taste-topbar .container {
    max-width: 1090px;
}

.navbar-brand {
    color: var(--color-text) !important;
    font-family: var(--font-serif);
    font-size: 1.38rem;
    font-weight: 650;
    letter-spacing: -0.03em;
}

.navbar-nav {
    gap: 4px;
}

.navbar-light .navbar-nav .nav-link,
.logout {
    border-radius: 12px;
    color: var(--color-text-soft);
    font-size: 0.92rem;
    font-weight: 600;
    padding: 0.58rem 0.82rem;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active,
.logout:hover {
    background: var(--color-accent-soft);
    color: var(--color-accent-dark);
}

.navbar-toggler {
    border: 1px solid var(--color-line);
    border-radius: 12px;
    box-shadow: none !important;
}

.taste-main {
    position: relative;
    z-index: 1;
    padding: clamp(34px, 5vw, 72px) 0 clamp(68px, 9vw, 112px);
}

.breadcrumb {
    margin: 0 0 24px;
    padding: 0 0 14px;
    border-bottom: 1px solid var(--color-line);
    color: var(--color-text-soft);
    font-size: 0.86rem;
}

.breadcrumb a {
    color: var(--color-accent-dark);
}

.alert {
    border: 1px solid var(--color-line);
    border-radius: var(--radius-md);
    box-shadow: none;
}

h1,
h2,
h3 {
    color: var(--color-text);
    font-family: var(--font-serif);
    font-weight: 650;
    letter-spacing: -0.035em;
    line-height: 1.04;
    text-wrap: balance;
}

p {
    text-wrap: pretty;
}

.eyebrow {
    display: inline-flex;
    width: max-content;
    margin: 0 0 14px;
    padding: 6px 9px;
    border-radius: 9px;
    background: var(--color-accent-soft);
    color: var(--color-accent-dark);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 1;
}

.taste-btn,
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.72rem 1.05rem;
    border-radius: 10px;
    font-weight: 700;
    line-height: 1;
    box-shadow: none !important;
    transition: color 240ms var(--ease), background-color 240ms var(--ease), border-color 240ms var(--ease), transform 240ms var(--ease);
}

.taste-btn:active,
.btn:active {
    transform: scale(0.98);
}

.taste-btn-dark,
.btn-primary {
    border: 1px solid var(--color-accent-dark);
    background: var(--color-accent-dark);
    color: #fff;
}

.taste-btn-dark:hover,
.btn-primary:hover,
.btn-primary:focus {
    border-color: #34472f;
    background: #34472f;
    color: #fff;
}

.taste-btn-light,
.btn-outline-primary,
.btn-outline-secondary {
    border: 1px solid var(--color-line-strong);
    background: rgba(255, 255, 255, 0.86);
    color: var(--color-text);
}

.taste-btn-light:hover,
.btn-outline-primary:hover,
.btn-outline-secondary:hover {
    border-color: var(--color-accent);
    background: var(--color-accent-soft);
    color: var(--color-accent-dark);
}

.home-hero {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr);
    gap: 24px;
    margin-bottom: clamp(52px, 8vw, 92px);
}

.home-hero-copy {
    padding: clamp(28px, 7vw, 72px) clamp(22px, 6vw, 62px);
    border: 1px solid var(--color-line);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.76);
    box-shadow: var(--shadow-soft);
}

.home-hero h1 {
    max-width: 820px;
    margin: 0;
    font-size: clamp(2.7rem, 10vw, 6.2rem);
}

.home-hero-copy > p:not(.eyebrow) {
    max-width: 62ch;
    margin: 18px 0 0;
    color: var(--color-text-soft);
    font-size: clamp(1rem, 1.8vw, 1.2rem);
}

.home-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.home-hero-media {
    position: relative;
    display: grid;
    align-content: end;
    min-height: clamp(320px, 62vw, 560px);
    padding: 14px;
    overflow: hidden;
    border: 1px solid var(--color-line);
    border-radius: var(--radius-lg);
    background: var(--color-surface);
    box-shadow: var(--shadow-soft);
}

.home-hero-media img {
    position: absolute;
    inset: 14px;
    width: calc(100% - 28px);
    height: calc(100% - 28px);
    border-radius: calc(var(--radius-lg) - 8px);
    object-fit: cover;
    filter: saturate(0.88) contrast(1.02);
    transition: transform 700ms var(--ease);
}

.home-hero-media::after {
    content: "";
    position: absolute;
    inset: 14px;
    border-radius: calc(var(--radius-lg) - 8px);
    background: linear-gradient(to top, rgba(33, 28, 22, 0.58), transparent 58%);
}

.home-hero-media:hover img {
    transform: scale(1.035);
}

.home-hero-media span,
.home-hero-media strong {
    position: relative;
    z-index: 1;
    margin: 0 14px;
    color: #fff;
}

.home-hero-media span {
    width: max-content;
    margin-bottom: 8px;
    padding: 5px 8px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.16);
    font-size: 0.76rem;
    font-weight: 800;
}

.home-hero-media strong {
    max-width: 620px;
    margin-bottom: 14px;
    font-family: var(--font-serif);
    font-size: clamp(1.55rem, 5vw, 3rem);
    letter-spacing: -0.035em;
    line-height: 1.08;
}

.taste-notes {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: clamp(58px, 9vw, 104px);
}

.taste-notes article {
    min-height: 184px;
    padding: clamp(22px, 5vw, 36px);
    border: 1px solid var(--color-line);
    border-radius: var(--radius-md);
    background: var(--color-surface);
}

.taste-notes span {
    color: var(--color-clay);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.taste-notes h2 {
    margin: 16px 0 0;
    font-size: clamp(1.8rem, 6vw, 3.25rem);
}

.taste-notes p {
    max-width: 58ch;
    margin: 14px 0 0;
    color: var(--color-text-soft);
}

.section-heading,
.page-heading {
    max-width: 860px;
    margin: 0 0 28px;
}

.section-heading h2,
.page-heading h1 {
    margin: 0;
    font-size: clamp(2.2rem, 8vw, 4.8rem);
}

.page-heading > p:not(.eyebrow) {
    max-width: 62ch;
    margin: 16px 0 0;
    color: var(--color-text-soft);
    font-size: 1.04rem;
}

.archive-heading {
    padding: clamp(24px, 7vw, 62px) 0 clamp(28px, 7vw, 70px);
}

.blog-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
    align-items: start;
}

.post-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

.post-card {
    display: grid;
    grid-template-columns: 1fr;
    overflow: hidden;
    border: 1px solid var(--color-line);
    border-radius: var(--radius-lg);
    background: var(--color-surface);
    box-shadow: 0 0 0 rgba(70, 55, 38, 0);
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 620ms var(--ease), transform 620ms var(--ease), box-shadow 240ms var(--ease), border-color 240ms var(--ease);
}

.post-card:hover {
    border-color: var(--color-line-strong);
    box-shadow: var(--shadow-soft);
}

.post-card.is-visible,
.taste-notes article.is-visible,
.tag-sidebar.is-visible,
.page-heading.is-visible,
.section-heading.is-visible,
.home-hero.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.post-card-cover {
    display: block;
    padding: 10px;
    background: var(--color-surface);
}

.post-card-cover img {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-md);
    object-fit: cover;
    filter: saturate(0.88) contrast(1.02);
    transition: transform 650ms var(--ease);
}

.post-card:hover .post-card-cover img {
    transform: scale(1.025);
}

.post-card-cover.is-empty {
    display: grid;
    min-height: 220px;
    place-items: center;
    color: var(--color-text-soft);
    font-family: var(--font-serif);
    font-size: 1.35rem;
    background:
        linear-gradient(135deg, rgba(237, 243, 231, 0.9), rgba(244, 232, 223, 0.8));
}

.post-card-body {
    display: flex;
    flex-direction: column;
    padding: 10px 20px 24px;
}

.post-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--color-text-soft);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.post-card h2 {
    margin: 12px 0 0;
    font-size: clamp(1.55rem, 6vw, 2.5rem);
}

.post-card p {
    max-width: 66ch;
    margin: 12px 0 0;
    color: var(--color-text-soft);
}

.post-card-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 22px;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-pill {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    border: 1px solid rgba(111, 138, 95, 0.15);
    border-radius: 999px;
    background: var(--color-accent-soft);
    color: var(--color-accent-dark);
    font-size: 0.76rem;
    font-weight: 700;
}

.tag-pill:nth-child(3n + 2) {
    border-color: rgba(167, 103, 75, 0.14);
    background: var(--color-clay-soft);
    color: #8b513b;
}

.tag-pill:hover {
    border-color: var(--color-accent);
    color: var(--color-accent-dark);
}

.read-link {
    color: var(--color-accent-dark);
    font-size: 0.86rem;
    font-weight: 800;
}

.read-link::after {
    content: " /";
    color: var(--color-line-strong);
}

.tag-sidebar {
    padding: 22px;
    border: 1px solid var(--color-line);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.78);
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 620ms var(--ease), transform 620ms var(--ease), box-shadow 240ms var(--ease);
}

.tag-sidebar h2 {
    max-width: 14ch;
    margin: 0 0 18px;
    font-size: clamp(1.45rem, 5vw, 2.1rem);
}

.sidebar-note {
    margin: 0;
    color: var(--color-text-soft);
}

.empty-state {
    padding: clamp(28px, 7vw, 56px);
    border: 1px dashed var(--color-line-strong);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.58);
}

.empty-state h2 {
    margin: 0;
    font-size: clamp(1.7rem, 7vw, 3rem);
}

.empty-state p {
    max-width: 54ch;
    margin: 12px 0 0;
    color: var(--color-text-soft);
}

.post-detail-hero {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    max-width: 850px;
    margin: 0 auto clamp(28px, 6vw, 48px);
    opacity: 1;
    transform: none;
    transition: none;
}

.post-detail-cover {
    margin: 0;
    padding: 10px;
    border: 1px solid var(--color-line);
    border-radius: var(--radius-lg);
    background: var(--color-surface);
    box-shadow: var(--shadow-soft);
}

.post-detail-cover-wide {
    max-width: 980px;
    margin: 0 auto clamp(32px, 7vw, 64px);
}

.post-detail-cover img {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-md);
    object-fit: cover;
    filter: saturate(0.9) contrast(1.02);
}

.post-detail-copy {
    max-width: 850px;
}

.post-detail-copy h1 {
    max-width: 850px;
    margin: 10px 0 0;
    font-size: clamp(2.35rem, 10vw, 5.6rem);
}

.post-detail-copy > p {
    max-width: 66ch;
    margin: 18px 0 0;
    color: var(--color-text-soft);
    font-size: clamp(1rem, 2vw, 1.18rem);
}

.post-detail-copy .tag-list {
    margin-top: 22px;
}

.post-detail-meta {
    display: inline-flex;
    flex-wrap: nowrap;
    gap: clamp(6px, 1.4vw, 10px);
    align-items: center;
    max-width: 100%;
    margin-top: 18px;
    color: var(--color-text-soft);
    font-size: clamp(0.78rem, 3.1vw, 0.9rem);
    line-height: 1.35;
    white-space: nowrap;
}

.post-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.35em;
    flex: 0 0 auto;
    min-height: 1.55em;
    color: inherit;
    font-weight: 800;
    line-height: 1.35;
    white-space: nowrap;
}

.post-meta-date {
    letter-spacing: 0;
}

.post-meta-views {
    color: var(--color-text);
}

.post-meta-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 0.95em;
    height: 0.95em;
    flex: 0 0 0.95em;
    color: var(--color-accent-dark);
    line-height: 1;
}

.post-meta-icon svg {
    display: block;
    width: 0.95em !important;
    height: 0.95em !important;
    color: inherit;
}

.post-edit-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.55em;
    min-width: 1.55em;
    min-height: 1.55em;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 999px;
    background: transparent;
    color: var(--color-accent-dark);
    font-weight: 800;
    text-decoration: none;
}

.post-edit-link:hover {
    border-color: rgba(111, 138, 95, 0.18);
    color: var(--color-accent-dark);
    background: var(--color-accent-soft);
}

@media (max-width: 420px) {
    .post-detail-meta {
        gap: 6px;
        font-size: clamp(0.72rem, 3.4vw, 0.82rem);
    }

    .post-meta-label {
        display: none;
    }

    .post-edit-link {
        width: 1.4em;
        min-width: 1.4em;
        min-height: 1.4em;
    }
}

.post-content-shell {
    max-width: 850px;
    margin: 0 auto;
    padding: clamp(24px, 6vw, 54px);
    border: 1px solid var(--color-line);
    border-radius: var(--radius-lg);
    background: var(--color-surface);
    opacity: 1;
    transform: none;
    transition: none;
}

.post-content {
    color: #35312c;
    font-size: clamp(1rem, 1.6vw, 1.08rem);
}

.post-content h2,
.post-content h3 {
    margin: 2.15em 0 0.65em;
}

.post-content p,
.post-content li {
    margin-bottom: 1.05em;
}

.post-content a {
    color: var(--color-accent-dark);
    text-decoration: underline;
    text-decoration-color: rgba(111, 138, 95, 0.35);
    text-underline-offset: 0.18em;
}

.post-content img {
    display: block !important;
    float: none !important;
    width: auto;
    max-width: 100%;
    height: auto;
    margin: 30px auto !important;
    border-radius: var(--radius-md);
    object-fit: cover;
    filter: saturate(0.92);
}

.post-content p:has(img),
.post-content figure {
    text-align: center;
}

.post-content figure {
    margin: 30px auto;
}

.post-content a:has(img) {
    display: block;
    width: fit-content;
    max-width: 100%;
    margin-right: auto;
    margin-left: auto;
}

.post-content blockquote {
    margin: 32px 0;
    padding: 14px 0 14px 22px;
    border-left: 3px solid var(--color-accent);
    color: var(--color-text-soft);
    font-family: var(--font-serif);
    font-size: 1.28rem;
}

.pagination {
    gap: 6px;
    margin-top: 28px;
}

.page-link {
    border-color: var(--color-line);
    border-radius: 10px;
    color: var(--color-text);
}

.page-link:hover {
    border-color: var(--color-accent);
    background: var(--color-accent-soft);
    color: var(--color-accent-dark);
}

.page-item.active .page-link {
    border-color: var(--color-accent-dark);
    background: var(--color-accent-dark);
    color: #fff;
}

.taste-footer {
    position: relative;
    z-index: 1;
    padding: clamp(34px, 7vw, 68px) 0;
    border-top: 1px solid var(--color-line);
    background: rgba(255, 255, 255, 0.52);
}

.taste-footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    color: var(--color-text-soft);
}

.taste-footer strong {
    display: block;
    color: var(--color-text);
    font-family: var(--font-serif);
    font-size: 1.65rem;
    letter-spacing: -0.03em;
}

.taste-footer p {
    max-width: 48ch;
    margin: 10px 0 0;
}

.taste-footer nav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.taste-footer nav a {
    color: var(--color-text);
    font-weight: 700;
}

.taste-footer-copy {
    font-size: 0.9rem;
}

.bottom-dock {
    position: fixed;
    right: 12px;
    bottom: 12px;
    left: 12px;
    z-index: 6;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    padding: 6px;
    border: 1px solid rgba(36, 33, 29, 0.09);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 16px 46px rgba(70, 55, 38, 0.12);
    backdrop-filter: blur(16px);
}

.dock-item {
    display: grid;
    gap: 2px;
    place-items: center;
    min-height: 48px;
    border-radius: 14px;
    color: var(--color-text-soft);
    font-size: 0.72rem;
    font-weight: 800;
}

.dock-icon {
    font-size: 1rem;
    line-height: 1;
}

.dock-item:hover,
.dock-item.is-active {
    background: var(--color-accent-soft);
    color: var(--color-accent-dark);
}

.dock-primary {
    background: var(--color-accent-dark);
    color: #fff;
}

.form-control,
.form-select,
.rich-editor-area {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    border: 1px solid var(--color-line-strong);
    border-radius: var(--radius-sm);
    background-color: #fff;
    color: var(--color-text);
    box-shadow: none !important;
}

.form-control:focus,
.form-select:focus,
.rich-editor-area:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 0.18rem rgba(111, 138, 95, 0.12) !important;
}

.admin-heading,
.article-edit-form,
.status-panel,
.cover-panel,
.image-manager,
.site-login,
.site-contact,
.content-block {
    border: 1px solid var(--color-line);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.78);
}

.admin-heading,
.content-block,
.site-login,
.site-contact {
    padding: clamp(24px, 5vw, 44px);
}

.article-edit-form,
.status-panel,
.cover-panel,
.image-manager {
    padding: clamp(18px, 4vw, 28px);
}

.article-form,
.image-manager {
    width: 100%;
    max-width: 1120px;
    margin-right: auto;
    margin-left: auto;
    overflow-x: hidden;
}

.article-edit-form {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.article-edit-form > .row {
    --bs-gutter-x: clamp(24px, 4vw, 44px);
    --bs-gutter-y: 22px;
    align-items: flex-start;
    flex-wrap: wrap;
    width: 100%;
    max-width: 100%;
    margin-right: 0;
    margin-left: 0;
}

.article-edit-form > .row > [class*="col-"] {
    max-width: 100%;
    min-width: 0;
    overflow-x: hidden;
}

.article-edit-form .col-lg-8,
.article-edit-form .col-lg-4 {
    display: grid;
    align-content: start;
    gap: 18px;
    min-width: 0;
}

@media (min-width: 992px) {
    .article-edit-form .col-lg-8 {
        width: 68%;
        flex: 0 0 68%;
        max-width: 68%;
    }

    .article-edit-form .col-lg-4 {
        width: 32%;
        flex: 0 0 32%;
        max-width: 32%;
    }
}

.article-edit-form .col-lg-4 {
    position: relative;
    z-index: 1;
}

.article-edit-form .col-lg-4 > * {
    width: 100%;
}

.article-edit-form *,
.image-manager * {
    max-width: 100%;
    overflow-wrap: anywhere;
}

.cover-preview,
.admin-cover-thumb,
.image-item img {
    border-radius: var(--radius-sm);
    object-fit: cover;
}

.cover-preview {
    width: 100%;
    aspect-ratio: 4 / 3;
    margin-bottom: 14px;
}

.cover-placeholder {
    display: grid;
    min-height: 180px;
    margin-bottom: 14px;
    place-items: center;
    border: 1px dashed var(--color-line-strong);
    border-radius: var(--radius-sm);
    background: var(--color-surface-soft);
    color: var(--color-text-soft);
}

.rich-editor {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    border: 1px solid var(--color-line);
    border-radius: var(--radius-md);
    background: #fff;
}

.rich-toolbar {
    display: flex;
    flex-wrap: wrap;
    min-width: 0;
    gap: 6px;
    padding: 10px;
    border-bottom: 1px solid var(--color-line);
    background: var(--color-surface-soft);
}

.rich-tool {
    min-width: 34px;
    height: 34px;
    border: 1px solid var(--color-line);
    border-radius: 8px;
    background: #fff;
    color: var(--color-text);
    font-weight: 700;
}

.rich-editor-area {
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    min-height: 420px;
    padding: 20px;
    border: 0;
    outline: 0;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.rich-editor-area img,
.rich-editor-area table,
.rich-editor-area pre,
.rich-editor-area code {
    max-width: 100%;
}

.rich-editor-area table {
    width: 100%;
    table-layout: fixed;
}

.rich-editor-area:empty::before {
    content: attr(data-placeholder);
    color: var(--color-text-soft);
    pointer-events: none;
}

.rich-editor-source,
.cover-upload-form {
    display: none;
}

.image-manager {
    max-width: 1120px;
    margin-top: 24px;
    overflow-x: hidden;
}

.image-manager-head,
.image-upload-form,
.image-actions {
    display: flex;
    flex-wrap: wrap;
    min-width: 0;
    gap: 10px;
    align-items: center;
}

.image-manager-head {
    justify-content: space-between;
    margin-bottom: 16px;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

@media (max-width: 991.98px) {
    .image-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.image-item {
    min-width: 0;
    max-width: 100%;
    padding: 10px;
    border: 1px solid var(--color-line);
    border-radius: var(--radius-md);
    background: #fff;
}

.image-item img {
    width: 100%;
    aspect-ratio: 4 / 3;
}

.image-item-name {
    margin: 10px 0;
    color: var(--color-text-soft);
    font-size: 0.84rem;
    word-break: break-word;
}

.remote-image-progress {
    max-width: 100%;
    overflow-x: hidden;
    margin-top: 12px;
    padding: 12px 14px;
    border: 1px solid var(--color-line);
    border-radius: var(--radius-sm);
    background: var(--color-surface-soft);
    overflow-wrap: anywhere;
}

.remote-image-progress.is-error {
    border-color: #efd0d1;
    background: #fdebec;
    color: #8d2f2d;
}

.remote-image-progress.is-success {
    border-color: #dbe7d7;
    background: var(--color-accent-soft);
    color: var(--color-accent-dark);
}

.admin-toolbar {
    display: flex;
    justify-content: flex-end;
    margin: 0 0 18px;
}

.grid-view {
    overflow-x: auto;
}

.admin-table {
    overflow: hidden;
    border: 1px solid var(--color-line);
    border-radius: var(--radius-md);
    background: #fff;
}

.admin-table > :not(caption) > * > * {
    padding: 0.9rem;
    border-bottom-color: var(--color-line);
}

.admin-cover-thumb {
    width: 82px;
    height: 54px;
}

.adsense-block {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    margin: 32px 0;
    padding: 24px 0;
    border-top: 1px solid var(--color-line);
    border-bottom: 1px solid var(--color-line);
    background: transparent;
    text-align: center;
    clear: both;
}

.adsense-label {
    margin-bottom: 12px;
    color: var(--color-text-soft);
    font-size: 0.78rem;
    line-height: 1.2;
    letter-spacing: 0.08em;
}

.adsense-block .adsbygoogle {
    display: block !important;
    width: 100%;
    max-width: 100%;
    min-height: 90px;
}

.home-hero,
.taste-notes article,
.section-heading,
.page-heading,
.tag-sidebar {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 620ms var(--ease), transform 620ms var(--ease);
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 1ms !important;
        animation-duration: 1ms !important;
    }
}

@media (min-width: 768px) {
    .taste-container,
    #main > .container {
        width: min(100% - 48px, 1180px);
    }

    .home-hero {
        grid-template-columns: minmax(0, 0.92fr) minmax(300px, 0.72fr);
        align-items: stretch;
    }

    .taste-notes {
        grid-template-columns: 1.2fr 0.8fr;
    }

    .taste-notes article:first-child {
        grid-row: span 2;
        min-height: 380px;
    }

    .blog-layout {
        grid-template-columns: minmax(0, 1fr) 292px;
        gap: clamp(26px, 4vw, 52px);
    }

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

    .post-card:first-child {
        grid-column: 1 / -1;
        grid-template-columns: minmax(260px, 0.74fr) minmax(0, 1fr);
    }

    .post-card:first-child .post-card-cover img {
        height: 100%;
        min-height: 330px;
    }

    .post-card:first-child .post-card-body {
        padding: clamp(24px, 4vw, 42px);
    }

    .post-card:first-child h2 {
        font-size: clamp(2rem, 4.6vw, 3.9rem);
    }

    .tag-sidebar {
        position: sticky;
        top: 104px;
    }

    .post-detail-hero.has-cover {
        grid-template-columns: 1fr;
    }

    .post-detail-cover img {
        aspect-ratio: 16 / 9;
    }

    .taste-footer-grid {
        grid-template-columns: 1.3fr auto auto;
        align-items: end;
    }

    .bottom-dock {
        display: none;
    }
}

@media (max-width: 767.98px) {
    body.taste-site {
        padding-bottom: 78px;
    }

    #header {
        top: 8px;
        padding: 0 10px;
    }

    .taste-topbar {
        border-radius: 16px;
    }

    .navbar-collapse {
        padding-top: 8px;
    }

    .taste-main {
        padding-top: 26px;
    }

    .home-hero-copy,
    .home-hero-media,
    .post-card,
    .tag-sidebar,
    .post-detail-cover,
    .post-content-shell {
        border-radius: 18px;
    }

    .post-card-body {
        padding: 8px 18px 22px;
    }

    .post-card-cover img,
    .post-detail-cover img,
    .home-hero-media img,
    .home-hero-media::after {
        border-radius: 12px;
    }

    .image-manager-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .adsense-block {
        margin: 28px 0;
        padding: 22px 0;
    }
}
