/* ===== Variables ===== */
:root {
    --primary-color: #1E3A5F;
    --secondary-color: #3B5998;
    --accent-green: #059669;
    --accent-amber: #D97706;
    --bg-primary: #F5F5F0;
    --bg-secondary: #FAFAF8;
    --bg-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --text-primary: #1A1A1A;
    --text-secondary: #666666;
    --border-color: #E8E8E3;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-full: 50%;
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-md: 1rem;
    --font-size-lg: 1.25rem;
    --font-size-xl: 1.5rem;
}

/* ===== Base ===== */
html {
    font-size: 16px;
    -webkit-tap-highlight-color: transparent;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: var(--bg-secondary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 所有页面统一内容区最大宽度 */
#main-content,
.page-content,
.page-wrapper,
.contacts-wrapper,
.discovery-wrapper,
.groups-wrapper,
.notifications-wrapper,
.payment-wrapper,
.visitors-container,
.profile-content,
.profile-page,
.container {
    max-width: 768px;
    margin: 0 auto;
}


body > *:not(style):not(script) {
    max-width: 768px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== Loading ===== */
#loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: var(--bg-gradient);
}

.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

#loading p {
    color: white;
    margin-top: var(--spacing-md);
    font-size: 1rem;
}

/* ===== Main Content ===== */
#main-content {
    max-width: 768px;
    margin: 0 auto;
    background: var(--bg-secondary);
    min-height: 100vh;
    padding-bottom: calc(70px + env(safe-area-inset-bottom));
}

/* ===== Header ===== */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px var(--spacing-lg);
    max-width: 768px;
    margin: 0 auto;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.logo {
    font-size: 1.1rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.icon-btn {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-md);
    border: none;
    background: var(--bg-secondary);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.icon-btn:hover {
    background: var(--primary-color);
    color: white;
}

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

/* ===== Profile Section ===== */
.profile-section {
    padding: var(--spacing-md) var(--spacing-lg);
}

.profile-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    box-shadow: 0 2px 16px rgba(102, 126, 234, 0.12);
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(102, 126, 234, 0.06);
}

.profile-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 90px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
}

.avatar-container {
    position: relative;
    width: 76px;
    height: 76px;
    margin: 16px auto 10px;
    z-index: 1;
}

.avatar {
    width: 76px;
    height: 76px;
    border-radius: var(--radius-full);
    object-fit: cover;
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.avatar-edit {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 26px;
    height: 26px;
    border-radius: var(--radius-full);
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s;
}

.avatar-edit:active {
    transform: scale(0.9);
}

.profile-info {
    margin-top: var(--spacing-md);
}

.name {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.title, .company {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    margin-bottom: 2px;
}

.bio {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    margin-top: var(--spacing-sm);
    line-height: 1.5;
}

.contact-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin-top: var(--spacing-md);
}

.contact-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: var(--bg-secondary);
    border-radius: 20px;
    font-size: var(--font-size-xs);
    color: var(--text-secondary);
}

.edit-btn-container {
    margin-top: var(--spacing-md);
}

/* ===== Buttons ===== */
.btn {
    padding: var(--spacing-sm) var(--spacing-lg);
    border: none;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
}

.btn:active {
    transform: scale(0.96);
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-exchange {
    width: 100%;
    padding: 14px var(--spacing-md);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 700;
    box-shadow: var(--shadow-md);
}

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

/* ===== Cases Section ===== */
.cases-section {
    padding: var(--spacing-md) var(--spacing-lg);
}

.section-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-title::before {
    content: '';
    display: block;
    width: 4px;
    height: 18px;
    background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
    flex-shrink: 0;
}

.cases-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-sm);
}

.case-item {
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 1px 6px rgba(0,0,0,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.case-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}
.case-item:active {
    transform: scale(0.97);
}
.case-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.case-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

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

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

.case-title {
    padding: 6px 8px;
    font-size: 0.75rem;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
}

#add-case-btn {
    display: block;
    width: 100%;
    margin-top: var(--spacing-sm);
}

/* ===== Interaction Section ===== */
.interaction-section {
    padding: var(--spacing-md) var(--spacing-lg);
}

.like-container {
    display: flex;
    justify-content: center;
    margin-bottom: var(--spacing-md);
}

.like-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: var(--spacing-md) var(--spacing-xl);
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: 0 1px 6px rgba(0,0,0,0.08);
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
}

.like-btn:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

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

.like-btn.liked .like-icon {
    fill: #DC2626;
    stroke: #DC2626;
    transform: scale(1.15);
}

.like-count {
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--text-primary);
}

.like-label {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

.comments-container {
    background: white;
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    box-shadow: 0 1px 6px rgba(0,0,0,0.08);
}

.comments-list {
    max-height: 280px;
    overflow-y: auto;
    margin-bottom: var(--spacing-sm);
}

.comment-item {
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid var(--border-color);
}

.comment-avatar {
    width: 30px;
    height: 30px;
    border-radius: var(--radius-full);
    object-fit: cover;
    margin-right: var(--spacing-sm);
}

.comment-input-container {
    display: flex;
    gap: var(--spacing-sm);
}

.comment-input {
    flex: 1;
    padding: var(--spacing-sm) var(--spacing-md);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: var(--font-size-sm);
    resize: none;
    transition: border-color 0.2s;
    font-family: inherit;
}

.comment-input:focus {
    outline: none;
    border-color: #667eea;
}

/* ===== Exchange Section ===== */
.exchange-section {
    padding: var(--spacing-md) var(--spacing-lg);
}

/* ===== Stats Section ===== */
.stats-section {
    padding: var(--spacing-md) var(--spacing-lg);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.stat-card {
    background: white;
    border-radius: var(--radius-md);
    padding: var(--spacing-md) var(--spacing-sm);
    text-align: center;
    box-shadow: 0 1px 6px rgba(0,0,0,0.08);
    transition: all 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 12px rgba(0,0,0,0.1);
}

.stat-value {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: #667eea;
}

.stat-label {
    font-size: var(--font-size-xs);
    color: var(--text-secondary);
    margin-top: 2px;
}

.visitors-container {
    background: white;
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    box-shadow: 0 1px 6px rgba(0,0,0,0.08);
}

.visitors-list {
    display: flex;
    gap: var(--spacing-sm);
    overflow-x: auto;
    padding: var(--spacing-xs) 0;
    -webkit-overflow-scrolling: touch;
}

.visitor-item {
    flex-shrink: 0;
    text-align: center;
    width: 56px;
}

.visitor-avatar {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    object-fit: cover;
    border: 2px solid white;
    box-shadow: var(--shadow-sm);
}

.visitor-name {
    font-size: 0.65rem;
    color: var(--text-secondary);
    margin-top: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ===== Bottom Nav ===== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 768px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.06);
    display: flex;
    justify-content: space-around;
    padding: 6px 0;
    padding-bottom: calc(6px + env(safe-area-inset-bottom));
    z-index: 100;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    text-decoration: none;
    color: #9ca3af;
    font-size: 0.72rem;
    padding: 4px 14px;
    border-radius: var(--radius-md);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 60px;
    position: relative;
}

.nav-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 20px;
    height: 3px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 0 0 3px 3px;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-item:hover {
    color: #667eea;
    background: rgba(102, 126, 234, 0.06);
}

.nav-item:active {
    transform: scale(0.92);
}

.nav-item.active {
    color: #667eea;
    font-weight: 600;
}

.nav-item.active::before {
    transform: translateX(-50%) scaleX(1);
}

.nav-item svg {
    width: 22px;
    height: 22px;
    transition: all 0.2s ease;
}

.nav-item.active svg {
    stroke: #667eea;
    filter: drop-shadow(0 0 4px rgba(102, 126, 234, 0.4));
}

/* ===== Toast ===== */
#toast {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: rgba(0, 0, 0, 0.75);
    color: white;
    padding: 8px 20px;
    border-radius: var(--radius-md);
    font-size: var(--font-size-sm);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1000;
    pointer-events: none;
}

#toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ===== Lightbox ===== */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
    cursor: pointer;
}

.lightbox-img {
    max-width: 95%;
    max-height: 95%;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== Modal ===== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
    animation: fadeIn 0.2s ease;
    padding: 0;
}

.modal-content {
    width: 100%;
    max-width: 768px;
    max-height: 90vh;
    background: white;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    overflow: hidden;
    animation: fadeInDown 0.3s ease;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md) var(--spacing-lg);
    border-bottom: 1px solid var(--border-color);
}

.modal-title {
    font-size: var(--font-size-lg);
    font-weight: 700;
}

.modal-close {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    border: none;
    background: var(--bg-secondary);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:active {
    transform: scale(0.9);
}

.modal-body {
    padding: var(--spacing-lg);
    padding-bottom: calc(var(--spacing-lg) + env(safe-area-inset-bottom));
    max-height: 68vh;
    overflow-y: auto;
}

.modal-footer {
    display: flex;
    gap: var(--spacing-md);
    padding: var(--spacing-md) var(--spacing-lg);
    border-top: 1px solid var(--border-color);
}

/* ===== Form ===== */
.form-group {
    margin-bottom: var(--spacing-md);
}

.form-group label {
    display: block;
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: var(--spacing-sm) var(--spacing-md);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: var(--font-size-md);
    font-family: inherit;
    transition: border-color 0.2s;
    box-sizing: border-box;
    background: white;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #667eea;
}

/* ===== Social ===== */
.social-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.social-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    background: var(--bg-secondary);
    border-radius: 20px;
    font-size: var(--font-size-sm);
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.2s;
}

.social-item:hover {
    background: var(--primary-color);
    color: white;
}

/* ===== Tags ===== */
.tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: var(--font-size-xs);
    font-weight: 500;
}

.tag-green {
    background: rgba(5, 150, 105, 0.1);
    color: var(--accent-green);
}

.tag-amber {
    background: rgba(217, 119, 6, 0.1);
    color: var(--accent-amber);
}

.tag-blue {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

/* ===== Animations ===== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

    to {
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Section entrance animations */
.cases-section      { animation: fadeInUp 0.4s ease 0.05s both; }
.interaction-section { animation: fadeInUp 0.4s ease 0.1s both; }
.exchange-section    { animation: fadeInUp 0.4s ease 0.15s both; }
.stats-section       { animation: fadeInUp 0.4s ease 0.2s both; }

/* ===== Skeleton ===== */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-sm);
}

/* ===== Empty State ===== */
.no-data-tip,
.empty-state {
    text-align: center;
    padding: var(--spacing-xl);
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
}

.empty-state-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
    opacity: 0.5;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    #main-content {
        max-width: 100%;
    }

    .header-content {
        max-width: 100%;
        padding: 10px var(--spacing-md);
    }

    .cases-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }

    .profile-section,
    .cases-section,
    .interaction-section,
    .exchange-section,
    .stats-section {
        padding: var(--spacing-sm) var(--spacing-md);
    }

    .section-title {
        font-size: 0.95rem;
    }


    .contact-info {
        gap: 4px;
    }

    .contact-tag {
        padding: 3px 8px;
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .cases-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }

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

    .stat-card {
        padding: var(--spacing-sm);
    }

    .stat-value {
        font-size: 1.1rem;
    }

    .stat-label {
        font-size: 0.65rem;
    }

    .bottom-nav {
        padding: 4px 0;
    }

    .nav-item {
        font-size: 0.68rem;
        padding: 3px 10px;
        min-width: 52px;
    }

    .nav-item svg {
        width: 20px;
        height: 20px;
    }

    .like-count {
        font-size: 1.1rem;
    }
}

@media (max-width: 375px) {
    .header-content {
        padding: 8px var(--spacing-sm);
    }

    .logo {
        font-size: 1rem;
    }

    .icon-btn {
        width: 34px;
        height: 34px;
    }

    .profile-section,
    .cases-section,
    .interaction-section,
    .exchange-section,
    .stats-section {
        padding: var(--spacing-sm) var(--spacing-sm);
    }

    .cases-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 5px;
    }

    .profile-card {
        padding: var(--spacing-md);
    }

    .profile-card::before {
        height: 70px;
    }

    .avatar {
        width: 66px;
        height: 66px;
    }

    .avatar-container {
        width: 66px;
        height: 66px;
    }

    .name {
        font-size: 1.2rem;
    }


    .section-title {
        font-size: 0.9rem;
        margin-bottom: var(--spacing-sm);
    }


    .case-title {
        font-size: 0.7rem;
    }

    .btn-exchange {
        padding: 12px var(--spacing-sm);
        font-size: 0.95rem;
    }

    .modal-content {
        max-width: 100%;
    }
}

@media (max-width: 320px) {
    .cases-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 4px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 4px;
    }

    .stat-value {
        font-size: 1rem;
    }
}

/* ===== Touch Optimized ===== */
@media (hover: none) and (pointer: coarse) {
    .btn:hover,
    .case-card:hover,
    .like-btn:hover,
    .stat-card:hover,
    .social-item:hover {
        transform: none;
    }

    .btn:active,
    .case-card:active,
    .like-btn:active,
    .stat-card:active {
        transform: scale(0.96);
    }
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
    width: 4px;
    height: 4px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 4px;
}