:root {
    --page-bg: #ffffff;
    --text-primary: #1d1d1f;
    --text-secondary: #515154;
    --text-muted: #86868b;
    --btn-primary-bg: #007aff;
    --nav-bg: rgba(255, 255, 255, 0.72);
    --nav-border: rgba(0, 0, 0, 0.16);
    --footer-bg: #f5f5f7;
    --footer-border: #d2d2d7;
    --img-placeholder: #f5f5f7;
    --sticker-panel-bg: rgba(245, 245, 247, 0.95);
    --sticker-nav-bg: rgba(230, 230, 230, 0.5);
    --sticker-tab-active: #ffffff;

}

@media (prefers-color-scheme: dark) {
    :root {
        --page-bg: #000000;
        --text-primary: #f5f5f7;
        --text-secondary: #a1a1a6;
        --text-muted: #6e6e73;
        --btn-primary-bg: #0a84ff;

        --nav-bg: rgba(0, 0, 0, 0.72);
        --nav-border: rgba(255, 255, 255, 0.16);

        --footer-bg: #1c1c1e;
        --footer-border: #424245;
        --img-placeholder: #1c1c1e;

        --sticker-panel-bg: rgba(28, 28, 30, 0.95);
        --sticker-nav-bg: rgba(44, 44, 46, 0.5);
        --sticker-tab-active: #3a3a3c;
    }
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--page-bg);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    line-height: 1.47059;
    letter-spacing: -0.022em;
    transition: background-color 0.3s ease, color 0.3s ease;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

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

.global-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 48px;
    background-color: var(--nav-bg);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    z-index: 9999;
    border-bottom: 1px solid transparent;
    transition: border-bottom-color 0.3s ease, background-color 0.3s ease;
}

.global-nav.scrolled {
    border-bottom: 1px solid var(--nav-border);
}

.nav-content {
    max-width: 1000px;
    margin: 0 auto;
    height: 100%;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 0 20px;
}

.logo {
    font-weight: 600;
    font-size: 17px;
    letter-spacing: -0.021em;
    justify-self: start;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 32px;
    justify-self: center;
}

.nav-right-area {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-links a {
    font-size: 12px;
    color: var(--text-primary);
    opacity: 0.8;
}

.nav-links a:hover {
    opacity: 1;
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    padding-top: 48px;
    padding-bottom: 8vh;

    width: 100%;
    position: relative;
    overflow: hidden;
}
.hero-section {
    text-align: center;
    max-width: 800px;
    width: 100%;
    padding: 40px 20px;
}

/* 中心图片包裹器 */
.hero-image-wrapper {
    margin-bottom: 10px;
}

.hero-image {
    width: 100%;
    max-width: 100px; /* 控制图片最大尺寸 */
    height: auto;
    border-radius: 20px;
    /* background-color: var(--img-placeholder); */
    /* 弥散阴影 */
    /* box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    transition: background-color 0.3s ease; */
}

.hero-text h1 {
    font-size: 48px;
    font-weight: 600;
    letter-spacing: -0.003em;
    margin-bottom: 0;
    margin-top: 24px;
}

.hero-text p {
    font-size: 21px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.hero-text .sub-text {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
}

.global-footer {
    background-color: var(--footer-bg);
    padding: 40px 20px 24px;
    font-size: 12px;
    color: var(--text-secondary);
    transition: background-color 0.3s ease;
}

.footer-content {
    max-width: 1000px;
    margin: 0 auto;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 32px;
}

.footer-column h3 {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 8px;
}

.footer-column a:hover {
    color: var(--text-primary);
    text-decoration: underline;
}

.footer-divider {
    height: 1px;
    background-color: var(--footer-border);
    margin-bottom: 16px;
    transition: background-color 0.3s ease;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.legal-links {
    list-style: none;
    display: flex;
    gap: 16px;
}

.legal-links a:hover {
    color: var(--text-primary);
    text-decoration: underline;
}

.hover-link {
    cursor: pointer;
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.hover-link:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
    color: var(--btn-primary-bg);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .nav-content {
        display: flex;
        justify-content: space-between;
    }

    .nav-links {
        display: none !important;
    }

    .nav-links { display: none; }
    .hero-text h1 { font-size: 32px; }
    .hero-text p { font-size: 17px; }
    .footer-grid { flex-direction: column; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
}

.bento-grid-section {
    width: 100%;
    max-width: 1000px;
    padding: 0 20px;
    margin-top: 20px;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

@media (min-width: 768px) {
    .bento-large {
        grid-column: span 2;
    }
}

.bento-card {
    background-color: var(--page-bg);
    border-radius: 24px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    border: 1px solid var(--nav-border); /* 复用边框颜色 */
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s ease;
    cursor: pointer;
    text-align: left;
}

@media (prefers-color-scheme: dark) {
    .bento-card {
        background-color: #141415;
        box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
    }
}

/* 悬浮反馈 */
.bento-card:hover {
    transform: scale(1.02) translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}
@media (prefers-color-scheme: dark) {
    .bento-card:hover { box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6); }
}

.bento-icon {
    font-size: 40px;
    margin-bottom: 16px;
}

.bento-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    letter-spacing: -0.015em;
}

.bento-card p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.hero-image-placeholder {
    width: 120px;
    height: 120px;
    margin: 0 auto;
    border-radius: 50%;
    background: linear-gradient(135deg, #007aff, #34c759);
    box-shadow: 0 10px 30px rgba(0, 122, 255, 0.3);
}

.apple-message-card {
    background: var(--page-bg);
    border-radius: 18px;
    padding: 32px 24px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--nav-border);
    max-width: 420px;
    width: 90%;
    margin: 40px auto;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

@media (prefers-color-scheme: dark) {
    .apple-message-card {
        background: #141415;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    }
}

.apple-message-icon { font-size: 48px; margin-bottom: 12px; line-height: 1; }
.apple-message-title { font-size: 20px; font-weight: 600; margin-bottom: 8px; letter-spacing: -0.5px; }
.apple-message-desc { font-size: 14px; color: var(--text-secondary); margin-bottom: 24px; line-height: 1.5; }

.apple-textarea {
    width: 100%;
    height: 140px;
    background: var(--footer-bg);
    border: 1px solid var(--nav-border);
    border-radius: 12px;
    padding: 16px;
    font-size: 15px;
    color: var(--text-primary);
    box-sizing: border-box;
    resize: none;
    transition: all 0.2s ease;
    font-family: inherit;
    line-height: 1.6;
}
.apple-textarea:focus {
    outline: none;
    border-color: #007aff;
    box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.15);
    background: var(--page-bg);
}

.mailbox-btn {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: opacity 0.2s;
}
.mailbox-btn:active { opacity: 0.8; }
.mailbox-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.mailbox-btn-primary { background: #007aff; color: white; margin-top: 10px;}
.mailbox-btn-secondary { background: var(--footer-bg); color: var(--text-primary); margin-top: 10px; }

/* 旋转器 */
.apple-spinner-container { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px; animation: fadeIn 0.3s ease-out; }
.apple-spinner { width: 28px; height: 28px; border: 3px solid rgba(142, 142, 147, 0.2); border-top-color: #8e8e93; border-radius: 50%; animation: spin 1s linear infinite; }
.spinner-text { margin-top: 12px; font-size: 14px; color: var(--text-muted); }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
.fade-in-content { animation: fadeIn 0.4s ease-out; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }

.toast-container {
    position: fixed;
    top: 64px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    pointer-events: none;
}

.apple-toast {
    background-color: var(--nav-bg);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border: 1px solid var(--nav-border);
    color: var(--text-primary);
    padding: 12px 24px;
    border-radius: 40px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 8px;

    animation: toastFadeIn 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

@media (prefers-color-scheme: dark) {
    .apple-toast {
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    }
}

.apple-toast.fade-out {
    animation: toastFadeOut 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

@keyframes toastFadeIn {
    from { opacity: 0; transform: translateY(-20px) scale(0.9); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes toastFadeOut {
    from { opacity: 1; transform: translateY(0) scale(1); }
    to { opacity: 0; transform: translateY(-20px) scale(0.9); }
}

.action-cards-wrapper {
    display: flex;
    gap: 24px;
    justify-content: center;
    width: 100%;
    max-width: 900px;
    margin: 60px auto 0;
    position: relative;
    padding: 0 20px;
    box-sizing: border-box;
}

.action-card {
    flex: 1;
    width: 100%;
    max-width: 420px;
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.card-hidden {
    opacity: 0;
    transform: scale(0.9) translateY(40px);
    pointer-events: none;
    position: absolute;
}

.card-centered {
    flex: none;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.apple-input {
    width: 100%; background: var(--footer-bg); border: 1px solid var(--nav-border);
    border-radius: 12px; padding: 14px 16px; font-size: 15px; margin-bottom: 12px;
    color: var(--text-primary); transition: all 0.2s ease; box-sizing: border-box;
}
.apple-input:focus { outline: none; border-color: var(--btn-primary-bg); box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.15); background: var(--page-bg); }

.message-board { margin-top: 24px; text-align: left; max-height: 500px; overflow-y: auto; padding-right: 8px;}
.message-bubble { background: var(--footer-bg); padding: 16px 20px; border-radius: 18px; margin-bottom: 16px; border: 1px solid var(--nav-border); box-shadow: 0 2px 10px rgba(0,0,0,0.02);}
.message-header { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-muted); margin-bottom: 8px; align-items: center;}
.message-sender { font-weight: 600; color: var(--text-primary); font-size: 15px;}

.apple-back-btn {
    position: absolute;
    top: -45px;
    left: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--btn-primary-bg);
    font-size: 17px;
    font-weight: 500;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: translateX(-15px);
    z-index: 100;
}

.apple-back-btn.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
}

.apple-back-btn:hover {
    opacity: 0.8;
}

@media (max-width: 768px) {
    .action-cards-wrapper {
        flex-direction: column;
        align-items: center;
        margin-top: 40px;
        gap: 20px;
    }

    .action-card {
        max-width: 100%;
    }

    .card-hidden {
        transform: scale(0.95) translateY(20px);
    }
}

.app-container {
    width: 100%;
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.kiryuu-id-card {
    max-width: 400px;
    margin: 60px auto;
    background: var(--page-bg);
    border-radius: 24px;
    padding: 40px 32px;
    text-align: center;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--nav-border);
    animation: fadeIn 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

@media (prefers-color-scheme: dark) {
    .kiryuu-id-card {
        background-color: #1c1c1e;
        border: 1px solid rgba(255, 255, 255, 0.15);
        box-shadow: 0 12px 48px rgba(0, 0, 0, 0.4);
    }

    .timeline-header, .message-item {
        background-color: #1c1c1e;
        border: 1px solid rgba(255, 255, 255, 0.15);
    }

    .comment-input {
        background-color: #2c2c2e;
        border-color: rgba(255, 255, 255, 0.1);
    }
}


.timeline-header {
    margin-bottom: 24px;
    background: var(--page-bg);
    padding: 20px;
    border-radius: 18px;
    border: 1px solid var(--nav-border);
}

.message-item {
    background: var(--page-bg);
    border-radius: 18px;
    padding: 24px;
    margin-bottom: 24px;
    border: 1px solid var(--nav-border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    text-align: left;
    animation: fadeIn 0.4s ease;
}

.message-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.message-author {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-badge {
    background: var(--btn-primary-bg);
    color: #ffffff !important;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-left: 6px;
    display: inline-block;
    vertical-align: middle;
    line-height: 1.4;
    box-shadow: 0 2px 6px rgba(0, 122, 255, 0.2);
}

.owner-badge {
    background: #FF9F0A;
    color: #ffffff !important;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(255, 159, 10, 0.3);
    margin-left: 6px;
    display: inline-block;
    vertical-align: middle;
    line-height: 1.4;
}

.user-badge {
    background: rgba(52, 199, 89, 0.1);
    color: #34c759; /* 标准绿色文字 */
    border: 1px solid rgba(52, 199, 89, 0.2);
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 700;
    margin-left: 6px;
    display: inline-block;
    vertical-align: middle;
    line-height: 1.4;
}

.message-time { font-size: 13px; color: var(--text-muted); }
.message-content { font-size: 15px; line-height: 1.6; margin-bottom: 16px; white-space: pre-wrap; }

.comments-section {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--nav-border);
}

.comment-item {
    padding: 12px 0;
    font-size: 14px;
}

.comment-meta { margin-bottom: 4px; display: flex; align-items: center; gap: 8px;}
.comment-author { font-weight: 600; color: var(--text-primary); }
.comment-time { font-size: 12px; color: var(--text-muted); }

.action-bar { display: flex; gap: 12px; align-items: center; }
.btn-text {
    background: none; border: none; color: var(--text-muted); font-size: 13px;
    cursor: pointer; font-weight: 500; transition: color 0.2s;
}
.btn-text:hover { color: var(--text-primary); }

.btn-delete { color: #ff3b30; }
.btn-delete:hover { color: #d70015; }

.comment-input-area { display: flex; gap: 10px; margin-top: 12px; }
.comment-input {
    flex: 1; padding: 10px 14px; border-radius: 20px; border: 1px solid var(--nav-border);
    background: var(--footer-bg); color: var(--text-primary); outline: none; transition: border-color 0.2s;
}
.comment-input:focus { border-color: var(--btn-primary-bg); }
.btn-send-comment {
    background: var(--btn-primary-bg); color: white; border: none; border-radius: 20px;
    padding: 0 16px; font-weight: 600; cursor: pointer;
}

.comment-preview-wrapper {
    display: grid;
    grid-template-rows: 1fr;
    opacity: 1;
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    padding: 12px 16px;
    margin-top: 8px;
    transition: grid-template-rows 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.3s ease, margin-top 0.3s ease;
}

.comment-preview-wrapper.hidden {
    grid-template-rows: 0fr;
    opacity: 0;
    margin-top: 0;
    pointer-events: none;
    visibility: hidden;
}


.preview-inner,
.preview-content-box {
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
}

.preview-content-box {
    display: flex;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

.preview-author {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
    margin-right: 6px;
    position: relative;
    top: auto;
}

.preview-text-inner {
    flex: 1;
    min-width: 0;
    font-weight: 500;
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    line-height: 1.5;
    color: var(--text-primary);
}

.preview-content-box .custom-sticker {
    display: inline-block;
    height: 32px;
    width: auto;
    margin: 0 4px;
    vertical-align: middle;
}

.comments-full-wrapper {
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    margin-top: 0;
    transition: grid-template-rows 0.5s ease, opacity 0.4s ease, margin-top 0.4s ease, visibility 0.4s;
    overflow: visible !important;

    pointer-events: none;
    visibility: hidden;
}

.comments-full-wrapper.expanded {
    grid-template-rows: 1fr;
    opacity: 1;
    margin-top: 12px;

    pointer-events: auto;
    visibility: visible;
}

.comments-full-inner {
    overflow: visible !important;
    min-height: 0;
}

.custom-sticker {
    display: block;
    max-width: 120px;
    max-height: 120px;
    margin: 8px 0;
    border-radius: 8px;
    object-fit: contain;
}


.btn-sticker-toggle {
    background: none;
    border: none;
    font-size: 15px;
    font-weight: 500;
    color: var(--btn-primary-bg); /* 统一使用主题蓝，不再是灰蒙蒙的 */
    cursor: pointer;
    padding: 4px 8px;
    transition: opacity 0.2s, transform 0.2s;
    margin-top: 5px;
}

.btn-sticker-comment-toggle {
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    padding: 4px 8px;
    opacity: 0.6;
    transition: opacity 0.2s, transform 0.2s;
    margin-top: 5px;
}

.btn-sticker-toggle:hover {
    transform: scale(1.05);
    opacity: 0.8;
}

.sticker-panel {
    display: flex;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(15px) scale(0.95);
    transform-origin: bottom left;

    transition: opacity 0.25s ease,
    transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    visibility 0.35s;
    position: absolute;
    bottom: 115%;
    left: 0;

    background: var(--sticker-panel-bg); /* 🌟 应用动态变量 */
    border: 1px solid var(--nav-border);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 9999;

    width: 280px;
    height: 250px;
    flex-direction: column;
    overflow: hidden;
}

.sticker-panel.show {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}


.sticker-viewport {
    flex: 1;
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
}

.sticker-viewport::-webkit-scrollbar { display: none; }

.sticker-category-page {
    min-width: 100%;
    height: 100%;
    overflow-y: auto;
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    padding: 12px;
    gap: 8px;
    scroll-snap-align: start;
}

.sticker-bottom-nav {
    height: 44px;
    background: var(--sticker-nav-bg);
    border-top: 1px solid var(--nav-border);
    display: flex;
    align-items: center;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 0 6px;
}
.sticker-bottom-nav::-webkit-scrollbar { display: none; }

.nav-tab-btn {
    flex-shrink: 0;
    width: auto;
    padding: 0 12px;
    height: 32px;
    margin: 0 4px;
    border-radius: 6px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 12px;
    font-weight: bold;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
}

.nav-tab-btn.active {
    background: var(--sticker-tab-active);
    color: var(--btn-primary-bg);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.sticker-option {
    width: 42px;
    height: 42px;

    object-fit: contain;

    cursor: pointer;
    border-radius: 6px;
    transition: transform 0.2s;
}
.sticker-option:hover {
    transform: scale(1.15);
}


.message-item {
    overflow: visible !important;
}

.comments-full-wrapper,
.comments-full-inner {
    overflow: visible !important;
}

.comment-input-area > div {
    position: relative;
    overflow: visible !important;
}

.blocked-message-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px;
    background: rgba(255, 59, 48, 0.08);
    border: 1px solid rgba(255, 59, 48, 0.15);
    border-radius: 14px;
    color: #ff3b30;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 16px;
    width: 100%;
    box-sizing: border-box;
    transition: all 0.3s ease;
}


.blocked-preview-text {
    color: #ff3b30;
    font-style: italic;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 500;
}

.blocked-comment-box {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    width: auto;
    padding: 10px 14px;
    background: rgba(255, 59, 48, 0.08);
    border: 1px solid rgba(255, 59, 48, 0.1);
    border-left: 3px solid #ff3b30;
    border-radius: 6px 12px 12px 6px;
    color: #ff3b30;
    font-size: 13px;
    font-weight: 500;
    margin-top: 16px;
    white-space: normal;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .blocked-comment-box {
        width: auto;
        font-size: 12px;
        padding: 8px 12px;
    }
}


.locked-workspace { opacity: 0.4; pointer-events: none; filter: grayscale(100%); }
.print-dropzone { border: 2px dashed var(--nav-border); padding: 30px; text-align: center; border-radius: 12px; cursor: pointer; color: var(--text-muted); margin-bottom: 16px; background: transparent; transition: all 0.2s ease; }
.print-dropzone:hover { border-color: var(--btn-primary-bg); background: rgba(0, 122, 255, 0.05); color: var(--btn-primary-bg); }

.workspace-card {
    background: var(--page-bg);
    border-radius: 18px;
    border: 1px solid var(--nav-border);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.04);
}
[data-theme="dark"] .workspace-card {
    background: #1c1c1e;
    box-shadow: none;
}

.segmented-control {
    display: flex;
    background: rgba(118, 118, 128, 0.12);
    padding: 4px;
    border-radius: 12px;
    margin-bottom: 24px;
}
.segment-btn {
    flex: 1;
    padding: 8px 12px;
    border: none;
    background: transparent;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.segment-btn:hover { color: var(--btn-primary-bg); }
.segment-btn.active {
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    color: var(--text-primary);
}
[data-theme="dark"] .segment-btn.active {
    background: #2c2c2e;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.status-dashboard {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: rgba(118, 118, 128, 0.06); /* 稍微加深一点背景，提升对比度 */
    border-radius: 16px;
    margin-bottom: 24px;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px; /* 大圆角胶囊 */
    letter-spacing: 0.2px;
}
.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
}

.print-dropzone {
    border: 2px dashed var(--nav-border);
    padding: 40px 20px;
    text-align: center;
    border-radius: 14px;
    cursor: pointer;
    color: var(--text-muted);
    background: transparent;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.print-dropzone:hover, .print-dropzone.dragover {
    border-color: var(--btn-primary-bg);
    background: rgba(0, 122, 255, 0.05);
    color: var(--btn-primary-bg);
}

#workspace-core {
    overflow: hidden;
    transition: height 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.file-row-anim {
    opacity: 0;
    animation: row-slide-in 0.4s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}
@keyframes row-slide-in {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.upload-progress-bg {
    width: 100%;
    height: 4px;
    background: rgba(118, 118, 128, 0.15);
    border-radius: 2px;
    margin-top: 6px;
    overflow: hidden;
}
.upload-progress-bar {
    height: 100%;
    background: var(--btn-primary-bg);
    width: 0%;
    border-radius: 2px;
    transition: width 0.15s linear;
}