/* 首页样式 - 大气现代设计 */

.home-page {
    min-height: 100vh;
    background: linear-gradient(180deg, #f8f9ff 0%, #ffffff 100%);
}

/* 导航栏 */
.navbar {
    background: #fff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 12px 0;
}

.navbar-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #2563EB 0%, #3B82F6 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 18px;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.logo-img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: contain;
    flex-shrink: 0;
}

.brand-text {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    letter-spacing: 0.5px;
}

.brand-text .slogan-text {
    font-size: 14px;
    font-weight: 400;
    color: #6B7280;
    margin-left: 8px;
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
    background-clip: unset;
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.navbar-actions-logged {
    display: flex;
    align-items: center;
    gap: 12px;
}

.navbar-action-item {
    font-size: 13px;
    color: #666;
    padding: 6px 12px;
    background: #f5f7fa;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.navbar-action-item:hover {
    background: #e9ecef;
}

.navbar-action-item.logout-btn {
    background: #2563EB;
    color: #fff;
}

.navbar-action-item.logout-btn:hover {
    background: #1d4ed8;
}

.quota-info {
    font-size: 13px;
    color: #666;
    padding: 6px 12px;
    background: #f5f7fa;
    border-radius: 6px;
    cursor: default;
}

.navbar-action-item#upgradeQuotaBtn {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(251, 191, 36, 0.2);
}

.navbar-action-item#upgradeQuotaBtn:hover {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(251, 191, 36, 0.3);
}

.navbar-action-item#upgradeQuotaBtn:active {
    transform: translateY(0);
}


/* 主标题区域 */
.hero-section {
    text-align: center;
    padding: 20px 20px 16px;
    max-width: 1000px;
    margin: 0 auto;
}

.hero-question {
    font-size: 28px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 12px;
    line-height: 1.4;
}

.hero-answer {
    font-size: 24px;
    font-weight: 600;
    color: #2563EB;
    margin-bottom: 16px;
    line-height: 1.3;
}

.hero-description {
    font-size: 15px;
    color: #718096;
    margin-bottom: 0;
    line-height: 1.6;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.tag {
    padding: 6px 14px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 13px;
    color: #4a5568;
    transition: all 0.3s;
}

.tag:hover {
    border-color: #2563EB;
    color: #2563EB;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}

/* 模式选择Tab区域 */
.mode-tabs-section {
    padding: 16px 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.mode-tabs-section .container,
.home-page .container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.mode-tabs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 16px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.mode-tab {
    background: #fff;
    border: 3px solid #e2e8f0;
    border-radius: 16px;
    padding: 28px 24px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    overflow: hidden;
}

.mode-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.03) 0%, rgba(59, 130, 246, 0.03) 100%);
    opacity: 0;
    transition: opacity 0.3s;
}

.mode-tab:hover {
    border-color: #cbd5e0;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.mode-tab:hover::before {
    opacity: 1;
}

.mode-tab.active {
    border-color: #2563EB;
    border-width: 3px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.25);
    transform: translateY(-2px);
}

.mode-tab.active::before {
    opacity: 1;
}

.mode-tab[data-mode="creator"].active {
    border-color: #48bb78;
    background: linear-gradient(135deg, rgba(72, 187, 120, 0.1) 0%, rgba(56, 178, 172, 0.1) 100%);
    box-shadow: 0 8px 24px rgba(72, 187, 120, 0.25);
}

.mode-tab[data-mode="creator"]::before {
    background: linear-gradient(135deg, rgba(72, 187, 120, 0.03) 0%, rgba(56, 178, 172, 0.03) 100%);
}

.tab-icon {
    font-size: 40px;
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border-radius: 14px;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    transition: all 0.3s;
}

.mode-tab[data-mode="reader"].active .tab-icon {
    background: linear-gradient(135deg, #2563EB 0%, #3B82F6 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    transform: scale(1.05);
}

.mode-tab[data-mode="creator"].active .tab-icon {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(72, 187, 120, 0.3);
    transform: scale(1.05);
}

.tab-content {
    flex: 1;
    position: relative;
    z-index: 1;
}

.tab-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
    transition: color 0.3s;
}

.mode-tab[data-mode="reader"].active .tab-title {
    color: #2563EB;
    font-size: 21px;
}

.mode-tab[data-mode="creator"].active .tab-title {
    color: #48bb78;
    font-size: 21px;
}

.tab-subtitle {
    font-size: 15px;
    color: #718096;
    font-weight: 500;
    transition: color 0.3s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mode-tab[data-mode="reader"].active .tab-subtitle {
    color: #2563EB;
    font-weight: 600;
}

.mode-tab[data-mode="creator"].active .tab-subtitle {
    color: #48bb78;
    font-weight: 600;
}

/* 模式说明内容 */
.mode-content {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    animation: fadeIn 0.3s ease-in;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

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

.mode-intro {
    max-width: 800px;
    margin: 0 auto;
}

.intro-header {
    text-align: left;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 2px solid #e2e8f0;
}

.intro-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 10px;
    line-height: 1.4;
}

.mode-intro-reader .intro-title {
    color: #2563EB;
}

.mode-intro-creator .intro-title {
    color: #48bb78;
}

.intro-subtitle {
    font-size: 14px;
    color: #4a5568;
    line-height: 1.6;
    font-weight: 400;
}

.intro-features {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.intro-feature {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px;
    background: #f7fafc;
    border-radius: 10px;
    transition: all 0.3s;
}

.intro-feature:hover {
    background: #edf2f7;
    transform: translateX(4px);
}

.feature-icon-large {
    font-size: 26px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 10px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.feature-text {
    flex: 1;
}

.feature-title {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 4px;
}

.feature-desc {
    font-size: 12px;
    color: #718096;
    line-height: 1.5;
}

/* 上传区域 */
.upload-section {
    margin: 16px auto;
    max-width: 1000px;
    padding: 0;
}

.upload-area {
    border: 2px dashed #cbd5e0;
    border-radius: 12px;
    padding: 28px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: #fff;
    position: relative;
    overflow: hidden;
}

.upload-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, rgba(59, 130, 246, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s;
}

.upload-area:hover {
    border-color: #2563EB;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.15);
}

.upload-area:hover::before {
    opacity: 1;
}

.upload-area.drag-over {
    border-color: #2563EB;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.08) 0%, rgba(59, 130, 246, 0.08) 100%);
}

.upload-icon {
    font-size: 44px;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.upload-text {
    font-size: 15px;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.select-file {
    color: #2563EB;
    cursor: pointer;
    font-weight: 500;
    transition: color 0.3s;
}

.select-file:hover {
    color: #1D4ED8;
}

.or-text {
    color: #a0aec0;
    margin: 0 10px;
}

.input-link {
    color: #2563EB;
    cursor: pointer;
    font-weight: 500;
    transition: color 0.3s;
}

.input-link:hover {
    color: #1D4ED8;
}

.upload-hint {
    font-size: 13px;
    color: #a0aec0;
    margin-top: 12px;
    position: relative;
    z-index: 1;
}

/* 分析类型 */
.analysis-types {
    padding: 0 0 80px;
    max-width: 1000px;
    margin: 0 auto;
}


.analysis-types h2 {
    font-size: 17px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 20px 0 14px;
    text-align: center;
}

.type-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

.type-card {
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 20px 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.type-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s;
}

.type-card:hover {
    border-color: #2563EB;
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.2);
}

.type-card:hover::before {
    opacity: 1;
}

.type-card.active {
    border-color: #2563EB;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%);
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.2);
}

.type-icon {
    font-size: 32px;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.type-name {
    font-size: 13px;
    color: #1a1a1a;
    font-weight: 500;
    position: relative;
    z-index: 1;
}


/* 默认导航项样式（上下排列） */
.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 20px;
    cursor: pointer;
    transition: all 0.3s;
    border-radius: 8px;
}

.nav-item:hover {
    background: #f7fafc;
}

.nav-item.active {
    color: #2563EB;
}

.nav-icon {
    font-size: 24px;
    margin-bottom: 4px;
}

.nav-text {
    font-size: 12px;
    font-weight: 500;
}


.navbar-actions .logout-btn {
    color: #ffffff;
}

.navbar-actions .logout-btn:hover {
    background: #fee2e2;
    color: #ffffff;
}

/* PC端退出按钮样式（与历史记录按钮一致） */
.navbar-actions .logout-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
}

.navbar-actions .logout-btn .nav-icon {
    font-size: 16px;
    line-height: 1;
    margin: 0;
    display: inline-block;
    vertical-align: middle;
}

.navbar-actions .logout-btn .nav-text {
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
    margin: 0;
    display: inline-block;
    vertical-align: middle;
}

/* 悬浮体验按钮 */
.floating-experience-btn {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #2563EB 0%, #3B82F6 100%);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 10px 28px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.4);
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 999;
    transition: all 0.3s;
    animation: float 2s ease-in-out infinite;
}

.floating-experience-btn:hover {
    transform: translateX(-50%) translateY(-2px);
    box-shadow: 0 12px 32px rgba(37, 99, 235, 0.5);
    background: linear-gradient(135deg, #1D4ED8 0%, #2563EB 100%);
}

.floating-experience-btn:active {
    transform: translateX(-50%) translateY(0);
}

.floating-experience-btn .btn-icon {
    font-size: 18px;
}

.floating-experience-btn .btn-text {
    font-size: 15px;
    font-weight: 600;
}

@keyframes float {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(-8px);
    }
}

/* 浮动下载按钮（右下角） */
.floating-download-btn {
    position: fixed;
    bottom: 20px;
    right: 0;
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: #fff;
    border: none;
    border-radius: 50px 0 0 50px;
    padding: 8px 20px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: -4px 8px 24px rgba(16, 185, 129, 0.4);
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 998;
    transition: all 0.3s;
    text-decoration: none;
}

.floating-download-btn:hover {
    transform: translateY(-2px);
    box-shadow: -4px 12px 32px rgba(16, 185, 129, 0.5);
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: #fff;
}

.floating-download-btn:active {
    transform: translateY(0);
}

.floating-download-btn .btn-icon {
    font-size: 18px;
}

.floating-download-btn .btn-text {
    font-size: 15px;
    font-weight: 600;
}

/* 下载二维码弹窗 */
.download-qrcode-dialog {
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
}

.download-qrcode-dialog-content {
    background: #fff;
    border-radius: 16px;
    max-width: 400px;
    width: 100%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.download-qrcode-dialog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #e5e7eb;
}

.download-qrcode-dialog-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #111827;
}

.download-qrcode-dialog-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #6b7280;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}

.download-qrcode-dialog-close:hover {
    background: #f3f4f6;
}

.download-qrcode-dialog-body {
    padding: 24px;
    text-align: center;
}

.download-qrcode-tip {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 20px;
}

.download-qrcode-tip .highlight-red {
    color: #ef4444;
    font-weight: bold;
}

.download-qrcode-image-container {
    display: inline-block;
    padding: 16px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.download-qrcode-image-container img {
    width: 300px;
    height: 300px;
    display: block;
}

/* 复制地址提示框 */
.copy-url-dialog {
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
}

.copy-url-dialog-content {
    background: #fff;
    border-radius: 16px;
    max-width: 400px;
    width: 100%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.copy-url-dialog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #e5e7eb;
}

.copy-url-dialog-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #111827;
}

.copy-url-dialog-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #6b7280;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}

.copy-url-dialog-close:hover {
    background: #f3f4f6;
}

.copy-url-dialog-body {
    padding: 24px;
}

.copy-url-tip {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.5;
}

.copy-url-input-group {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.copy-url-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    background: #f9fafb;
    color: #111827;
}

.copy-url-btn {
    padding: 12px 20px;
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}

.copy-url-btn:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-1px);
}

.copy-url-success {
    font-size: 14px;
    color: #10B981;
    text-align: center;
    padding: 8px 0;
}

/* 移动端悬浮按钮样式 */
@media (max-width: 767px) {
    .floating-experience-btn {
        bottom: 75px;
        padding: 10px 24px;
        font-size: 14px;
        z-index: 1001;
    }
    
    .floating-experience-btn .btn-icon {
        font-size: 16px;
    }
    
    .floating-experience-btn .btn-text {
        font-size: 14px;
    }
    
    .floating-download-btn {
        bottom: 20px;
        right: 0;
        padding: 8px 16px;
        font-size: 14px;
        z-index: 1000;
    }
    
    .floating-download-btn .btn-icon {
        font-size: 16px;
    }
    
    .floating-download-btn .btn-text {
        font-size: 14px;
    }
}

/* 链接对话框 */
.link-dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    backdrop-filter: blur(4px);
}

.link-dialog {
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    width: 90%;
    max-width: 450px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.link-dialog h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #1a1a1a;
}

.link-input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 15px;
    margin-bottom: 20px;
    transition: all 0.3s;
}

.link-input:focus {
    border-color: #2563EB;
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.dialog-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
}

.btn-secondary {
    background: #f7fafc;
    color: #4a5568;
}

.btn-secondary:hover {
    background: #edf2f7;
}

.btn-primary {
    background: linear-gradient(135deg, #2563EB 0%, #3B82F6 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

/* 移动端适配 */
@media (max-width: 767px) {
    .navbar-content {
        padding: 0 12px;
        flex-wrap: nowrap;
        gap: 8px;
    }
    
    .navbar-brand {
        flex: 1;
        min-width: 0;
        gap: 8px;
    }
    
    .navbar-brand .logo-img,
    .navbar-brand .logo {
        display: none; /* 移动端隐藏logo */
    }
    
    .navbar-actions-logged {
        gap: 6px;
        flex-wrap: wrap;
    }
    
    .navbar-action-item {
        font-size: 12px;
        padding: 5px 10px;
    }
    
    .brand-text {
        font-size: 16px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .brand-text .slogan-text {
        display: none; /* 移动端隐藏slogan */
    }
    
    .navbar-actions {
        flex-shrink: 0;
    }
    
    .quota-info {
        font-size: 12px;
        padding: 4px 8px;
    }
    
    .slogan-text {
        font-size: 13px;
    }
    
    .hero-section {
        padding: 16px 16px 12px;
    }
    
    .hero-question {
        font-size: 22px;
    }
    
    .hero-answer {
        font-size: 20px;
    }
    
    .hero-description {
        font-size: 13px;
    }
    
    .mode-tab {
        padding: 20px 16px;
        gap: 16px;
    }
    
    .tab-icon {
        width: 60px;
        height: 60px;
        font-size: 36px;
    }
    
    .tab-title {
        font-size: 18px;
    }
    
    .mode-tab.active .tab-title {
        font-size: 19px;
    }
    
    .tab-subtitle {
        font-size: 12px;
        line-height: 1.4;
        white-space: normal;
        overflow: visible;
        text-overflow: unset;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        max-height: 2.8em;
    }
    
    .mode-tabs-section {
        padding: 12px 16px;
    }
    
    .mode-tabs {
        gap: 12px;
        margin-bottom: 24px;
    }
    
    .mode-tab {
        padding: 16px 12px;
        flex-direction: column;
        text-align: center;
        min-height: auto;
    }
    
    .tab-icon {
        width: 56px;
        height: 56px;
        font-size: 32px;
    }
    
    .tab-title {
        font-size: 17px;
    }
    
    .mode-tab.active .tab-title {
        font-size: 18px;
    }
    
    .tab-subtitle {
        font-size: 12px;
        line-height: 1.4;
        white-space: normal;
        overflow: visible;
        text-overflow: unset;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        max-height: 2.8em;
    }
    
    .mode-content {
        padding: 20px 16px;
    }
    
    .intro-title {
        font-size: 18px;
    }
    
    .intro-subtitle {
        font-size: 13px;
    }
    
    .intro-feature {
        padding: 12px;
        gap: 12px;
    }
    
    .feature-icon-large {
        width: 48px;
        height: 48px;
        font-size: 28px;
    }
    
    .feature-title {
        font-size: 15px;
    }
    
    .feature-desc {
        font-size: 13px;
    }
    
    .upload-section {
        margin: 30px 16px;
    }
    
    .upload-area {
        padding: 40px 20px;
    }
    
    .upload-icon {
        font-size: 48px;
    }
    
    .upload-text {
        font-size: 16px;
    }
    
    .analysis-types {
        padding: 0 16px 100px;
    }
    
    .analysis-types h2 {
        font-size: 18px;
        margin: 32px 0 16px;
    font-weight: 600;
}

.analysis-types h2.flash-title {
    animation: titleBlink 1s ease-in-out 5;
    color: #b91c1c;
    background: #fef3c7;
    padding: 4px 8px;
    border-radius: 6px;
}
    
    .type-grid {
        grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
        gap: 12px;
    }
    
    .type-card {
        padding: 20px 8px;
    }
    
    .type-icon {
        font-size: 32px;
    }
    
    .type-name {
        font-size: 13px;
    }
}

/* PC端和移动端显示控制 */
.pc-only {
    display: block;
}

.mobile-only {
    display: none;
}

@media (max-width: 767px) {
    .pc-only {
        display: none;
    }
    
    .mobile-only {
        display: block;
    }
    
}

/* PC端适配 */
@media (min-width: 768px) {
    .home-page .container {
        max-width: 1000px;
        margin: 0 auto;
    }
    
    .upload-area {
        padding: 40px 32px;
    }
    
    .type-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    
    .hero-section {
        padding: 24px 20px 20px;
    }
    
    .hero-question {
        font-size: 32px;
    }
    
    .hero-answer {
        font-size: 26px;
    }
    
    .hero-description {
        font-size: 16px;
    }
    
    .mode-tabs-section {
        padding: 20px 20px;
    }
    
    .mode-tabs {
        max-width: 1000px;
        margin: 0 auto 16px;
        gap: 24px;
    }
    
    .mode-tab {
        padding: 32px 28px;
        gap: 24px;
    }
    
    .tab-icon {
        width: 80px;
        height: 80px;
        font-size: 44px;
    }
    
    .tab-title {
        font-size: 22px;
    }
    
    .mode-tab.active .tab-title {
        font-size: 23px;
    }
    
    .tab-subtitle {
        font-size: 16px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .mode-content {
        padding: 24px;
    }
    
    .mode-content {
        padding: 28px;
    }
    
    /* PC端悬浮按钮位置调整 */
    .floating-experience-btn {
        bottom: 20px;
    }
}

/* 配额不足弹框 */
.quota-exhausted-dialog-overlay {
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
    /* 防止页面横向滚动 */
    overflow: hidden;
    /* 确保在移动端不会导致页面拉宽 */
    max-width: 100vw;
    box-sizing: border-box;
}

.quota-exhausted-dialog {
    background: #fff;
    border-radius: 16px;
    max-width: 400px;
    width: 100%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    /* 确保使用 border-box，padding 不会增加总宽度 */
    box-sizing: border-box;
    /* 防止内容溢出 */
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.quota-exhausted-dialog-content {
    padding: 24px;
    /* 确保内容不会溢出 */
    box-sizing: border-box;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.quota-exhausted-dialog-content h3 {
    margin: 0 0 12px 0;
    font-size: 20px;
    font-weight: 600;
    color: #111827;
    /* 防止标题文字溢出 */
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.quota-exhausted-dialog-content p {
    margin: 0 0 24px 0;
    font-size: 14px;
    color: #6b7280;
    line-height: 1.6;
    /* 防止文字溢出 */
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.quota-exhausted-dialog-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    /* 确保按钮容器不会溢出 */
    box-sizing: border-box;
}

.quota-exhausted-btn-cancel {
    padding: 10px 20px;
    background: #f5f7fa;
    color: #666;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
    box-sizing: border-box;
}

.quota-exhausted-btn-cancel:hover {
    background: #e9ecef;
}

.quota-exhausted-btn-upgrade {
    padding: 10px 20px;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 4px rgba(251, 191, 36, 0.2);
    box-sizing: border-box;
}

.quota-exhausted-btn-upgrade:hover {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(251, 191, 36, 0.3);
}

@media (max-width: 767px) {
    /* 移动端：减少 overlay 的 padding，避免弹窗超出屏幕 */
    .quota-exhausted-dialog-overlay {
        padding: 16px;
        /* 确保不会导致页面横向滚动 */
        max-width: 100vw;
        overflow-x: hidden;
    }
    
    .quota-exhausted-dialog {
        /* 移动端：确保不会超出屏幕，考虑 overlay 的 padding (16px * 2 = 32px) */
        width: 100%;
        max-width: calc(100vw - 32px);
    }
    
    .quota-exhausted-dialog-content {
        padding: 20px 16px;
    }
    
    .quota-exhausted-dialog-content h3 {
        font-size: 18px;
    }
    
    .quota-exhausted-dialog-content p {
        font-size: 14px;
    }
    
    .quota-exhausted-dialog-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .quota-exhausted-btn-cancel,
    .quota-exhausted-btn-upgrade {
        width: 100%;
        box-sizing: border-box;
    }
}

/* 底部提示闪烁动画 */
@keyframes tipBlink {
    0%, 100% {
        opacity: 1;
        transform: translateX(-50%) scale(1);
    }
    50% {
        opacity: 0.85;
        transform: translateX(-50%) scale(1.02);
    }
}

@media (max-width: 767px) {
    @keyframes tipBlink {
        0%, 100% {
            opacity: 1;
        }
        50% {
            opacity: 0.85;
        }
    }
}
