/* ==============================================================
   AutrePerso — Apple 官网风格
   核心原则：极简、留白、克制、精致
   ============================================================== */

:root {
    --apple-blue: #0071e3;
    --apple-blue-hover: #0077ed;
    --apple-black: #1d1d1f;
    --apple-gray: #86868b;
    --apple-light-gray: #f5f5f7;
    --apple-border-gray: #e5e5ea;
    --apple-text-secondary: #6e6e73;
    --apple-red: #ff3b30;
    --apple-green: #34c759;
    --apple-yellow: #ffcc00;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display",
                 "SF Pro Text", "PingFang SC", "Microsoft YaHei", sans-serif;
    background: #ffffff;
    color: var(--apple-black);
    line-height: 1.47;
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    letter-spacing: -0.01em;
}

/* ------------------ 顶部导航栏（Apple 极简风格） ------------------ */
.apple-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: background 0.3s, box-shadow 0.3s;
}

.apple-nav.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.apple-nav-inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 44px;
}

.apple-logo {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--apple-black);
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: -0.01em;
}

.apple-logo .ap-mark {
    width: 18px;
    height: 18px;
}

.apple-nav-links {
    display: flex;
    list-style: none;
    gap: 28px;
    margin: 0;
    padding: 0;
}

.apple-nav-links li a {
    color: var(--apple-black);
    text-decoration: none;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: -0.01em;
    opacity: 0.85;
    transition: opacity 0.2s;
}

.apple-nav-links li a:hover {
    opacity: 1;
}

.apple-nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.apple-nav-btn {
    padding: 6px 12px;
    border: none;
    background: transparent;
    color: var(--apple-black);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 6px;
    transition: background 0.2s;
    font-family: inherit;
    letter-spacing: -0.01em;
}

.apple-nav-btn:hover {
    background: rgba(0, 0, 0, 0.06);
}

.apple-nav-btn-primary {
    background: var(--apple-blue);
    color: #fff;
    padding: 6px 16px;
    border-radius: 999px;
}

.apple-nav-btn-primary:hover {
    background: var(--apple-blue-hover);
}

.apple-nav-cta {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.04);
    color: var(--apple-black);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    letter-spacing: -0.01em;
    transition: background 0.2s, color 0.2s;
}

.apple-nav-cta:hover {
    background: rgba(0, 0, 0, 0.08);
    color: var(--apple-black);
    text-decoration: none;
}

/* ------------------ Hero 区域（苹果官网风格） ------------------ */
.apple-hero {
    padding: 120px 22px 80px;
    text-align: center;
    background: #fff;
}

.apple-hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.apple-hero-title {
    font-size: 72px;
    font-weight: 700;
    color: var(--apple-black);
    margin: 0;
    line-height: 1.05;
    letter-spacing: -0.02em;
}

.apple-hero-subtitle {
    display: block;
    font-size: 32px;
    font-weight: 400;
    color: var(--apple-gray);
    margin-top: 12px;
    letter-spacing: -0.01em;
}

.apple-hero-description {
    font-size: 19px;
    color: var(--apple-text-secondary);
    margin: 28px auto 40px;
    line-height: 1.56;
    max-width: 720px;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
}

.apple-hero-buttons {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.apple-hero-visual {
    margin-top: 60px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.apple-demo-card {
    background: #fff;
    border-radius: 32px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    max-width: 560px;
    margin: 0 auto;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.apple-demo-card-header {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    background: #f5f5f7;
}

.apple-demo-card-header span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #c7c7cc;
}

.apple-demo-card-header span:first-child { background: #ff453a; }
.apple-demo-card-header span:nth-child(2) { background: #ffd60a; }

.apple-demo-card-body {
    padding: 32px;
    background: linear-gradient(180deg, #fafafa 0%, #ffffff 100%);
}

.apple-demo-card-body svg {
    width: 100%;
    height: auto;
}

.apple-demo-card-footer {
    padding: 12px 16px;
    background: #f5f5f7;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--apple-gray);
    letter-spacing: -0.01em;
}

.apple-demo-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #34c759;
}

/* ------------------ 按钮（Apple 风格） ------------------ */
.apple-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 32px;
    border-radius: 999px;
    font-size: 17px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    font-family: inherit;
    border: none;
    cursor: pointer;
    letter-spacing: -0.01em;
}

.apple-btn-primary {
    background: var(--apple-blue);
    color: #fff;
}

.apple-btn-primary:hover {
    background: var(--apple-blue-hover);
}

.apple-btn-secondary {
    background: var(--apple-light-gray);
    color: var(--apple-black);
}

.apple-btn-secondary:hover {
    background: #e8e8ed;
}

.apple-btn-link {
    background: transparent;
    color: var(--apple-blue);
    padding: 12px 0;
    font-size: 21px;
    font-weight: 400;
}

.apple-btn-link:hover {
    text-decoration: underline;
}

.apple-btn-sm {
    font-size: 14px;
    padding: 8px 16px;
}

/* ------------------ 产品卡片（苹果官网风格） ------------------ */
.apple-product-card {
    padding: 100px 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 80px;
    flex-wrap: wrap;
}

.apple-card-dark {
    background: var(--apple-black);
    color: #fff;
}

.apple-card-light {
    background: #fff;
    color: var(--apple-black);
}

.apple-card-content {
    max-width: 520px;
    text-align: center;
    order: 1;
}

.apple-card-image {
    max-width: 560px;
    width: 100%;
    order: 2;
}

.apple-card-dark .apple-card-image {
    order: 1;
}

.apple-card-dark .apple-card-content {
    order: 2;
}

.apple-card-title {
    font-size: 56px;
    font-weight: 700;
    margin: 0;
    line-height: 1.08;
    letter-spacing: -0.02em;
}

.apple-card-subtitle {
    font-size: 28px;
    font-weight: 400;
    margin: 8px 0 20px;
    opacity: 0.85;
    letter-spacing: -0.01em;
}

.apple-card-description {
    font-size: 19px;
    line-height: 1.56;
    opacity: 0.7;
    margin: 0 0 32px;
}

.apple-card-buttons {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

/* 产品卡片 - 图片检测 */
.apple-image-mock {
    border-radius: 24px;
    overflow: hidden;
    background: #1d1d1f;
    padding: 32px;
    aspect-ratio: 16/10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.apple-image-mock svg {
    width: 100%;
    height: auto;
}

.apple-card-light .apple-image-mock {
    background: #f5f5f7;
}

/* 产品卡片 - 视频分析 */
.apple-video-mock {
    border-radius: 24px;
    overflow: hidden;
    background: #f5f5f7;
    padding: 32px;
    aspect-ratio: 16/10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

.apple-video-screen {
    background: var(--apple-black);
    border-radius: 16px;
    padding: 32px;
    width: 100%;
}

.apple-video-progress {
    height: 4px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 2px;
    margin-bottom: 32px;
    overflow: hidden;
}

.apple-video-progress-bar {
    width: 45%;
    height: 100%;
    background: var(--apple-blue);
    border-radius: 2px;
}

.apple-video-frames {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.apple-frame-dot {
    flex: 1;
    height: 48px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 6px;
}

.apple-frame-dot.active {
    background: var(--apple-blue);
}

/* 产品卡片 - 实时摄像头 */
.apple-webcam-mock {
    border-radius: 24px;
    overflow: hidden;
    background: #1d1d1f;
    padding: 32px;
    aspect-ratio: 16/10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.apple-webcam-circle {
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2c2c2e 0%, #1d1d1f 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 55, 95, 0.2);
}

.apple-webcam-inner {
    width: 70%;
    height: 70%;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.apple-webcam-inner svg {
    width: 100%;
    height: 100%;
    color: #ff375f;
}

.apple-webcam-live-dot {
    position: absolute;
    top: 16px;
    left: 16px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ff375f;
    animation: pulse 2s infinite;
}

.apple-webcam-live-text {
    position: absolute;
    top: 12px;
    left: 36px;
    color: #ff375f;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* ------------------ 技术规格（苹果风格） ------------------ */
.apple-tech-section {
    padding: 100px 22px;
    background: var(--apple-light-gray);
    text-align: center;
}

.apple-tech-header {
    margin-bottom: 64px;
}

.apple-tech-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--apple-black);
    margin: 0 0 12px;
    letter-spacing: -0.01em;
}

.apple-tech-subtitle {
    font-size: 19px;
    color: var(--apple-gray);
    margin: 0;
}

.apple-tech-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.apple-tech-item {
    text-align: center;
}

.apple-tech-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--apple-blue);
}

.apple-tech-icon svg {
    width: 100%;
    height: 100%;
}

.apple-tech-item h3 {
    font-size: 24px;
    font-weight: 600;
    color: var(--apple-black);
    margin: 0 0 12px;
    letter-spacing: -0.01em;
}

.apple-tech-item p {
    font-size: 15px;
    color: var(--apple-gray);
    margin: 0;
    line-height: 1.56;
}

/* ------------------ 骨架屏加载占位 ------------------ */
.modules-loading {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 32px;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.skeleton-card {
    width: calc(33.333% - 22px);
    min-width: 300px;
    height: 220px;
    background: #fff;
    border: 1.5px solid var(--apple-border-gray);
    border-radius: 20px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

.skeleton-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: #f0f0f0;
}

.skeleton-line {
    height: 14px;
    border-radius: 7px;
    background: #f0f0f0;
}

.skeleton-line-short {
    width: 60%;
}

.skeleton-line-long {
    width: 90%;
}

.skeleton-line-full {
    width: 100%;
}

.skeleton-status {
    width: 80px;
    height: 12px;
    border-radius: 6px;
    background: #f0f0f0;
    margin-top: auto;
}

/* 骨架屏闪烁动画 */
.skeleton-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
    animation: skeleton-shimmer 1.5s ease-in-out infinite;
}

@keyframes skeleton-shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* 卡片填充动画（JS 渲染完成时给卡片添加淡入效果） */
.apple-module-card {
    animation: card-fade-in 0.3s ease both;
}

@keyframes card-fade-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ------------------ 模块展示区域（苹果风格） ------------------ */
.apple-modules-section {
    padding: 100px 22px;
    background: #fff;
    text-align: center;
}

.apple-modules-header {
    margin-bottom: 64px;
}

.apple-modules-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 32px;
    max-width: 1400px;
    margin: 0 auto;
}

.apple-module-card {
    background: #fff;
    border: 1.5px solid var(--apple-border-gray);
    border-radius: 20px;
    padding: 32px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: calc(33.333% - 22px);
    min-width: 300px;
    box-sizing: border-box;
}

.apple-module-card:hover {
    border-color: var(--apple-blue);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transform: translateY(-4px);
}

.apple-module-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #fff;                /* 描边 SVG 用白色，压在彩色底上 */
    flex-shrink: 0;
    }
.apple-module-icon svg { width: 27px; height: 27px; flex: none; }

.apple-module-info h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--apple-black);
    margin: 0;
    letter-spacing: -0.01em;
}

.apple-module-info p {
    font-size: 14px;
    color: var(--apple-gray);
    margin: 8px 0 0;
    line-height: 1.56;
}

.apple-module-status {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
}

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

.status-dot.green {
    background: var(--apple-green);
}

.status-dot.gray {
    background: var(--apple-gray);
}

.apple-module-status span:last-child {
    font-size: 12px;
    color: var(--apple-gray);
    font-weight: 500;
}

.apple-module-card.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.apple-module-card.disabled:hover {
    border-color: var(--apple-border-gray);
    box-shadow: none;
    transform: none;
}

/* ------------------ CTA 区域 ------------------ */
.apple-cta-section {
    padding: 100px 22px;
    text-align: center;
    background: #fff;
}

.apple-cta-title {
    font-size: 48px;
    font-weight: 700;
    color: var(--apple-black);
    margin: 0 0 12px;
    letter-spacing: -0.02em;
}

.apple-cta-subtitle {
    font-size: 24px;
    color: var(--apple-gray);
    margin: 0 0 40px;
    letter-spacing: -0.01em;
}

/* ------------------ Footer（苹果风格） ------------------ */
.apple-footer {
    padding: 50px 22px 24px;
    background: var(--apple-light-gray);
    border-top: 1px solid var(--apple-border-gray);
}

.apple-footer-main {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    margin-bottom: 40px;
}

.apple-footer-col h4 {
    font-size: 12px;
    font-weight: 600;
    color: var(--apple-black);
    margin: 0 0 16px;
    letter-spacing: -0.01em;
}

.apple-footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.apple-footer-col li {
    margin-bottom: 10px;
}

.apple-footer-col a {
    color: var(--apple-gray);
    text-decoration: none;
    font-size: 12px;
    transition: color 0.2s;
    line-height: 1.6;
}

.apple-footer-col a:hover {
    color: var(--apple-black);
}

.apple-footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    border-top: 1px solid var(--apple-border-gray);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 12px;
    color: var(--apple-gray);
}

.apple-footer-links {
    display: flex;
    gap: 20px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.apple-footer-links a {
    color: var(--apple-gray);
    text-decoration: none;
    transition: color 0.2s;
}

.apple-footer-links a:hover {
    color: var(--apple-black);
}

/* ------------------ 平台定位区 ------------------ */
.apple-intro-section {
    padding: 80px 22px 60px;
    background: #fff;
    text-align: center;
}
.apple-intro-text {
    max-width: 680px;
    margin: 0 auto 28px;
    font-size: 22px;
    font-weight: 400;
    color: var(--apple-black);
    line-height: 1.5;
    letter-spacing: -0.01em;
}
.apple-intro-text strong {
    font-weight: 600;
}
.apple-tech-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    max-width: 720px;
    margin: 0 auto;
}
.apple-tech-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 500;
    background: var(--apple-light-gray);
    color: var(--apple-black);
    border: 1px solid var(--apple-border-gray);
    transition: all 0.2s;
}
.apple-tech-pill:hover {
    background: #e8e8ed;
    transform: translateY(-1px);
}

/* ------------------ 功能卡片技术标签 ------------------ */
.apple-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
    justify-content: center;
}
.apple-card-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    background: rgba(0, 122, 255, 0.1);
    color: #0071e3;
}
.apple-card-dark .apple-card-tag {
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.85);
}

/* ------------------ 项目理念区 ------------------ */
.apple-about-section {
    padding: 100px 22px;
    background: #fff;
    text-align: center;
}
.apple-about-content {
    max-width: 680px;
    margin: 0 auto;
}
.apple-about-content h2 {
    font-size: 40px;
    font-weight: 700;
    color: var(--apple-black);
    margin: 0 0 20px;
    letter-spacing: -0.02em;
}
.apple-about-content p {
    font-size: 19px;
    color: var(--apple-gray);
    line-height: 1.6;
    margin: 0 0 16px;
}
.apple-about-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 48px;
    flex-wrap: wrap;
}
.apple-about-stat {
    text-align: center;
}
.apple-about-stat-num {
    font-size: 40px;
    font-weight: 700;
    color: var(--apple-blue);
    letter-spacing: -0.02em;
}
.apple-about-stat-label {
    font-size: 14px;
    color: var(--apple-gray);
    margin-top: 4px;
}

/* ------------------ 模块卡片增强 ------------------ */
.apple-module-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
}
.apple-module-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    background: rgba(0, 122, 255, 0.08);
    color: #0071e3;
}
.apple-module-enter {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 600;
    color: var(--apple-blue);
    margin-top: auto;
    padding-top: 4px;
}
.apple-module-card.disabled .apple-module-enter {
    display: none;
}

@media (max-width: 768px) {
    .apple-tech-grid { grid-template-columns: 1fr; }
    .apple-about-stats { gap: 30px; }
}

/* ================================================================
   登录弹窗（Apple 风格）
   ================================================================ */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(4px);
}

.modal-overlay.show {
    display: flex;
    animation: fadeIn 0.25s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-box-login {
    background: #fff;
    border-radius: 20px;
    width: 90%;
    max-width: 460px;
    max-height: 85vh;
    overflow-y: auto;
    padding: 52px 40px 40px;
    position: relative;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
    animation: slideUp 0.3s ease;
}

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

/* 左上角 LOGO */
.modal-brand {
    position: absolute;
    top: 24px;
    left: 28px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* 标志颜色由 brand.css 锁死为黑白，这里只管尺寸 */
.modal-brand-mark {
    --ap-mark-size: 28px;
}

.modal-brand-text {
    font-size: 16px;
    font-weight: 700;
    color: var(--apple-black);
}

/* 右上角关闭 */
.modal-close-btn {
    position: absolute;
    top: 22px;
    right: 22px;
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    border-radius: 50%;
    font-size: 20px;
    color: var(--apple-gray);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
    line-height: 1;
}

.modal-close-btn:hover {
    background: rgba(0, 0, 0, 0.06);
    color: var(--apple-black);
}

/* Tab 切换 */
.modal-tabs {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 36px;
    margin-bottom: 32px;
}

.modal-tab {
    background: transparent;
    border: none;
    padding: 8px 4px;
    font-size: 17px;
    font-weight: 400;
    color: var(--apple-gray);
    cursor: pointer;
    position: relative;
    font-family: inherit;
    transition: color 0.2s;
    letter-spacing: -0.01em;
}

.modal-tab.active {
    color: var(--apple-blue);
    font-weight: 600;
}

.modal-tab.active::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 44px;
    height: 3px;
    background: var(--apple-blue);
    border-radius: 2px;
}

/* Pill 输入框 */
.form-group-pill {
    position: relative;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    background: var(--apple-light-gray);
    border: 1.5px solid #d2d2d7;
    border-radius: 999px;
    padding: 0 20px;
    transition: border-color 0.2s, background 0.2s;
}

.form-group-pill:focus-within {
    border-color: var(--apple-blue);
    background: #fff;
}

.form-pill-icon {
    color: var(--apple-gray);
    display: inline-flex;
    align-items: center;
    padding-right: 12px;
    border-right: 1px solid #e5e5ea;
    margin-right: 14px;
}

.form-group-pill input {
    flex: 1;
    padding: 16px 0;
    border: none;
    background: transparent;
    font-size: 16px;
    color: var(--apple-black);
    outline: none;
    font-family: inherit;
}

.form-group-pill input::placeholder {
    color: #a1a1a6;
}

/* 提交按钮 */
.modal-submit-btn {
    display: block;
    width: 100%;
    padding: 16px;
    margin-top: 24px;
    background: var(--apple-blue);
    color: #fff;
    border: none;
    border-radius: 999px;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -0.01em;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s;
}

.modal-submit-btn:hover:not(:disabled) {
    background: var(--apple-blue-hover);
}

.modal-submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 协议与链接 */
.modal-agreement {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
    font-size: 12px;
    color: var(--apple-gray);
    flex-wrap: wrap;
    gap: 8px;
}

.modal-agreement label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.modal-agreement input[type="checkbox"] {
    width: 14px;
    height: 14px;
    accent-color: var(--apple-blue);
    cursor: pointer;
}

.modal-agreement-link {
    color: var(--apple-blue);
    text-decoration: none;
    font-weight: 500;
}

.modal-agreement-link:hover {
    text-decoration: underline;
}

/* 管理员入口 */
.modal-admin-link {
    text-align: center;
    margin-top: 14px;
}

.modal-admin-link a {
    font-size: 12px;
    color: var(--apple-gray);
    text-decoration: none;
}

.modal-admin-link a:hover {
    color: var(--apple-blue);
    text-decoration: underline;
}

/* 分隔线 */
.modal-divider {
    position: relative;
    text-align: center;
    margin-top: 28px;
    margin-bottom: 20px;
    color: #a1a1a6;
    font-size: 12px;
}

.modal-divider::before,
.modal-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 35%;
    height: 1px;
    background: var(--apple-border-gray);
}

.modal-divider::before { left: 0; }
.modal-divider::after { right: 0; }

.modal-divider span {
    background: #fff;
    padding: 0 14px;
}

/* 社交图标 */
.modal-social {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.modal-social-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.15s;
    color: #fff;
}

.modal-social-btn:hover {
    transform: translateY(-2px);
}

.social-wechat { background: #07c160; }
.social-qq { background: #12b7f5; }

/* 错误提示 */
.modal-error {
    display: none;
    background: #fff0f0;
    border: 1.5px solid #ff3b30;
    color: #ff3b30;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 13px;
    margin-top: 14px;
    text-align: center;
}

/* ================================================================
   检测页样式（Apple 风格）
   ================================================================ */

.detect-hero {
    padding: 100px 22px 48px;
    text-align: center;
    background: #fff;
}

.detect-hero-title {
    font-size: 56px;
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.015em;
    margin: 0 0 12px 0;
    color: var(--apple-black);
}

.detect-hero-subtitle {
    font-size: 21px;
    font-weight: 400;
    color: var(--apple-gray);
    margin: 0;
    letter-spacing: -0.01em;
}

.detect-params-section {
    background: #fff;
    padding: 28px 22px;
    margin: 0 22px;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 2;
}

.detect-params-container {
    display: flex;
    gap: 40px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.detect-param-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.detect-param-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--apple-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detect-param-control {
    display: flex;
    gap: 10px;
    align-items: center;
}

.radio-pill-apple {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: 1.5px solid #d2d2d7;
    border-radius: 980px;
    background: #fff;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: var(--apple-black);
    user-select: none;
    transition: all 0.15s;
}

.radio-pill-apple:hover {
    border-color: var(--apple-blue);
}

.radio-pill-apple input[type="radio"] {
    accent-color: var(--apple-blue);
    margin: 0;
    cursor: pointer;
}

.radio-pill-apple:has(input:checked) {
    background: var(--apple-blue);
    color: #fff;
    border-color: var(--apple-blue);
}

label.radio-pill-apple.model-disabled {
    cursor: not-allowed;
    pointer-events: none;
    opacity: 0.45 !important;
    color: #a1a1a6 !important;
    border: 1.5px dashed #c7c7cc !important;
    background: #f5f5f7 !important;
    user-select: none;
    filter: grayscale(1) !important;
}

label.radio-pill-apple.model-disabled * {
    pointer-events: none !important;
    user-select: none;
    color: #a1a1a6 !important;
}

label.radio-pill-apple.model-disabled > span {
    color: #a1a1a6 !important;
    font-weight: 400 !important;
}

label.radio-pill-apple.model-disabled input[type="radio"] {
    opacity: 0.4 !important;
    accent-color: #c7c7cc !important;
}

label.radio-pill-apple.model-disabled:hover,
label.radio-pill-apple.model-disabled:has(input:checked),
label.radio-pill-apple.model-disabled:has(input:checked):hover {
    border: 1.5px dashed #c7c7cc !important;
    color: #a1a1a6 !important;
    background: #f5f5f7 !important;
    opacity: 0.45 !important;
    filter: grayscale(1) !important;
}

label.radio-pill-apple.model-disabled input[type="radio"]:disabled {
    cursor: not-allowed;
    pointer-events: none;
}

.detect-param-control {
    display: flex;
    gap: 10px;
    align-items: center;
}

.detect-range {
    -webkit-appearance: none;
    appearance: none;
    width: 240px;
    height: 4px;
    background: var(--apple-border-gray);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}

.detect-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--apple-blue);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.detect-range::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--apple-blue);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.detect-param-checkboxes {
    flex-direction: row;
    align-items: center;
    gap: 24px;
}

.detect-check-item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
    color: var(--apple-black);
    cursor: pointer;
}

.detect-check-item span {
    color: var(--apple-black);
}

.detect-check-item:has(input:checked) span,
.detect-check-item input:checked + span {
    color: var(--apple-black);
}

.detect-check-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--apple-blue);
    cursor: pointer;
}

.detect-tabs {
    display: flex;
    gap: 16px;
    justify-content: center;
    padding: 48px 22px 32px;
    max-width: 2000px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.detect-tab {
    padding: 12px 36px;
    border: 1.5px solid #d2d2d7;
    border-radius: 980px;
    background: #fff;
    font-size: 15px;
    font-weight: 500;
    color: var(--apple-black);
    cursor: pointer;
    transition: all 0.15s;
    font-family: inherit;
    letter-spacing: -0.01em;
}

.detect-tab:hover {
    border-color: var(--apple-blue);
    color: var(--apple-blue);
}

.detect-tab.active {
    background: var(--apple-black);
    color: #fff;
    border-color: var(--apple-black);
}

.detect-pane {
    display: none;
    width: 100%;
    padding: 0 0 48px;
}

.detect-pane.active {
    display: block;
}

.detect-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    width: calc(100% - 44px);
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 22px;
}

.detect-grid-single {
    display: grid;
    grid-template-columns: 1fr;
    width: calc(100% - 44px);
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 22px;
}

.detect-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    min-height: 420px;
}

.detect-card-wide {
    width: 100%;
    max-width: 1200px;
    margin-left: auto !important;
    margin-right: auto !important;
    margin-top: 0;
    margin-bottom: 0;
    display: block;
    box-sizing: border-box;
}

.detect-card-header {
    padding: 24px 32px;
    border-bottom: 1px solid #f2f2f7;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.detect-card-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--apple-black);
    letter-spacing: -0.01em;
}

.detect-card-body {
    padding: 32px;
    height: calc(100% - 72px);
    display: flex;
    flex-direction: column;
}

.detect-upload-zone {
    cursor: pointer;
    transition: all 0.2s;
}

.detect-upload-zone:hover .detect-preview {
    border-color: var(--apple-blue);
}

.detect-preview {
    flex: 1;
    min-height: 360px;
    border: 2px dashed #d2d2d7;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    transition: border-color 0.2s;
    overflow: hidden;
}

.detect-upload-placeholder {
    text-align: center;
    color: var(--apple-gray);
    padding: 60px 32px;
}

.detect-upload-placeholder svg {
    width: 64px;
    height: 64px;
    color: #c7c7cc;
    margin-bottom: 24px;
}

.detect-upload-placeholder p {
    margin: 0;
    font-size: 16px;
    line-height: 1.7;
}

.detect-result-zone {
    flex: 1;
    min-height: 360px;
    border-radius: 20px;
    background: var(--apple-light-gray);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px;
    overflow: hidden;
}

.detect-result-zone img,
.detect-result-zone video {
    max-width: 100%;
    max-height: 420px;
    border-radius: 10px;
}

.detect-webcam-zone {
    min-height: 400px;
}

.detect-stats {
    margin-top: 20px;
    padding: 16px 20px;
    background: var(--apple-light-gray);
    border-radius: 12px;
    font-family: "SF Mono", Consolas, monospace;
    font-size: 13px;
    color: var(--apple-black);
    line-height: 1.7;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* ================================================================
   管理后台样式
   ================================================================ */

.app-container {
    max-width: 1600px;
    min-width: 900px;
    margin: 0 auto;
    padding: 32px 28px 56px;
}

.app-header {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--apple-border-gray);
}

.app-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.app-header h1 {
    font-size: 20px;
    font-weight: 600;
    color: var(--apple-black);
    margin: 0 0 6px 0;
}

.app-header .subtitle {
    font-size: 13px;
    color: var(--apple-gray);
    margin: 0;
}

.user-area {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.card {
    background: #fff;
    border: 1px solid var(--apple-border-gray);
    border-radius: 16px;
    padding: 20px 24px;
    margin-bottom: 20px;
}

.section-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--apple-black);
    margin-bottom: 16px;
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 12px;
    margin-bottom: 16px;
    border-bottom: 1px solid #f2f2f7;
}

.card-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--apple-black);
    letter-spacing: 0.3px;
}

.close-btn {
    background: transparent;
    border: none;
    color: var(--apple-gray);
    font-size: 14px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
}

.close-btn:hover {
    background: var(--apple-light-gray);
    color: var(--apple-black);
}

.card-body {
    padding: 6px 0 0;
}

.btn-primary,
.btn-secondary {
    padding: 10px 32px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    letter-spacing: 0.3px;
    min-width: 120px;
    transition: background 0.15s;
    font-family: inherit;
}

.btn-primary {
    background: var(--apple-blue);
    color: #fff;
}

.btn-primary:hover:not(:disabled) {
    background: var(--apple-blue-hover);
}

.btn-primary:disabled {
    background: #c7d2fe;
    cursor: not-allowed;
}

.btn-secondary {
    background: #fff;
    color: var(--apple-black);
    border: 1px solid var(--apple-border-gray);
}

.btn-secondary:hover:not(:disabled) {
    border-color: var(--apple-blue);
    color: var(--apple-blue);
}

.tabs-nav {
    display: flex;
    gap: 28px;
    margin: 16px 0 20px;
    padding-bottom: 0;
    border-bottom: 1px solid var(--apple-border-gray);
}

.tab-btn {
    padding: 12px 6px;
    background: transparent;
    border: none;
    font-size: 14px;
    font-weight: 500;
    color: var(--apple-gray);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    letter-spacing: 0.3px;
}

.tab-btn:hover {
    color: var(--apple-black);
}

.tab-btn.active {
    color: var(--apple-blue);
    border-bottom-color: var(--apple-blue);
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.login-prompt {
    background: #fff9d6;
    border: 1px solid #ffd60a;
    color: #b8860b;
    border-radius: 16px;
    padding: 14px 18px;
    margin-bottom: 20px;
    font-size: 14px;
}

.login-prompt a {
    color: var(--apple-blue);
    font-weight: 500;
}

.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.result-card {
    padding: 0;
}

.result-card .card-header {
    padding: 14px 18px;
    margin-bottom: 0;
}

.result-card .card-body {
    padding: 18px;
}

.upload-preview,
.result-zone {
    min-height: 360px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid var(--apple-border-gray);
    border-radius: 12px;
    padding: 14px;
    gap: 16px;
}

.upload-preview img,
.result-zone img,
.result-zone video {
    max-width: 100%;
    max-height: 420px;
    object-fit: contain;
    border-radius: 10px;
}

.placeholder-text {
    font-size: 14px;
    color: var(--apple-gray);
    padding: 0 20px;
    text-align: center;
}

.webcam-zone {
    min-height: 400px;
}

.progress-wrap {
    margin-top: 16px;
    height: 24px;
    background: var(--apple-light-gray);
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.progress-bar-inner {
    height: 100%;
    width: 0%;
    background: var(--apple-blue);
    transition: width 0.2s;
}

.progress-label {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 500;
    color: var(--apple-black);
}

.stats-card {
    padding: 0;
}

.stats-card .card-header {
    padding: 14px 18px;
    margin-bottom: 0;
}

.stats-card .card-body {
    padding: 16px 18px 20px;
}

.stats-text {
    font-family: "SF Mono", Consolas, monospace;
    font-size: 13px;
    line-height: 1.9;
    color: var(--apple-black);
    white-space: pre-wrap;
    word-wrap: break-word;
    min-height: 60px;
}

.app-footer {
    text-align: center;
    margin-top: 40px;
    padding: 20px 0 12px;
    color: var(--apple-gray);
    font-size: 12px;
    border-top: 1px solid var(--apple-border-gray);
}

.apple-detect-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.apple-detect-page > nav {
    flex-shrink: 0;
}

.apple-detect-page > section:not(.detect-hero) {
    flex: 1;
}

.apple-footer-detect {
    margin-top: auto;
    flex-shrink: 0;
}

/* ================================================================
   响应式设计
   ================================================================ */

@media (max-width: 1024px) {
    .apple-tech-grid { grid-template-columns: repeat(2, 1fr); }
    .apple-footer-main { grid-template-columns: repeat(2, 1fr); }
    .detect-grid { grid-template-columns: 1fr; }
    .apple-product-card { gap: 48px; }
}

@media (max-width: 734px) {
    .apple-hero-title { font-size: 48px; }
    .apple-hero-subtitle { font-size: 24px; }
    .apple-hero-description { font-size: 17px; }
    .apple-card-title { font-size: 40px; }
    .apple-card-subtitle { font-size: 21px; }
    .apple-tech-grid { grid-template-columns: 1fr; }
    .apple-footer-main { grid-template-columns: 1fr; gap: 28px; }
    .apple-nav-links { display: none; }
    .apple-nav-links li a { font-size: 11px; }
    .apple-product-card { padding: 60px 16px; gap: 36px; }
    .apple-hero { padding: 100px 16px 60px; }
    .apple-cta-title { font-size: 36px; }
    .apple-cta-subtitle { font-size: 21px; }
    .detect-hero-title { font-size: 40px; }
    .detect-hero-subtitle { font-size: 19px; }
    .detect-params-container { gap: 20px; }
    .apple-demo-card { width: 100%; }
    .apple-nav-inner { padding: 0 16px; }
    .modal-box-login { padding: 48px 28px 32px; }
}

/* ===== 移动端汉堡菜单 ===== */
.mobile-menu-btn {
    display: none;
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    color: var(--apple-black);
    font-size: 18px;
    padding: 0;
    border-radius: 6px;
}
.mobile-menu-btn:hover { background: rgba(0,0,0,.06); }

.mobile-nav-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    max-width: 80vw;
    height: 100vh;
    background: #fff;
    z-index: 10000;
    transform: translateX(100%);
    transition: transform .28s cubic-bezier(.4,0,.2,1);
    box-shadow: -4px 0 24px rgba(0,0,0,.12);
    overflow-y: auto;
}
.mobile-nav-drawer.open { transform: translateX(0); }
.mobile-nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.4);
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s;
}
.mobile-nav-overlay.show {
    opacity: 1;
    pointer-events: auto;
}
.mobile-nav-header {
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 600;
    font-size: 15px;
}
.mobile-nav-close {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 20px;
    color: #86868b;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.mobile-nav-close:hover { background: #f5f5f7; color: #1d1d1f; }
.mobile-nav-list {
    list-style: none;
    margin: 0;
    padding: 8px 0;
}
.mobile-nav-list li a {
    display: block;
    padding: 14px 20px;
    color: #1d1d1f;
    text-decoration: none;
    font-size: 15px;
    font-weight: 400;
    border-bottom: 1px solid #f5f5f7;
}
.mobile-nav-list li:last-child a { border-bottom: none; }
.mobile-nav-list li a:hover { background: #f5f5f7; }
.mobile-nav-actions {
    padding: 16px 20px;
    border-top: 1px solid #f0f0f3;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.mobile-nav-actions .apple-nav-btn {
    width: 100%;
    text-align: center;
    padding: 10px 16px;
}

@media (max-width: 734px) {
    .mobile-menu-btn { display: flex; }
    .apple-nav-right #login-btn-wrap { display: none !important; }
    .apple-nav-right .user-menu-container { display: none !important; }
}

/* ============ 问题反馈功能样式 ============ */
.detect-tab-feedback {
    background: linear-gradient(135deg, #fff9e6, #fff4cc);
    color: #b7791f;
    font-weight: 600;
    border-color: #f5d576;
}
.detect-tab-feedback:hover:not(.tab-disabled) {
    background: linear-gradient(135deg, #fff4cc, #ffe9a8);
    color: #92400e;
    border-color: #f0c419;
}
.detect-tab-feedback.active {
    background: linear-gradient(135deg, #f0c419, #e8a83a) !important;
    color: #fff !important;
    border-color: #e8a83a !important;
}

.feedback-form {
    width: 100%;
}
.feedback-field {
    margin-bottom: 16px;
}
.feedback-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #37352f;
    margin-bottom: 8px;
    letter-spacing: 0.3px;
}
.feedback-select,
.feedback-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    color: #37352f;
    background: #fff;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
    font-family: inherit;
    box-sizing: border-box;
}
.feedback-select:focus,
.feedback-input:focus,
.feedback-textarea:focus {
    border-color: #0071e3;
    box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.1);
}
.feedback-textarea {
    width: 100%;
    min-height: 120px;
    padding: 10px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    color: #37352f;
    background: #fff;
    outline: none;
    resize: vertical;
    font-family: inherit;
    box-sizing: border-box;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.feedback-priority-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.feedback-priority-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    color: #37352f;
    transition: all 0.15s;
    background: #fff;
}
.feedback-priority-item:hover {
    border-color: #0071e3;
}
.feedback-priority-item input {
    margin: 0;
    accent-color: #0071e3;
}
.priority-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}
.priority-low { background: #34d399; }
.priority-normal { background: #fbbf24; }
.priority-high { background: #ef4444; }

.feedback-preview {
    margin-top: 8px;
    padding: 12px 14px;
    background: #f9fafb;
    border: 1px dashed #d1d5db;
    border-radius: 8px;
}
.feedback-preview-title {
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 6px;
}
.feedback-preview-content {
    font-size: 12px;
    color: #37352f;
    line-height: 1.6;
    white-space: pre-wrap;
    max-height: 140px;
    overflow-y: auto;
}

.feedback-list {
    width: 100%;
    min-height: 300px;
}
.feedback-list table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.feedback-list th {
    text-align: left;
    padding: 10px 12px;
    background: #f9fafb;
    color: #6b7280;
    font-size: 12px;
    font-weight: 600;
    border-bottom: 2px solid #e5e7eb;
}
.feedback-list td {
    padding: 10px 12px;
    border-bottom: 1px solid #f3f4f6;
    color: #37352f;
    vertical-align: middle;
}
.feedback-list tr:last-child td {
    border-bottom: none;
}
.feedback-list tr:hover td {
    background: #f9fafb;
}
.feedback-list .placeholder-text {
    padding: 40px 20px;
}

/* ================================================================
   Toast 提示（替代 alert）
   ================================================================ */
.yolo-toast {
    position: fixed;
    top: 60px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    padding: 12px 28px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    z-index: 99999;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    pointer-events: none;
    max-width: 90vw;
    text-align: center;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}
.yolo-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
.yolo-toast-info {
    background: #1d1d1f;
}
.yolo-toast-error {
    background: #ff3b30;
}
.yolo-toast-success {
    background: #34c759;
}
.yolo-toast-warning {
    background: #ff9500;
}
/* ============================================================
   移动端全局适配增强（主页与公共页）
   ============================================================ */
@media (max-width: 734px) {
    html, body { overflow-x: hidden; }

    /* 顶部导航：登录后用户入口保持可见（此前被隐藏导致手机上无法登出/切换账号） */
    .apple-nav-right .user-menu-container { display: block !important; }
    #user-menu-btn { max-width: 96px; padding: 5px 8px; font-size: 12px; }
    #user-menu-btn > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

    /* 模块卡片 */
    .apple-modules-section { padding: 60px 14px 70px; }
    .apple-modules-grid { gap: 14px; }
    .apple-module-card { width: 100%; max-width: 480px; padding: 20px; border-radius: 16px; }
    .apple-module-icon { width: 44px; height: 44px; font-size: 22px; }
    .apple-module-icon svg { width: 22px; height: 22px; }
    .apple-module-info h3 { font-size: 16px; }
    .apple-module-info p { font-size: 12.5px; }
    .apple-module-enter { font-size: 12px; }

    /* 区块与页脚 */
    .apple-product-card { padding: 56px 16px; }
    .apple-intro-section { padding: 56px 16px; }
    .apple-cta-section { padding: 64px 16px; }
    .apple-about-section { padding: 56px 16px; }
    .apple-footer { padding: 44px 18px 28px; }

    /* 登录/注册弹窗 */
    .modal-overlay .modal-box-login { width: 94vw; max-width: 420px; }
}

@media (max-width: 380px) {
    .apple-module-card { padding: 16px; }
    .apple-hero-title { font-size: 36px; }
    .apple-hero-subtitle { font-size: 20px; }
}

/* ---- 抽屉内账号区（登录后显示） ---- */
.mobile-nav-drawer { display: flex; flex-direction: column; }
.mobile-nav-list { flex: 0 0 auto; }
.mobile-nav-actions { margin-top: auto; }
.mobile-nav-account { display: none; margin-top: auto; padding: 14px 16px 18px; border-top: 1px solid #f0f0f3; }
.mobile-nav-account.show { display: block; }
.mobile-nav-account .mna-label { font-size: 11px; color: #999; margin-bottom: 8px; }
.mobile-nav-account .mna-name { font-size: 14px; font-weight: 600; color: #1d1d1f; margin-bottom: 10px; }
.mobile-nav-account a { display: block; padding: 10px 10px; border-radius: 8px; color: #333; text-decoration: none; font-size: 14px; }
.mobile-nav-account a:hover { background: #f5f5f7; }
.mobile-nav-account a.mna-danger { color: #ff3b30; }

/* ---- 主页底部 TabBar + 我的弹层（移动端） ---- */
.tabbar { display: none; }
.me-sheet-overlay { display: none; }
.me-sheet { display: none; }
@media (max-width: 734px) {
  .tabbar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 9500;
    background: rgba(255,255,255,.97); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid #e8e8ed;
    padding: 4px 6px calc(4px + env(safe-area-inset-bottom, 0px));
  }
  .tabbar a, .tabbar button {
    flex: 1; min-height: 50px; display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 2px;
    font-size: 10.5px; color: #6e6e73; background: none; border: none;
    cursor: pointer; text-decoration: none; font-family: inherit;
  }
  .tabbar .tb-ic { font-size: 19px; line-height: 1.1; }
  .tabbar a.on, .tabbar button.on { color: #0071e3; }
  body { padding-bottom: 64px; }
}
.me-sheet-overlay.show { display: block; position: fixed; inset: 0; z-index: 9600; background: rgba(0,0,0,.35); }
.me-sheet.show {
  display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 9700;
  background: #fff; border-radius: 16px 16px 0 0;
  padding: 14px 16px calc(16px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -8px 32px rgba(0,0,0,.18);
}
.me-sheet .me-name { font-size: 16px; font-weight: 600; padding: 4px 2px 10px; }
.me-sheet a, .me-sheet button.me-item {
  display: flex; align-items: center; min-height: 48px; width: 100%;
  padding: 0 10px; border: none; background: none; border-radius: 10px;
  color: #1d1d1f; font-size: 15px; text-decoration: none; cursor: pointer; font-family: inherit;
}
.me-sheet a:active, .me-sheet button.me-item:active { background: #f5f5f7; }
.me-sheet .me-danger { color: #ff3b30; }
.me-sheet .me-cancel { width: 100%; min-height: 46px; margin-top: 8px; border: none; background: #f0f2f5; border-radius: 10px; font-size: 14px; color: #6e6e73; cursor: pointer; font-family: inherit; }

/* ================= 暗色主题：苹果变量组反转（2026-09-08） =================
   原理：style.css 的 49 处 var(--apple-black) 等引用语义随主题反转，
   深底例外（黑卡/视频屏/stack 段）在此显式钉住原深色。 */
[data-theme="dark"] {
    --apple-black: #F5F5F6;        /* 语义=主文字，暗色下反转为浅 */
    --apple-gray: #9A9AA2;
    --apple-light-gray: #131317;   /* 浅灰面板 → 深灰面板 */
    --apple-border-gray: #26272B;
    --apple-text-secondary: #75757D;
    --apple-blue: #0A84FF;         /* iOS 暗色蓝 */
    --apple-blue-hover: #409CFF;
}
/* 深底例外：这些元素的黑底是设计语义，钉住不随变量反转 */
[data-theme="dark"] .apple-card-dark { background: #0A0A0C; }
[data-theme="dark"] .apple-video-screen { background: #050506; }
/* 激活 tab 反白：暗底上更清晰 */
[data-theme="dark"] .detect-tab.active {
    background: #F5F5F6;
    color: #111114;
    border-color: #F5F5F6;
}
/* 交互面 hover：黑 hover 暗色下不可见 → 白 hover */
[data-theme="dark"] .apple-nav { background: rgba(10, 10, 12, 0.85); border-bottom-color: rgba(38, 39, 43, 0.6); }
[data-theme="dark"] .apple-nav.scrolled { background: rgba(10, 10, 12, 0.95); }
[data-theme="dark"] .apple-nav-btn:hover { background: rgba(255, 255, 255, 0.08); }
[data-theme="dark"] .apple-nav-cta { background: rgba(255, 255, 255, 0.06); }
[data-theme="dark"] .apple-nav-cta:hover { background: rgba(255, 255, 255, 0.12); }
[data-theme="dark"] .modal-close-btn:hover { background: rgba(255, 255, 255, 0.08); }
[data-theme="dark"] .tabbar { background: rgba(10, 10, 12, 0.97); border-top-color: #26272B; }
