/* ==========================================================================
   Jingdezhen Porcelain Originality Verification SPA - Custom Styling
   Design Style: Kami Elegant Style (国风雅致 - 展签与美术馆呼吸感)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design System & CSS Variables
   -------------------------------------------------------------------------- */
:root {
    /* Color Tokens */
    --color-rice-paper: #FAF8F5;
    /* 宣纸底色：暖黄偏白，舒适护眼 */
    --color-celadon: #5E8C80;
    /* 汝窑天青：温润淡青，主色调 */
    --color-celadon-light: rgba(94, 140, 128, 0.1);
    --color-gold: #CFB57D;
    /* 古金：金属色，代表原创与核验认证 */
    --color-gold-light: rgba(207, 181, 125, 0.15);
    --color-deep-slate: #2A3038;
    /* 黛灰：低饱和文字主色，代替纯黑 */
    --color-clay-line: #E2DDD5;
    /* 陶土细线：0.5px 分割线颜色 */
    --color-clay-dashed: #D2CAC0;
    --color-text-secondary: #706B62;
    /* 釉灰：辅助说明文字色 */
    --color-white-pure: #FFFFFF;

    /* Layout Tokens */
    --max-width: 480px;
    /* 移动端最大自适应宽度 */
    --header-height: 56px;
    --footer-height: 72px;
    --radius-small: 4px;
    /* 极小圆角 */

    /* Font Families */
    --font-serif: "Playfair Display", "PingFang SC", "Noto Sans CJK SC", sans-serif;
    --font-sans: "Noto Sans SC", "PingFang SC", "Source Han Sans CN", sans-serif;
    --font-code: "Playfair Display", Georgia, monospace;
}

/* --------------------------------------------------------------------------
   2. Reset & Global Styles
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

html,
body {
    width: 100%;
    height: 100%;
    background-color: #E2DDD5;
    /* Desktop backdrop */
    font-family: var(--font-sans);
    font-weight: 300;
    color: var(--color-deep-slate);
    line-height: 1.8;
    letter-spacing: 0.08em;
    overflow: hidden;
}

/* Main Container (微信完美自适应模拟器) */
.app-container {
    width: 100%;
    max-width: var(--max-width);
    height: 100%;
    margin: 0 auto;
    background-color: var(--color-rice-paper);
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    /* 极致纤细边框约束 */
    border-left: 0.5px solid var(--color-clay-line);
    border-right: 0.5px solid var(--color-clay-line);
}

/* Scrollable area */
.scrollable {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 30px;
}

/* Hide scrollbars for aesthetic purity */
.scrollable::-webkit-scrollbar {
    width: 0px;
    background: transparent;
}

/* Typography elements */
h1,
h2,
h3,
h4,
h5 {
    color: var(--color-deep-slate);
    font-weight: 400;
    letter-spacing: 0.05em;
}

.serif-title {
    font-family: var(--font-serif);
    font-weight: 400;
}

.code-font {
    font-family: var(--font-code);
    letter-spacing: 0.03em;
}

p {
    font-size: 14px;
    color: var(--color-deep-slate);
    text-align: justify;
}

.divider-line {
    height: 0.5px;
    background-color: var(--color-clay-line);
    margin: 24px 20px;
}

/* --------------------------------------------------------------------------
   3. Single Page Navigation System
   -------------------------------------------------------------------------- */
.view {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    background-color: var(--color-rice-paper);
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    z-index: 10;
}

.view.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    z-index: 20;
}

/* --------------------------------------------------------------------------
   4. Header & Top Navigation Bar
   -------------------------------------------------------------------------- */
.app-header {
    height: var(--header-height);
    min-height: var(--header-height);
    background: rgba(250, 248, 245, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 0.5px solid var(--color-clay-line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    position: relative;
    z-index: 100;
}

.header-logo-wrapper {
    display: flex;
    align-items: center;
    padding-left: 4px;
}

.btn-back {
    background: none;
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-deep-slate);
    transition: transform 0.2s ease;
}

.btn-back:active {
    transform: scale(0.9);
}

.btn-back.light-theme {
    color: var(--color-white-pure);
    background: rgba(42, 48, 56, 0.3);
    border-radius: 50%;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.icon-svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

/* Segmented tab navigation inside the Header */
.header-tab-nav {
    display: flex;
    background-color: rgba(226, 221, 213, 0.4);
    padding: 2px;
    border-radius: var(--radius-small);
    border: 0.5px solid var(--color-clay-line);
}

.tab-nav-item {
    border: none;
    background: none;
    font-family: var(--font-sans);
    font-size: 13px;
    color: var(--color-text-secondary);
    padding: 6px 16px;
    border-radius: 3px;
    cursor: pointer;
    font-weight: 400;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.tab-nav-item.active {
    background-color: var(--color-white-pure);
    color: var(--color-celadon);
    font-weight: 500;
    box-shadow: 0 1px 2px rgba(94, 140, 128, 0.1);
}

/* Verification Badge */
.verification-badge {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.badge-svg {
    width: 100%;
    height: 100%;
    transform: rotate(-10deg);
    transition: transform 0.4s ease;
}

.verification-badge:hover .badge-svg {
    transform: rotate(5deg) scale(1.05);
}

.badge-circle {
    fill: none;
    stroke: var(--color-gold);
    stroke-width: 2.5;
}

.badge-inner-circle {
    fill: var(--color-gold-light);
    stroke: var(--color-gold);
    stroke-width: 1.2;
    stroke-dasharray: 4, 2;
}

.badge-text {
    font-family: var(--font-serif);
    font-size: 16px;
    font-weight: 600;
    fill: var(--color-celadon);
    text-anchor: middle;
}

.badge-text-bold {
    font-family: var(--font-serif);
    font-size: 18px;
    font-weight: 700;
    fill: var(--color-celadon);
    text-anchor: middle;
}

/* --------------------------------------------------------------------------
   5. View Content Layout Details
   -------------------------------------------------------------------------- */
.view-content {
    display: flex;
    flex-direction: column;
}

.section-container {
    padding: 24px 20px;
    position: relative;
}

/* Tab contents switcher */
.tab-content {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tab-content.active {
    display: block;
    opacity: 1;
}

/* --------------------------------------------------------------------------
   6. View 1A: 作品故事详情页
   -------------------------------------------------------------------------- */

/* Gallery Image Slider */
.gallery-wrapper {
    width: 100%;
    height: 280px;
    position: relative;
    overflow: hidden;
    background-color: #E2DDD5;
}

.gallery-slider {
    display: flex;
    width: 300%;
    height: 100%;
    transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.slide {
    width: 33.3333%;
    height: 100%;
}

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

.gallery-pagination {
    position: absolute;
    bottom: 12px;
    right: 16px;
    background: rgba(42, 48, 56, 0.7);
    color: var(--color-rice-paper);
    font-family: var(--font-serif);
    font-size: 12px;
    padding: 3px 8px;
    border-radius: var(--radius-small);
    letter-spacing: 0.05em;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(250, 248, 245, 0.5);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-deep-slate);
    font-family: monospace;
    font-size: 16px;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    opacity: 0;
    transition: opacity 0.3s ease, background-color 0.2s ease;
}

.gallery-wrapper:hover .slider-btn {
    opacity: 1;
}

.slider-btn:active {
    background-color: var(--color-rice-paper);
}

.slider-btn.prev {
    left: 10px;
}

.slider-btn.next {
    right: 10px;
}

/* Product Info Section */
.product-info-section {
    padding-top: 20px;
    padding-bottom: 10px;
}

.series-tag {
    font-size: 12px;
    color: var(--color-gold);
    border: 0.5px solid var(--color-gold);
    padding: 3px 10px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 10px;
    font-weight: 500;
}

.product-title {
    font-family: var(--font-serif);
    font-size: 24px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--color-deep-slate);
    margin-bottom: 16px;
}

.spec-list {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    padding-bottom: 8px;
    border-bottom: 0.5px dashed var(--color-clay-line);
}

.spec-item:last-child {
    border-bottom: none;
}

.spec-label {
    color: #666;
}

.spec-val {
    color: #333;
    font-weight: 400;
}

/* Story Section */
.story-section {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.story-block h2 {
    font-family: var(--font-serif);
    font-size: 19px;
    font-weight: 500;
    margin-bottom: 12px;
    color: var(--color-celadon);
    border-bottom: 0.5px solid var(--color-clay-line);
    padding-bottom: 6px;
}

.story-text {
    font-size: 16px;
    font-family: var(--font-sans);
    font-weight: 400;
    color: var(--color-deep-slate);
    line-height: 1.6;
}

.process-steps {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 10px;
}

.process-steps li {
    display: flex;
    gap: 16px;
}

.step-num {
    font-family: var(--font-serif);
    font-size: 22px;
    color: var(--color-gold);
    font-weight: 500;
    line-height: 1.2;
}

.step-desc h3 {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 4px;
}

.step-desc p {
    font-size: 14px;
    font-weight: 400;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

/* Easter Egg Box */
.easter-egg-box {
    background-color: var(--color-rice-paper);
    border: 0.5px dashed var(--color-clay-dashed);
    padding: 16px;
    border-radius: var(--radius-small);
    position: relative;
    margin-top: 10px;
}

.egg-tag {
    position: absolute;
    top: -10px;
    left: 16px;
    background-color: var(--color-rice-paper);
    padding: 0 8px;
    font-size: 11px;
    color: var(--color-gold);
    font-weight: 500;
    letter-spacing: 0.05em;
}

.egg-text {
    font-size: 13px;
    color: var(--color-text-secondary);
    line-height: 1.7;
}

/* Greeting Section (主理人温馨祝语) */
.greeting-section {
    padding-top: 0;
}

.greeting-card {
    background: #F6F3EC;
    /* Warm Paper */
    border-left: 2.5px solid var(--color-gold);
    padding: 20px;
    border-radius: 0 var(--radius-small) var(--radius-small) 0;
}

.greeting-header {
    font-size: 16px;
    color: var(--color-text-secondary);
    margin-bottom: 12px;
}

.greeting-body {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 14px;
    color: var(--color-deep-slate);
    line-height: 1.8;
}

.greeting-signature {
    text-align: right;
    font-size: 12px;
    color: var(--color-text-secondary);
    margin-top: 16px;
    font-family: var(--font-serif);
}

/* Footer Sticky Action Bar */
.footer-action-bar {
    height: var(--footer-height);
    min-height: var(--footer-height);
    background: rgba(250, 248, 245, 0.88);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 0.5px solid var(--color-clay-line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    position: relative;
    z-index: 90;
    overflow: visible;
    /* Ensure out-of-bounds seal is not clipped */
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.footer-action-bar:hover {
    background: rgba(250, 248, 245, 0.95);
    border-top-color: var(--color-gold);
}

.official-seal {
    position: absolute;
    right: 40px;
    /* 放在箭头左边一点 */
    bottom: 10px;
    /* 调整此值让印章一半在底栏内，一半凸出在底栏上方 */
    width: 76px;
    /* 放大尺寸，比头像更大 */
    height: 76px;
    transform: rotate(-12deg);
    /* 模拟真实盖章的倾斜感 */
    z-index: 10;
    pointer-events: none;
    /* 防止遮挡点击事件 */
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.06));
    /* 微微的物理厚度感 */
}

.bar-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-secondary);
    margin-left: auto;
    /* Push it to the right */
    transition: transform 0.2s ease, color 0.2s ease;
    z-index: 5;
}

.arrow-svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.footer-action-bar:hover .bar-arrow {
    color: var(--color-celadon);
    transform: translateX(2.5px);
}

.footer-creator-card {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.bar-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 0.5px solid var(--color-gold);
    object-fit: cover;
}

.bar-creator-info {
    display: flex;
    flex-direction: column;
}

.bar-name {
    font-size: 16px;
    font-weight: 500;
    color: var(--color-deep-slate);
    line-height: 1.2;
}

.bar-label {
    font-size: 12px;
    font-weight: 400;
    color: var(--color-text-secondary);
    margin-top: 2px;
}

/* High aesthetics button */
.btn-primary {
    width: 55%;
    height: 44px;
    background-color: var(--color-celadon);
    color: var(--color-white-pure);
    border: none;
    border-radius: var(--radius-small);
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 2px 4px rgba(94, 140, 128, 0.15);
}

.btn-primary:active {
    background-color: #4b7167;
    transform: translateY(1px);
    box-shadow: 0 1px 2px rgba(94, 140, 128, 0.1);
}

/* --------------------------------------------------------------------------
   7. View 1B: 作品确真详情页
   -------------------------------------------------------------------------- */

.section-subtitle {
    font-size: 16px;
    color: var(--color-celadon);
    margin-bottom: 8px;
    font-weight: 500;
}

.section-intro {
    font-size: 13px;
    color: var(--color-text-secondary);
    margin-bottom: 16px;
    line-height: 1.6;
}

.image-pair-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.image-card {
    background: var(--color-white-pure);
    border: 0.5px solid var(--color-clay-line);
    border-radius: var(--radius-small);
    overflow: hidden;
    padding: 10px;
}

.image-card .img-wrapper {
    width: 100%;
    height: 200px;
    position: relative;
    overflow: hidden;
    background-color: #E2DDD5;
    border-radius: 2px;
}

.image-card .img-wrapper>img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.image-card:hover .img-wrapper>img {
    transform: scale(1.03);
}

.img-overlay-label {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(42, 48, 56, 0.75);
    color: var(--color-rice-paper);
    font-size: 11px;
    padding: 3px 8px;
    border-radius: var(--radius-small);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.image-caption {
    font-size: 12px;
    color: var(--color-text-secondary);
    margin-top: 10px;
    line-height: 1.7;
}

/* Tech parameters Table */
.tech-table-section {
    padding-top: 10px;
}

.tech-table-section h2 {
    font-family: var(--font-serif);
    font-size: 19px;
    font-weight: 500;
    color: var(--color-celadon);
    margin-bottom: 16px;
}

.tech-table-wrapper {
    border: 0.5px solid var(--color-clay-line);
    border-radius: var(--radius-small);
    overflow: hidden;
}

.tech-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--color-white-pure);
}

.tech-table td {
    padding: 12px 16px;
    font-size: 14px;
    border-bottom: 0.5px solid var(--color-clay-line);
}

.tech-table tr:last-child td {
    border-bottom: none;
}

.tech-table tr td:first-child {
    color: #666;
    width: 35%;
    border-right: 0.5px solid var(--color-clay-line);
    font-weight: 400;
}

.tech-table tr td:last-child {
    color: #333;
    font-weight: 400;
}

/* Certified Badges Grid */
.cert-badges-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.cert-badge-card {
    border: 0.5px solid var(--color-gold);
    background: rgba(207, 181, 125, 0.05);
    border-radius: var(--radius-small);
    padding: 16px;
    text-align: center;
}

.cert-icon {
    width: 30px;
    height: 30px;
    fill: var(--color-gold);
    margin-bottom: 10px;
}

.cert-badge-card h3 {
    font-size: 13px;
    color: var(--color-deep-slate);
    margin-bottom: 6px;
    font-weight: 500;
}

.cert-badge-card p {
    font-size: 11px;
    color: var(--color-text-secondary);
    line-height: 1.5;
    text-align: center;
}

/* Verify Disclaimer */
.verify-disclaimer {
    padding: 24px 20px;
    background-color: rgba(226, 221, 213, 0.25);
    border-top: 0.5px solid var(--color-clay-line);
    text-align: center;
}

.verify-disclaimer p {
    font-size: 11px;
    color: var(--color-text-secondary);
    line-height: 1.8;
    text-align: inherit;
}

/* --------------------------------------------------------------------------
   8. View 2: 作者信息页
   -------------------------------------------------------------------------- */

/* Creator Hero Header */
.creator-hero-header {
    width: 100%;
    height: 180px;
    position: relative;
}

.hero-bg-wrapper {
    width: 100%;
    height: 100%;
}

.hero-bg-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-gradient-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80%;
    background: linear-gradient(to bottom, rgba(250, 248, 245, 0) 0%, var(--color-rice-paper) 100%);
}

.creator-hero-header .btn-back {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 110;
}

/* Creator profile card overlapping hero */
.creator-profile-card {
    padding: 0 20px;
    margin-top: -50px;
    text-align: center;
    position: relative;
    z-index: 30;
    margin-bottom: 16px;
}

.profile-avatar-wrapper {
    width: 90px;
    height: 90px;
    margin: 0 auto 12px;
    border-radius: 50%;
    border: 2px solid var(--color-gold);
    overflow: hidden;
    background-color: var(--color-rice-paper);
}

.profile-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.creator-name {
    font-family: var(--font-serif);
    font-size: 24px;
    font-weight: 600;
    color: var(--color-deep-slate);
    margin-bottom: 6px;
}

.creator-title {
    font-size: 14px;
    color: var(--color-gold);
    text-align: center;
    margin-bottom: 12px;
    font-weight: 500;
}

.creator-address {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--color-text-secondary);
    background-color: rgba(226, 221, 213, 0.4);
    padding: 4px 12px;
    border-radius: 20px;
    border: 0.5px solid var(--color-clay-line);
}

.icon-loc {
    width: 14px;
    height: 14px;
    fill: var(--color-text-secondary);
}

.creator-content {
    padding-top: 10px;
}

/* Biography */
.biography-title {
    font-family: var(--font-serif);
    font-size: 19px;
    font-weight: 500;
    color: var(--color-celadon);
    margin-bottom: 12px;
    border-bottom: 0.5px solid var(--color-clay-line);
    padding-bottom: 6px;
}

.biography-text {
    font-size: 16px;
    font-family: var(--font-sans);
    font-weight: 400;
    color: var(--color-deep-slate);
    line-height: 1.6;
}

/* Social links row */
.socials-section {
    padding-top: 10px;
}

.section-subtitle-small {
    font-size: 12px;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
    font-weight: 500;
}

.social-icons-row {
    display: flex;
    gap: 12px;
}

.social-btn {
    flex: 1;
    height: 40px;
    background-color: var(--color-white-pure);
    border: 0.5px solid var(--color-clay-line);
    border-radius: var(--radius-small);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-sans);
    font-size: 12px;
    color: var(--color-deep-slate);
    transition: all 0.2s ease;
}

.social-btn:active {
    background-color: rgba(226, 221, 213, 0.3);
    transform: translateY(1px);
}

.app-icon-wrapper {
    width: 20px;
    height: 20px;
    min-width: 20px;
    min-height: 20px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.wechat-wrapper {
    background-color: #07C160;
}

.wechat-wrapper iconify-icon {
    color: #FFFFFF;
    font-size: 13px;
    display: flex;
}

.xhs-wrapper {
    background-color: #FF2442;
}

.xhs-char {
    color: #FFFFFF;
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    display: block;
    transform: translateY(0.5px);
}

.dy-wrapper {
    background-color: #1C0F1C;
}

.app-icon-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Works Catalog / Grid */
.portfolio-section {
    padding-top: 10px;
}

.grid-title {
    font-family: var(--font-serif);
    font-size: 19px;
    font-weight: 500;
    color: var(--color-celadon);
    margin-bottom: 16px;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.grid-card {
    background: var(--color-white-pure);
    border: 0.5px solid var(--color-clay-line);
    border-radius: var(--radius-small);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.grid-card:active {
    transform: translateY(2px);
    border-color: var(--color-gold);
}

.card-img-wrapper {
    width: 100%;
    height: 130px;
    position: relative;
    overflow: hidden;
    background-color: #E2DDD5;
}

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

.card-tag {
    position: absolute;
    top: 6px;
    right: 6px;
    font-size: 9px;
    padding: 2px 6px;
    border-radius: var(--radius-small);
    color: var(--color-white-pure);
    font-weight: 500;
}

.tag-story {
    background-color: var(--color-celadon);
}

.tag-verify {
    background-color: var(--color-gold);
}

.tag-other {
    background-color: var(--color-text-secondary);
}

.card-info {
    padding: 10px;
}

.card-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--color-deep-slate);
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 6px;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-series {
    font-size: 10px;
    color: var(--color-text-secondary);
}

.card-badge-status {
    font-size: 9px;
    padding: 1px 4px;
    border-radius: 2px;
    font-weight: 500;
}

.card-badge-status.verified {
    color: var(--color-celadon);
    background-color: var(--color-celadon-light);
}

.card-badge-status.certified {
    color: var(--color-gold);
    background-color: rgba(207, 181, 125, 0.15);
}

.creator-footer {
    text-align: center;
    padding: 24px 0 12px;
    font-size: 11px;
    color: var(--color-text-secondary);
}

.creator-footer p {
    text-align: inherit;
}

/* --------------------------------------------------------------------------
   9. Modals & Interactive Overlays
   -------------------------------------------------------------------------- */

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(42, 48, 56, 0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    z-index: 500;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-card {
    width: 100%;
    background-color: var(--color-rice-paper);
    border-radius: 12px 12px 0 0;
    border-top: 0.5px solid var(--color-clay-line);
    padding: 24px 20px 30px;
    box-shadow: 0 -4px 10px rgba(42, 48, 56, 0.05);
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    max-height: 85%;
    overflow-y: auto;
}

.modal-overlay.active .modal-card {
    transform: translateY(0);
}

.modal-close-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    background: none;
    border: none;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-secondary);
    cursor: pointer;
}

.modal-badge-decoration {
    width: 48px;
    height: 48px;
    background-color: var(--color-celadon-light);
    color: var(--color-celadon);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}

.icon-shop {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.modal-title {
    font-size: 20px;
    color: var(--color-deep-slate);
    margin-bottom: 8px;
}

.modal-desc {
    font-size: 13px;
    color: var(--color-text-secondary);
    margin-bottom: 20px;
    line-height: 1.6;
}

/* Booth detail box */
.booth-card {
    background-color: var(--color-white-pure);
    border: 0.5px solid var(--color-gold);
    border-radius: var(--radius-small);
    padding: 16px;
    margin-bottom: 24px;
}

.booth-title {
    font-size: 11px;
    color: var(--color-gold);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: 4px;
}

.booth-location {
    font-size: 15px;
    font-weight: 500;
    color: var(--color-deep-slate);
    margin-bottom: 6px;
}

.booth-phone {
    font-family: var(--font-serif);
    font-size: 14px;
    color: var(--color-celadon);
    font-weight: 600;
    margin-bottom: 10px;
}

.booth-tips {
    font-size: 11px;
    color: var(--color-text-secondary);
    line-height: 1.6;
    border-top: 0.5px dashed var(--color-clay-line);
    padding-top: 8px;
    margin-top: 4px;
}

.btn-confirm {
    width: 100%;
    height: 46px;
    background-color: var(--color-deep-slate);
    color: var(--color-rice-paper);
    border: none;
    border-radius: var(--radius-small);
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.btn-confirm:active {
    background-color: #1a1e24;
}

/* WeChat copy success specific styles */
.wechat-id-bold {
    color: var(--color-celadon);
    font-weight: 600;
    font-size: 14px;
}

.qr-container {
    text-align: center;
    background: var(--color-white-pure);
    border: 0.5px solid var(--color-clay-line);
    padding: 20px 16px;
    border-radius: var(--radius-small);
    margin-bottom: 24px;
}

.qr-code-placeholder {
    width: 140px;
    height: 140px;
    margin: 0 auto 12px;
    border: 0.5px solid var(--color-clay-dashed);
    padding: 8px;
    background: var(--color-white-pure);
    display: flex;
    align-items: center;
    justify-content: center;
}

.qr-inner-graphics {
    width: 100%;
    height: 100%;
    position: relative;
    border: 0.5px solid var(--color-clay-line);
}

.qr-corner {
    position: absolute;
    width: 24px;
    height: 24px;
    border: 2px solid var(--color-celadon);
}

.qr-corner.top-left {
    top: 0;
    left: 0;
    border-right: none;
    border-bottom: none;
}

.qr-corner.top-right {
    top: 0;
    right: 0;
    border-left: none;
    border-bottom: none;
}

.qr-corner.bottom-left {
    bottom: 0;
    left: 0;
    border-right: none;
    border-top: none;
}

.qr-dots-svg {
    width: 100%;
    height: 100%;
    padding: 10px;
}

.qr-tips {
    font-size: 11px;
    color: var(--color-text-secondary);
    line-height: 1.5;
}

/* Toast Message */
.toast-message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: rgba(42, 48, 56, 0.9);
    color: var(--color-rice-paper);
    padding: 12px 24px;
    border-radius: var(--radius-small);
    font-size: 13px;
    text-align: center;
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    white-space: nowrap;
}

.toast-message.active {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* --------------------------------------------------------------------------
   10. Microscopic Fingerprint Locator Map (Collapsible Drawer Overlay)
   -------------------------------------------------------------------------- */
.minimap-overlay {
    position: absolute;
    right: 0;
    top: 0;
    width: 35%;
    height: 100%;
    z-index: 10;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: visible;
    /* Let toggle button hang out on the left */
}

.minimap-overlay.is-collapsed {
    transform: translateX(100%);
}

.minimap-content {
    position: relative;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(42, 48, 56, 0) 0%, rgba(42, 48, 56, 0.75) 20%, rgba(42, 48, 56, 0.9) 100%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 20%, black 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 20%, black 100%);
    overflow: hidden;
    /* Clip the line-art image */
}

.minimap-toggle {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translate(-100%, -50%);
    width: 22px;
    height: 42px;
    background: rgba(42, 48, 56, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 0.5px solid rgba(226, 221, 213, 0.15);
    border-right: none;
    border-radius: 6px 0 0 6px;
    color: var(--color-rice-paper);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 12;
    padding: 0;
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.15);
    outline: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.minimap-toggle:hover {
    background: var(--color-celadon);
    color: var(--color-white-pure);
}

.toggle-chevron {
    width: 16px;
    height: 16px;
    fill: currentColor;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Rotate chevron when drawer is collapsed to point left */
.minimap-overlay.is-collapsed .toggle-chevron {
    transform: rotate(180deg);
}

.locator-img {
    position: absolute;
    width: 100%;
    height: auto;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    opacity: 0.75;
    filter: invert(1);
    /* Invert black to white, white to black */
    mix-blend-mode: screen;
    /* Blend black background away */
    pointer-events: none;
}

.locator-dot {
    position: absolute;
    width: 8px;
    height: 8px;
    background-color: #E74C3C;
    border-radius: 50%;
    box-shadow: 0 0 0 2px rgba(231, 76, 60, 0.4);
    animation: locator-pulse 1.6s infinite;
    z-index: 5;
}

@keyframes locator-pulse {
    0% {
        transform: scale(0.9);
        box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.8);
    }

    70% {
        transform: scale(1.2);
        box-shadow: 0 0 0 6px rgba(231, 76, 60, 0);
    }

    100% {
        transform: scale(0.9);
        box-shadow: 0 0 0 0 rgba(231, 76, 60, 0);
    }
}