/* ========== 全局变量 ========== */
:root {
    --primary-color: #00d4ff;
    --primary-dark: #0099cc;
    --secondary-color: #ff6b6b;
    --bg-dark: #1a1a2e;
    --bg-darker: #0f0f1e;
    --bg-card: #ffffff;
    --bg-gray: #f5f5f5;
    --bg-gray-dark: #e0e0e0;
    --text-primary: #000000;
    --text-secondary: #666666;
    --text-muted: #999999;
    --border-color: #e8e8e8;
    --success-color: #4caf50;
    --warning-color: #ff9800;
    --danger-color: #f44336;
    --verify-green: #90ee90;
    --vip-blue: #4169E1;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --transition: all 0.3s ease;
    --bottom-panel-height: 200px;
}

/* ========== 重置样式 ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: #000;
    color: var(--text-primary);
    user-select: none;
    -webkit-user-select: none;
}

.hidden {
    display: none !important;
}

/* ========== 启动页 ========== */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-darker) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.splash-screen.fade-out {
    opacity: 0;
    visibility: hidden;
}

.splash-logo {
    text-align: center;
    animation: fadeInUp 0.8s ease;
}

.logo-icon {
    margin-bottom: 20px;
    animation: pulse 2s ease infinite;
}

.splash-title {
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), #7b68ee);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.splash-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.splash-loader {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255,255,255,0.1);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    margin: 0 auto;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.9; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

@keyframes slideInLeft {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

/* ========== 主应用 ========== */
.app {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* ========== 相机容器 ========== */
.camera-container {
    position: relative;
    flex: 1;
    width: 100%;
    background: #000;
    overflow: hidden;
}

#camera-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

#camera-canvas {
    display: none;
}

/* ========== 顶部导航栏 ========== */
.top-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 12px 16px;
    padding-top: max(12px, env(safe-area-inset-top));
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 20;
    background: linear-gradient(to bottom, rgba(0,0,0,0.5), transparent);
}

.top-bar-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition);
}

.top-bar-btn:active {
    transform: scale(0.9);
}

.top-bar-btn svg {
    filter: drop-shadow(0 1px 3px rgba(0,0,0,0.5));
}

.flash-slash {
    position: absolute;
    width: 28px;
    height: 2px;
    background: #fff;
    transform: rotate(-45deg);
    filter: drop-shadow(0 1px 3px rgba(0,0,0,0.5));
}

/* 照片验真按钮 */
.verify-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    background: var(--verify-green);
    border: none;
    border-radius: 20px;
    cursor: pointer;
    flex-shrink: 0;
    transition: var(--transition);
}

.verify-btn:active {
    transform: scale(0.95);
}

.verify-btn span {
    font-size: 13px;
    font-weight: 600;
    color: #000;
}

.top-bar-spacer {
    flex: 1;
}

/* VIP标识 */
.vip-badge {
    font-size: 16px;
    font-weight: 800;
    font-style: italic;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
    letter-spacing: 1px;
    flex-shrink: 0;
}

/* ========== 右侧变焦控制 ========== */
.zoom-controls {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 15;
}

.zoom-item {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1.5px solid rgba(255,255,255,0.4);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.zoom-item.active {
    background: rgba(255,255,255,0.9);
    color: #000;
    border-color: #fff;
}

.zoom-item:active {
    transform: scale(0.9);
}

/* ========== 右下角定位图标 ========== */
.location-indicator {
    position: absolute;
    right: 20px;
    bottom: 200px;
    z-index: 15;
    opacity: 0.8;
    filter: drop-shadow(0 1px 4px rgba(0,0,0,0.5));
}

/* ========== 品牌防伪水印层（右下角） ========== */
.brand-overlay {
    position: absolute;
    bottom: 20px;
    right: 20px;
    pointer-events: none;
    z-index: 10;
    text-align: right;
    opacity: 0.9;
}

.brand-overlay .brand-name {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 1px 6px rgba(0,0,0,0.7), 0 0 2px rgba(0,0,0,0.5);
    line-height: 1.2;
    letter-spacing: 1px;
}

.brand-overlay .brand-subtitle {
    font-size: 11px;
    font-weight: 400;
    color: rgba(255,255,255,0.85);
    text-shadow: 0 1px 4px rgba(0,0,0,0.7);
    margin-top: 1px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
}

/* 蓝色"真实可验"徽章 - 匹配参考图 */
.brand-overlay .brand-verify-badge {
    display: inline-block;
    background: #4A90D9;
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 3px;
    line-height: 1.4;
    letter-spacing: 0.5px;
    text-shadow: none;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.brand-overlay .brand-antifake {
    font-size: 10px;
    color: rgba(255,255,255,0.7);
    text-shadow: 0 1px 4px rgba(0,0,0,0.7);
    margin-top: 2px;
    font-family: 'Courier New', monospace;
    letter-spacing: 0.5px;
}

.brand-overlay .brand-antifake .antifake-label {
    color: rgba(255,215,0,0.85);
    font-weight: 600;
}

/* ========== 水印预览层 ========== */
.watermark-overlay {
    position: absolute;
    pointer-events: none;
    z-index: 10;
}

/* 水印 - 经典模板（匹配截图样式） */
.watermark-overlay.template-default {
    bottom: 20px;
    left: 20px;
    max-width: 70%;
}

.watermark-overlay.template-default .wm-main {
    display: flex;
    align-items: center;
    gap: 8px;
}

.watermark-overlay.template-default .wm-time {
    font-size: 38px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.7), 0 0 2px rgba(0,0,0,0.5);
    line-height: 1;
}

.watermark-overlay.template-default .wm-divider {
    width: 1px;
    height: 28px;
    background: #FFD700;
    box-shadow: 0 0 4px rgba(255,215,0,0.5);
}

.watermark-overlay.template-default .wm-date {
    font-size: 15px;
    color: #fff;
    text-shadow: 0 1px 4px rgba(0,0,0,0.7);
    line-height: 1.3;
}

.watermark-overlay.template-default .wm-weather {
    font-size: 13px;
    color: rgba(255,255,255,0.9);
    text-shadow: 0 1px 4px rgba(0,0,0,0.7);
    margin-top: 4px;
}

.watermark-overlay.template-default .wm-location {
    font-size: 11px;
    color: rgba(255,255,255,0.75);
    text-shadow: 0 1px 4px rgba(0,0,0,0.7);
    margin-top: 1px;
    display: flex;
    align-items: center;
    gap: 3px;
}

.watermark-overlay.template-default .wm-text {
    font-size: 12px;
    color: rgba(255,255,255,0.8);
    text-shadow: 0 1px 4px rgba(0,0,0,0.7);
    margin-top: 2px;
}

/* 水印 - 简约模板 */
.watermark-overlay.template-simple {
    bottom: 20px;
    right: 20px;
    text-align: right;
}

.watermark-overlay.template-simple .wm-time {
    font-size: 34px;
    font-weight: 300;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.7);
}

.watermark-overlay.template-simple .wm-date {
    font-size: 14px;
    color: rgba(255,255,255,0.8);
    text-shadow: 0 1px 4px rgba(0,0,0,0.7);
    margin-top: 2px;
}

.watermark-overlay.template-simple .wm-location,
.watermark-overlay.template-simple .wm-weather {
    display: none;
}

.watermark-overlay.template-simple .wm-text {
    font-size: 12px;
    color: rgba(255,255,255,0.7);
    text-shadow: 0 1px 4px rgba(0,0,0,0.7);
    margin-top: 4px;
}

/* 水印 - 现代模板 */
.watermark-overlay.template-modern {
    bottom: 20px;
    left: 20px;
}

.watermark-overlay.template-modern .wm-badge {
    display: inline-block;
    background: var(--primary-color);
    color: #000;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    margin-bottom: 6px;
}

.watermark-overlay.template-modern .wm-time {
    font-size: 30px;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.7);
    line-height: 1;
}

.watermark-overlay.template-modern .wm-date {
    font-size: 13px;
    color: rgba(255,255,255,0.8);
    text-shadow: 0 1px 4px rgba(0,0,0,0.7);
    margin-top: 2px;
}

.watermark-overlay.template-modern .wm-weather {
    font-size: 12px;
    color: rgba(255,255,255,0.7);
    text-shadow: 0 1px 4px rgba(0,0,0,0.7);
    margin-top: 2px;
}

.watermark-overlay.template-modern .wm-location {
    font-size: 13px;
    color: var(--primary-color);
    text-shadow: 0 1px 4px rgba(0,0,0,0.7);
    margin-top: 4px;
    font-weight: 500;
}

.watermark-overlay.template-modern .wm-text {
    font-size: 12px;
    color: rgba(255,255,255,0.7);
    text-shadow: 0 1px 4px rgba(0,0,0,0.7);
    margin-top: 2px;
}

/* 水印 - 专业模板 */
.watermark-overlay.template-professional {
    bottom: 20px;
    left: 20px;
    right: 20px;
    border-left: 3px solid var(--primary-color);
    padding-left: 12px;
}

.watermark-overlay.template-professional .wm-time {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    text-shadow: 0 1px 4px rgba(0,0,0,0.7);
}

.watermark-overlay.template-professional .wm-date {
    display: none;
}

.watermark-overlay.template-professional .wm-weather {
    font-size: 13px;
    color: rgba(255,255,255,0.8);
    text-shadow: 0 1px 4px rgba(0,0,0,0.7);
    margin-top: 3px;
}

.watermark-overlay.template-professional .wm-location {
    font-size: 13px;
    color: rgba(255,255,255,0.9);
    text-shadow: 0 1px 4px rgba(0,0,0,0.7);
    margin-top: 4px;
}

.watermark-overlay.template-professional .wm-text {
    font-size: 12px;
    color: var(--primary-color);
    text-shadow: 0 1px 4px rgba(0,0,0,0.7);
    margin-top: 4px;
    font-weight: 500;
}

/* ========== 底部控制面板 ========== */
.bottom-panel {
    background: #fff;
    padding-bottom: env(safe-area-inset-bottom);
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    flex-shrink: 0;
}

/* 快捷操作条 */
.quick-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 20px;
    border-bottom: 1px solid var(--border-color);
}

.quick-left {
    font-size: 13px;
    color: var(--text-muted);
    cursor: pointer;
}

.quick-right {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: var(--text-primary);
    cursor: pointer;
}

.quick-right svg {
    color: var(--text-primary);
}

/* 核心拍摄控制区 */
.capture-area {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 16px 20px 8px;
}

.gallery-btn {
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: var(--transition);
}

.gallery-btn:active {
    transform: scale(0.9);
}

.gallery-thumbnail {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: var(--bg-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.gallery-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 拍照按钮 - 甜甜圈样式 */
.capture-btn {
    width: 72px;
    height: 72px;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    position: relative;
}

.capture-btn:active {
    transform: scale(0.9);
}

.capture-btn-outer {
    position: absolute;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: 5px solid #000;
    box-sizing: border-box;
}

.capture-btn-inner {
    position: absolute;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #fff;
    transition: var(--transition);
}

.capture-btn:active .capture-btn-inner {
    background: #ccc;
    transform: scale(0.9);
}

/* 水印按钮 */
.watermark-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: var(--transition);
}

.watermark-btn:active {
    transform: scale(0.9);
}

.watermark-btn span {
    font-size: 11px;
    color: var(--text-secondary);
}

/* 模式切换标签 */
.mode-tabs {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 8px 20px 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.mode-tabs::-webkit-scrollbar {
    display: none;
}

.mode-tab {
    font-size: 13px;
    color: var(--text-muted);
    white-space: nowrap;
    cursor: pointer;
    position: relative;
    padding: 2px 0;
    transition: var(--transition);
}

.mode-tab.active {
    color: var(--text-primary);
    font-weight: 700;
}

.mode-tab.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--text-primary);
}

/* ========== 设置面板 ========== */
.settings-panel {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    max-height: 85vh;
    background: var(--bg-card);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    z-index: 100;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
    -webkit-overflow-scrolling: touch;
}

.settings-handle {
    width: 36px;
    height: 4px;
    background: var(--bg-gray-dark);
    border-radius: 2px;
    margin: 8px auto 0;
}

.settings-header {
    position: sticky;
    top: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    z-index: 1;
}

.settings-header h2 {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-primary);
}

.close-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 28px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.settings-content {
    padding: 20px;
    padding-bottom: 40px;
}

.settings-section {
    margin-bottom: 24px;
}

.settings-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

/* 开关组件 */
.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #ddd;
    transition: var(--transition);
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background: #fff;
    transition: var(--transition);
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.switch input:checked + .slider {
    background: var(--primary-color);
}

.switch input:checked + .slider:before {
    transform: translateX(20px);
}

.sub-settings {
    padding: 12px 0;
    animation: fadeIn 0.3s ease;
}

.input-group {
    margin-bottom: 12px;
}

.input-group label {
    display: block;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.input-group input,
.input-group select {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg-gray);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
    transition: var(--transition);
}

.input-group input:focus,
.input-group select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 212, 255, 0.1);
}

.input-group input::placeholder {
    color: var(--text-muted);
}

.action-btn {
    width: 100%;
    padding: 12px;
    background: var(--primary-color);
    color: #000;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 4px;
}

.action-btn:active {
    transform: scale(0.98);
    background: var(--primary-dark);
}

.location-status {
    margin-top: 8px;
    font-size: 12px;
    color: var(--text-secondary);
    text-align: center;
}

/* ========== 天气模式切换 ========== */
.weather-mode-tabs {
    display: flex;
    background: var(--bg-gray);
    border-radius: var(--radius-sm);
    padding: 3px;
    margin-bottom: 12px;
}

.weather-mode-tab {
    flex: 1;
    padding: 8px 12px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
}

.weather-mode-tab.active {
    background: #fff;
    color: var(--text-primary);
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* 自动天气面板 */
.weather-auto-panel {
    background: linear-gradient(135deg, #e3f2fd 0%, #f5f5f5 100%);
    border-radius: var(--radius-sm);
    padding: 14px;
}

.weather-auto-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.weather-auto-icon {
    font-size: 32px;
    line-height: 1;
    flex-shrink: 0;
}

.weather-auto-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.weather-auto-desc {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.weather-auto-detail {
    font-size: 11px;
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.weather-refresh-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 12px;
    font-size: 13px;
    margin-top: 0;
}

.weather-refresh-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 手动天气面板 */
.weather-manual-panel {
    /* 使用默认sub-settings样式 */
}

/* 天气详情行 */
.antifake-weather-detail {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 4px 0;
}

.antifake-weather-detail span {
    background: rgba(0, 212, 255, 0.1);
    color: var(--primary-dark);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
}

.location-status.success { color: var(--success-color); }
.location-status.error { color: var(--danger-color); }
.location-status.loading { color: var(--primary-color); }

/* 模板选择网格 */
.template-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.template-item {
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 8px;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.template-item.active {
    border-color: var(--primary-color);
    box-shadow: 0 0 12px rgba(0, 212, 255, 0.2);
}

.template-item:active {
    transform: scale(0.97);
}

.template-preview {
    height: 90px;
    background: linear-gradient(135deg, #2a2a4a, #1a1a2e);
    border-radius: var(--radius-sm);
    padding: 8px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    margin-bottom: 6px;
    overflow: hidden;
}

.template-item span {
    font-size: 12px;
    color: var(--text-secondary);
}

.template-item.active span {
    color: var(--primary-color);
}

.tp-time {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
}

.tp-date {
    font-size: 10px;
    color: rgba(255,255,255,0.7);
}

.tp-weather {
    font-size: 9px;
    color: rgba(255,255,255,0.6);
}

.tp-loc {
    font-size: 9px;
    color: rgba(255,255,255,0.6);
}

.tp-badge {
    display: inline-block;
    background: var(--primary-color);
    color: #000;
    font-size: 8px;
    font-weight: 700;
    padding: 1px 4px;
    border-radius: 2px;
    width: fit-content;
    margin-bottom: 2px;
}

.tp-note {
    font-size: 9px;
    color: var(--primary-color);
}

/* 样式选项 */
.style-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.style-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.style-option label {
    font-size: 14px;
    color: var(--text-secondary);
}

.style-option select {
    padding: 6px 12px;
    background: var(--bg-gray);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 13px;
    outline: none;
}

.range-slider {
    width: 120px;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: var(--bg-gray-dark);
    border-radius: 2px;
    outline: none;
}

.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
}

/* ========== 预览模态框 ========== */
.preview-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 200;
    display: flex;
    flex-direction: column;
    animation: fadeIn 0.3s ease;
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    padding-top: max(12px, env(safe-area-inset-top));
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(10px);
    z-index: 1;
}

.preview-header h2 {
    font-size: 17px;
    font-weight: 500;
    color: #fff;
}

.control-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.save-btn {
    padding: 6px 20px;
    background: var(--primary-color);
    color: #000;
    border: none;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.save-btn:active {
    transform: scale(0.95);
}

.preview-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#preview-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.preview-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 16px 20px;
    padding-bottom: max(16px, env(safe-area-inset-bottom));
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(10px);
}

.action-btn-secondary {
    padding: 10px 30px;
    background: rgba(255,255,255,0.15);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
}

.action-btn-secondary:active {
    transform: scale(0.95);
    background: rgba(255,255,255,0.25);
}

/* ========== 相册模态框 ========== */
.gallery-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #f5f5f5;
    z-index: 200;
    display: flex;
    flex-direction: column;
    animation: fadeIn 0.3s ease;
}

.gallery-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    padding-top: max(12px, env(safe-area-inset-top));
    background: #fff;
    border-bottom: 1px solid var(--border-color);
}

.gallery-header h2 {
    font-size: 17px;
    font-weight: 500;
    color: var(--text-primary);
}

.gallery-header .control-btn {
    color: var(--text-primary);
}

.clear-btn {
    padding: 6px 16px;
    background: transparent;
    color: var(--danger-color);
    border: 1px solid var(--danger-color);
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    transition: var(--transition);
}

.clear-btn:active {
    background: rgba(244, 67, 54, 0.1);
}

.gallery-content {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
    -webkit-overflow-scrolling: touch;
}

.gallery-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-muted);
}

.gallery-empty p {
    margin-top: 12px;
    font-size: 14px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.gallery-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    background: #ddd;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-item .delete-icon {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 24px;
    height: 24px;
    background: rgba(0,0,0,0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:active .delete-icon {
    opacity: 1;
}

.gallery-antifake-badge {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 3px 6px;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    color: #90ee90;
    font-size: 9px;
    font-family: 'Courier New', monospace;
    text-align: center;
    pointer-events: none;
}

/* ========== 侧边菜单 ========== */
.side-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 300;
}

.side-menu-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    animation: fadeIn 0.3s ease;
}

.side-menu-panel {
    position: absolute;
    top: 0;
    left: 0;
    width: 75%;
    max-width: 320px;
    height: 100%;
    background: #fff;
    display: flex;
    flex-direction: column;
    animation: slideInLeft 0.3s ease;
}

.side-menu-header {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    padding: 40px 20px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.side-menu-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.side-menu-info {
    flex: 1;
}

.side-menu-name {
    font-size: 16px;
    color: #fff;
    font-weight: 500;
    margin-bottom: 4px;
}

.side-menu-vip {
    font-size: 12px;
    color: rgba(255,255,255,0.6);
}

.side-menu-list {
    flex: 1;
    padding: 12px 0;
}

.side-menu-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-primary);
}

.side-menu-item:active {
    background: var(--bg-gray);
}

.side-menu-item svg {
    color: var(--text-secondary);
    flex-shrink: 0;
}

.side-menu-item span {
    font-size: 15px;
}

.side-menu-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--border-color);
}

.side-menu-footer p {
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
}

/* ========== Toast ========== */
.toast {
    position: fixed;
    bottom: 230px;
    left: 50%;
    transform: translateX(-50%);
    padding: 10px 24px;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(10px);
    color: #fff;
    font-size: 14px;
    border-radius: 24px;
    z-index: 1000;
    white-space: nowrap;
    animation: toastShow 0.3s ease;
}

@keyframes toastShow {
    from { opacity: 0; transform: translateX(-50%) translateY(10px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.toast.fade-out {
    opacity: 0;
    transform: translateX(-50%) translateY(10px);
    transition: all 0.3s ease;
}

/* ========== 预览防伪信息 ========== */
.preview-antifake-info {
    padding: 12px 20px;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(10px);
}

.preview-antifake-info:empty {
    display: none;
}

.antifake-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.antifake-row .antifake-icon {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--verify-green);
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
}

.antifake-row .antifake-label {
    font-size: 13px;
    color: var(--verify-green);
    font-weight: 600;
}

.antifake-row .antifake-code {
    font-size: 13px;
    color: #fff;
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
    background: rgba(255,255,255,0.1);
    padding: 2px 8px;
    border-radius: 4px;
}

.antifake-detail {
    font-size: 12px;
    color: rgba(255,255,255,0.7);
    margin-top: 4px;
}

/* ========== 防伪设置 ========== */
.antifake-settings {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.antifake-toggle-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    background: var(--bg-gray);
    border-radius: var(--radius-sm);
}

.antifake-toggle-info {
    flex: 1;
    margin-right: 12px;
}

.antifake-toggle-title {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.antifake-toggle-desc {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.4;
}

.antifake-code-preview {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: linear-gradient(135deg, #f0f8ff, #e6f7ff);
    border: 1px solid #d0e8ff;
    border-radius: var(--radius-sm);
}

.antifake-code-label {
    font-size: 13px;
    color: var(--text-secondary);
}

.antifake-code-value {
    font-size: 15px;
    font-weight: 700;
    color: #1890ff;
    font-family: 'Courier New', monospace;
    letter-spacing: 1.5px;
}

/* ========== 照片验真模态框 ========== */
.verify-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(6px);
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.verify-modal-content {
    width: 90%;
    max-width: 380px;
    max-height: 85vh;
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: fadeInUp 0.3s ease;
}

.verify-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
}

.verify-modal-header h2 {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-primary);
}

.verify-modal-body {
    padding: 20px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.verify-intro {
    text-align: center;
    margin-bottom: 20px;
}

.verify-intro-icon {
    margin-bottom: 12px;
    display: flex;
    justify-content: center;
}

.verify-intro p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.verify-intro .verify-hint {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 6px;
}

.verify-input-area {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.verify-input-area input {
    flex: 1;
    padding: 12px 16px;
    background: var(--bg-gray);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-family: 'Courier New', monospace;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-primary);
    outline: none;
    transition: var(--transition);
    text-align: center;
}

.verify-input-area input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

.verify-btn-action {
    padding: 12px 20px;
    background: var(--primary-color);
    color: #000;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    flex-shrink: 0;
}

.verify-btn-action:active {
    transform: scale(0.95);
    background: var(--primary-dark);
}

.verify-result {
    margin-bottom: 16px;
}

.verify-result:empty {
    display: none;
}

.verify-result-card {
    border-radius: var(--radius-md);
    padding: 20px;
    text-align: center;
    animation: fadeInUp 0.3s ease;
}

.verify-result-card.verify-success {
    background: linear-gradient(135deg, #f0fff0, #e6ffe6);
    border: 1px solid #90ee90;
}

.verify-result-card.verify-error {
    background: linear-gradient(135deg, #fff0f0, #ffe6e6);
    border: 1px solid #ffb3b3;
}

.verify-result-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    margin: 0 auto 12px;
}

.verify-success .verify-result-icon {
    background: #4caf50;
    color: #fff;
}

.verify-error .verify-result-icon {
    background: #f44336;
    color: #fff;
}

.verify-result-title {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 12px;
}

.verify-success .verify-result-title {
    color: #2e7d32;
}

.verify-error .verify-result-title {
    color: #c62828;
}

.verify-result-detail {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    text-align: left;
}

.verify-detail-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px dashed rgba(0,0,0,0.08);
}

.verify-detail-row:last-child {
    border-bottom: none;
}

.verify-detail-label {
    color: var(--text-muted);
    flex-shrink: 0;
}

.verify-detail-value {
    color: var(--text-primary);
    font-weight: 500;
    text-align: right;
    word-break: break-all;
}

.verify-photo-thumb {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

.verify-photo-thumb img {
    width: 100%;
    display: block;
}

.verify-photo-thumb.hidden {
    display: none;
}

/* ========== 关于页面模态框 ========== */
.about-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(6px);
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.about-modal-content {
    width: 90%;
    max-width: 380px;
    max-height: 85vh;
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: fadeInUp 0.3s ease;
}

.about-modal-header {
    display: flex;
    justify-content: flex-end;
    padding: 12px 16px;
}

.about-modal-header .close-btn {
    width: 32px;
    height: 32px;
}

.about-body {
    padding: 0 24px 28px;
    text-align: center;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.about-logo {
    margin-bottom: 12px;
}

.about-app-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.about-version {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.about-slogan {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
    text-align: left;
}

.about-feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: var(--bg-gray);
    border-radius: var(--radius-sm);
}

.about-feature-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.about-feature-item span:last-child {
    font-size: 14px;
    color: var(--text-primary);
}

.about-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.about-link {
    font-size: 13px;
    color: var(--primary-color);
    cursor: pointer;
    padding: 4px 8px;
}

.about-link:active {
    opacity: 0.6;
}

.about-copyright {
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ========== 登录/注册模态框 ========== */
.login-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(6px);
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.login-modal-content {
    width: 90%;
    max-width: 380px;
    max-height: 85vh;
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: fadeInUp 0.3s ease;
}

.login-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
}

.login-modal-header h2 {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-primary);
}

.login-body {
    padding: 20px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.login-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
}

.login-tab {
    flex: 1;
    text-align: center;
    padding: 10px 0;
    font-size: 15px;
    color: var(--text-muted);
    cursor: pointer;
    position: relative;
    transition: var(--transition);
}

.login-tab.active {
    color: var(--text-primary);
    font-weight: 600;
}

.login-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 20%;
    right: 20%;
    height: 2px;
    background: var(--primary-color);
    border-radius: 1px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.login-input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.login-input-group label {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

.login-input-group input {
    padding: 12px 16px;
    background: var(--bg-gray);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 15px;
    color: var(--text-primary);
    outline: none;
    transition: var(--transition);
}

.login-input-group input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

.login-submit-btn {
    margin-top: 8px;
    padding: 14px;
    background: var(--primary-color);
    color: #000;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.login-submit-btn:active {
    transform: scale(0.98);
    background: var(--primary-dark);
}

.login-hint {
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
    margin-top: 4px;
    line-height: 1.5;
}

/* ========== VIP会员模态框 ========== */
.vip-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(6px);
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.vip-modal-content {
    width: 90%;
    max-width: 400px;
    max-height: 90vh;
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: fadeInUp 0.3s ease;
}

.vip-modal-header {
    display: flex;
    justify-content: flex-end;
    padding: 12px 16px;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
}

.vip-modal-header .close-btn {
    color: rgba(255,255,255,0.8);
}

.vip-body {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 24px;
}

.vip-hero {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    text-align: center;
    padding: 0 24px 24px;
}

.vip-crown {
    font-size: 40px;
    margin-bottom: 8px;
}

.vip-hero h2 {
    font-size: 20px;
    font-weight: 700;
    color: #FFD700;
    margin-bottom: 6px;
}

.vip-hero p {
    font-size: 13px;
    color: rgba(255,255,255,0.7);
}

.vip-benefits {
    padding: 20px 20px 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.vip-benefit-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: var(--bg-gray);
    border-radius: var(--radius-sm);
}

.vip-benefit-icon {
    font-size: 22px;
    flex-shrink: 0;
}

.vip-benefit-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.vip-benefit-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.vip-benefit-desc {
    font-size: 12px;
    color: var(--text-muted);
}

.vip-plans {
    display: flex;
    gap: 10px;
    padding: 0 20px 20px;
}

.vip-plan {
    flex: 1;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 14px 8px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.vip-plan:active {
    transform: scale(0.97);
}

.vip-plan.selected {
    border-color: var(--primary-color);
    background: rgba(0, 212, 255, 0.05);
    box-shadow: 0 0 12px rgba(0, 212, 255, 0.15);
}

.vip-plan.popular {
    border-color: #FFD700;
}

.vip-plan-badge {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    background: #FFD700;
    color: #000;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 10px;
    white-space: nowrap;
}

.vip-plan-badge:empty {
    display: none;
}

.vip-plan-name {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.vip-plan-price {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
}

.vip-plan-price span {
    font-size: 11px;
    font-weight: 400;
    color: var(--text-muted);
}

.vip-plan-desc {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
}

.vip-subscribe-btn {
    margin: 0 20px;
    padding: 14px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #000;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.vip-subscribe-btn:active {
    transform: scale(0.98);
    opacity: 0.9;
}

/* ========== 团队管理模态框 ========== */
.team-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(6px);
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.team-modal-content {
    width: 90%;
    max-width: 400px;
    max-height: 85vh;
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: fadeInUp 0.3s ease;
}

.team-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
}

.team-modal-header h2 {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-primary);
}

.team-body {
    padding: 24px 20px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.team-no-team {
    text-align: center;
}

.team-empty-icon {
    margin-bottom: 16px;
    display: flex;
    justify-content: center;
}

.team-empty-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.team-empty-desc {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.team-action-btn {
    width: 100%;
    padding: 13px;
    background: var(--primary-color);
    color: #000;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: 10px;
}

.team-action-btn:active {
    transform: scale(0.98);
    background: var(--primary-dark);
}

.team-action-btn-secondary {
    width: 100%;
    padding: 13px;
    background: transparent;
    color: var(--text-primary);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.team-action-btn-secondary:active {
    background: var(--bg-gray);
}

.team-form {
    animation: fadeIn 0.3s ease;
}

.team-form-input {
    margin-bottom: 14px;
}

.team-form-input label {
    display: block;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.team-form-input input {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-gray);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 15px;
    color: var(--text-primary);
    outline: none;
    transition: var(--transition);
}

.team-form-input input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

.team-info {
    animation: fadeIn 0.3s ease;
}

.team-info-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.team-info-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary-color);
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    flex-shrink: 0;
}

.team-info-detail {
    flex: 1;
}

.team-info-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.team-info-desc {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

.team-invite-code {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 14px;
    background: var(--bg-gray);
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
}

.team-code-label {
    font-size: 13px;
    color: var(--text-secondary);
}

.team-code-value {
    flex: 1;
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-color);
    font-family: 'Courier New', monospace;
    letter-spacing: 2px;
}

.team-copy-btn {
    padding: 4px 12px;
    background: var(--primary-color);
    color: #000;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.team-stats {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.team-stat {
    flex: 1;
    text-align: center;
    padding: 14px;
    background: var(--bg-gray);
    border-radius: var(--radius-sm);
}

.team-stat-num {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
}

.team-stat-label {
    font-size: 12px;
    color: var(--text-muted);
}

.team-leave-btn {
    width: 100%;
    padding: 12px;
    background: transparent;
    color: var(--danger-color);
    border: 1px solid var(--danger-color);
    border-radius: var(--radius-sm);
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
}

.team-leave-btn:active {
    background: rgba(244, 67, 54, 0.08);
}

/* ========== 拼图模式模态框 ========== */
.collage-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #f5f5f5;
    z-index: 200;
    display: flex;
    flex-direction: column;
    animation: fadeIn 0.3s ease;
}

.collage-modal-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.collage-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    padding-top: max(12px, env(safe-area-inset-top));
    background: #fff;
    border-bottom: 1px solid var(--border-color);
}

.collage-modal-header h2 {
    font-size: 17px;
    font-weight: 500;
    color: var(--text-primary);
}

.collage-modal-header .close-btn {
    color: var(--text-primary);
}

.collage-export-btn {
    padding: 6px 16px;
    background: var(--primary-color);
    color: #000;
    border: none;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.collage-export-btn:active {
    transform: scale(0.95);
}

.collage-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    -webkit-overflow-scrolling: touch;
}

.collage-layout-selector {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}

.collage-layout-item {
    flex: 1;
    text-align: center;
    padding: 8px;
    background: #fff;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}

.collage-layout-item.active {
    border-color: var(--primary-color);
    color: var(--primary-color);
    font-weight: 600;
}

.collage-preview {
    background: #fff;
    border-radius: var(--radius-md);
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 16px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.06);
}

.collage-placeholder {
    color: var(--text-muted);
    font-size: 14px;
}

.collage-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    width: 100%;
    height: 100%;
    min-height: 300px;
}

.collage-slot {
    position: relative;
    flex: 1;
    min-height: 140px;
    background: var(--bg-gray);
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.collage-slot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.collage-slot-empty {
    color: var(--text-muted);
    font-size: 12px;
}

.collage-slot-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 22px;
    height: 22px;
    background: rgba(0,0,0,0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
}

.collage-actions {
    display: flex;
    justify-content: center;
}

.collage-add-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 24px;
    background: var(--primary-color);
    color: #000;
    border: none;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.collage-add-btn:active {
    transform: scale(0.96);
}

/* ========== 汇报模式模态框 ========== */
.report-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #f5f5f5;
    z-index: 200;
    display: flex;
    flex-direction: column;
    animation: fadeIn 0.3s ease;
}

.report-modal-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.report-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    padding-top: max(12px, env(safe-area-inset-top));
    background: #fff;
    border-bottom: 1px solid var(--border-color);
}

.report-modal-header h2 {
    font-size: 17px;
    font-weight: 500;
    color: var(--text-primary);
}

.report-modal-header .close-btn {
    color: var(--text-primary);
}

.report-export-btn {
    padding: 6px 16px;
    background: var(--primary-color);
    color: #000;
    border: none;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.report-export-btn:active {
    transform: scale(0.95);
}

.report-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    -webkit-overflow-scrolling: touch;
}

.report-form {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.06);
}

.report-input-group {
    margin-bottom: 14px;
}

.report-input-group:last-child {
    margin-bottom: 0;
}

.report-input-group label {
    display: block;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.report-input-group input,
.report-input-group textarea {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg-gray);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--text-primary);
    outline: none;
    transition: var(--transition);
    font-family: inherit;
    resize: none;
}

.report-input-group input:focus,
.report-input-group textarea:focus {
    border-color: var(--primary-color);
}

.report-photos-section {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.06);
}

.report-photos-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.report-photos-header span {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.report-add-btn {
    padding: 6px 14px;
    background: var(--primary-color);
    color: #000;
    border: none;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.report-photos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    min-height: 60px;
}

.report-photos-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 20px;
    color: var(--text-muted);
    font-size: 13px;
}

.report-photo-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
}

.report-photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.report-photo-item.selected::after {
    content: '✓';
    position: absolute;
    top: 4px;
    right: 4px;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
}

.report-photo-remove {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 20px;
    height: 20px;
    background: rgba(244,67,54,0.9);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    cursor: pointer;
}

.report-preview-section {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 16px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.06);
}

.report-preview-label {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.report-canvas {
    width: 100%;
    border-radius: var(--radius-sm);
    background: #fff;
}

/* ========== 响应式 ========== */
@media (max-width: 375px) {
    .watermark-overlay.template-default .wm-time {
        font-size: 30px;
    }
    
    .watermark-overlay.template-simple .wm-time {
        font-size: 26px;
    }
    
    .watermark-overlay.template-modern .wm-time {
        font-size: 24px;
    }
    
    .top-bar {
        gap: 8px;
        padding: 10px 12px;
    }
    
    .verify-btn span {
        font-size: 12px;
    }
    
    .mode-tabs {
        gap: 14px;
    }
    
    .mode-tab {
        font-size: 12px;
    }
}

/* ========== 滚动条 ========== */
::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--bg-gray-dark);
    border-radius: 2px;
}
