/**
 * Global App Styles - Modern UI Design System
 */

:root {
    --primary-start: #6366f1;
    --primary-end: #8b5cf6;
    --primary-light: rgba(99, 102, 241, 0.08);
    --radius-xl: 22px;
    --radius-lg: 16px;
    --radius-md: 12px;
    --radius-sm: 8px;
    --shadow-card: 0 2px 16px rgba(0,0,0,0.06);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.1);
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --bg-app: linear-gradient(180deg, #eef2ff 0%, #f8fafc 45%, #fff 100%);
    --bg-card: #ffffff;
    --border-subtle: #f1f5f9;
    --transition: 280ms cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft Yahei", sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background: var(--bg-app);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* ========== App Container ========== */
.app-wrap {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    background: transparent;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* ========== Top Header ========== */
.top-header {
    padding: 14px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    margin: 12px 16px 0;
    border-radius: var(--radius-lg);
    box-shadow: 0 6px 24px rgba(102, 126, 234, 0.3);
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.header-logo {
    height: 34px;
    width: auto;
    flex-shrink: 0;
    border-radius: 8px;
}

.header-title {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    letter-spacing: -0.3px;
}

.icon-search {
    width: 24px;
    height: 24px;
    stroke: #fff;
    stroke-width: 2;
    fill: none;
    cursor: pointer;
    flex-shrink: 0;
    opacity: 0.85;
    transition: opacity 0.2s;
}

.icon-search:active { opacity: 0.6; }

/* ========== Function Cards ========== */
.card-group {
    padding: 0 16px;
    display: flex;
    gap: 12px;
    margin-top: 18px;
}

.func-card {
    flex: 1;
    min-width: 0;
    padding: 22px 16px;
    border-radius: var(--radius-xl);
    position: relative;
    overflow: hidden;
    text-decoration: none;
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition);
    box-shadow: var(--shadow-lg);
}

.func-card:active {
    transform: scale(0.96);
}

.func-card::after {
    content: '';
    position: absolute;
    top: -40%;
    right: -30%;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.card-1 { background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%); color: #fff; }
.card-2 { background: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%); color: #fff; }

.card-text h3 {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
    position: relative;
    z-index: 1;
}

.card-text p {
    font-size: 12px;
    color: rgba(255,255,255,0.75);
    position: relative;
    z-index: 1;
}

.card-icon {
    position: absolute;
    right: 14px;
    top: 18px;
    width: 44px;
    height: 44px;
    opacity: 0.3;
}

.card-arrow {
    position: absolute;
    right: 16px;
    bottom: 16px;
    width: 22px;
    height: 22px;
    background: rgba(255,255,255,0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    transition: transform var(--transition);
}

.func-card:active .card-arrow { transform: translateX(4px); }

/* ========== Quick Navigation ========== */
.quick-nav {
    display: flex;
    justify-content: space-around;
    padding: 24px 12px 10px;
    margin: 14px 16px 0;
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    cursor: pointer;
    min-width: 58px;
    transition: transform 0.2s;
}

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

.nav-icon-box {
    width: 54px;
    height: 54px;
    min-width: 44px;
    min-height: 44px;
    border-radius: 16px;
    background: linear-gradient(145deg, #eef2ff, #e0e7ff);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: transform 0.2s;
}

.nav-item:active .nav-icon-box { transform: scale(0.9); }

.nav-icon-box svg {
    width: 24px;
    height: 24px;
    stroke: #6366f1;
    stroke-width: 1.8;
    fill: none;
}

.tag-new {
    position: absolute;
    top: -2px;
    right: -2px;
    background: linear-gradient(135deg, #ef4444, #f97316);
    color: #fff;
    font-size: 10px;
    padding: 1px 5px;
    border-radius: 6px;
    font-weight: 600;
}

.nav-label {
    font-size: 12px;
    color: var(--text-secondary);
    text-align: center;
    font-weight: 500;
}

/* ========== Service Bar ========== */
.service-bar {
    margin: 16px 16px 0;
    padding: 14px 16px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
    cursor: pointer;
    min-height: 44px;
    transition: transform 0.2s;
    box-shadow: var(--shadow-card);
}

.service-bar:active { transform: scale(0.98); }

.service-bar svg {
    width: 20px;
    height: 20px;
    fill: var(--primary-start);
    flex-shrink: 0;
}

.service-bar .bar-text {
    flex: 1;
    font-size: 13px;
    color: var(--text-secondary);
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.service-bar .bar-arrow {
    color: var(--text-muted);
    flex-shrink: 0;
    font-size: 18px;
}

/* ========== Module Title ========== */
.mod-title {
    padding: 24px 16px 12px;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: -0.3px;
}

.mod-title::before {
    content: '';
    width: 4px;
    height: 18px;
    background: linear-gradient(180deg, var(--primary-start), var(--primary-end));
    border-radius: 2px;
}

/* ========== Video List ========== */
.video-list {
    padding: 0 16px 90px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.video-item {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    transition: transform var(--transition), box-shadow var(--transition);
    position: relative;
}

.video-item:active {
    transform: scale(0.98);
}

.video-item-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, #8b83f3 0%, #a78bfa 100%);
    background-size: cover;
    background-position: center;
    position: relative;
}

.video-item-thumb .cover-placeholder {
    display: none;
}

.play-icon-mask {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.play-circle {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255,255,255,0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    transition: transform var(--transition);
}

.play-circle svg {
    width: 20px;
    height: 20px;
    fill: #8b83f3;
    margin-left: 3px;
}

.video-item-desc {
    padding: 12px 14px 14px;
}

.video-item-title {
    font-size: 15px;
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.video-item-sub {
    font-size: 12px;
    color: #8b83f3;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ========== Tab Bar ========== */
.tab-bar {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 420px;
    height: 72px;
    min-height: 44px;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -1px 20px rgba(0,0,0,0.05);
    z-index: 100;
    padding-bottom: env(safe-area-inset-bottom);
    border-top: 1px solid rgba(0,0,0,0.04);
}

.tab-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 11px;
    position: relative;
    min-width: 44px;
    min-height: 44px;
    padding: 4px;
    transition: color var(--transition);
}

.tab-item.active {
    color: var(--primary-start);
    font-weight: 600;
}

.tab-item svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    stroke-width: 1.6;
    fill: none;
    transition: transform 0.2s;
}

.tab-item:active svg { transform: scale(0.85); }

.tab-item.active svg {
    fill: var(--primary-start);
    stroke: none;
    filter: drop-shadow(0 2px 4px rgba(99, 102, 241, 0.25));
}

.tab-item.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 22px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-start), var(--primary-end));
    border-radius: 0 0 3px 3px;
}

.tab-bar.dark {
    background: rgba(0,0,0,0.92);
    box-shadow: none;
    border-top: 1px solid rgba(255,255,255,0.08);
}
.tab-bar.dark .tab-item { color: rgba(255,255,255,0.45); }
.tab-bar.dark .tab-item.active { color: #fff; }
.tab-bar.dark .tab-item.active svg { fill: #fff; stroke: none; }
.tab-bar.dark .tab-item.active::before { background: #fff; }

/* ========== Category Filter ========== */
.category-filter {
    display: flex;
    gap: 8px;
    padding: 12px 16px 6px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.category-filter::-webkit-scrollbar { display: none; }

.category-pill {
    padding: 8px 16px;
    min-height: 44px;
    border-radius: 20px;
    font-size: 13px;
    white-space: nowrap;
    cursor: pointer;
    text-decoration: none;
    color: var(--text-secondary);
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    transition: all var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
}

.category-pill.active {
    background: var(--primary-start);
    color: #fff;
    border-color: var(--primary-start);
    box-shadow: 0 2px 12px rgba(99, 102, 241, 0.3);
}

.category-pill:active:not(.active) {
    background: #eef2ff;
    border-color: var(--primary-start);
    color: var(--primary-start);
}

/* ========== Search Bar ========== */
.search-bar-wrap {
    padding: 10px 16px 12px;
    display: flex;
    gap: 10px;
}

.search-input {
    flex: 1;
    min-width: 0;
    padding: 10px 16px;
    border: 1px solid var(--border-subtle);
    border-radius: 24px;
    font-size: 14px;
    outline: none;
    background: var(--bg-card);
    transition: border-color var(--transition), box-shadow var(--transition);
    min-height: 44px;
}

.search-input:focus {
    border-color: var(--primary-start);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}

.search-btn {
    padding: 10px 22px;
    min-height: 44px;
    background: linear-gradient(135deg, var(--primary-start), var(--primary-end));
    color: #fff;
    border: none;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 12px rgba(99, 102, 241, 0.3);
}

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

/* ========== Video Modal ========== */
.video-modal {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.92);
    z-index: 9999;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.video-modal.show { display: flex; }

.video-box {
    width: 92%;
    max-width: 800px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
}

.video-box video { width: 100%; display: block; }

.close-video {
    position: absolute;
    top: 14px; right: 14px;
    width: 44px; height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(8px);
    color: #fff;
    border: none;
    font-size: 22px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ========== Swipe Player Styles ========== */
.swipe-player {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100vh;
    background: #000;
    overflow: hidden;
    z-index: 9999;
    user-select: none;
    -webkit-user-select: none;
    touch-action: none;
}

.swipe-container {
    width: 100%; height: 100%;
    position: relative;
}

.swipe-item {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

.swipe-item.active {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.touch-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 10;
    touch-action: none;
}

.video-wrapper {
    width: 100%; height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    position: relative;
}

.video-wrapper video,
.video-wrapper iframe {
    width: 100%; height: 100%;
    object-fit: contain;
    pointer-events: none;
}

.swipe-topbar {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 56px;
    display: flex;
    align-items: center;
    padding: 0 12px;
    background: linear-gradient(180deg, rgba(0,0,0,0.65) 0%, transparent 100%);
    z-index: 100;
}

.back-btn {
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(8px);
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    min-width: 44px;
    transition: background 0.2s;
}

.back-btn:active { background: rgba(255,255,255,0.2); }

.action-icon-btn {
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(8px);
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    min-width: 44px;
    transition: background 0.2s;
}

.action-icon-btn:active { background: rgba(255,255,255,0.2); }

.side-actions {
    position: absolute;
    right: 12px;
    bottom: 25vh;
    display: flex;
    flex-direction: column;
    gap: 22px;
    z-index: 100;
}

.side-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    transition: transform 0.15s;
    -webkit-tap-highlight-color: transparent;
}

.side-action-btn:active { transform: scale(0.88); }
.side-action-btn span { font-size: 11px; text-shadow: 0 1px 3px rgba(0,0,0,0.5); }
.side-action-btn svg { filter: drop-shadow(0 2px 6px rgba(0,0,0,0.3)); }

.progress-bar {
    position: absolute;
    bottom: 76px;
    left: 0; right: 0;
    height: 16px;
    display: flex;
    align-items: center;
    padding: 6px 14px;
    z-index: 100;
    cursor: pointer;
    touch-action: none;
}

.progress-bar::before {
    content: '';
    position: absolute;
    left: 12px; right: 12px;
    height: 2.5px;
    background: rgba(255,255,255,0.2);
    border-radius: 2px;
}

.progress-fill {
    position: relative;
    height: 2.5px;
    background: #fff;
    width: 0%;
    border-radius: 2px;
    z-index: 1;
    pointer-events: none;
}

.play-hint {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0;
    color: rgba(255,255,255,0.7);
    pointer-events: none;
    transition: opacity 0.3s, transform 0.3s;
    z-index: 100;
}

.toast-hint {
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #fff;
    padding: 14px 26px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    opacity: 0;
    transition: all 0.3s;
    z-index: 10000;
    pointer-events: none;
}

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

.play-center-btn {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 72px; height: 72px;
    background: rgba(0,0,0,0.45);
    backdrop-filter: blur(8px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
    cursor: pointer;
    transition: opacity 0.3s, transform 0.2s;
    pointer-events: none;
}

.play-center-btn:active { transform: translate(-50%, -50%) scale(0.9); }
.play-center-btn.hidden { opacity: 0; pointer-events: none; }
.play-center-btn svg { color: #fff; pointer-events: auto; cursor: pointer; }

.loading-indicator {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: #fff;
    z-index: 100;
}

.loading-spinner {
    width: 36px; height: 36px;
    border: 3px solid rgba(255,255,255,0.15);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

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

.video-info-overlay {
    position: absolute;
    bottom: 88px; left: 16px;
    right: 72px;
    color: #fff;
    z-index: 50;
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

.video-author {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.author-avatar {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    border: 2px solid rgba(255,255,255,0.3);
}

.author-info h3 {
    font-size: 15px;
    font-weight: 600;
    margin: 0;
}

.author-info p {
    font-size: 12px;
    opacity: 0.7;
    margin: 0;
}

.video-description {
    font-size: 13px;
    line-height: 1.5;
    opacity: 0.85;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ========== Contact Modal ========== */
.contact-modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 10001;
    display: none;
    align-items: center;
    justify-content: center;
}

.contact-modal.active { display: flex; }

.contact-modal-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.contact-modal-content {
    position: relative;
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 28px 24px;
    max-width: 380px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from { opacity: 0; transform: translateY(20px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.contact-modal-close {
    position: absolute;
    top: 12px; right: 12px;
    background: none; border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    min-height: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.contact-modal-close:active { background: #f1f5f9; }

.contact-modal-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 18px 0;
    padding-right: 36px;
    letter-spacing: -0.3px;
}

.contact-modal-body {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    background: var(--primary-light);
    border-radius: var(--radius-md);
    transition: all var(--transition);
}

.contact-item:active {
    background: #e0e7ff;
    transform: translateX(4px);
}

.contact-icon {
    color: var(--primary-start);
    flex-shrink: 0;
}

.contact-info { display: flex; flex-direction: column; gap: 2px; }

.contact-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.contact-value {
    font-size: 14px;
    color: var(--text-primary);
    text-decoration: none;
    word-break: break-all;
    font-weight: 500;
}

.contact-loading {
    text-align: center;
    padding: 30px 20px;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.loading-spinner-small {
    width: 28px; height: 28px;
    border: 3px solid var(--border-subtle);
    border-top-color: var(--primary-start);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

/* ========== Contact Page ========== */
.contact-page {
    min-height: 100vh;
    padding-bottom: 80px;
}

.contact-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 60px 20px 32px;
    text-align: center;
    color: #fff;
    position: relative;
}

.contact-header .back-btn {
    position: absolute;
    top: 48px; left: 16px;
    background: rgba(255,255,255,0.18);
    backdrop-filter: blur(8px);
    border: none;
    color: #fff;
    width: 40px; height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s;
}

.contact-header .back-btn:active { background: rgba(255,255,255,0.3); }

.contact-header h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 6px;
}

.contact-header p {
    font-size: 13px;
    opacity: 0.75;
}

.contact-body { padding: 20px 16px; }

.contact-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: var(--shadow-card);
    text-decoration: none;
    color: inherit;
    transition: transform 0.15s;
}

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

.contact-card-icon {
    width: 48px; height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-card-icon.phone { background: linear-gradient(135deg, #6366f1, #8b5cf6); }
.contact-card-icon.email { background: linear-gradient(135deg, #06b6d4, #3b82f6); }
.contact-card-icon.wechat { background: linear-gradient(135deg, #10b981, #34d399); }

.contact-card-icon svg { width: 24px; height: 24px; fill: #fff; }

.contact-card-info { flex: 1; min-width: 0; }

.contact-card-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 3px;
}

.contact-card-value {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    word-break: break-all;
}

.contact-card-arrow {
    color: var(--text-muted);
    font-size: 20px;
    flex-shrink: 0;
}

.contact-desc {
    margin-top: 20px;
    padding: 18px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
}

.contact-desc h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

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

/* ========== Empty / Loading States ========== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.empty-state svg {
    width: 72px; height: 72px;
    margin-bottom: 16px;
    stroke: #ddd;
    stroke-width: 1;
    fill: none;
}

.empty-state p { font-size: 14px; }

/* ========== Responsive ========== */
@media (max-width: 359px) {
    .header-title { font-size: 18px; }
    .func-card { padding: 16px 14px; }
    .card-text h3 { font-size: 16px; }
    .card-icon { width: 36px; height: 36px; }
    .video-item-thumb { aspect-ratio: 16 / 9; }
    .tab-bar { height: 56px; }
    .tab-item svg { width: 20px; height: 20px; }
    .tab-item { font-size: 10px; }
    .mod-title { font-size: 16px; }
    .nav-icon-box { width: 48px; height: 48px; }
    .nav-icon-box svg { width: 22px; height: 22px; }
}

@media (min-width: 421px) {
    .app-wrap { max-width: 768px; }
    .video-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
        padding: 0 20px 90px;
    }
    .video-item-thumb {
        background-color: #e5e7eb;
        background: var(--bg-thumb, linear-gradient(135deg, #8b83f3 0%, #a78bfa 100%));
    }
    .video-item-thumb .cover-placeholder {
        display: flex;
        width: 100%;
        height: 100%;
        align-items: center;
        justify-content: center;
        font-size: 28px;
        color: #999;
    }
    .card-group { padding: 0 20px; }
    .mod-title { padding: 24px 20px 12px; }
    .search-bar-wrap { padding: 10px 20px 12px; }
    .category-filter { padding: 12px 20px 6px; }
}

@media (min-width: 769px) {
    .app-wrap { max-width: 1024px; }
    .video-list { grid-template-columns: repeat(3, 1fr); }
    .quick-nav { justify-content: center; gap: 28px; }
}

@media (orientation: landscape) and (max-height: 500px) {
    .swipe-info { bottom: 60px; }
    .tab-bar { height: 56px; }
    .video-list { grid-template-columns: repeat(3, 1fr); }
}
