:root {
    --wechat-green: #07C160;
    --wechat-light-green: #91E8B4;
    --primary-text: #191919;
    --secondary-text: #576B95;
    --bg-gray: #F7F7F7;
}

body {
    font-family: -apple-system, Roboto, 'PingFang SC', 'Helvetica Neue', Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
    color: var(--primary-text);
    background-color: #fff;
    line-height: 1.6;
}

/* Base Styles */
.text-wechat { color: var(--wechat-green); }
.bg-wechat { background-color: var(--wechat-green); }

.btn-wechat {
    background-color: var(--wechat-green);
    color: white;
    transition: all 0.2s ease;
}

.btn-wechat:hover {
    background-color: #06AD56;
    transform: translateY(-1px);
}

.input-field {
    border: 1px solid #E5E7EB;
    transition: all 0.2s ease;
}

.input-field:focus {
    border-color: var(--wechat-green);
    box-shadow: 0 0 0 3px rgba(7, 193, 96, 0.1);
}

/* Navigation */
.nav-link {
    color: var(--primary-text);
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: var(--wechat-green);
}

.nav-active {
    color: var(--wechat-green);
    position: relative;
}

.nav-active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--wechat-green);
}

/* Sidebar styles */
.sidebar-link.active {
    background-color: white;
    color: var(--wechat-green);
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.sidebar-link.active svg { color: var(--wechat-green); }

/* Status Badge */
.status-badge {
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Filter Tabs */
.filter-tab {
    padding: 8px 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    color: #9CA3AF;
    transition: all 0.2s ease;
}

.filter-tab:hover {
    color: var(--wechat-green);
    background-color: white;
}

.filter-tab.active {
    color: var(--wechat-green);
    background-color: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

/* Pagination */
.pagination-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1px solid #F3F4F6;
    font-size: 12px;
    font-weight: 600;
    color: #9CA3AF;
    transition: all 0.2s ease;
}

.pagination-btn:hover:not(:disabled) {
    border-color: var(--wechat-green);
    color: var(--wechat-green);
    background-color: white;
}

.pagination-btn.active {
    background-color: var(--wechat-green);
    color: white;
    border-color: var(--wechat-green);
    box-shadow: 0 4px 12px rgba(7, 193, 96, 0.2);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 100;
    backdrop-filter: blur(4px);
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Ticket Detail */
.message-bubble {
    max-width: 80%;
    border-radius: 1.5rem;
    padding: 1.25rem;
}
.message-user {
    background-color: var(--wechat-green);
    color: white;
    border-bottom-right-radius: 0.25rem;
}
.message-admin {
    background-color: white;
    border: 1px solid #eee;
    border-bottom-left-radius: 0.25rem;
}

/* Login Tabs */
.tab-btn.active {
    color: var(--wechat-green);
    border-bottom: 2px solid var(--wechat-green);
}

/* Utils */
.hidden { display: none; }
.card-shadow { box-shadow: 0 4px 20px rgba(0,0,0,0.05); }
.hero-gradient { background: linear-gradient(180deg, rgba(7, 193, 96, 0.05) 0%, rgba(255, 255, 255, 1) 100%); }
.step-number {
    width: 32px;
    height: 32px;
    background: var(--wechat-green);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
}

/* Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}
.animate-fade-in {
    animation: fadeIn 0.2s ease-out forwards;
}

/* Form Validation */
label.error {
    color: #ef4444;
    font-size: 11px;
    font-weight: 700;
    margin-top: 4px !important;
    display: block;
    animation: fadeIn 0.2s ease-out;
}

.input-field.error {
    border-color: #ef4444;
}

.input-field.error:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* Account Bind specific */
.bind-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 24px;
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
}
.bind-card:hover {
    border-color: var(--wechat-green);
}

/* Contact specific */
.contact-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 24px;
    padding: 40px;
    transition: all 0.3s ease;
}
.contact-card:hover {
    border-color: var(--wechat-green);
    box-shadow: 0 10px 30px rgba(7, 193, 96, 0.05);
}
.map-container {
    width: 100%;
    height: 450px;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid #eee;
    background: #f9f9f9;
}

/* Mobile Menu - Hamburger Icon */
.menu-icon span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--primary-text);
    transition: all 0.3s ease;
}
.menu-icon.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.menu-icon.active span:nth-child(2) {
    opacity: 0;
}
.menu-icon.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Menu - Backdrop */
.mobile-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    z-index: 60;
    pointer-events: none;
    transition: background 0.3s ease;
}
.mobile-backdrop.active {
    background: rgba(0, 0, 0, 0.45);
    pointer-events: auto;
}

/* Mobile Menu - Drawer Panel */
.mobile-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    height: 100dvh;
    background: #fff;
    z-index: 70;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}
.mobile-drawer.active {
    transform: translateX(0);
}

/* Drawer Header */
.mobile-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #F3F4F6;
    flex-shrink: 0;
}
.mobile-drawer-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #6B7280;
    transition: all 0.2s ease;
    background: none;
    border: none;
    cursor: pointer;
}
.mobile-drawer-close:hover {
    background: #F3F4F6;
    color: var(--primary-text);
}

/* Drawer Body - Navigation Links */
.mobile-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 8px 0;
    -webkit-overflow-scrolling: touch;
}
.mobile-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 500;
    color: var(--primary-text);
    text-decoration: none;
    transition: all 0.15s ease;
    border-left: 3px solid transparent;
}
.mobile-nav-item:hover {
    background: #F9FAFB;
    color: var(--wechat-green);
}
.mobile-nav-active {
    color: var(--wechat-green);
    background: rgba(7, 193, 96, 0.06);
    border-left-color: var(--wechat-green);
}
.mobile-nav-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}
.mobile-drawer-section-title {
    padding: 10px 20px 4px;
    font-size: 11px;
    font-weight: 700;
    color: #9CA3AF;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* Drawer Footer - User Area */
.mobile-drawer-footer {
    flex-shrink: 0;
    border-top: 1px solid #F3F4F6;
    padding: 16px 20px;
    background: #FAFAFA;
}
.mobile-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 14px;
    margin-bottom: 12px;
    border-bottom: 1px solid #F3F4F6;
    text-decoration: none;
    transition: opacity 0.2s ease;
}
.mobile-user-info:hover {
    opacity: 0.8;
}
.mobile-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    background: #E5E7EB;
    border: 2px solid #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}
.mobile-user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.mobile-user-detail {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.mobile-user-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-text);
}
.mobile-user-hint {
    font-size: 12px;
    color: #9CA3AF;
}
.mobile-user-actions {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.mobile-action-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 8px;
    font-size: 14px;
    font-weight: 500;
    color: #4B5563;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.15s ease;
}
.mobile-action-btn:hover {
    background: #F3F4F6;
}

/* Body scroll lock when drawer is open */
body.menu-open {
    overflow: hidden;
}

/* Hide drawer on desktop */
@media (min-width: 768px) {
    .mobile-backdrop,
    .mobile-drawer {
        display: none !important;
    }
}

/* Gallery Lightbox */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}
.lightbox-overlay.active {
    display: flex;
}
.lightbox-img {
    max-width: 90vw;
    max-height: 85vh;
    object-contain: contain;
    border-radius: 8px;
    box-shadow: 0 0 50px rgba(0,0,0,0.5);
    transition: transform 0.3s ease;
}
.lightbox-btn {
    position: absolute;
    color: white;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid rgba(255,255,255,0.2);
}
.lightbox-btn:hover {
    background: var(--wechat-green);
    border-color: var(--wechat-green);
    transform: scale(1.1);
}
.lightbox-prev { left: 40px; }
.lightbox-next { right: 40px; }
.lightbox-close { top: 40px; right: 40px; }

/* Scrollbar Utilities */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.thin-scrollbar {
    scrollbar-width: thin;
    scrollbar-color: #d1d5db transparent;
}
.thin-scrollbar::-webkit-scrollbar {
    height: 6px;
}
.thin-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}
.thin-scrollbar::-webkit-scrollbar-thumb {
    background-color: #d1d5db;
    border-radius: 3px;
}
.thin-scrollbar::-webkit-scrollbar-thumb:hover {
    background-color: #9ca3af;
}

/* Feature Image Container */
.feature-img-container {
    position: relative;
    border-radius: 1.5rem;
    overflow: hidden;
    background-color: #f9f9f9;
}

/* Zoomable Image behavior */
.feature-img-zoom {
    cursor: zoom-in;
    aspect-ratio: 16/9;
}

.feature-img-zoom::after {
    content: '点击放大';
    position: absolute;
    inset: 0;
    background: rgba(7, 193, 96, 0.8);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none; /* Allow clicks to pass through if needed, though usually we want to trigger popup */
}

.feature-img-zoom:hover::after {
    opacity: 1;
}

/* Interactive Feature Card (No zoom overlay) */
.feature-card-interactive {
    transition: all 0.3s ease;
    border: 1px solid #F3F4F6;
}

.feature-card-interactive:hover {
    border-color: var(--wechat-green);
    box-shadow: 0 10px 30px rgba(7, 193, 96, 0.05);
}

.feature-card-interactive .zoom-trigger {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 2.5rem;
    height: 2.5rem;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    cursor: pointer;
    z-index: 20;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.feature-card-interactive:hover .zoom-trigger {
    opacity: 1;
    transform: translateY(0);
}

/* Policy pages specific */
main.max-w-4xl {
    line-height: 1.8;
}

/* New Sections Styles */
.source-card {
    background: #fff;
    border: 1px solid #F3F4F6;
    border-radius: 2rem;
    padding: 2.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.source-card:hover {
    border-color: var(--wechat-green);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(7, 193, 96, 0.08);
}
.case-card {
    position: relative;
    border-radius: 2rem;
    overflow: hidden;
    aspect-ratio: 4/3;
}
.case-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    opacity: 0.9;
    transition: all 0.3s ease;
}
.case-card:hover .case-overlay {
    background: linear-gradient(to top, rgba(7, 193, 96, 0.9) 0%, rgba(7, 193, 96, 0.4) 100%);
}
.tag-pill {
    padding: 4px 12px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(4px);
    border-radius: 100px;
    font-size: 10px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
}

/* ========== Article Prose Typography ========== */
.prose p {
    margin-bottom: 10px;
    line-height: 1.8;
}

.prose h2 {
    font-size: 1.5em;
    font-weight: 700;
    color: #191919;
    margin-top: 1.5em;
    margin-bottom: 0.75em;
    line-height: 1.4;
}

.prose h3 {
    font-size: 1.25em;
    font-weight: 700;
    color: #191919;
    margin-top: 1.25em;
    margin-bottom: 0.5em;
    line-height: 1.4;
}

.prose h4 {
    font-size: 1.1em;
    font-weight: 700;
    color: #191919;
    margin-top: 1em;
    margin-bottom: 0.5em;
}

.prose strong,
.prose b {
    font-weight: 700;
    color: #191919;
}

.prose a {
    color: #2563eb;
    text-decoration: underline;
    text-decoration-style: dotted;
    text-underline-offset: 3px;
    transition: color 0.2s ease;
}

.prose a:hover {
    color: var(--wechat-green);
    text-decoration-style: solid;
}

.prose ul {
    list-style-type: disc;
    padding-left: 1.5em;
    margin-bottom: 10px;
}

.prose ol {
    list-style-type: decimal;
    padding-left: 1.5em;
    margin-bottom: 10px;
}

.prose li {
    margin-bottom: 6px;
    line-height: 1.7;
}

.prose li > ul,
.prose li > ol {
    margin-top: 6px;
    margin-bottom: 0;
}

.prose blockquote {
    border-left: 4px solid var(--wechat-green);
    padding: 12px 20px;
    margin: 16px 0;
    background-color: #f9fafb;
    border-radius: 0 8px 8px 0;
    color: #6b7280;
    font-style: italic;
}

.prose blockquote p:last-child {
    margin-bottom: 0;
}

.prose img {
    max-width: 80%;
    height: auto;
    margin: 16px auto;
    display: block;
    border-radius: 12px;
}

.prose code {
    background-color: #f3f4f6;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.875em;
    font-family: 'Menlo', 'Monaco', 'Consolas', monospace;
    color: #dc2626;
}

.prose pre {
    background-color: #1f2937;
    color: #e5e7eb;
    padding: 16px 20px;
    border-radius: 12px;
    overflow-x: auto;
    margin: 16px 0;
    line-height: 1.6;
}

.prose pre code {
    background: none;
    padding: 0;
    border-radius: 0;
    color: inherit;
    font-size: 0.875em;
}

.prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    font-size: 0.95em;
}

.prose th {
    background-color: #f9fafb;
    font-weight: 700;
    text-align: left;
    padding: 10px 14px;
    border: 1px solid #e5e7eb;
    color: #191919;
}

.prose td {
    padding: 10px 14px;
    border: 1px solid #e5e7eb;
}

.prose tr:hover td {
    background-color: #f9fafb;
}

.prose hr {
    border: none;
    border-top: 1px solid #e5e7eb;
    margin: 24px 0;
}

.prose em {
    font-style: italic;
}
