/* Modern, Premium 3D Login Page Styles */

:root {
    --primary-color: #2c3e50;
    --accent-color: #f39c12;
    --text-muted: #95a5a6;
    --bg-color: #ffffff;
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--primary-color);
    line-height: 1.6;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Fixed Width Container for Mobile-first Web App */
body.fixed-width {
    max-width: 460px !important;
    margin: 0 auto !important;
    background-color: #fff;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.05);
    position: relative;
    min-height: 100vh;
}

@media (min-width: 481px) {
    html {
        background-color: #f4f7f6;
    }
}

/* Ensure fixed elements respect fixed-width body */
body.fixed-width .bottom-nav,
body.fixed-width .bottom-actions,
body.fixed-width .draft-modal-overlay,
body.fixed-width .modal-drawer,
body.fixed-width .price-detail-overlay,
body.fixed-width .fullscreen-viewer,
body.fixed-width .copyright-modal-overlay,
body.fixed-width .success-bottom-actions,
body.fixed-width .pd-bottom-bar,
body.fixed-width .share-overlay,
body.fixed-width .product-share-overlay,
body.fixed-width .action-sheet-overlay,
body.fixed-width .article-detail-footer,
body.fixed-width .bottom-sheet-overlay,
body.fixed-width .bottom-sheet,
body.fixed-width .add-address-fixed,
body.fixed-width .drawer-overlay,
body.fixed-width .bottom-drawer,
body.fixed-width .clear-modal-overlay,
body.fixed-width .bottom-action-bar,
body.fixed-width .submitted-status,
body.fixed-width .payment-drawer {
    max-width: 460px;
    left: 0 !important;
    right: 0 !important;
    margin: 0 auto !important;
    width: 100%;
    z-index: 9999 !important;
}

/* Individual floating buttons that should be pinned to the left edge of the 460px container */
body.fixed-width .back-btn-floating,
body.fixed-width .back-nav {
    left: 1.5rem; /* Standard fallback */
}

@media (min-width: 461px) {
    body.fixed-width .back-btn-floating,
    body.fixed-width .back-nav {
        left: 50% !important;
        margin-left: -215px !important; /* -230px (half 460) + 15px (margin) */
        transform: none !important;
    }
}

.container {
    max-width: 460px;
    margin: 0 auto;
    padding: 2rem;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Illustration Section */
.illustration-wrapper {
    margin-bottom: 2rem;
    position: relative;
    animation: float 6s ease-in-out infinite;
}

.illustration-wrapper img {
    width: 100%;
    max-width: 300px;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.1));
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

/* Branding Section */
.branding {
    margin-bottom: 3rem;
}

.branding h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.branding p {
    color: var(--text-muted);
    font-size: 1.1rem;
    font-weight: 500;
}

/* Quick Login Section */
.login-divider {
    position: relative;
    margin: 4rem 0 2rem;
    text-align: center;
}

.login-divider::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #eee, transparent);
}

.login-divider span {
    position: relative;
    background: #fff;
    padding: 0 1.5rem;
    color: #ccc;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.social-login {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
}

.social-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.social-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-soft);
    background: #fff;
    transition: var(--transition-smooth);
}

.social-item:hover .social-icon {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.social-item:active .social-icon {
    transform: scale(0.95);
}

.social-item span {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Icon Colors */
.wechat i {
    color: #07c160;
}

.weibo i {
    color: #e6162d;
}

.alipay i {
    color: #1677ff;
}

/* Terms Section */
.terms-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    text-align: left;
    margin-top: auto;
    padding-top: 2rem;
}

.checkbox-custom {
    min-width: 20px;
    height: 20px;
    border: 2px solid #e0e0e0;
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    transition: var(--transition-smooth);
}

.checkbox-custom.checked {
    background: var(--accent-color);
    border-color: var(--accent-color);
}

.checkbox-custom.checked::after {
    content: "✓";
    color: #fff;
    font-size: 12px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.terms-text {
    font-size: 0.8rem;
    color: #999;
    line-height: 1.5;
}

.terms-text a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
}

.terms-text a:hover {
    text-decoration: underline;
}

/* Animations */
.fade-up {
    animation: fadeUp 0.8s ease-out forwards;
    opacity: 0;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

/* Home Page Styles */

/* Top Bar */
.top-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.6rem 1.5rem 0.4rem;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 100;
}

.logo-text {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    color: #000;
    letter-spacing: -1px;
    padding: 0.2rem 0;
}

.search-bar {
    flex: 1;
    position: relative;
    background: #f5f5f5;
    border-radius: 20px;
    padding: 0.6rem 1rem 0.6rem 2.5rem;
}

.search-bar i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}

.search-bar input {
    width: 100%;
    border: none;
    background: transparent;
    outline: none;
    font-size: 0.9rem;
    color: #333;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.action-icon {
    font-size: 1.3rem;
    color: #333;
    position: relative;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.action-icon:active {
    transform: scale(0.9);
}

/* Tabs */
.nav-tabs {
    display: flex;
    gap: 1.5rem;
    padding: 0.2rem 1.5rem 0.6rem;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
}

.nav-tabs::-webkit-scrollbar {
    display: none;
}

.tab {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    padding: 0.5rem 0;
    position: relative;
    cursor: pointer;
}

.tab.active {
    color: #f39c12;
}

.tab.active::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background: #f39c12;
    border-radius: 2px;
}

/* Model Grid (Masonry) */
.model-grid {
    column-count: 2;
    column-gap: 10px;
    padding: 10px 10px 100px;
    /* Reduced side padding, added bottom for navigation */
}

.model-card {
    display: inline-block;
    /* Essential for masonry column flow */
    width: 100%;
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition-smooth);
    border: 1px solid #f0f0f0;
    margin-bottom: 10px;
    /* Vertical gap */
    break-inside: avoid;
    /* Prevents card from splitting between columns */
}


.model-img {
    width: 100%;
    /* aspect-ratio removed for masonry variety */
    display: block;
    background: #f9f9f9;
}

.model-info {
    padding: 0.75rem;
}

.model-title {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.creator {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    color: #666;
}

.creator-avatar {
    width: 20px;
    height: 20px;
    background: #eee;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.likes {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    font-size: 0.75rem;
    color: #999;
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-around;
    padding: 0.5rem 0 1rem;
    border-top: 1px solid #f0f0f0;
    align-items: center;
    z-index: 1000;
}



.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    color: #ccc;
    cursor: pointer;
}

.nav-item.active {
    color: #f39c12;
}

/* Central Action Button */
.nav-central-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}

.nav-central-btn {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #fbc531, #f39c12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.8rem;
    border: 4px solid #fff;
    box-shadow: 0 4px 12px rgba(243, 156, 18, 0.3);
    box-sizing: border-box;
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin-top: -20px;
}

.nav-central-text {
    font-size: 0.75rem;
    color: #ccc;
}

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

.nav-central-btn i {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.nav-item i {
    font-size: 1.4rem;
}

.nav-item span {
    font-size: 0.75rem;
    font-weight: 600;
}

/* Product Detail Page Styles */

/* Detail Header */
.detail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1rem;
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    z-index: 100;
}

.back-btn,
.share-btn,
.more-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #333;
    cursor: pointer;
}

.creator-info-header {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0 0.5rem;
}

.creator-info-header .avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f0f0f0;
}

.creator-info-header .name {
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
}

.follow-btn {
    border: 1px solid #f39c12;
    color: #f39c12;
    padding: 0.4rem 1.2rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.follow-btn.followed {
    border-color: #eee;
    color: #999;
    background: #f9f9f9;
}

.follow-btn.followed:hover {
    background: #f0f0f0;
    color: #888;
}

/* Detail Carousel */
.carousel-container {
    width: 100%;
    aspect-ratio: 1/1;
    position: relative;
    overflow: hidden;
}

.detail-carousel {
    width: 100%;
    height: 100%;
    overflow-x: auto;
    display: flex;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.detail-carousel::-webkit-scrollbar {
    display: none;
}

.detail-carousel img {
    min-width: 100%;
    height: 100%;
    object-fit: cover;
    scroll-snap-align: start;
}

.carousel-indicator {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
    z-index: 10;
    pointer-events: none;
}

/* Product Content */
.product-content {
    padding: 1.5rem;
}

.product-info-top {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 1.5rem;
}

.product-title-large {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: #333;
}

.product-category {
    font-size: 0.9rem;
    color: #999;
    margin-bottom: 0.75rem;
}

.product-stats {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-size: 0.85rem;
    color: #bbb;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.date-stat {
    margin-left: auto;
}

/* Description */
.product-description {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.product-description .more-text {
    display: none;
    margin-top: 0.5rem;
}

.product-description.expanded .more-text {
    display: block;
}

.read-more {
    color: #f39c12;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    cursor: pointer;
    margin-top: 0.5rem;
}

/* Copyright Section */
.copyright-card {
    background: #f9f9f9;
    padding: 0.6rem 1rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.copyright-text {
    font-size: 0.85rem;
    color: #999;
}

.creator-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #f39c12;
    font-weight: 600;
    font-size: 0.85rem;
    background: #fff5e6;
    padding: 0.3rem 0.8rem;
    border-radius: 8px;
}

/* Comments Section */
.comments-section {
    margin-bottom: 2rem;
    border-top: 1px solid #f0f0f0;
    padding-top: 1.5rem;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 2rem;
}

.comments-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.2rem;
}

.comments-header .section-title {
    margin-bottom: 0;
}

.view-all-comments {
    font-size: 0.85rem;
    color: #999;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    cursor: pointer;
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.comment-item {
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 1.2rem;
}

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

.comment-user {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.c-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    margin-right: 0.6rem;
    background-size: cover;
    background-position: center;
}

.c-name {
    font-size: 0.9rem;
    color: #333;
    font-weight: 500;
}

.c-time {
    font-size: 0.75rem;
    color: #999;
    margin-left: auto;
}

.c-text {
    font-size: 0.95rem;
    color: #444;
    line-height: 1.5;
    margin-bottom: 0.8rem;
}

.comment-specs {
    display: inline-block;
    background-color: #fff9f0;
    color: #d48806;
    font-size: 13px;
    padding: 2px 8px;
    border-radius: 4px;
    margin-bottom: 0.8rem;
    font-weight: 400;
}

.c-images {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE/Edge */
}

.c-images::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

.c-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

model-viewer::part(default-progress-bar) {
    display: none;
}

/* Related Section */
.related-section {
    margin-top: 2rem;
}

.section-title {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 1.2rem;
}

/* Bottom Action Bar */
.bottom-actions {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    padding: 0.75rem 1.5rem 1rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    border-top: 1px solid #f0f0f0;
    z-index: 100;
}

.action-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    color: #666;
    cursor: pointer;
}

.action-item i {
    font-size: 1.4rem;
}

.action-item span {
    font-size: 0.7rem;
    color: #999;
}

.cta-button {
    flex: 1;
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: #fff;
    border: none;
    padding: 1rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(243, 156, 18, 0.3);
    transition: var(--transition-smooth);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(243, 156, 18, 0.4);
}

/* Print Modal Drawer Styles */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: block;
    opacity: 1;
}


.modal-drawer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 20px 20px 0 0;
    z-index: 1001;
    --ty: 100%;
    transform: translateY(var(--ty));
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 80vh; 
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
}

.drawer-views-container {
    display: flex;
    width: 200%;
    height: 100%;
    flex: 1; /* Added to fill the flex container strictly */
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.drawer-view {
    width: 50%;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

.modal-drawer.show-plates .drawer-views-container {
    transform: translateX(-50%);
}

.modal-drawer .drawer-header {
    height: 77px; 
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
    margin-bottom: -5px; 
    padding: 0;
    background: #fff;
    flex-shrink: 0;
}

/* Plates View Styles */
.plates-view-header {
    height: 64px;
    display: flex;
    align-items: center;
    padding: 0 1.25rem;
    border-bottom: 1px solid #f5f5f5;
    background: #fff;
    flex-shrink: 0;
}

.plates-view-back {
    font-size: 1.2rem;
    color: #333;
    padding: 0.5rem;
    margin-left: -0.5rem;
    cursor: pointer;
}

.plates-view-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #333;
    flex: 1;
    text-align: center;
    margin-right: 2rem;
}

.plates-view-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.25rem;
    background: #fff;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    -webkit-overflow-scrolling: touch;
}

.plate-card-item {
    margin-bottom: 0;
}

.plate-card-content {
    background: #f7f8fa;
    border-radius: 12px;
    padding: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: 100%;
}

.plate-card-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.plate-card-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.plate-card-info {
    flex: 1;
    padding: 1rem;
}

.plate-card-title-inner {
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.plate-specs-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 0;
}

.plate-spec {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: #666;
}

.plate-spec i {
    font-size: 0.8rem;
    color: #999;
}

.plate-material-tag {
    display: inline-flex;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #333;
}

.tag-blue { background: #e0f2fe; }
.tag-gray { background: #f3f4f6; }
.tag-black { background: #333; color: #fff; }
.tag-green { background: #f0fdf4; color: #166534; }
.tag-skin { background: #fff7ed; color: #9a3412; }

.drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 0 1.25rem 1.8rem; 
    -webkit-overflow-scrolling: touch;
}

.modal-drawer.active {
    --ty: 0;
}

.drawer-handle {
    display: none;
    /* Removed as requested */
}


.modal-drawer .drawer-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #333;
    display: inline-block;
    margin: 0;
    width: auto;
}

.modal-drawer .close-drawer {
    width: 32px;
    height: 32px;
    background: #f5f5f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    cursor: pointer;
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
}

/* Modal Preview Image */
.modal-preview {
    width: 100%;
    height: 288px; /* Reduced from 320px (exactly 10% reduction) */
    /* Increased from 234px */
    border-radius: 0;
    margin-bottom: 0;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

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

.expand-preview {
    position: absolute;
    bottom: 0.75rem;
    right: 0.75rem;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.plates-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    padding: 4px 10px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    z-index: 10;
}

.preview-toggle {
    position: absolute;
    bottom: 0.75rem;
    left: 0.75rem;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    padding: 4px 10px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    z-index: 10;
}

.preview-carousel-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: none;
    z-index: 5;
}

.preview-carousel-wrapper {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.preview-carousel-item {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    position: relative;
    background: #000;
    overflow: hidden;
}

.preview-carousel-item .bg-blur {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(20px);
    opacity: 0.6;
    z-index: 1;
}

.preview-carousel-item .fg-main {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: contain;
    z-index: 2;
}

.preview-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 10;
    display: none;
}

.preview-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.preview-dot.active {
    background: #fff;
    width: 16px;
    border-radius: 3px;
}

/* Info Grid */
.info-row-light {
    background: #fff9f0;
    border-radius: 0;
    padding: 0.75rem 1.25rem; 
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0;
    flex-shrink: 0;
    border-top: 1px solid #f0f0f0;
}

.info-row-light .item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: #666;
    font-weight: 500;
}

.info-row-light .value {
    color: #333;
    font-weight: 500;
}

.specs-grid-light {
    background: #f9f9f9;
    border-radius: 0;
    padding: 0.75rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-shrink: 0;
    border-top: 1px solid #f0f0f0;
    gap: 0.5rem;
}

.spec-item-light, .spec-item-light-link {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.8rem;
    color: #666;
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 1;
    min-width: 0;
}

.spec-item-light-link {
    cursor: pointer;
    padding: 4px 0px; /* Reduced side padding since background is gone */
    border-radius: 0;
    background: transparent; 
    transition: all 0.2s;
}

.spec-item-light-link:active {
    opacity: 0.7;
}

.spec-item-light .val, .spec-item-light-link .val {
    color: #1a1a1a;
    font-weight: 700;
}

.spec-item-light-link .arrow {
    font-size: 0.65rem;
    color: #1a1a1a;
    margin-left: 2px;
}

/* Color Sections */
.tag-group {
    display: flex;
    gap: 0.4rem;
    margin-bottom: 1rem;
}

.material-tag {
    padding: 0.3rem 0.75rem;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    color: #333;
}

.color-section-title {
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 0.6rem; /* Increased by 20% from 0.5rem */
    color: #333;
}

.tone-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 2 rows of 3 */
    gap: 0.6rem;
    margin-bottom: 1.5rem; /* Increased by 20% from 1.25rem */
}

.tone-grid::-webkit-scrollbar {
    display: none;
}

.tone-option {
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    padding: 0.4rem 0.5rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    font-size: 0.85rem;
    font-weight: 500;
    color: #666;
    background: #fafafa;
}

.tone-option.active {
    border-color: #ffa940;
    background: #fff7e6;
    color: #fa8c16;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(250, 140, 22, 0.1);
}

.size-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.6rem;
    margin-bottom: 1.8rem; /* Increased by 20% from 1.5rem */
}

.size-option {
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    padding: 0.4rem 0.5rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    font-size: 0.85rem;
    font-weight: 500;
    color: #666;
    background: #fafafa;
}

.size-option.active {
    border-color: #ffa940;
    background: #fff7e6;
    color: #fa8c16;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(250, 140, 22, 0.1);
}

.val-modified {
    color: #fa8c16 !important;
    font-weight: 600;
}

.color-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* 4 columns as requested */
    gap: 0.4rem;
    margin-bottom: 1.5rem;
}

.color-option {
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    padding: 0.4rem 0.3rem;
    /* Reduced padding for 4-col fit */
    display: flex;
    flex-direction: row;
    /* Side-by-side */
    align-items: center;
    gap: 0.3rem;
    /* Reduced gap */
    cursor: pointer;
    transition: var(--transition-smooth);
}

.color-option.active {
    border-color: #f39c12;
    background: #fff9f0;
}

.color-circle {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid #f0f0f0;
}

.color-name {
    font-size: 0.7rem;
    color: #999;
}

.color-option.active .color-name {
    color: #f39c12;
    font-weight: 600;
}

/* Bottom Price Bar */
.bottom-price-bar {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem 1.25rem;
    margin: 0;
    border-top: 1px solid #f2f2f2;
    background: #fff;
    flex-shrink: 0;
}

.price-info {
    display: flex;
    align-items: baseline;
    gap: 0.2rem;
}

.total-label {
    font-size: 0.95rem;
    color: #000;
    font-weight: 400;
    margin-right: 0.3rem;
    white-space: nowrap;
}

.total-price {
    font-weight: 500;
    color: #ff0000;
    line-height: 1;
    letter-spacing: -0.5px;
    display: inline-flex;
    align-items: baseline;
}

.total-price span:first-child {
    font-size: 1.5rem;
    margin-right: 3px;
}

.total-price span:last-child {
    font-size: 2rem;
}

.price-details {
    font-size: 0.9rem;
    color: #ff0000;
    margin-left: 0.6rem;
    cursor: pointer;
    font-weight: 400;
    display: flex;
    align-items: baseline;
    gap: 0.2rem;
    white-space: nowrap;
}

.price-details i {
    font-size: 0.75rem;
}

.next-step-btn {
    background: #f49b36;
    color: #fff;
    border: none;
    padding: 0.75rem 0;
    flex: 1;
    margin-left: 20px;
    border-radius: 8px;
    font-size: 1.05rem;
    font-weight: 500;
    cursor: pointer;
    box-shadow: none;
    transition: all 0.2s ease;
}

.next-step-btn:active {
    transform: scale(0.98);
    background: #df8c2d;
}

/* Price Detail Overlay Modal */
.price-detail-overlay {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    top: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1100;
    display: none;
    align-items: flex-end;
    justify-content: center;
}

.price-detail-overlay.active {
    display: flex;
}

.price-detail-modal {
    width: 100%;
    background: #f5f5f5;
    /* Light gray background to match screenshot */
    border-radius: 20px 20px 0 0;
    padding: 1.5rem 1.25rem 1rem;
    animation: slideUpPanel 0.3s ease-out;
}

.price-detail-modal .bottom-price-bar {
    margin-left: -1.25rem;
    margin-right: -1.25rem;
    margin-bottom: -1rem;
    border-radius: 0;
}

@keyframes slideUpPanel {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

.price-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.2rem;
}

.price-detail-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #000;
}

.price-detail-close {
    font-size: 1.4rem;
    color: #000;
    cursor: pointer;
    line-height: 1;
    padding: 0 0.2rem;
    font-weight: 300;
}

.price-detail-rows {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    /* Gap between the white rows */
}

.price-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.2rem;
    background: #fff;
    border-radius: 6px;
}

.pd-label {
    font-size: 1.05rem;
    color: #000;
    font-weight: 400;
}

.pd-value {
    font-size: 1.05rem;
    color: #000;
    font-weight: 400;
}

.price-detail-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.2rem;
    margin-top: 2.1rem;
    border: 1px solid #f49b36;
    border-radius: 6px;
    background: #fffafa;
    /* Very light tint if any, mostly white */
}

.pd-total-label {
    font-size: 1.05rem;
    color: #000;
    font-weight: 500;
}

.pd-total-value {
    font-size: 1.05rem;
    color: #000;
    font-weight: 500;
}

.pd-total-value em {
    font-style: normal;
    color: #ff0000;
    font-weight: 500;
}

/* Fullscreen 3D Viewer */
.fullscreen-viewer {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    background: #f5f5f5;
    display: none;
    flex-direction: column;
}

.fullscreen-viewer.active {
    display: flex;
}

.fs-back-btn {
    position: absolute;
    top: 3rem;
    left: 1rem;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    cursor: pointer;
    font-size: 1.1rem;
    color: #333;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(4px);
}

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

.fullscreen-viewer model-viewer {
    flex: 1;
}

.fs-color-bar {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 1rem;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 50px;
}

.fs-color-item {
    cursor: pointer;
    padding: 0;
    border: none;
    background: none;
    transition: transform 0.15s ease;
}

.fs-color-item:active {
    transform: scale(0.9);
}

.fs-color-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
}

/* Payment Page Styles */

.payment-body {
    background-color: #f7f8fa;
    margin: 0;
}

/* Header */
.payment-header {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: transparent;
    position: relative;
}

.payment-header .back-btn {
    position: absolute;
    left: 1rem;
    font-size: 1.2rem;
    color: #333;
    cursor: pointer;
}

.payment-header .title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #333;
}

/* Region Picker Modal */
.region-picker-modal {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #fff;
    border-radius: 20px 20px 0 0;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

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

.rp-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 1.5rem;
    border-bottom: 1px solid #f5f5f5;
}

.rp-btn {
    font-size: 1rem;
    cursor: pointer;
}

.rp-btn.cancel {
    color: #999;
}

.rp-btn.confirm {
    color: #f39c12;
    font-weight: 500;
}

.rp-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
}

.rp-body {
    position: relative;
    display: flex;
    height: 200px;
    background: #fff;
    overflow: hidden;
}

.selection-band {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 40px;
    transform: translateY(-50%);
    background: rgba(243, 156, 18, 0.05);
    border-top: 1px solid rgba(243, 156, 18, 0.3);
    border-bottom: 1px solid rgba(243, 156, 18, 0.3);
    pointer-events: none;
    z-index: 1;
}

.rp-column {
    flex: 1;
    height: 100%;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scrollbar-width: none;
    /* Firefox */
    position: relative;
    z-index: 2;
}

.rp-column::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

.rp-item {
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #666;
    scroll-snap-align: center;
}

.rp-item.empty {
    color: transparent;
    pointer-events: none;
}

/* Summary Card */
.payment-summary-card {
    background: linear-gradient(135deg, #ffb347, #ff9540);
    border-radius: 20px;
    padding: 12px 1.5rem;
    /* Reduced padding */
    margin: 0.5rem 1rem 6px;
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(255, 149, 64, 0.25);
}

.payment-summary-card::before {
    content: '';
    position: absolute;
    top: -30px;
    left: -30px;
    width: 140px;
    height: 140px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 50%;
}

.payment-summary-card::after {
    content: '';
    position: absolute;
    bottom: -40px;
    right: -40px;
    width: 160px;
    height: 160px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 50%;
}

.summary-label {
    font-size: 0.85rem;
    /* Smaller font */
    opacity: 0.9;
    margin-bottom: 4px;
    /* Significantly reduced margin */
    display: block;
    position: relative;
    z-index: 1;
}

.summary-amount {
    font-size: 2.2rem;
    /* Significantly smaller amount font */
    font-weight: 600;
    margin-bottom: 6px;
    /* Significantly reduced margin */
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.2rem;
    position: relative;
    z-index: 1;
}

.summary-amount span {
    font-size: 1.1rem;
}

.shipping-fee-badge {
    background: rgba(255, 255, 255, 0.25);
    padding: 0.2rem 1rem;
    /* Smaller badge */
    border-radius: 20px;
    font-size: 0.75rem;
    display: inline-block;
    position: relative;
    z-index: 1;
}

/* Form Block */
.form-section-card {
    background: #fff;
    border-radius: 20px;
    margin: 0.5rem 1rem;
    /* Reduced margin */
    padding: 1rem 1.25rem;
    /* Reduced padding */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.section-card-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1rem;
    /* Reduced margin */
}

.section-card-title i {
    font-size: 1.2rem;
}

.address-icon {
    color: #ff7e33;
}

.payment-icon {
    color: #ff7e33;
}

.input-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.8rem;
    /* Reduced */
}

.input-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    margin-bottom: 0.8rem;
    /* Reduced */
}

.input-row .input-group {
    margin-bottom: 0;
}

.input-label {
    font-size: 0.8rem;
    color: #999;
    margin-bottom: 0.4rem;
    /* Reduced */
    display: block;
}

.form-input {
    width: 100%;
    background: #f8f9fb;
    border: none;
    border-radius: 12px;
    padding: 0.8rem 1rem;
    /* Reduced padding */
    font-size: 0.95rem;
    color: #333;
}

.form-input::placeholder {
    color: #ccc;
}

.select-group {
    position: relative;
}

.select-group::after {
    content: '\f105';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    right: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    color: #ccc;
}

/* Payment Method List */
.payment-method-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 1rem;
    /* Reduced padding */
    border-radius: 16px;
    margin-top: 0.5rem;
    /* Reduced margin */
    background: #fff;
    cursor: pointer;
    transition: background 0.2s;
}

.payment-method-item.active {
    background: #fff9f0;
}

.pm-left {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.05rem;
    font-weight: 500;
    color: #333;
}

.pm-icon {
    width: 36px;
    /* Reduced size */
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
    /* Slightly smaller icon */
}

.alipay-icon {
    background: #4793f5;
}

.wechat-icon {
    background: #23c55e;
}

.selection-check {
    width: 22px;
    height: 22px;
    border: 2px solid #e0e0e0;
    border-radius: 50%;
    position: relative;
    box-sizing: border-box;
}

.payment-method-item.active .selection-check {
    border-color: #ff7e33;
    background: #ff7e33;
}

.payment-method-item.active .selection-check::after {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    color: #fff;
    font-size: 0.75rem;
    top: 48%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.bottom-pay-container {
    padding: 0.75rem 1.5rem 1.5rem;
    /* Reduced padding */
    background: #f7f8fa;
    position: sticky;
    bottom: 0;
}

.pay-now-btn {
    width: 85%;
    margin: 0 auto;
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: #fff;
    border: none;
    padding: 0.9rem;
    border-radius: 30px;
    font-size: 1.05rem;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(243, 156, 18, 0.3);
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.pay-now-btn .btn-price {
    display: flex;
    align-items: baseline;
    font-weight: 700;
}

.pay-now-btn .currency {
    font-size: 0.95rem;
    margin-right: 1px;
}

.pay-now-btn .amount {
    font-size: 1.35rem;
}

.pay-now-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(243, 156, 18, 0.4);
}

/* ========================================= */
/* Payment Success Page Styles */
/* ========================================= */

/* Copyright Modal Styles */
.copyright-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.copyright-modal-overlay.active {
    display: flex;
    opacity: 1;
}

.copyright-modal {
    background: #fff;
    border-radius: 16px;
    padding: 2rem 1.5rem 1.5rem;
    width: 100%;
    max-width: 320px;
    text-align: center;
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.copyright-modal-overlay.active .copyright-modal {
    transform: scale(1);
}

.copyright-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #333;
    margin-bottom: 1.2rem;
}

.copyright-content {
    font-size: 0.95rem;
    color: #333;
    line-height: 1.6;
    text-align: left;
    margin-bottom: 1.5rem;
}

.copyright-license-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.copyright-license-text {
    font-size: 1.2rem;
    font-weight: 800;
    color: #333;
}

.copyright-license-img {
    height: 30px;
}

.copyright-btn {
    background: #f39c12;
    color: #fff;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 20px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(243, 156, 18, 0.3);
    transition: all 0.2s ease;
}

.copyright-btn:active {
    transform: scale(0.95);
}

.success-body {
    background: linear-gradient(180deg, #fcedde 0%, #f7f8fa 30%);
    margin: 0;
    min-height: 100vh;
    padding-bottom: 140px;
    /* Space for bottom actions */
}

/* Header Area */
.success-header-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 3rem 2rem 2rem;
    text-align: center;
}

.success-icon-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: #fca14d;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    /* Extra soft glow to match image design */
    box-shadow: 0 10px 30px rgba(252, 161, 77, 0.4);
}

.success-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.8rem;
}

.success-desc {
    font-size: 0.85rem;
    color: #d19a79;
    /* Warm greyish orange text */
    line-height: 1.5;
}

/* Cards Container */
.success-cards-container {
    padding: 0 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.success-card {
    background: #fff;
    border-radius: 16px;
    padding: 1.2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

/* Address Card */
.success-card.address-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 14px;
    padding: 16px;
}

.success-card.address-card .address-icon-container {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #ff8a00, #ff5000);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #fff;
    font-size: 0.9rem;
    margin-top: 0;
    box-shadow: 0 3px 8px rgba(255, 80, 0, 0.25);
}

.success-card.address-card .address-content {
    flex: 1;
    min-width: 0;
}

.success-card.address-card .address-detail {
    font-size: 0.92rem;
    color: #333;
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 4px;
}

.success-card.address-card .address-user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0;
}

.success-card.address-card .user-name {
    font-size: 0.85rem;
    font-weight: 500;
    color: #999;
}

.success-card.address-card .user-phone {
    font-size: 0.85rem;
    color: #999;
    font-weight: 400;
}

/* Order Item Card */
.order-item-card {
    display: flex;
    gap: 1rem;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

.item-image-container {
    width: 96px;
    height: 96px;
    border-radius: 8px;
    background: #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.item-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 96px;
    /* Increased for more breathing room */
}

.item-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
    /* Improved line height */
}

.item-tags {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0;
}

.item-tag {
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    background: #fff9f0;
    color: #fca14d;
}

.item-specs {
    font-size: 0.72rem;
    /* Slightly smaller to let others breathe */
    color: #aaa;
}

/* Order Info Card */
.order-info-card {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    /* Consistent gap between rows */
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.info-label {
    font-size: 0.85rem;
    color: #666;
    /* Matching design's softer grey */
    font-weight: 400;
}

.info-value-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-value {
    font-size: 0.85rem;
    color: #999;
}

.copy-btn {
    background: #f5f5f5;
    border: none;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    cursor: pointer;
}

.info-row-total {
    margin-top: 0;
    /* Remove extra margin for perfect spacing consistency */
}

.info-row-total .info-value {
    color: #fca14d;
    font-weight: 600;
    font-size: 0.95rem;
    /* Slightly larger but much closer to others now */
}

/* Bottom Actions */
.success-bottom-actions {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem 1.5rem 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: transparent;
    z-index: 100;
}

.succ-btn-primary {
    width: 100%;
    padding: 1rem;
    background: #fca14d;
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(252, 161, 77, 0.3);
    transition: all 0.2s ease;
}

.succ-btn-primary:active {
    transform: scale(0.98);
}

.succ-btn-secondary {
    width: 100%;
    padding: 1rem;
    background: white;
    color: #fca14d;
    border: 1px solid #fca14d;
    border-radius: 25px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.succ-btn-secondary:active {
    background: #fff9f0;
}

/* ========================================= */
/* Print Records Page Styles */
/* ========================================= */

.records-body {
    background-color: #f7f8fa !important;
    margin: 0;
    padding-bottom: 90px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.records-header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem 1rem 0.5rem;
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
}

.records-back {
    position: absolute;
    left: 1.2rem;
    font-size: 1.2rem;
    color: #333;
    cursor: pointer;
    padding: 0.5rem;
}

.records-header h1 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.records-list {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.record-card {
    background: #fff;
    border-radius: 16px;
    padding: 1rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.02);
}

.record-product {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.record-image-box {
    width: 80px;
    height: 80px;
    background: #f4f6f9;
    border-radius: 8px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.completed-box {
    background: #fff;
    border: 1px solid #f0f0f0;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.02);
}

.record-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.relative {
    position: relative;
}

.record-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.record-tags {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.3rem;
}

.r-tag {
    background: #f7f8fa;
    color: #999;
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.record-specs {
    font-size: 0.75rem;
    color: #bbb;
}

/* Status Row */
.record-status-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px dashed #f0f0f0;
    padding-top: 1rem;
}

.status-left {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.status-dot, .status-icon {
    width: 14px;
    height: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.status-dot {
    border-radius: 50%;
}

.status-icon {
    font-size: 0.85rem;
}

.status-dot.preparing, .status-icon.preparing {
    background: transparent;
    color: #ff7e33;
}

.status-dot.printing, .status-icon.printing {
    background: transparent;
    color: #00d26a;
}

.status-dot.queuing, .status-icon.queuing {
    background: transparent;
    color: #A785FF;
}

.status-dot.completed, .status-icon.completed {
    background: transparent;
    color: #ff0000;
}

.status-label {
    font-size: 0.85rem;
    color: #333;
    font-weight: 600;
}

.status-text {
    font-size: 0.85rem;
    font-weight: 600;
}

.status-text.preparing {
    color: #ff7e33;
}

.status-text.printing {
    color: #00d26a;
}

.status-text.queuing {
    color: #A785FF;
}

.status-text.completed {
    color: #ff0000;
}

.status-right {
    font-size: 0.8rem;
    color: #666;
}

.status-right .val {
    font-weight: 600;
    color: #333;
}

.status-right.printing .val {
    color: #00d26a;
}

.status-right.queuing .val {
    color: #A785FF;
}

.status-right.completed {
    color: #ff0000;
}

/* Progress Bar Modifiers */
.printing-card {
    padding-bottom: 0;
    overflow: hidden;
}

.printing-card .record-status-row {
    border-top: none;
    background: #f0fdf4;
    padding: 0.8rem 1rem;
    margin: 0 -1rem;
    /* Stretch to edges */
}

.progress-bar-container {
    height: 4px;
    background: #e6f9ed;
    margin: 0 -1rem;
    /* Stretch to edges */
}

.progress-bar-fill {
    height: 100%;
    background: #00d26a;
    border-radius: 0 2px 2px 0;
}

/* Shipped State Specifics */
.badge-shipped {
    position: absolute;
    top: 0;
    right: 0;
    background: #e8f0fe;
    color: #4C84FF;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.shipping-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
}

.shipping-vendor {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
    color: #333;
    font-weight: 500;
}

.shipping-vendor i {
    color: #4C84FF;
}

.tracking-number {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tracking-number .number {
    color: #4C84FF;
    font-size: 0.9rem;
}

.copy-icon {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    border: 1px solid #e8e8e8;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4C84FF;
    font-size: 0.8rem;
    cursor: pointer;
}

.shipping-message {
    font-size: 0.8rem;
    color: #666;
    line-height: 1.5;
}

.footer-hint {
    text-align: center;
    font-size: 0.75rem;
    color: #bbb;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

/* ========================================= */
/* Profile Page Styles                       */
/* ========================================= */

.profile-body {
    background-color: #f8f9fb !important;
    /* Main background matching design */
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #333;
}

/* Top Bar */
.profile-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1rem;
    background: transparent;
}

.top-left {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 1rem;
    font-weight: 500;
}

.top-right {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    font-size: 1.2rem;
}

.notification-icon {
    position: relative;
    display: flex;
}

.notification-icon .dot {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 6px;
    height: 6px;
    background-color: #ff3b30;
    border-radius: 50%;
}

/* User Profile Header */
.user-profile-header {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    align-items: center;
    gap: 0.2rem 1rem; /* Reduced horizontal and vertical gap */
    padding: 1.5rem;
    position: relative;
}

.avatar-container {
    grid-row: 1 / 3;
    grid-column: 1;
    width: 68px; /* Slightly smaller avatar */
    height: 68px;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(135deg, #e0c3fc 0%, #8ec5fc 100%);
    margin-bottom: 0;
}

.avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: #333;
    border: 2px solid #fff;
    background-size: cover;
    background-position: center;
}

.user-name-row {
    grid-row: 1;
    grid-column: 2;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0;
}

.user-name {
    font-size: 1.3rem;
    font-weight: 800;
    margin: 0;
}

.edit-icon {
    font-size: 0.9rem;
    color: #999;
}

.user-stats-links {
    grid-row: 2;
    grid-column: 2;
    display: flex;
    justify-content: flex-start;
    gap: 1.5rem;
    width: 100%;
}

.stat-link {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 4px;
    font-size: 0.85rem;
    color: #666;
}

.stat-link span {
    color: #333;
    font-size: 0.95rem;
    font-weight: 700;
}

.home-badge {
    position: absolute;
    right: 0;
    top: 50%;
    /* approximate vertical center relative to header */
    transform: translateY(-50%);
    background: #fff;
    padding: 0.4rem 0.6rem 0.4rem 1rem;
    border-radius: 20px 0 0 20px;
    font-size: 0.8rem;
    color: #666;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.vip-banner {
    margin: 1rem;
    padding: 1.2rem;
    border-radius: 12px;
    background: linear-gradient(135deg, #2b2833 0%, #1e1b24 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.vip-banner::before {
    content: '';
    position: absolute;
    right: -30px;
    top: -20px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, transparent 40%, rgba(246, 211, 151, 0.04) 41%, transparent 42%, transparent 50%, rgba(246, 211, 151, 0.04) 51%, transparent 52%, transparent 60%, rgba(246, 211, 151, 0.04) 61%, transparent 62%);
    border-radius: 50%;
    pointer-events: none;
}

.vip-info-top {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

.vip-info-header {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.vip-icon {
    font-size: 1.3rem;
    color: #f6d397;
}

.vip-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #f6d397;
    letter-spacing: 0.03em;
}

.vip-expiry {
    font-size: 0.7rem;
    font-weight: 400;
    color: rgba(246, 211, 151, 0.6);
    letter-spacing: 0.02em;
    margin-left: 0.6rem; 
}

.vip-btn {
    position: relative;
    z-index: 1;
    background-color: #fcd58d;
    background: linear-gradient(to bottom, #fcd58d, #f6d397);
    color: #1e1b24;
    padding: 0.45rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
    cursor: pointer;
    transition: transform 0.2s;
}

.vip-btn:active {
    transform: scale(0.95);
}

.vip-benefits-row {
    width: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 1.6rem;
    position: relative;
    z-index: 1;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: rgba(246, 211, 151, 0.9);
    font-size: 0.75rem;
    font-weight: 400;
    white-space: nowrap;
    letter-spacing: 0.02em;
}

.benefit-item i {
    font-size: 0.8rem;
    color: #f6d397;
    opacity: 0.9;
}

.benefit-more {
    margin-left: auto;
    color: rgba(246, 211, 151, 0.6);
    font-size: 0.7rem;
    font-weight: 400;
}

/* Stats Grid */
.profile-stats-grid {
    display: flex;
    justify-content: space-around;
    padding: 0.5rem 1rem 1.5rem;
}

.profile-stats-grid .stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.profile-stats-grid .stat-icon {
    font-size: 1.4rem;
    color: #2eac6d;
    /* Assuming standard bright green for non-filled icons */
}

/* Specifically targeting the filled box icon to be dark */
.profile-stats-grid .stat-item:first-child .stat-icon {
    color: #333;
}

.profile-stats-grid .stat-num {
    font-size: 1.1rem;
    font-weight: 700;
}

/* Action Cards */
.action-cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    padding: 0 1rem 1rem;
}

.action-card {
    background: #fff;
    border-radius: 12px;
    padding: 1rem;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 80px;
    overflow: hidden;
    cursor: pointer;
}

.card-info h3 {
    margin: 0 0 0.3rem 0;
    font-size: 0.95rem;
    font-weight: 600;
}

.card-info p {
    margin: 0;
    font-size: 0.75rem;
    color: #999;
}

.new-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: #ff4d4f;
    color: #fff;
    font-size: 0.6rem;
    padding: 0.1rem 0.4rem;
    border-radius: 0 12px 0 12px;
    font-weight: 600;
}

.card-graphic {
    position: absolute;
    bottom: -10px;
    right: -10px;
    width: 60px;
    height: 60px;
    opacity: 0.8;
}

/* Menu List */
.profile-menu-list {
    padding: 0 1rem;
    display: flex;
    flex-direction: column;
}

.menu-item {
    background: #fff;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 0.8rem;
    /* Equal gap between items */
}

/* specifically for items acting as distinct blocks */
.menu-item.gap-top {
    margin-top: 0.6rem;
}

.menu-group {
    background: #fff;
    border-radius: 12px;
    margin-bottom: 0.8rem;
    padding: 0; /* Clear internal padding for rows */
}

.menu-group .group-row {
    padding: 1rem;
    cursor: pointer;
    transition: background 0.2s;
}

.menu-group .group-row:active {
    background: #f9f9f9;
}

.menu-group .group-divider {
    height: 1px;
    background: #f9f9f9;
    margin: 0 1rem;
}

.base-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.left-section {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.menu-icon {
    font-size: 1.1rem;
    color: #333;
    width: 20px;
    /* fixed width for alignment */
    text-align: center;
}

.menu-title {
    font-size: 0.95rem;
    font-weight: 500;
}

.arrow-icon {
    color: #ccc;
    font-size: 0.9rem;
}

/* Wallet Item Overrides */
.wallet-item {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.wallet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wallet-balances {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-left: 28px;
    /* Align with text, skipping icon */
}

.balance {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.balance .amount {
    font-size: 1.1rem;
    font-weight: 700;
}

.text-yellow {
    color: #fadb14;
}

.text-green {
    color: #2eac6d;
}

.right-section {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.storage-info {
    font-size: 0.85rem;
    color: #999;
}

/* ========================================= */
/* Explore Page & Community Feed Styles      */
/* ========================================= */

body.explore-body,
body.activity-body,
body.profile-body {
    background: #f8f9fb;
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #333;
}

/* Top Nav Tabs */
.explore-header {
    background: #fff;
    padding: 0.8rem 1.2rem 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: none;
    transition: background 0.25s, box-shadow 0.25s;
}

.explore-header.scrolled {
    background: rgba(255, 255, 255, 0.88) !important;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
}

.explore-tabs {
    display: flex;
    gap: 1.2rem;
    align-items: flex-end;
}

.e-tab {
    font-size: 1.15rem;
    color: #999;
    position: relative;
    padding-bottom: 0.5rem;
    cursor: pointer;
    font-weight: 500;
    transition: color 0.2s;
}

.e-tab.active {
    font-size: 1.15rem;
    color: #333;
    font-weight: 700;
}

.e-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 18px;
    height: 3px;
    background: #f39c12;
    border-radius: 2px;
}

.explore-actions {
    font-size: 1.1rem;
    color: #666;
    padding: 0 0 0.5rem;
}

/* Community Post Feed */
.post-feed {
    display: flex;
    flex-direction: column;
    gap: 10px;
    /* Space between cards */
    margin-top: 10px;
    padding: 0 10px 2rem 10px;
    /* 10px margins around cards */
}

.post-filter-bar-wrapper {
    position: sticky;
    top: 54px;
    /* Account for 10px feed margin for sticking properly */
    z-index: 90;
    background: #fff;
    padding: 6px 12px;
    /* Reduced from 10px */
    border-radius: 8px;
    /* Match post card */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    /* Match post card */
}

.post-filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.filter-item {
    font-size: 0.9rem;
    font-weight: 500;
    color: #999;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    /* Space evenly */
    gap: 4px;
    padding: 4px 0;
    /* Reduced from 8px */
    transition: color 0.2s;
}

.filter-item.active {
    color: var(--accent-color, #f39c12);
    font-weight: 600;
}

.filter-item.active i {
    color: var(--accent-color, #f39c12);
    transform: rotate(180deg);
    transition: transform 0.2s;
}

.filter-item i {
    font-size: 0.65rem;
    color: #bbb;
    transition: transform 0.2s;
}

.post-card {
    background: #fff;
    padding: 1rem 1.2rem;
    border-radius: 8px;
    /* Added rounded corners for card look */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    /* Subtle shadow */
}

.post-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
}


.post-author-info {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    border: 1px solid #f0f0f0;
}

.author-meta {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
}

.post-time {
    font-size: 0.75rem;
    color: #999;
    margin-top: 0.1rem;
}

.post-more-options {
    color: #999;
    padding: 0.5rem;
    cursor: pointer;
}

/* Post Content */
.post-content {
    margin-bottom: 1rem;
}

.post-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #333;
    margin: 0;
}

.post-hashtag {
    color: #4C84FF;
    /* Link blue */
    display: inline-block;
}

/* Post Images Grid */
.post-images {
    width: 100%;
    margin: 0.8rem 0;
}

.post-img-box {
    width: 100%;
    background-size: cover;
    background-position: center;
    background-color: #f5f5f5;
    border-radius: 8px;
    aspect-ratio: 1/1;
    /* Square by default */
}

/* 3 column grid */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.4rem;
}

/* 2 column grid */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.4rem;
}

/* Single image container constraint */
.grid-1 {
    display: block;
}

.grid-1 .post-img-box.single {
    width: 70%;
    max-width: 280px;
    aspect-ratio: 4/3;
    /* Slightly landscape or whatever fits */
}

/* Post Actions (Like, Comment, Share) */
.post-actions {
    display: flex;
    justify-content: space-between;
    padding-top: 0.5rem;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: #666;
    font-size: 0.9rem;
    cursor: pointer;
}

.action-btn i {
    font-size: 1.1rem;
}

.action-btn.liked {
    color: #f5222d;
    /* Red like */
}

/* Associated Model Card */
.associated-model-card {
    display: flex;
    align-items: center;
    background: #f5f5f5;
    border-radius: 8px;
    padding: 10px;
    margin: 1rem 0;
    width: 100%;
    cursor: pointer;
    transition: background 0.2s;
}

.associated-model-card:hover {
    background: #ebebeb;
}

.am-thumbnail {
    width: 48px;
    height: 48px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}

.am-info {
    flex-grow: 1;
    margin-left: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.am-title {
    font-size: 0.95rem;
    color: #333;
    font-weight: 500;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.am-meta {
    font-size: 0.75rem;
    color: #999;
    display: flex;
    align-items: center;
    gap: 12px;
}

.am-meta i {
    font-size: 0.7rem;
    margin-right: 2px;
}

.am-arrow {
    color: #ccc;
    font-size: 1rem;
    margin-left: 10px;
}

.feed-loading {
    text-align: center;
    padding: 1.5rem;
    color: #999;
    font-size: 0.85rem;
}

/* Floating Publish Button */
.publish-fab {
    position: fixed;
    right: 1.5rem;
    bottom: 6.5rem;
    /* Above bottom nav */
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #fca14d, #f87c1d);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(248, 124, 29, 0.4);
    z-index: 90;
    cursor: pointer;
    transition: transform 0.2s;
}

/* Ensure FAB respects fixed-width body */
body.fixed-width .publish-fab {
    right: calc((100% - 460px) / 2 + 1.5rem);
}

@media (max-width: 460px) {
    body.fixed-width .publish-fab {
        right: 1.5rem;
    }
}


.publish-fab:active {
    transform: scale(0.9);
}

/* ========================================= */
/* Media Queries & Responsive Adjustments    */
/* ========================================= */
@media (max-width: 360px) {
    .nav-item span {
        font-size: 0.65rem;
    }

    .hero-stats {
        gap: 0.8rem;
    }
}

/* ========================================= */
/* Post Detail Page Styles */
/* ========================================= */

.detail-body {
    background: #fff;
    padding-bottom: 2rem;
}

/* Header */
.pd-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
}

.pd-header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.pd-header-left i {
    font-size: 1.2rem;
    cursor: pointer;
    color: #333;
}

.pd-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pd-author .author-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
}

.pd-author .author-name {
    font-weight: 600;
    font-size: 1rem;
    color: #333;
}

.pd-header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.pd-header-right i {
    font-size: 1.2rem;
    color: #333;
    cursor: pointer;
}

.pd-follow-btn {
    border: 1px solid #f39c12;
    color: #f39c12;
    background: transparent;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
}

/* Content */
.pd-content {
    padding: 0 1rem;
}

.pd-content .post-text {
    font-size: 0.95rem;
    color: #333;
    line-height: 1.6;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
}

.pd-actions {
    margin-top: 1rem;
    padding-bottom: 1rem;
}

/* Divider */
.pd-divider {
    height: 1px;
    background: #eee;
    width: calc(100% - 30px);
    margin: 0 auto;
}

/* Replies Section (Xiaohongshu Style) */
.replies-section {
    padding: 1rem;
    background: #fff;
}

.replies-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.replies-count-title {
    font-size: 0.95rem;
    color: #333;
    font-weight: 500;
}

.replies-top-input {
    display: flex;
    align-items: center;
    gap: 12px;
}

.reply-avatar-sm {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    flex-shrink: 0;
}

.reply-input-box {
    flex-grow: 1;
    background: #f5f5f5;
    border-radius: 20px;
    padding: 0.5rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #999;
    font-size: 0.85rem;
}

.reply-input-icons {
    display: flex;
    gap: 12px;
    color: #999;
    font-size: 1rem;
}

.reply-item {
    display: flex;
    gap: 12px;
    margin-bottom: 1.2rem;
}

.reply-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    flex-shrink: 0;
}

.reply-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.reply-name {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.author-tag {
    background: #ffe3e3;
    color: #ff4d4f;
    font-size: 0.65rem;
    padding: 1px 4px;
    border-radius: 4px;
    font-weight: normal;
}

.reply-text {
    font-size: 0.95rem;
    color: #333;
    line-height: 1.5;
    margin-bottom: 6px;
}


.welfare-feed {
    padding: 10px 15px 100px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.w-card {
    background: #fff;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
}

.w-signin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.w-signin-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: #333;
}

.w-signin-streak {
    font-size: 0.8rem;
    color: #f39c12;
    display: flex;
    align-items: center;
    gap: 5px;
    background: #fff8e1;
    padding: 3px 8px;
    border-radius: 12px;
}

.w-signin-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.w-signin-day {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    position: relative;
    flex: 1;
}

.w-coin-wrap {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #dcdcdc;
    font-size: 1.1rem;
    position: relative;
}

.w-signin-day.checked .w-coin-wrap {
    background: #f39c12;
    color: #fff;
}

.w-coin-wrap.big-coin {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #fbc531, #f39c12);
    color: #fff;
    font-size: 1.4rem;
}

.w-coin-badge {
    position: absolute;
    bottom: -2px;
    right: -2px;
    background: #27ae60;
    color: #fff;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.5rem;
    border: 2px solid #fff;
}

.w-coin-amount {
    font-size: 0.75rem;
    font-weight: 700;
    color: #f39c12;
}

.w-day-label {
    font-size: 0.7rem;
    color: #999;
}

.w-tasks-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.w-tasks-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: #333;
}

.w-tasks-subtitle {
    font-size: 0.75rem;
    color: #999;
    margin-top: 5px;
    margin-bottom: 15px;
}

.w-task-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.w-task-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.w-task-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.w-task-icon-box {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #fff;
}

.w-task-icon-box.orange {
    background: #f39c12;
}

.w-task-icon-box.pink {
    background: #fd79a8;
}

.w-task-icon-box.red {
    background: #ff7675;
}

.w-task-icon-box.heart {
    background: #e84393;
}

.w-task-content {
    flex: 1;
}

.w-task-top {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.w-task-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: #333;
}

.w-task-pill {
    background: #fff8e1;
    color: #f39c12;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 3px;
}

.w-task-desc {
    font-size: 0.75rem;
    color: #999;
}

.w-task-action-btn {
    background: #fdf2e9;
    color: #d35400;
    border: none;
    padding: 6px 14px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
}

.w-p-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.w-p-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: #333;
}

.w-p-header-right {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    color: #999;
}

.w-p-header-right .divider {
    color: #eee;
}

.p-switch {
    position: relative;
    display: inline-block;
    width: 34px;
    height: 19px;
}

.p-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.p-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 19px;
}

.p-slider:before {
    position: absolute;
    content: "";
    height: 15px;
    width: 15px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked+.p-slider {
    background-color: #f39c12;
}

input:checked+.p-slider:before {
    transform: translateX(15px);
}

.w-p-ticker {
    background: #f9f9f9;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    color: #e67e22;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.w-p-ticker::before {
    content: "\f0f3";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    margin-right: 6px;
}

.w-p-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 15px;
}

.w-p-card {
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.w-p-banner {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 99%, #fecfef 100%);
    color: #fff;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
}

.w-p-banner span {
    font-size: 0.8rem;
    font-weight: 600;
    margin-left: 2px;
}

.w-p-banner.variant-2 {
    background: linear-gradient(135deg, #a18cd1 0%, #fbc2eb 100%);
}

.w-p-banner.variant-3 {
    background: linear-gradient(135deg, #84fab0 0%, #8fd3f4 100%);
}

.w-p-info {
    padding: 8px;
    text-align: center;
    background: #fff;
    flex: 1;
}

.w-p-name {
    font-size: 0.75rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.w-p-cost {
    font-size: 0.7rem;
    color: #f39c12;
    font-weight: 700;
}

.w-p-btn {
    width: 100%;
    background: #f39c12;
    color: #fff;
    border: none;
    padding: 6px 0;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
}

.w-p-more {
    text-align: center;
    font-size: 0.8rem;
    color: #999;
}

.w-signin-cta {
    width: 100%;
    padding: 0.85rem 0;
    background: linear-gradient(90deg, #ff922b, #ff6b12);
    color: #fff;
    border: none;
    border-radius: 25px;
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 2px;
    box-shadow: 0 6px 20px rgba(255, 107, 18, 0.3);
}

.w-signin-cta:active {
    transform: scale(0.98);
    opacity: 0.9;
}

/* --- Daily Tasks High Fidelity --- */
.w-tasks-subtitle {
    font-size: 0.72rem;
    color: #999;
    margin-bottom: 1rem;
    padding: 0 0.1rem;
}

.w-tasks-title {
    font-size: 1rem;
    font-weight: 800;
    color: #333;
    margin-bottom: 0.2rem;
}

.w-task-list {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.w-task-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.w-task-icon-box {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    /* Changed to circle */
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.w-task-icon-box.orange {
    background: linear-gradient(135deg, #ff9d00, #ffb800);
}

.w-task-icon-box.pink {
    background: linear-gradient(135deg, #ff7eb3, #ff758c);
}

.w-task-icon-box.red {
    background: linear-gradient(135deg, #ff416c, #ff4b2b);
}

.w-task-icon-box.heart {
    background: linear-gradient(135deg, #f093fb, #f5576c);
}

.w-task-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.w-task-top {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.w-task-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: #333;
}

.w-task-pill {
    background: #fff2e8;
    color: #ff851b;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.1rem 0.4rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 0.1rem;
    border: 1px solid rgba(255, 133, 27, 0.2);
}

.w-task-desc {
    font-size: 0.72rem;
    color: #999;
}

.w-task-action-btn {
    background: linear-gradient(90deg, #ff922b, #ff6b12);
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 0.45rem 1.1rem;
    font-size: 0.82rem;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(255, 107, 18, 0.2);
    min-width: 80px;
}

.w-task-action-btn:active {
    transform: scale(0.96);
    opacity: 0.9;
}

/* --- Premium Coupon Exchange --- */
.w-premium-exchange {
    background: #fff;
    border-radius: 16px;
    padding: 1.2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.w-p-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
}

.w-p-title {
    font-size: 1rem;
    font-weight: 800;
    color: #333;
}

.w-p-header-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.72rem;
    color: #999;
}

.w-p-header-right .divider {
    color: #eee;
    margin: 0 0.1rem;
}

/* Toggle Switch Styles */
.p-switch {
    position: relative;
    display: inline-block;
    width: 38px;
    height: 22px;
}

.p-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.p-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #eee;
    transition: .3s;
    border-radius: 22px;
}

.p-slider:before {
    position: absolute;
    content: "";
    height: 17px;
    width: 17px;
    left: 2.5px;
    bottom: 2.5px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}

input:checked+.p-slider {
    background-color: #52c41a;
}

input:checked+.p-slider:before {
    transform: translateX(16px);
}

.w-p-ticker {
    background: #f5f7fa;
    border-radius: 6px;
    padding: 0.4rem 0.8rem;
    font-size: 0.75rem;
    color: #666;
    margin-bottom: 1.2rem;
}

.w-p-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
}

.w-p-card {
    background: #fffaf0;
    /* Light cream background */
    border-radius: 12px;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.w-p-banner {
    width: 100%;
    height: 60px;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.6rem;
    position: relative;
    color: #fff;
    font-size: 1.8rem;
    font-weight: 800;
}

.w-p-banner span {
    font-size: 0.8rem;
    margin-left: 2px;
}

.w-p-banner.variant-2 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.w-p-banner.variant-3 {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.w-p-badge {
    color: #fff;
    font-size: 0.6rem;
    font-weight: 600;
    padding: 0.1rem 0.3rem;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 4px;
}

.w-p-info {
    margin-bottom: 0.6rem;
}

.w-p-name {
    font-size: 0.75rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.2rem;
}

.w-p-cost {
    font-size: 0.65rem;
    color: #faad14;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
}

.w-p-btn {
    width: 100%;
    background: linear-gradient(90deg, #ff922b, #ff6b12);
    color: #fff;
    border: none;
    border-radius: 14px;
    padding: 0.35rem 0;
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(255, 107, 18, 0.2);
}

.w-p-more {
    text-align: center;
    font-size: 0.72rem;
    color: #999;
    margin-top: 1.2rem;
}

/* --- Feed Containers --- */
.welfare-feed,
.activity-container {
    padding: 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
}

/* --- Activity Feed Specific --- */
.event-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s, box-shadow 0.2s;
}

.event-card:active {
    transform: scale(0.98);
}

.event-card.ended .event-title {
    color: #999;
}

.event-card.ended .event-desc {
    color: #b3b3b3;
}

.event-banner {
    width: 100%;
    height: 224px;
    background-size: cover;
    background-position: center;
    position: relative;
    background-color: #eee;
}

.event-status {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    backdrop-filter: blur(4px);
}

.event-status.ongoing {
    background: rgba(245, 34, 45, 0.85);
    /* Red/Hot */
}

.event-status.upcoming {
    background: rgba(250, 140, 22, 0.85);
    /* Orange */
}

.event-status.ended {
    background: rgba(153, 153, 153, 0.85);
    /* Gray */
}

.event-tag {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(252, 161, 77, 0.9);
    color: #fff;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.event-info {
    padding: 1.2rem;
}

.event-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    line-height: 1.4;
    color: #333;
}

.event-desc {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.5;
    margin: 0 0 1rem 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.event-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: #999;
    border-top: 1px dashed #eee;
    padding-top: 0.8rem;
}

.event-meta span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.event-action-btn {
    border: 1px solid #ddd;
    background: transparent;
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    font-size: 0.75rem;
    color: #666;
    cursor: pointer;
}

/* Additional Tutorial Card Colors */
.bg-blue-alt {
    background-color: #eff6ff;
}

.text-blue-dark {
    color: #3b82f6;
}

.bg-orange-alt {
    background-color: #fff7ed;
}

.text-orange-dark {
    color: #f97316;
}

.bg-red-light {
    background-color: #fef2f2;
}

.text-red {
    color: #ef4444;
}

.bg-teal-light {
    background-color: #f0fdfa;
}

.text-teal {
    color: #14b8a6;
}

/* ========================================= */
/* 3D Print Hub Page Styles                  */
/* ========================================= */

.print-hub-body {
    background: linear-gradient(180deg, #fff8ef 0%, #f7f8f9 15%, #f7f8f9 100%);
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
    color: #333;
    min-height: 100vh;
}

.print-hub-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1.2rem;
    position: sticky;
    top: 0;
    background: rgba(255, 248, 239, 0.9);
    backdrop-filter: blur(12px);
    z-index: 100;
}

.print-hub-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #333;
}

.print-hub-title i {
    color: #f39c12;
    margin-right: 0.3rem;
}

.print-hub-actions {
    font-size: 1.1rem;
    color: #666;
}

/* --- Revenue Card --- */
.ph-revenue-card {
    margin: 0.6rem 0.8rem;
    background: linear-gradient(135deg, #f39c12, #e67e22);
    border-radius: 16px;
    padding: 1.2rem;
    color: #fff;
    box-shadow: 0 8px 30px rgba(243, 156, 18, 0.3);
}

.ph-revenue-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.ph-revenue-label {
    font-size: 0.8rem;
    opacity: 0.85;
    margin-bottom: 0.3rem;
}

.ph-revenue-amount {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.ph-revenue-sub {
    font-size: 0.75rem;
    opacity: 0.8;
    margin-top: 0.4rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.ph-revenue-sub strong {
    font-weight: 700;
}

.ph-revenue-dot {
    opacity: 0.5;
}

.ph-revenue-icon-wrap {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.ph-revenue-bottom {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 0.8rem;
    gap: 0.5rem;
}

.ph-revenue-stat {
    flex: 1;
    text-align: center;
}

.ph-stat-val {
    font-size: 1.1rem;
    font-weight: 800;
}

.ph-stat-label {
    font-size: 0.65rem;
    opacity: 0.75;
    margin-top: 0.15rem;
}

.ph-revenue-divider {
    width: 1px;
    height: 28px;
    background: rgba(255, 255, 255, 0.25);
}

.ph-upload-btn {
    background: #fff;
    color: #e67e22;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}

.ph-upload-btn:active {
    transform: scale(0.95);
}

/* --- Banner Carousel --- */
.ph-banner-area {
    margin: 0.8rem;
    height: 160px;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.ph-carousel {
    width: 300%;
    height: 100%;
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.ph-slide {
    width: 33.333%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.ph-banner-indicators {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 10;
}

.ph-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transition: all 0.3s;
}

.ph-dot.active {
    width: 16px;
    border-radius: 3px;
    background: #fff;
}

/* --- Quick Actions (5 Buttons) --- */
.ph-quick-actions {
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
    margin-bottom: 1.2rem;
}

.q-action-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.q-action-icon {
    width: 50px;
    height: 50px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #f39c12;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s;
}

.q-action-item:active .q-action-icon {
    transform: scale(0.9);
}

.q-action-label {
    font-size: 0.75rem;
    color: #666;
    font-weight: 500;
}

/* --- Feature Blocks (Becoming a Modeler & Ranking) --- */
.ph-feature-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
    padding: 0 0.8rem;
    margin-bottom: 1.2rem;
}

.ph-feature-block {
    background: #fff;
    border-radius: 14px;
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 130px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.f-block-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: #333;
    margin-bottom: 0.3rem;
    position: relative;
    z-index: 2;
}

.f-block-desc {
    font-size: 0.75rem;
    color: #999;
    position: relative;
    z-index: 2;
}

.f-block-img {
    width: 70px;
    height: 70px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    position: absolute;
    right: -10px;
    bottom: -10px;
    opacity: 0.9;
}

/* --- Existing Styles Cleanup --- */
.ph-entry-grid {
    display: none;
    /* Replaced by ph-feature-row */
}

/* --- Section Common --- */
.ph-section {
    padding: 0 0.8rem;
    margin-bottom: 0.8rem;
}

.ph-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.2rem 0 0.6rem;
}

.ph-section-title {
    font-size: 1rem;
    font-weight: 800;
    color: #333;
}

.ph-section-title i {
    margin-right: 0.3rem;
}

.ph-section-link {
    font-size: 0.8rem;
    color: #999;
    cursor: pointer;
}

.ph-section-link i {
    font-size: 0.65rem;
}

/* --- Live Printer Grid --- */
.ph-live-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
}

.ph-live-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    cursor: pointer;
    transition: transform 0.2s;
}

.ph-live-card:active {
    transform: scale(0.97);
}

.ph-live-preview {
    width: 100%;
    aspect-ratio: 4/3;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.ph-live-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.ph-live-badge.active {
    background: rgba(231, 76, 60, 0.9);
    color: #fff;
}

.ph-live-badge.active i {
    font-size: 0.4rem;
    animation: blink 1.5s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

.ph-live-badge.idle {
    background: rgba(153, 153, 153, 0.85);
    color: #fff;
}

.ph-live-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(0, 0, 0, 0.15);
}

.ph-live-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #2ecc71, #27ae60);
    border-radius: 0 2px 2px 0;
    transition: width 0.5s;
}

.ph-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 36px;
    height: 36px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1rem;
    padding-left: 2px;
    /* optical center */
    border: 1px solid rgba(255, 255, 255, 0.3);
    pointer-events: none;
}

.ph-idle-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    color: #ccc;
}

.ph-live-info {
    padding: 0.5rem 0.6rem;
}

.ph-live-name {
    font-size: 0.8rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.15rem;
}

.ph-live-detail {
    font-size: 0.7rem;
    color: #999;
}

/* --- Print Records --- */
.ph-record-card {
    display: flex;
    gap: 0.75rem;
    background: #fff;
    border-radius: 12px;
    padding: 0.8rem;
    margin-bottom: 0.6rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.ph-record-img {
    width: 70px;
    height: 70px;
    border-radius: 10px;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

.ph-record-body {
    flex: 1;
    min-width: 0;
}

.ph-record-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0.2rem;
}

.ph-record-specs {
    font-size: 0.7rem;
    color: #bbb;
    margin-bottom: 0.4rem;
}

.ph-record-status {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
}

.ph-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
}

.ph-status-dot.printing {
    background: #3498db;
    animation: blink 1.5s infinite;
}

.ph-status-dot.completed {
    background: #2ecc71;
}

.ph-status-dot.shipped {
    background: #f39c12;
}

.ph-status-text {
    font-weight: 700;
}

.ph-status-text.printing {
    color: #3498db;
}

.ph-status-text.completed {
    color: #2ecc71;
}

.ph-status-text.shipped {
    color: #f39c12;
}

.ph-record-eta {
    color: #999;
    margin-left: auto;
}

.ph-record-progress-bar {
    height: 3px;
    background: #f0f0f0;
    border-radius: 2px;
    margin-top: 0.5rem;
    overflow: hidden;
}

.ph-record-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3498db, #2980b9);
    border-radius: 2px;
    transition: width 0.5s;
}

/* Central button active state */
.nav-central-btn.active-central {
    box-shadow: 0 0 0 4px rgba(243, 156, 18, 0.2);
}

/* ========================================= */
/* Post Detail Page Styles */
/* ========================================= */

.detail-body {
    background: #fff;
    padding-bottom: 2rem;
}

/* Header */
.pd-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
}

.pd-header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.pd-header-left i {
    font-size: 1.2rem;
    cursor: pointer;
    color: #333;
}

.pd-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pd-author .author-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
}

.pd-author .author-name {
    font-weight: 600;
    font-size: 1rem;
    color: #333;
}

.pd-header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.pd-header-right i {
    font-size: 1.2rem;
    color: #333;
    cursor: pointer;
}

.pd-follow-btn {
    border: 1px solid #f39c12;
    color: #f39c12;
    background: transparent;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
}

/* Content */
.pd-content {
    padding: 0 1rem;
}

.pd-content .post-text {
    font-size: 0.95rem;
    color: #333;
    line-height: 1.6;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
}

.pd-actions {
    margin-top: 1rem;
    padding-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.post-time-label {
    font-size: 0.9rem;
    color: #666;
}

.pd-actions-right {
    display: flex;
    gap: 1.5rem;
}

/* Divider */
.pd-divider {
    height: 1px;
    background: #eee;
    width: calc(100% - 30px);
    margin: 0 auto;
}

/* Replies Section (Xiaohongshu Style) */
.replies-section {
    padding: 1rem;
    background: #fff;
}

.replies-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.replies-count-title {
    font-size: 0.95rem;
    color: #333;
    font-weight: 500;
}

.replies-top-input {
    display: flex;
    align-items: center;
    gap: 12px;
}

.reply-avatar-sm {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    flex-shrink: 0;
}

.reply-input-box {
    flex-grow: 1;
    background: #f5f5f5;
    border-radius: 20px;
    padding: 0.5rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #999;
    font-size: 0.85rem;
}

.reply-input-icons {
    display: flex;
    gap: 12px;
    color: #999;
    font-size: 1rem;
}

.reply-item {
    display: flex;
    gap: 12px;
    margin-bottom: 1.2rem;
}

.reply-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    flex-shrink: 0;
}

.reply-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.reply-name {
    font-size: 0.85rem;
    color: #999;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.author-tag {
    background: #ffe3e3;
    color: #ff4d4f;
    font-size: 0.65rem;
    padding: 1px 4px;
    border-radius: 4px;
    font-weight: normal;
}

.reply-text {
    font-size: 0.95rem;
    color: #333;
    line-height: 1.5;
    margin-bottom: 6px;
}

.reply-meta {
    font-size: 0.75rem;
    color: #999;
    display: flex;
    gap: 1rem;
    align-items: center;
}

.reply-meta .reply-action {
    color: #333;
    font-weight: 500;
}

.nested-reply {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.expand-replies {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    font-size: 0.8rem;
    color: #666;
    cursor: pointer;
}

.expand-line {
    width: 20px;
    height: 1px;
    background: #ddd;
}

/* Sticky Bottom Action Bar */
.pd-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #fff;
    padding: 0.8rem 1rem;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: flex-end;
    /* Align to bottom, then inner items center-ish */
    gap: 12px;
    z-index: 100;
    box-sizing: border-box;
    transition: var(--transition-smooth);
}

.pd-bottom-input-field {
    flex: 1;
    background: #f5f5f5;
    border: none;
    border-radius: 12px;
    padding: 0.6rem 1rem;
    font-size: 0.95rem;
    font-family: inherit;
    resize: none;
    outline: none;
    max-height: 100px;
    line-height: 1.4;
    display: block;
    align-self: center;
}

.pd-bottom-right-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    height: 40px;
    align-self: flex-end;
    margin-bottom: 2px;
}

.pd-image-btn {
    font-size: 1.4rem;
    color: #333;
    cursor: pointer;
    transition: var(--transition-smooth);
}

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

.pd-send-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

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

/* --- Article Feed Styles --- */
.article-feed {
    padding: 10px 15px 100px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.article-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
    transition: var(--transition-smooth);
}

.article-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.article-banner {
    width: 100%;
    height: 180px;
    background-size: cover;
    background-position: center;
    background-color: #f9f9f9;
}

.article-info {
    padding: 15px;
}

.article-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-desc {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.5;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f5f5f5;
    padding-top: 12px;
    margin-top: auto;
}

.article-date {
    font-size: 0.75rem;
    color: #999;
}

.article-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: #f39c12;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
}

.article-link:hover {
    text-decoration: underline;
}

/* --- Learning Feed Styles --- */
.learning-feed {
    padding: 15px 15px 100px;
}

.t-banner-pro {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(25, 118, 210, 0.1);
}

.t-banner-pro-content {
    color: #1565c0;
    flex: 1;
}

.t-banner-pro-title {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
}

.t-banner-pro-title i {
    color: #1565c0 !important;
}

.t-banner-pro-desc {
    font-size: 0.85rem;
    color: #42a5f5;
}

.t-banner-pro-icon i {
    font-size: 1.5rem !important;
    color: #fff !important;
    text-shadow: none !important;
}

.t-pro-icon-circle {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.t-section {
    margin-bottom: 25px;
}

.t-section-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: #333;
    margin-bottom: 15px;
    padding-left: 10px;
    border-left: 4px solid #f39c12;
}

.t-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.t-card {
    background: #fff;
    border-radius: 10px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    border: 1px solid #f0f0f0;
    transition: var(--transition-smooth);
}

.t-card:active {
    transform: scale(0.98);
}

.t-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.t-text {
    flex: 1;
    overflow: hidden;
}

.t-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.t-desc {
    font-size: 0.75rem;
    color: #999;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Learning Icons Colors */
.bg-blue-light {
    background: #eef2fb;
}

.text-blue {
    color: #4b7bec;
}

.bg-purple-light {
    background: #f3eefb;
}

.text-purple {
    color: #a55eea;
}

.bg-green-light {
    background: #eefbf4;
}

.text-green {
    color: #20bf6b;
}

.bg-orange-light {
    background: #fbf5ee;
}

.text-orange {
    color: #fa8231;
}

.bg-indigo-light {
    background: #eef1f8;
}

.text-indigo {
    color: #3867d6;
}

.bg-cyan-light {
    background: #edf9f9;
}

.text-cyan {
    color: #0fb9b1;
}

.bg-red-light {
    background: #fbeeee;
}

.text-red {
    color: #eb3b5a;
}

.bg-teal-light {
    background: #eef7f6;
}

.text-teal {
    color: #2d98da;
}

.bg-green-alt {
    background: #ebf5df;
}

.text-green-dark {
    color: #218c74;
}

.bg-blue-alt {
    background: #e3ebf3;
}

.text-blue-dark {
    color: #227093;
}

.bg-purple-alt {
    background: #ebe3f3;
}

.text-purple-dark {
    color: #706fd3;
}

.bg-orange-alt {
    background: #f6efe9;
}

.text-orange-dark {
    color: #cd6133;
}

/* --- Share Overlay Styles --- */
.share-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

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

.share-overlay-content {
    width: 100%;
    max-width: 460px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 20px 30px;
    transform: translateY(40px);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.share-overlay.active .share-overlay-content {
    transform: translateY(0);
}

/* Legacy share styles removed */

/* --- Product Share Poster Styles --- */
.product-share-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 10001;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 20px;
    padding-bottom: 40px;
}

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

.product-share-container {
    width: 100%;
    max-width: 340px;
    background: #eafcf9;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    margin-bottom: 30px;
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease;
}

.product-share-overlay.active .product-share-container {
    transform: translateY(0);
    opacity: 1;
}

.poster-card-main {
    width: 100%;
}

.poster-image-area {
    width: calc(100% - 16px);
    height: 320px;
    margin: 8px auto 0;
    border-radius: 16px;
    position: relative;
    background-size: cover;
    background-position: center;
    background-color: #d1d1d1;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.05);
}

.poster-image-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.8rem;
    font-weight: 800;
    color: #333;
}

.poster-avatar-group {
    position: absolute;
    bottom: -41px;
    left: 15px;
    display: flex;
    align-items: center;
    gap: 7px;
}

.poster-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 3px solid #fff;
    background-color: #000;
    background-size: cover;
    background-position: center;
    position: relative;
    z-index: 2;
}

.poster-badge {
    display: none;
}

.poster-nickname {
    color: #333;
    font-size: 1.1rem;
    font-weight: 800;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
    position: relative;
    top: 0;
}

.poster-content-area {
    padding: 60px 20px 18px;
    position: relative;
}

.poster-quote-icon {
    font-size: 2rem;
    color: #bbf3f0;
    position: absolute;
    top: 25px;
    left: 20px;
    z-index: 0;
}

.poster-title-text {
    font-size: 1.1rem;
    font-weight: 500;
    color: #000;
    line-height: 1.5;
    position: relative;
    z-index: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-height: 3.3em;
    /* 2 lines * 1.5 line-height */
}

.poster-invite-text {
    font-size: 1.1rem;
    color: #888;
    font-weight: 400;
}

.poster-model-text {
    font-size: 1.1rem;
    color: #000;
    font-weight: 900;
}

.poster-divider {
    display: flex;
    align-items: center;
    margin: 12px 0;
    color: #999;
}

.poster-divider::before,
.poster-divider::after {
    content: "";
    flex: 1;
    border-bottom: 2px dashed #ccc;
}

.poster-divider span {
    padding: 0 10px;
    font-size: 0.8rem;
    font-weight: 600;
}

.poster-footer-area {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.poster-brand-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.poster-logo-box {
    width: 48px;
    height: 48px;
    background: #000;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.poster-logo-icon {
    font-size: 1.8rem;
}

.poster-brand-text {
    display: flex;
    flex-direction: column;
}

.poster-brand-name {
    font-size: 1.5rem;
    font-weight: 900;
    color: #000;
    letter-spacing: -0.5px;
}

.poster-brand-slogan {
    font-size: 0.85rem;
    color: #333;
    font-weight: 500;
    margin-top: -2px;
}

.poster-qr-code {
    width: 65px;
    height: 65px;
    background: #fff;
    padding: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: #333;
    font-weight: 600;
    border-radius: 6px;
}

/* Action Bar */
.poster-action-bar {
    display: flex;
    justify-content: center;
    gap: 20px;
    width: 100%;
    margin-top: 10px;
    opacity: 0;
    transform: translateY(20px);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s, opacity 0.4s ease 0.1s;
}

.product-share-overlay.active .poster-action-bar {
    opacity: 1;
    transform: translateY(0);
}

.poster-action-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
    cursor: pointer;
}

.poster-action-item span {
    font-size: 0.75rem;
    color: #ccc;
    font-weight: 500;
}

.poster-action-badge {
    position: absolute;
    top: -8px;
    right: -10px;
    background: #ff4d4f;
    color: #fff;
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 800;
    z-index: 2;
}

.poster-action-circle {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.4rem;
    transition: background 0.2s ease, transform 0.2s ease;
}

.poster-action-circle:active {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(0.95);
}

.poster-action-circle.wechat i {
    color: #07c160;
}

.poster-action-circle.qq i {
    color: #12b7f5;
}

.poster-action-circle.weibo i {
    color: #eb7350;
}

.poster-action-circle.link i {
    color: #fff;
}

/* --- Action Sheet Styles --- */
.action-sheet-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 11000;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

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

.action-sheet-container {
    width: 100%;
    max-width: 460px;
    margin: 0 auto;
    padding: 10px 15px 30px;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.17, 0.67, 0.16, 0.99);
    box-sizing: border-box;
}

.action-sheet-overlay.active .action-sheet-container {
    transform: translateY(0);
}

.action-sheet-group {
    background: #fff;
    border-radius: 16px;
    margin-bottom: 10px;
    overflow: hidden;
}

.action-sheet-item {
    width: 100%;
    padding: 18px;
    border: none;
    background: #fff;
    font-size: 1.1rem;
    color: #333;
    font-weight: 500;
    border-bottom: 1px solid #f2f2f2;
    cursor: pointer;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    outline: none;
}

.action-sheet-item i {
    margin-right: 10px;
    font-size: 1.2rem;
    width: 24px;
}

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

.action-sheet-item:active {
    background: #f8f8f8;
}

.action-sheet-item.report-text {
    color: #ff4d4f;
}

.action-sheet-cancel {
    background: #fff;
    border-radius: 16px;
    width: 100%;
    padding: 18px;
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    outline: none;
}

.action-sheet-cancel:active {
    background: #f8f8f8;
}

/* --- Publish Page Styles --- */
.publish-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
}

.publish-header-btn {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
}

.publish-header-btn.cancel {
    background: #f5f5f5;
}

.publish-header-btn.confirm {
    background: #f39c12;
    color: #fff;
}

.publish-header-btn.confirm.disabled {
    background: #fdd;
    color: #fff;
    opacity: 0.5;
    cursor: default;
}

.publish-content-editor {
    padding: 40px 20px 20px;
}

.textarea-wrapper {
    position: relative;
    width: 100%;
}

.publish-textarea {
    width: 100%;
    min-height: 150px;
    border: none;
    outline: none;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #333;
    resize: none;
    font-family: inherit;
    padding-bottom: 30px;
}

.publish-textarea::placeholder {
    color: #d1d1d1;
}

.char-counter {
    position: absolute;
    bottom: 0;
    right: 0;
    font-size: 0.85rem;
    color: #999;
    font-weight: 500;
}

.primary-text {
    color: #f39c12;
}

.publish-image-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 0 20px 20px;
}

.publish-img-item {
    aspect-ratio: 1/1;
    background: #f5f5f5;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

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

.img-delete-btn {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 20px;
    height: 20px;
    background: #ff4d4f;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.publish-img-add {
    background: #fafafa;
    border: 1px dashed #ddd;
    color: #999;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.9rem;
}

.publish-img-add i {
    font-size: 1.8rem;
}

.publish-associated-section {
    padding: 20px;
    border-top: 8px solid #f9f9f9;
}

.publish-section-title {
    font-size: 1rem;
    font-weight: 700;
    color: #333;
    padding-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.pst-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sm-delete-icon {
    font-size: 1.2rem;
    color: #ccc;
    cursor: pointer;
    padding: 8px;
}

.selected-model-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid #f0f0f0;
    margin-bottom: 10px;
}

.sm-img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    background: #f9f9f9;
}

.sm-info {
    flex: 1;
}

.sm-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.sm-tag {
    font-size: 0.75rem;
    color: #999;
}

.publish-utility-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    border-bottom: 1px solid #f5f5f5;
    cursor: pointer;
}

.pu-left {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    color: #333;
    font-weight: 600;
}

.pu-left i {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pu-right {
    color: #ccc;
    font-size: 0.8rem;
}

.pu-icon {
    width: 20px;
    color: #666;
}

/* --- Tag Picker Specific Styles --- */
.tag-picker-container {
    background: #fff;
    border-radius: 20px 20px 0 0;
    max-height: 70vh;
    display: flex;
    flex-direction: column;
}

.tag-picker-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #f5f5f5;
}

.tp-title {
    font-size: 1rem;
    font-weight: 700;
    color: #333;
}

.tp-confirm {
    color: #f39c12;
    font-weight: 700;
    cursor: pointer;
}

.tag-list-wrapper {
    padding: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    overflow-y: auto;
}

.tag-pill {
    padding: 8px 16px;
    background: #f5f5f5;
    color: #666;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.tag-pill.active {
    background: #fff9ef;
    color: #f39c12;
    border-color: #f39c12;
}

.tags-preview-text {
    font-size: 0.85rem;
    color: #f39c12;
    margin-right: 4px;
}

/* --- Model Picker Specific Styles --- */
.model-picker-container {
    background: #fff;
    border-radius: 20px 20px 0 0;
    height: 85vh;
    display: flex;
    flex-direction: column;
}

.model-picker-header {
    padding: 15px 20px;
    border-bottom: 1px solid #f5f5f5;
}

.mp-search-bar {
    display: flex;
    align-items: center;
    background: #f5f5f5;
    padding: 8px 15px;
    border-radius: 25px;
    gap: 10px;
}

.mp-search-bar input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    font-size: 0.95rem;
    color: #333;
}

.mp-search-btn {
    background: #f39c12;
    color: #fff;
    border: none;
    padding: 6px 15px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 600;
}

.model-list-wrapper {
    flex: 1;
    padding: 10px 20px;
    overflow-y: auto;
}

.model-list-item {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #f9f9f9;
    gap: 15px;
    cursor: pointer;
}

.mli-img {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    object-fit: cover;
    background: #f9f9f9;
}

.mli-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
}

.mli-title {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
}

.mli-author-info {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: #999;
}

.mli-avatar {
    width: 18px;
    height: 18px;
    border-radius: 50%;
}

.mli-stats {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: #999;
    font-size: 0.75rem;
}

.mli-stats i {
    font-size: 1rem;
}

/* --- Article Detail Styles --- */
.article-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
}

.ah-left,
.ah-right {
    font-size: 1.2rem;
    color: #333;
    cursor: pointer;
}

.article-container {
    padding: 10px 20px;
}

.article-container .article-title {
    font-size: 1.4rem;
    font-weight: 800;
    line-height: 1.4;
    color: #000;
    margin-bottom: 20px;
}

.article-author-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
}

.aa-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
}

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

.aa-name-line {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.aa-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: #333;
}

.aa-badge {
    background: #eef2ff;
    color: #4f46e5;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 1px 6px;
    border-radius: 4px;
}

.aa-date {
    font-size: 0.8rem;
    color: #999;
}

.article-hero {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 25px;
}

.article-hero img {
    width: 100%;
    display: block;
}

.article-body {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #333;
}

.article-body p {
    margin-bottom: 1.5rem;
}

.article-body h3 {
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1.4;
    color: #000;
    margin: 2rem 0 1rem;
}

.article-detail-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-top: 1px solid #f5f5f5;
    z-index: 100;
}

.af-input-wrapper {
    flex: 1;
    background: #f4f6f9;
    padding: 8px 15px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #999;
}

.af-input-wrapper input {
    border: none;
    background: transparent;
    outline: none;
    font-size: 0.9rem;
    width: 100%;
}

.af-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.af-action-item {
    font-size: 1.3rem;
    color: #333;
    position: relative;
    cursor: pointer;
}

.af-badge {
    position: absolute;
    top: -5px;
    right: -8px;
    background: transparent;
    color: #333;
    font-size: 0.7rem;
    font-weight: 600;
}
/* --- Profile Orders Module --- */
.profile-orders-card {
    background: #fff;
    margin: 0 1rem 0.8rem;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 5;
}

.orders-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.orders-header h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #333;
}

.orders-header .view-all {
    font-size: 0.85rem;
    color: #999;
}

.orders-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

.order-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.order-icon-box {
    position: relative;
    font-size: 1.5rem;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
}

.order-label {
    font-size: 0.8rem;
    color: #333;
    font-weight: 500;
}

.order-badge {
    position: absolute;
    top: -5px;
    right: -8px;
    background: #ff5252;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #fff;
}

/* --- Payment Bottom Sheet --- */
.bottom-sheet-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.bottom-sheet-overlay.active {
    opacity: 1;
    visibility: visible;
}

.bottom-sheet {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 20px 20px 0 0;
    padding: 1.5rem;
    z-index: 1001;
    --ty: 100%; /* Default hidden state */
    transform: translateY(var(--ty));
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.bottom-sheet.active {
    --ty: 0%; /* Active visible state */
}

.sheet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.sheet-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #333;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.sheet-close {
    font-size: 1.2rem;
    color: #999;
    cursor: pointer;
}

.payment-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.payment-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-radius: 12px;
    background: #fdfdfd;
    border: 1px solid transparent;
    transition: all 0.2s ease;
    cursor: pointer;
}

.payment-option.active {
    background: #fff8f5;
    border-color: #ffe4d9;
}

.payment-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.payment-icon-box {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #fff;
}

.icon-alipay { background: #1677ff; }
.icon-wechat { background: #07c160; }

.payment-name {
    font-weight: 600;
    font-size: 1rem;
    color: #333;
}

.payment-check {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: transparent;
    transition: all 0.2s ease;
}

.payment-option.active .payment-check {
    background: #ff7e33;
    border-color: #ff7e33;
    color: #fff;
}

.confirm-pay-btn {
    width: 100%;
    height: 48px;
    background: #ff7e33;
    color: #fff;
    border: none;
    border-radius: 24px;
    margin-top: 2rem;
    font-weight: 700;
    font-size: 1rem;
}

/* --- Confirmation Modal overlay adjusted to not conflict with drawers --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000; /* Consistency with print modal overlay */
    display: none; /* Default to hidden, handled by .active */
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
}

.modal-overlay.active {
    display: flex !important; /* Use flex only when active if it's a centered modal */
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: #fff;
    width: 80%;
    max-width: 320px;
    border-radius: 16px;
    padding: 2rem 1.5rem 1.5rem;
    text-align: center;
    transform: scale(0.9);
    transition: transform 0.2s ease;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 2rem;
}

.modal-actions {
    display: flex;
    gap: 1rem;
}

.modal-btn {
    flex: 1;
    height: 44px;
    border-radius: 22px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-cancel {
    background: #f5f5f5;
    color: #666;
    border: none;
}

.btn-confirm {
    background: #ff7e33;
    color: #fff;
    border: none;
}

/* --- Draft Modal Styles (consistent across platform) --- */
.draft-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.draft-modal-overlay.active {
    display: flex !important;
}

.draft-modal-card {
    width: 336px;
    background: #fff;
    border-radius: 6px;
    padding: 24px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    animation: draftModalPop 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);
    box-sizing: border-box;
}

@keyframes draftModalPop {
    0% { transform: scale(0.9); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.draft-modal-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 12px;
}

.draft-modal-desc {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 20px;
    font-weight: 400;
    line-height: 1.5;
}

.draft-modal-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.draft-modal-btn {
    flex: 1;
    padding: 12px;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}

.draft-btn-cancel {
    background: #f5f5f5;
    color: #666;
}

.draft-btn-confirm {
    background: #ff7e33;
    color: #fff;
}

/* --- Copy Success Toast --- */
.toast-overlay {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 1.5rem 2rem;
    border-radius: 12px;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.toast-overlay.active {
    opacity: 1;
    visibility: visible;
}

.toast-icon {
    font-size: 2.5rem;
}

.toast-text {
    font-size: 1rem;
    font-weight: 500;
}

/* --- After Sales Page --- */
.service-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 0.5rem 0;
}

.service-left {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.service-radio {
    font-size: 1.2rem;
    color: #ccc;
    transition: color 0.2s ease;
}

.contact-support:active {
    background: #f9f9f9 !important;
}

/* Bind Phone Page Styles */
.bind-body {
    background: #fff;
    min-height: 100vh;
}

.bind-container {
    padding: 4rem 2rem 2rem;
    max-width: 460px;
    margin: 0 auto;
    position: relative; /* 为绝对定位按钮提供参考 */
}

.bind-header {
    margin-bottom: 3rem;
}

.bind-back {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    font-size: 1.5rem;
    color: #333;
    cursor: pointer;
    z-index: 10;
}

.bind-title {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: #333;
}

.bind-subtitle {
    font-size: 0.95rem;
    color: #999;
    margin-bottom: 2rem;
}

.bind-form {
    margin-top: 2rem;
}

.input-block {
    margin-bottom: 1.5rem;
    position: relative;
}

.input-control-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5rem;
}

.input-control-wrapper:focus-within {
    border-bottom-color: #333;
}

.prefix-group {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: #333;
    font-weight: 600;
    font-size: 1.1rem;
    padding-right: 0.8rem;
    border-right: 1px solid #eee;
    margin-right: 1rem;
    cursor: pointer;
}

.prefix-group i {
    font-size: 0.8rem;
    color: #ccc;
}

.bind-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 0.8rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
}

.bind-input:focus {
    outline: none;
}

/* 隐藏数字输入框箭头 */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type=number] {
    -moz-appearance: textfield;
    appearance: none;
}

.bind-input::placeholder {
    color: #ccc;
    font-weight: 500;
}

.clear-input {
    width: 18px;
    height: 18px;
    background: #ccc;
    color: #fff;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    cursor: pointer;
    margin-left: 0.5rem;
}

.clear-input.active {
    display: flex;
}

/* 验证码框样式 - 占位隐藏以防止布局抖动 */
.code-block {
    margin-top: 1.2rem;
    opacity: 0;
    pointer-events: none;
    height: 60px; /* 固定高度占位 */
    transition: opacity 0.3s ease;
}

.code-block.active {
    opacity: 1;
    pointer-events: auto;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.countdown-text {
    font-size: 0.9rem;
    color: #999;
    white-space: nowrap;
}

.countdown-text.resend {
    color: #4c80f1;
    font-weight: 600;
    cursor: pointer;
}

.bind-action-wrapper {
    margin-top: 4rem;
}

.bind-primary-btn {
    width: 100%;
    height: 54px;
    background: #4c80f1;
    color: #fff;
    border: none;
    border-radius: 27px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.bind-primary-btn.disabled {
    background: #eef2f9;
    color: #bdc8dc;
    cursor: not-allowed;
}

.bind-primary-btn:active:not(.disabled) {
    transform: scale(0.98);
    opacity: 0.9;
}

.bind-footer-info {
    margin-top: 2rem;
    text-align: center;
    font-size: 0.85rem;
    color: #999;
}

.bind-footer-info a {
    color: #333;
    text-decoration: none;
    font-weight: 600;
}

/* ========================================= */
/* Address Management Styles                 */
/* ========================================= */

.address-list {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    padding: 1rem;
    padding-bottom: 6rem;
    background-color: #f7f8fa;
    min-height: calc(100vh - 60px);
    display: flex;
    flex-direction: column;
}

.address-card {
    width: 100%;
    background: #fff;
    border-radius: 12px;
    padding: 0.85rem 1.2rem 0 1.2rem; /* Remove bottom padding to let the action row handle it */
    margin-bottom: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    transition: all 0.2s;
}

.address-card.selected {
    border: 1px solid #ff5000;
    background-color: #fff8f5;
    box-shadow: 0 4px 12px rgba(255, 80, 0, 0.08);
}

.address-info-header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 0.6rem;
    width: 100%;
    gap: 0.8rem; /* This will handle natural spacing, but we'll use margin for the '3 spaces' specifically if needed */
}

.address-info-header .name-label {
    font-size: 1rem;
    font-weight: 700;
    color: #333;
    white-space: nowrap;
    line-height: 1.2;
}

.address-info-header .phone-label {
    font-size: 1rem;
    font-weight: 700;
    color: #333;
    white-space: nowrap;
    line-height: 1.2;
    margin-left: 0.5rem; /* Equivalent to roughly 3 spaces */
}

.mini-tags {
    display: flex;
    gap: 0.4rem;
    margin-left: 0.6rem;
}

.mini-tag {
    font-size: 0.85rem;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 500;
    line-height: 1.4;
}

.mini-tag.default {
    background: #fff0eb;
    color: #ff5000;
}

.mini-tag.school {
    background: #eef3ff;
    color: #4a86e8;
}

.address-detail-text {
    font-size: 0.85rem;
    color: #888;
    line-height: 1.5;
    margin-top: -0.2rem; /* Pull up to reduce gap visually */
    margin-bottom: 0; /* Let the action row handle gap */
    padding-bottom: 0.85rem;
    border-bottom: 1px solid #f0f0f0;
    word-break: break-all;
}

.address-actions-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding-top: 0.2rem; /* Offset font baseline rendering shift */
    padding-bottom: 0.8rem; /* Bulk up bottom space to visually center the text against the card edge */
}

.default-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #b3b3b3;
    line-height: 1;
}

.default-toggle.active {
    color: #ff5000;
}

.default-toggle i {
    font-size: 1rem;
}

.address-btns {
    display: flex;
    gap: 1.25rem;
}

.address-btn-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.85rem;
    color: #999;
    cursor: pointer;
    line-height: 1;
}

.address-btn-item i {
    font-size: 0.9rem;
}

.add-address-fixed {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 500px;
    padding: 1rem 1.5rem 1.5rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0), #fff 40%);
    z-index: 100;
}

.add-address-btn {
    width: 100%;
    height: 48px;
    background: linear-gradient(135deg, #ff6b35, #ff4d00);
    color: #fff;
    border: none;
    border-radius: 24px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(255, 77, 0, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
}

.add-address-btn:active {
    transform: scale(0.98);
    box-shadow: 0 4px 15px rgba(255, 77, 0, 0.2);
}

/* ========================================= */
/* Add Address Form Styles                   */
/* ========================================= */

.address-form-container {
    padding: 1rem;
    background-color: #f7f8fa;
    flex: 1;
}

.form-list {
    background: #fff;
    border-radius: 12px;
    padding: 0 1rem;
    margin-bottom: 1rem;
}

.form-row {
    display: flex;
    align-items: center;
    padding: 0.4rem 0;
    border-bottom: 1px solid #f5f5f5;
}

.form-row:last-child {
    border-bottom: none;
}

.form-label {
    width: 90px;
    font-size: 0.95rem;
    font-weight: 500;
    color: #333;
    flex-shrink: 0;
    line-height: 1;
}

.form-field {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.form-input {
    width: 100%;
    border: none;
    outline: none;
    font-size: 0.95rem;
    color: #333;
    text-align: right;
    background: transparent;
}

.form-input::placeholder {
    color: #ccc;
}

.form-textarea {
    width: 100%;
    border: none;
    outline: none;
    font-size: 0.95rem;
    color: #333;
    padding: 0;
    resize: none;
    height: 80px;
    font-family: inherit;
    line-height: 1.5;
    background: transparent;
}

.form-arrow {
    margin-left: 0.5rem;
    color: #ccc;
    font-size: 0.8rem;
}

.tag-group {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    width: 100%;
    margin: 0;
}

.tag-item {
    padding: 0.35rem 0.8rem;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    font-size: 0.8rem;
    color: #444;
    cursor: pointer;
    background: #fff;
    transition: all 0.2s;
    line-height: 1;
}

.tag-item:last-child {
    margin-right: 0;
}

.tag-item.active {
    border-color: #ff5000;
    color: #ff5000;
    background: #fff5e6;
}

.form-switch-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1rem;
    background: #fff;
    border-radius: 12px;
    margin-bottom: 1rem;
}

.form-title-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-subtitle {
    font-size: 0.75rem;
    color: #999;
}

.btn-container-fixed {
    padding: 1rem 1.5rem 1.5rem;
    background: #f7f8fa;
}

/* Reusing .add-address-btn for consistency */

/* ========================================= */
/* Global Bottom Drawer & Overlay Styles    */
/* ========================================= */

.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.drawer-overlay.active {
    display: block;
    opacity: 1;
}

.bottom-drawer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 20px 20px 0 0;
    z-index: 1001;
    --ty: 100%;
    transform: translateY(var(--ty));
    transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    padding: 20px 1.2rem;
    padding-bottom: calc(20px + env(safe-area-inset-bottom));
}

.bottom-drawer.active {
    --ty: 0%;
}

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.drawer-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #333;
}

.close-btn {
    font-size: 1.25rem;
    color: #999;
    cursor: pointer;
    padding: 0.5rem;
    margin-right: -0.5rem;
}

.drawer-list {
    max-height: 60vh;
    overflow-y: auto;
    margin: 0 -0.5rem;
}

.drawer-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.2rem 1rem;
    margin-bottom: 0.5rem;
    background: #f9f9f9;
    border: 1px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.drawer-item:last-child {
    margin-bottom: 0;
}

.drawer-item.selected {
    background: #fff8f5;
    border-color: #ff5000;
    color: #ff5000;
}

.drawer-item span {
    font-size: 1rem;
    font-weight: 500;
}

.drawer-check {
    display: none;
    color: #ff5000;
    font-size: 1rem;
}

.drawer-item.selected .drawer-check {
    display: block;
}

/* ========================================= */
/* iOS-style Picker Wheel                    */
/* ========================================= */

.picker-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    border-bottom: 1px solid #f0f0f0;
}

.picker-cancel {
    font-size: 1rem;
    color: #999;
    cursor: pointer;
}

.picker-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #333;
}

.picker-confirm {
    font-size: 1rem;
    color: #ff5000;
    font-weight: 600;
    cursor: pointer;
}

.picker-body {
    display: flex;
    position: relative;
    height: 220px;
    overflow: hidden;
}

.picker-column {
    flex: 1;
    overflow-y: auto;
    scroll-snap-type: y mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    position: relative;
    z-index: 1;
}

.picker-column::-webkit-scrollbar {
    display: none;
}

.picker-item {
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    color: #333;
    scroll-snap-align: start;
    user-select: none;
    cursor: pointer;
    transition: color 0.2s;
}

.picker-item-pad {
    color: transparent;
    pointer-events: none;
}

.picker-highlight {
    position: absolute;
    top: 50%;
    left: 10px;
    right: 10px;
    height: 44px;
    transform: translateY(-50%);
    background: #fff8f0;
    border-top: 1px solid #f0e0c8;
    border-bottom: 1px solid #f0e0c8;
    border-radius: 8px;
    pointer-events: none;
    z-index: 0;
}

.picker-mask {
    position: absolute;
    left: 0;
    right: 0;
    height: 88px;
    pointer-events: none;
    z-index: 2;
}

.picker-mask-top {
    top: 0;
    background: linear-gradient(to bottom, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%);
}

.picker-mask-bottom {
    bottom: 0;
    background: linear-gradient(to top, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%);
}

/* ========================================= */
/* Address Entry Box (Payment Page)          */
/* ========================================= */

.add-address-entry {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1rem;
    background: #fafafa;
    border: 1px dashed #e0e0e0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 0.5rem;
}

.add-address-entry:active {
    background: #f0f0f0;
    transform: scale(0.99);
}

.entry-left {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.plus-circle {
    width: 24px;
    height: 24px;
    background: #ff5000;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.entry-left span {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
}

.entry-arrow {
    color: #ccc;
    font-size: 0.9rem;
}

/* ========================================= */
/* Selected Address Card (Payment Page)      */
/* ========================================= */

.selected-address-card {
    position: relative;
    padding: 1.25rem 0.6rem;
    background: #fff;
    cursor: pointer;
}

.sac-top {
    display: flex;
    align-items: center;
    margin-bottom: 0.6rem;
}

.sac-name {
    font-size: 1rem;
    font-weight: 700;
    color: #333;
}

.sac-phone {
    font-size: 1rem;
    font-weight: 700;
    color: #333;
    margin-left: 0.8rem;
}

.sac-tag {
    margin-left: 0.8rem;
}

.sac-bottom {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding-right: 2rem;
}

.sac-icon {
    font-size: 0.9rem;
    color: #ff5000;
    margin-top: 0.15rem;
}

.sac-address {
    font-size: 0.85rem;
    color: #888;
    line-height: 1.4;
}

.sac-arrow {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    color: #ccc;
    font-size: 0.8rem;
}

/* Global Bottom Drawer Styles */
.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.drawer-overlay.active {
    display: block;
    opacity: 1;
}

.bottom-drawer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: -100%;
    background: #fff;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    z-index: 2001;
    padding-top: 12px;
    transition: bottom 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    max-height: 85vh;
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.1);
}

.bottom-drawer::before {
    content: '';
    width: 36px;
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
    margin: 0 auto 12px;
    flex-shrink: 0;
}

.bottom-drawer.active {
    bottom: 0;
}

.drawer-header {
    padding: 0 20px 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    border-bottom: none;
}

.drawer-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #222;
}

.drawer-close {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #ccc;
    cursor: pointer;
    border-radius: 50%;
    background: #f8f8f8;
    transition: all 0.2s;
}

.drawer-close:active {
    transform: translateY(-50%) scale(0.9);
    background: #eee;
}

.drawer-content {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
    -webkit-overflow-scrolling: touch;
}

.drawer-footer {
    padding: 12px 20px 24px;
    padding-bottom: calc(24px + env(safe-area-inset-bottom));
    background: #fff;
    border-top: none;
}

.drawer-btn {
    width: 100%;
    height: 50px;
    background: linear-gradient(135deg, #ff8a00, #ff5000);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(255, 80, 0, 0.25);
    transition: all 0.2s;
}

.drawer-btn:active {
    transform: scale(0.97);
    opacity: 0.9;
}


/* ===== Messages Page Card Layout ===== */
body.messages-body {
    background-color: #f5f5f5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.messages-header-area {
    background: #f5f5f5;
    position: sticky;
    top: 0;
    z-index: 100;
    padding-top: calc(env(safe-area-inset-top) + 0.5rem);
}

.messages-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.2rem 1.2rem; /* increased vertical spacing */
    min-height: 56px; /* standard navigation bar minimum height */
}

.messages-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1a1a1a;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.messages-icons {
    font-size: 0.95rem;
    color: #1a1a1a;
    cursor: pointer;
    font-weight: 500;
}

/* Filter Pill Bar */
.msg-filter-bar {
    display: flex;
    align-items: center;
    padding: 0.8rem 1.2rem 1.4rem 1.2rem; /* balanced left/right padding */
    background: #f5f5f5;
}

.msg-filter-scroll {
    display: flex;
    width: 100%;
    gap: 8px; /* slight gap reduction to fit 5 pills */
}

.msg-pill {
    flex: 1; /* equal width */
    padding: 8px 0; /* balanced vertical padding */
    text-align: center; /* center text */
    border-radius: 20px;
    font-size: 0.88rem; /* slight size tweak to fit */
    white-space: nowrap;
    background: #fff;
    color: #555;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
    position: relative; /* added for badge positioning */
}

.msg-pill.active {
    background: #fff1f0;
    color: #ff3b30;
    font-weight: 600;
}

.msg-pill-badge {
    position: absolute;
    top: -6px;
    right: 0px;
    background: #ff4d4f;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
    border: 1.5px solid #f5f5f5; /* matches background to pop out */
}

.msg-filter-icon {
    position: absolute;
    right: 0;
    top: 0.5rem;
    height: 32px;
    width: 45px;
    background: linear-gradient(90deg, rgba(245,245,245,0) 0%, #f5f5f5 30%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    font-size: 1.1rem;
    z-index: 2;
}

/* Message Cards List */
.msg-card-list {
    padding: 0 1.2rem 2rem 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.msg-card {
    background: #fff;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

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

.msg-card-header-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* The small round icon in header */
.msg-card-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.75rem;
}
.msg-card-icon.blue { background-color: #1890ff; }
.msg-card-icon.purple { background-color: #722ed1; }
.msg-card-icon.orange { background-color: #fa8c16; }
.msg-card-icon.green { background-color: #52c41a; }

.msg-card-type {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    gap: 6px;
}

.msg-card-dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1px 4px;
    background: linear-gradient(135deg, #ff4c3b, #ff7b63);
    color: #fff;
    font-size: 0.55rem;
    font-weight: 800;
    text-transform: uppercase;
    border-radius: 4px;
    line-height: 1;
    margin-left: 6px;
    box-shadow: 0 2px 4px rgba(255, 76, 59, 0.2);
    letter-spacing: 0.2px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.msg-card-header-right {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #bfbfbf;
    font-size: 0.8rem;
}

.msg-card-more {
    font-size: 1rem;
    letter-spacing: -2px;
}

.msg-card-body {
    display: flex;
    gap: 12px;
}

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

.msg-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 6px;
    line-height: 1.4;
}

.msg-card-desc {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.msg-card-thumb {
    width: 72px;
    height: 72px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid #f0f0f0;
}

.msg-card-footer {
    border-top: 1px solid #f0f0f0;
    padding-top: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: #333;
    cursor: pointer;
}

.msg-card-footer i {
    color: #bbb;
    font-size: 0.85rem;
}

/* Custom Clear Modal Styles */
.clear-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.clear-modal-overlay.active {
    display: flex;
    opacity: 1;
}

.clear-modal-card {
    width: 85%;
    max-width: 320px;
    background: #fff;
    border-radius: 24px;
    padding: 24px 20px;
    text-align: center;
    transform: scale(0.85);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.clear-modal-overlay.active .clear-modal-card {
    transform: scale(1);
}

.clear-modal-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
}

.clear-modal-desc {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 24px;
}

.clear-modal-footer {
    display: flex;
    gap: 12px;
}

.clear-modal-btn {
    flex: 1;
    height: 48px;
    border-radius: 14px;
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.clear-modal-btn.cancel {
    background-color: #f5f5f5;
    color: #666;
}

.clear-modal-btn.confirm {
    background-color: #1a1a1a;
    color: #fff;
}

.clear-modal-btn:active {
    transform: scale(0.96);
    opacity: 0.9;
}

/* VIP Membership Page Styles */
.vip-membership-page-dark {
    background-color: #1a1a1a;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
}

.vip-membership-wrapper {
    background: linear-gradient(180deg, #E8D9FF 0%, #F5EFFF 38%, #FFFFFF 100%);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    padding-bottom: 2rem;
}

.vip-membership-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 400px;
    background: radial-gradient(circle at top right, rgba(200, 150, 255, 0.4) 0%, transparent 70%),
                radial-gradient(circle at 20% 10%, rgba(180, 200, 255, 0.3) 0%, transparent 50%);
    pointer-events: none;
}

.ios-status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1.5rem 0.4rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #1a1a1a;
}

.status-bar-right {
    display: flex;
    gap: 0.4rem;
    align-items: center;
}

.vip-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 1rem;
    height: 44px;
}

.nav-back, .nav-more {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: #4a3a2a;
    cursor: pointer;
}

.nav-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1a1a1a;
    flex: 1;
    text-align: center;
}

.membership-header-section {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    z-index: 2;
}

.membership-user-info {
    flex: 1;
}

.membership-avatar-wrapper {
    position: relative;
    width: 68px;
    height: 68px;
    margin-bottom: 1.25rem;
}

.membership-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 5px 15px rgba(100, 80, 150, 0.15);
    background-size: cover;
    background-position: center;
}

.membership-user-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.4rem;
}

.membership-username {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2D1A4A;
}

.membership-status-badge {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(4px);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.75rem;
    color: #9C8BB4;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.membership-promo-text {
    font-size: 0.85rem;
    color: #6E5D8E;
    font-weight: 500;
}

.membership-3d-asset-container {
    width: 160px;
    height: 160px;
    margin-top: -20px;
    margin-right: -20px;
}

.membership-3d-asset {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 15px 30px rgba(150, 100, 255, 0.2));
    animation: floatCrown 4s ease-in-out infinite;
}

@keyframes floatCrown {
    0%, 100% { transform: translateY(0) rotate(0); }
    50% { transform: translateY(-8px) rotate(2deg); }
}

/* Subscription Selection Styles */
.subscription-container {
    margin: 0.5rem 1rem 1.5rem;
    background: #FFFFFF;
    border-radius: 24px;
    padding: 1.5rem 1.25rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
    position: relative;
    z-index: 3;
}

.subscription-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.subscription-card {
    border-radius: 16px;
    border: 2px solid #F5F5F7;
    padding: 1rem 0.4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    cursor: pointer;
    background: #fff;
}

.subscription-card.recommended::before {
    content: '推荐';
    position: absolute;
    top: -12px;
    right: -2px;
    background: linear-gradient(135deg, #FF6B6B, #FF4757);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px 10px 10px 0;
    box-shadow: 0 4px 10px rgba(255, 71, 87, 0.3);
}

.subscription-card.selected {
    border-color: #8E6CEF;
    background: linear-gradient(180deg, #FFFFFF 0%, #F8F6FF 100%);
    box-shadow: 0 8px 20px rgba(142, 108, 239, 0.15);
}

.sub-duration {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.25rem;
}

.sub-original-price {
    font-size: 0.75rem;
    color: #BBB;
    text-decoration: line-through;
    margin-bottom: 0.5rem;
}

.sub-current-price {
    font-size: 1.4rem;
    font-weight: 800;
    color: #FF4757;
    display: flex;
    align-items: baseline;
}

.sub-current-price::before {
    content: '¥';
    font-size: 0.8rem;
    margin-right: 1px;
}

.subscription-card.selected .sub-duration {
    color: #5D3FD3;
}

/* Privileges Section */
.privileges-section {
    padding: 0 1.5rem;
    margin-top: 1.5rem;
}

.privileges-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2D1A4A;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.privileges-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem 1rem;
}

.privilege-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.privilege-icon-box {
    width: 52px;
    height: 52px;
    border-radius: 18px;
    background: linear-gradient(135deg, #E8D9FF 0%, #D1C4FF 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #8E6CEF;
    box-shadow: 0 6px 15px rgba(142, 108, 239, 0.1);
    transition: transform 0.3s ease;
}

.privilege-item:hover .privilege-icon-box {
    transform: translateY(-5px);
}

.privilege-name {
    font-size: 0.75rem;
    color: #6E5D8E;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
}
