/* 默认主题样式 */

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    background: #f8fafc;
    color: #1e293b;
    line-height: 1.6;
}
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* 头部 - 浅色导航 */
.site-header {
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid #e2e8f0;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    gap: 20px;
}
.logo a {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e293b;
    text-decoration: none;
    letter-spacing: 0.5px;
}
.logo-img {
    max-height: 40px;
    max-width: 200px;
    width: auto;
    height: auto;
    display: block;
}
.nav { display: flex; gap: 28px; }
.nav a {
    color: #64748b;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.15s;
}
.nav a:hover { color: #2563eb; }
.nav a.active { color: #2563eb; }
.header-right { display: flex; align-items: center; gap: 8px; }
.header-btn {
    padding: 6px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.84rem;
    font-weight: 500;
    transition: all 0.15s;
    background: transparent;
    color: #64748b;
    border: 1px solid transparent;
}
.header-btn:hover { color: #2563eb; }
.header-btn.primary {
    background: #2563eb;
    color: #fff;
    border-color: #2563eb;
}
.header-btn.primary:hover { background: #1d4ed8; color: #fff; }
.user-name {
    font-size: 0.86rem;
    color: #475569;
    font-weight: 500;
    margin-right: 8px;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.15s;
}
.user-name:hover {
    color: #2563eb;
}

/* 主内容 */
.site-main { padding: 10px 0; min-height: calc(100vh - 180px); }

/* Hero */
.hero {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #1e3a5f 0%, #2563eb 100%);
    color: #fff;
    border-radius: 12px;
    margin-bottom: 40px;
}
.hero h1 { font-size: 2.2rem; margin-bottom: 12px; }
.hero p { font-size: 1.05rem; opacity: 0.9; margin-bottom: 24px; }
.hero-actions { display: flex; gap: 12px; justify-content: center; }

/* 按钮 */
.btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.15s;
    border: none;
    cursor: pointer;
}
.btn-primary { background: #2563eb; color: #fff; }
.btn-primary:hover { background: #1d4ed8; }
.btn-secondary { background: rgba(255,255,255,0.2); color: #fff; border: 1px solid rgba(255,255,255,0.3); }
.btn-secondary:hover { background: rgba(255,255,255,0.3); }

/* 区块 */
.section { margin-bottom: 40px; }
.section-title {
    font-size: 1.25rem;
    margin-bottom: 20px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e2e8f0;
}

/* 应用卡片网格 */
.app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 18px;
}
.app-card {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
}
.app-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}
.app-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
    text-align: center;
}
.app-name {
    font-size: 1rem;
    margin-bottom: 6px;
    color: #1e293b;
}
.app-desc {
    font-size: 0.82rem;
    color: #64748b;
    margin-bottom: 12px;
    flex: 1;
    line-height: 1.5;
}
.app-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 0.78rem;
}
.app-version { color: #94a3b8; }
.app-price.free { color: #10b981; font-weight: 600; }
.app-price.paid { color: #f59e0b; font-weight: 600; }
.app-btn {
    display: block;
    text-align: center;
    padding: 7px;
    background: #f1f5f9;
    color: #475569;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.84rem;
    transition: all 0.15s;
}
.app-btn:hover { background: #2563eb; color: #fff; }

/* 友情链接区域 */
.friend-links {
    padding: 40px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e0f2fe 100%);
}
.links-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 30px;
}
.links-header h3 {
    font-size: 1.3rem;
    color: #1e293b;
    font-weight: 600;
    margin: 0;
}
.links-desc {
    font-size: 0.84rem;
    color: #64748b;
    background: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
}
.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    max-width: 900px;
    margin: 0 auto;
}
.link-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    background: #fff;
    border-radius: 10px;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: all 0.2s;
    border: 1px solid transparent;
}
.link-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37,99,235,0.1);
    border-color: rgba(37,99,235,0.2);
}
.link-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}
.link-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.link-name {
    font-size: 0.92rem;
    font-weight: 600;
    color: #1e293b;
}
.link-desc {
    font-size: 0.78rem;
    color: #64748b;
}

/* 页脚 - 深色简洁版 */
.site-footer {
    background: #0f172a;
    border-top: 3px solid #3b82f6;
    padding: 16px 0 10px;
    color: #94a3b8;
    font-size: 0.78rem;
}
.footer-content {
    width: 100%;
}
.footer-nav {
    display: flex;
    gap: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
    margin-bottom: 10px;
}
.footer-nav a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s;
}
.footer-nav a:hover {
    color: #3b82f6;
}
.footer-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
.footer-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.footer-copyright {
    color: #cbd5e1;
    font-size: 0.8rem;
}
.footer-stats {
    color: #64748b;
    font-size: 0.74rem;
}
.footer-stat-num {
    color: #fbbf24;
    font-weight: 600;
    font-size: 0.8rem;
    margin: 0 2px;
}
.footer-qr {
    width: 50px;
    height: 50px;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: #fff;
    position: relative;
}
.footer-qr img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.footer-qr-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.footer-qr-placeholder svg {
    width: 38px;
    height: 38px;
}
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 8px;
    border-top: 1px solid rgba(148, 163, 184, 0.1);
}
.footer-record {
    display: flex;
    gap: 16px;
}
.footer-record span {
    display: flex;
    align-items: center;
    color: #94a3b8;
}
.footer-record a {
    color: #94a3b8;
    text-decoration: none;
}
.footer-record a:hover {
    color: #3b82f6;
}
.footer-disclaimer {
    color: #64748b;
    font-size: 0.72rem;
}

/* 列表页 - 参考 EMLog 布局 */

/* 面包屑 */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 0.84rem;
    color: #64748b;
}
.breadcrumb a { color: #2563eb; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* 分类栏 */
.category-bar,
.filter-bar {
    background: #fff;
    border-radius: 10px 10px 0 0;
    padding: 14px 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}
.category-bar {
    animation: fadeInUp 1.5s ease-out;
    animation-fill-mode: both;
    margin-bottom: 0;
}
.sort-bar-wrap {
    background: #fff;
    border-radius: 0 0 10px 10px;
    padding: 12px 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    border-top: 1px solid #f1f5f9;
}

/* 类型标签 */
.category-tabs { display: flex; gap: 8px; }
.tab-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 6px;
    background: #f1f5f9;
    color: #475569;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    transition: all 0.15s;
}
.tab-item:hover,
.tab-item.active {
    background: #2563eb;
    color: #fff;
}

/* 分类标签 */
.category-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.category-tags a,
.tag-item {
    padding: 6px 14px;
    background: #f1f5f9;
    color: #64748b;
    text-decoration: none;
    font-size: 0.82rem;
    border-radius: 6px;
    transition: all 0.15s;
}
.category-tags a:hover,
.tag-item:hover,
.tag-item.active {
    background: #2563eb;
    color: #fff;
    font-weight: 500;
}

/* 排序栏 */
.sort-bar-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
}
.sort-label {
    font-size: 0.82rem;
    color: #94a3b8;
    font-weight: 500;
}
.sort-item {
    padding: 4px 10px;
    background: transparent;
    color: #64748b;
    text-decoration: none;
    font-size: 0.82rem;
    border-radius: 4px;
    transition: all 0.15s;
}
.sort-item:hover,
.sort-item.active {
    background: #2563eb;
    color: #fff;
}

/* 分类导航 */
.category-nav {
    background: #fff;
    border-radius: 10px;
    padding: 14px 20px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.category-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    padding: 6px 0;
}
.category-group:not(:last-child) {
    border-bottom: 1px dashed #f1f5f9;
    margin-bottom: 6px;
}
.category-group-title {
    font-size: 0.82rem;
    color: #94a3b8;
    font-weight: 500;
    margin-right: 8px;
}
.category-nav-item {
    padding: 4px 12px;
    background: #f1f5f9;
    color: #475569;
    text-decoration: none;
    font-size: 0.82rem;
    border-radius: 4px;
    transition: all 0.15s;
}
.category-nav-item:hover { background: #eff6ff; color: #2563eb; }
.category-nav-item.active { background: #2563eb; color: #fff; }

/* 空状态 */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #94a3b8;
    font-size: 0.95rem;
}

/* 搜索框 */
.search-box { margin-left: auto; display: flex; }
.search-box input {
    padding: 7px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 6px 0 0 6px;
    font-size: 0.86rem;
    width: 200px;
    border-right: none;
}
.search-box input:focus {
    outline: none;
    border-color: #2563eb;
}
.search-box button {
    padding: 7px 16px;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 0 6px 6px 0;
    cursor: pointer;
    font-size: 0.86rem;
    transition: background 0.15s;
}
.search-box button:hover { background: #1d4ed8; }

/* 新应用网格 - 大图卡片 */
.app-grid-new {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}
.app-card-new {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: all 0.2s;
    animation: fadeInUp 1.5s ease-out;
    animation-fill-mode: both;
}
.app-card-new:nth-child(1) { animation-delay: 0.1s; }
.app-card-new:nth-child(2) { animation-delay: 0.2s; }
.app-card-new:nth-child(3) { animation-delay: 0.3s; }
.app-card-new:nth-child(4) { animation-delay: 0.4s; }
.app-card-new:nth-child(5) { animation-delay: 0.5s; }
.app-card-new:nth-child(6) { animation-delay: 0.6s; }
.app-card-new:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.12);
}
.card-preview {
    position: relative;
    overflow: hidden;
    background: #f8fafc;
}
.preview-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s;
}
.app-card-new:hover .preview-img {
    transform: scale(1.05);
}
.card-info {
    padding: 14px 16px;
}
.card-name {
    font-size: 0.92rem;
    color: #1e293b;
    margin: 0 0 8px;
    font-weight: 600;
}
.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
}
.card-version { color: #94a3b8; }
.card-price.free { color: #10b981; font-weight: 600; }
.card-price.paid { color: #f59e0b; font-weight: 600; }

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 4px;
}
.page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 6px;
    background: #fff;
    color: #475569;
    text-decoration: none;
    font-size: 0.86rem;
    border: 1px solid #e2e8f0;
    transition: all 0.15s;
}
.page-btn:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}
.page-btn.active {
    background: #2563eb;
    color: #fff;
    border-color: #2563eb;
}
.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border-radius: 6px;
    background: #fff;
    color: #475569;
    text-decoration: none;
    font-size: 0.86rem;
    border: 1px solid #e2e8f0;
    transition: all 0.15s;
}
.page-link:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}
.page-link.active {
    background: #2563eb;
    color: #fff;
    border-color: #2563eb;
}

.settings-content {
    display: none;
}
.settings-content.show {
    display: block;
}

.form-row {
    display: flex;
    gap: 16px;
}
.form-row .form-group {
    flex: 1;
}
.form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: border-color 0.15s;
}
.form-control:focus {
    outline: none;
    border-color: #2563eb;
}
.form-control:read-only {
    background: #f8fafc;
    color: #94a3b8;
}
.form-control textarea {
    resize: vertical;
}
.form-actions {
    margin-top: 20px;
    display: flex;
    gap: 12px;
}

/* 旧列表样式保留（兼容首页） */
.page-header { margin-bottom: 24px; }
.page-header h1 { font-size: 1.5rem; margin-bottom: 12px; }
.filter-bar { display: flex; gap: 8px; }
.filter-btn {
    padding: 6px 16px;
    border-radius: 20px;
    background: #f1f5f9;
    color: #475569;
    text-decoration: none;
    font-size: 0.82rem;
    transition: all 0.15s;
}
.filter-btn:hover { background: #e2e8f0; }
.filter-btn.active { background: #2563eb; color: #fff; }

/* 详情页 */
.detail-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    background: #fff;
    border-radius: 10px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.detail-icon { font-size: 3rem; }
.detail-info { flex: 1; }
.detail-info h1 { font-size: 1.4rem; margin-bottom: 4px; }
.detail-info p { color: #64748b; font-size: 0.88rem; }
.detail-body {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 24px;
}
.detail-main {
    background: #fff;
    border-radius: 10px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.detail-main h3 { font-size: 1.05rem; margin-bottom: 12px; }
.feature-list { list-style: none; }
.feature-list li { padding: 4px 0; color: #475569; }
.detail-side .side-card {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.side-card h4 { font-size: 0.95rem; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid #e2e8f0; }
.info-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 0.84rem;
}
.info-row span:first-child { color: #64748b; }
/* 详情页 - EMLog风格 */
.detail-page { padding-top: 20px; }
.detail-header-new {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 32px;
    margin-bottom: 24px;
}
.detail-preview {
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 5 / 3.5;
    animation: fadeInLeft 1.5s ease-out;
    animation-fill-mode: both;
}
.detail-preview-img {
    width: 100%;
    height: 100%;
    object-fit: fill;
    display: block;
}
.detail-info-new { 
    display: flex; 
    flex-direction: column; 
    gap: 16px;
    animation: fadeInRight 1.5s ease-out;
    animation-fill-mode: both;
    animation-delay: 0.2s;
}
.detail-title {
    font-size: 1.6rem;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
}
.detail-cat-tag {
    font-size: 0.8rem;
    background: #60a5fa;
    color: #fff;
    padding: 3px 10px;
    border-radius: 20px;
    font-weight: 500;
}
.detail-edit-btn {
    font-size: 0.8rem;
    background: #f59e0b;
    color: #fff;
    padding: 3px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
}
.detail-edit-btn:hover {
    background: #d97706;
}
.detail-desc {
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.6;
    padding-bottom: 16px;
    border-bottom: 1px solid #e2e8f0;
}
.detail-price-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e2e8f0;
}
.detail-price-label { color: #475569; font-size: 0.9rem; }
.detail-price.free { color: #10b981; font-size: 1.1rem; font-weight: 700; }
.detail-price.paid { color: #ef4444; font-size: 1.1rem; font-weight: 700; }
.detail-rating-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-left: 20px;
    padding: 5px 14px;
    border-radius: 20px;
    background: linear-gradient(135deg, #fef9c3 0%, #fef3c7 100%);
    border: 1px solid #fbbf24;
    color: #b45309;
    font-size: 0.85rem;
    box-shadow: 0 2px 8px rgba(251, 191, 36, 0.25);
}
.detail-rating-badge .star-filled {
    color: #f59e0b;
    font-size: 1rem;
    text-shadow: 0 1px 2px rgba(245, 158, 11, 0.3);
}
.detail-rating-badge .star-empty {
    color: #d1d5db;
    font-size: 1rem;
}
.detail-rating-badge .rating-value {
    font-weight: 700;
    margin-left: 4px;
    font-size: 0.95rem;
    color: #d97706;
}
.detail-rating-badge .rating-count {
    color: #9ca3af;
    font-size: 0.78rem;
}
.detail-rating-badge.no-rating {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    border-color: #d1d5db;
    color: #9ca3af;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
.detail-actions {
    display: flex;
    gap: 12px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e2e8f0;
    align-items: center;
}
.btn {
    padding: 10px 28px;
    border-radius: 0;
    font-size: 0.9rem;
    cursor: pointer;
    border: none;
    font-weight: 500;
    transition: all 0.15s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.btn-buy {
    background: #e53e3e;
    color: #fff;
}
.btn-buy:hover { background: #dc2626; }

.btn-install {
    background: #16a34a;
    color: #fff;
}
.btn-install:hover { background: #15803d; }

.btn-favorite {
    background: #fff;
    color: #ef4444;
    border: 1px solid #ef4444;
    width: 40px;
    height: 40px;
    padding: 0;
    font-size: 1.1rem;
    border-radius: 0;
    box-sizing: border-box;
}
.btn-favorite:hover { background: #fef2f2; }
.detail-demo-row { padding-bottom: 16px; border-bottom: 1px solid #e2e8f0; }
.btn-demo {
    background: #fff;
    color: #16a34a;
    border: 1px solid #16a34a;
    padding: 8px 20px;
    font-size: 0.86rem;
}
.btn-demo:hover { background: #f0fdf4; }
.detail-author {
    font-size: 0.86rem;
    color: #64748b;
}
.detail-author span {
    color: #3b82f6;
    font-weight: 500;
}

/* 提示条 */
.detail-notice {
    background: #e6f7f7;
    color: #0e7490;
    padding: 14px 20px;
    border-radius: 6px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.88rem;
    animation: fadeInUp 1.5s ease-out;
    animation-fill-mode: both;
    animation-delay: 0.4s;
}
.btn-notice {
    background: transparent;
    color: #16a34a;
    border: 1px solid #16a34a;
    padding: 6px 16px;
    border-radius: 6px;
    font-size: 0.82rem;
    cursor: pointer;
    text-decoration: none;
}
.btn-notice:hover { background: #f0fdf4; }

/* Tabs */
.detail-tabs {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    overflow: hidden;
    margin-bottom: 40px;
    animation: fadeInUp 1.5s ease-out;
    animation-fill-mode: both;
    animation-delay: 0.6s;
}
.detail-tabs-nav {
    display: flex;
    gap: 0;
    padding: 0 24px;
    border-bottom: 1px solid #e2e8f0;
    background: #fff;
}
.detail-tabs-nav .tab-item {
    padding: 16px 0;
    margin-right: 28px;
    font-size: 0.95rem;
    color: #64748b !important;
    cursor: pointer;
    border-bottom: 2px solid transparent !important;
    border-left: none !important;
    border-right: none !important;
    border-top: none !important;
    margin-bottom: -1px;
    font-weight: 500;
    background: transparent !important;
    border-radius: 0 !important;
}
.detail-tabs-nav .tab-item.active {
    color: #1e293b !important;
    border-bottom-color: #2563eb !important;
    background: transparent !important;
}
.detail-tabs-content { padding: 24px; }

.detail-tags-row { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.detail-tag {
    font-size: 0.78rem;
    padding: 3px 10px;
    border-radius: 20px;
    color: #fff;
    font-weight: 500;
}
.detail-tag.green { background: #10b981; }
.detail-tag.blue { background: #3b82f6; }

/* 更新说明 */
.update-note {
    background: #fef3c7;
    border-radius: 6px;
    padding: 16px 20px;
    margin-bottom: 24px;
}
.update-note-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.88rem;
    color: #b45309;
    font-weight: 600;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #fde68a;
}
.update-note-title .update-time { font-weight: 500; font-size: 0.82rem; }
.update-note-content {
    font-size: 0.84rem;
    color: #92400e;
    line-height: 1.8;
}

.detail-content h3 {
    font-size: 1.05rem;
    color: #1e293b;
    margin: 20px 0 12px;
    padding-left: 10px;
    border-left: 3px solid #cbd5e1;
}
.detail-content h3:first-child { margin-top: 0; }
.detail-intro {
    color: #475569;
    font-size: 0.9rem;
    line-height: 1.7;
}
.detail-screenshots {
    margin: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.detail-screenshots .screenshot-item {
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    background: #fff;
}
.detail-screenshots .screenshot-item img {
    width: 100%;
    display: block;
}

.detail-longdesc {
    line-height: 1.8;
    color: #334155;
    font-size: 0.92rem;
    word-wrap: break-word;
}
.detail-longdesc h1,
.detail-longdesc h2,
.detail-longdesc h3,
.detail-longdesc h4,
.detail-longdesc h5,
.detail-longdesc h6 {
    color: #1e293b;
    margin: 20px 0 12px;
    font-weight: 600;
    line-height: 1.4;
}
.detail-longdesc h1 { font-size: 1.5rem; }
.detail-longdesc h2 { font-size: 1.3rem; }
.detail-longdesc h3 { font-size: 1.15rem; }
.detail-longdesc h4 { font-size: 1.05rem; }
.detail-longdesc h5 { font-size: 0.98rem; }
.detail-longdesc h6 { font-size: 0.92rem; }
.detail-longdesc p {
    margin: 12px 0;
}
.detail-longdesc ul,
.detail-longdesc ol {
    margin: 12px 0;
    padding-left: 28px;
}
.detail-longdesc li {
    margin: 6px 0;
}
.detail-longdesc img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 12px 0;
}
.detail-longdesc a {
    color: #3b82f6;
    text-decoration: none;
}
.detail-longdesc a:hover {
    text-decoration: underline;
}
.detail-longdesc blockquote {
    margin: 16px 0;
    padding: 12px 16px;
    background: #f1f5f9;
    border-left: 4px solid #cbd5e1;
    color: #475569;
    border-radius: 0 4px 4px 0;
}
.detail-longdesc code {
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.85em;
    color: #be123c;
    font-family: Consolas, Monaco, monospace;
}
.detail-longdesc pre {
    background: #1e293b;
    color: #e2e8f0;
    padding: 16px;
    border-radius: 6px;
    overflow-x: auto;
    margin: 16px 0;
    font-size: 0.85rem;
    line-height: 1.6;
}
.detail-longdesc pre code {
    background: none;
    padding: 0;
    color: inherit;
}
.detail-longdesc table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    font-size: 0.88rem;
}
.detail-longdesc th,
.detail-longdesc td {
    border: 1px solid #e2e8f0;
    padding: 8px 12px;
    text-align: left;
}
.detail-longdesc th {
    background: #f1f5f9;
    font-weight: 600;
}
.detail-longdesc hr {
    border: none;
    border-top: 1px solid #e2e8f0;
    margin: 20px 0;
}
.detail-longdesc figure {
    margin: 16px 0;
    text-align: center;
}
.detail-longdesc figcaption {
    font-size: 0.82rem;
    color: #64748b;
    margin-top: 6px;
}
.feature-list { list-style: none; padding: 0; }
.feature-list li {
    padding: 5px 0;
    color: #475569;
    font-size: 0.88rem;
}
.feature-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 8px;
}
.feature-table td {
    padding: 10px 14px;
    border: 1px solid #e2e8f0;
    font-size: 0.86rem;
    color: #475569;
}
.feature-table tr:first-child td {
    background: #f8fafc;
    font-weight: 500;
    color: #334155;
}
.feature-table tr td:first-child { width: 140px; }

/* 登录注册页面 */
.auth-page {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}
.auth-card {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border-radius: 12px;
    padding: 40px 36px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
.auth-header {
    text-align: center;
    margin-bottom: 28px;
}
.auth-header h2 {
    font-size: 1.5rem;
    color: #1e293b;
    margin-bottom: 6px;
}
.auth-header p {
    color: #64748b;
    font-size: 0.88rem;
}
.auth-error {
    background: #fef2f2;
    color: #dc2626;
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 0.86rem;
}
.auth-form { display: flex; flex-direction: column; gap: 18px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
    font-size: 0.86rem;
    color: #475569;
    font-weight: 500;
}
.form-group input {
    padding: 10px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.9rem;
    color: #1e293b;
    transition: border-color 0.15s;
    outline: none;
}
.form-group input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}
.auth-btn {
    padding: 12px;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 0.92rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s;
    margin-top: 6px;
}
.auth-btn:hover { background: #1d4ed8; }
.auth-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 0.86rem;
    color: #64748b;
}
.auth-footer a {
    color: #2563eb;
    text-decoration: none;
    margin-left: 4px;
}
.auth-footer a:hover { text-decoration: underline; }

/* 模态框 */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}
.modal-overlay.show {
    display: flex !important;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.modal-content {
    background: #fff;
    border-radius: 12px;
    width: 100%;
    max-width: 420px;
    padding: 24px 28px;
    position: relative;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    animation: slideUp 0.3s ease;
}
@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 1.4rem;
    color: #94a3b8;
    cursor: pointer;
    transition: color 0.15s;
    line-height: 1;
}
.modal-close:hover { color: #475569; }
.modal-header {
    text-align: center;
    margin-bottom: 16px;
}
.modal-header h2 {
    font-size: 1.3rem;
    color: #1e293b;
    margin-bottom: 4px;
}
.modal-header p {
    color: #64748b;
    font-size: 0.82rem;
}
#loginModal .auth-form, #registerModal .auth-form { gap: 12px; }
#loginModal .form-group, #registerModal .form-group { gap: 4px; }
#loginModal .form-group input, #registerModal .form-group input { padding: 8px 12px; font-size: 0.86rem; }
#loginModal .form-group label, #registerModal .form-group label { font-size: 0.82rem; }
#loginModal .auth-btn, #registerModal .auth-btn { padding: 10px; font-size: 0.88rem; margin-top: 4px; }
#loginModal .auth-footer, #registerModal .auth-footer { margin-top: 16px; }

/* 紧凑模态框（后台管理风格） */
.modal-content-sm {
    background: #fff;
    border-radius: 8px;
    width: 90%;
    max-width: 420px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    overflow: hidden;
    animation: slideUp 0.3s ease;
}
.modal-header-sm {
    padding: 12px 16px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.modal-title-sm {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1e293b;
}
.modal-close-sm {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #94a3b8;
    cursor: pointer;
    padding: 0 4px;
}
.modal-close-sm:hover { color: #475569; }
.modal-body-sm {
    padding: 16px;
}
.form-group-sm {
    margin-bottom: 12px;
}
.form-group-sm:last-child {
    margin-bottom: 0;
}
.form-label-sm {
    display: block;
    font-size: 0.82rem;
    font-weight: 500;
    color: #475569;
    margin-bottom: 4px;
}
.form-input-sm, .form-select-sm {
    width: 100%;
    padding: 6px 10px;
    font-size: 0.84rem;
    border: 1px solid #e2e8f0;
    border-radius: 5px;
    background: #fff;
    color: #1e293b;
    box-sizing: border-box;
}
.form-input-sm:focus, .form-select-sm:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37,99,235,0.1);
}
.form-checkbox-sm {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}
.form-checkbox-sm input {
    margin: 0;
}
.form-checkbox-sm label {
    font-size: 0.82rem;
    color: #475569;
    cursor: pointer;
}
.modal-footer-sm {
    padding: 12px 16px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}
.btn-sm {
    padding: 5px 16px;
    font-size: 0.82rem;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    transition: opacity 0.15s;
}
.btn-sm:hover { opacity: 0.85; }
.btn-primary-sm {
    background: #2563eb;
    color: #fff;
}
.btn-secondary-sm {
    background: #e2e8f0;
    color: #475569;
}
.modal-error-sm {
    display: none;
    padding: 8px 12px;
    background: #fef2f2;
    color: #dc2626;
    font-size: 0.78rem;
    border-radius: 4px;
    margin-bottom: 12px;
}

/* Toast 提示 */
.toast {
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: #2563eb;
    color: #fff;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 0.88rem;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(37,99,235,0.3);
}
.toast.error { background: #dc2626; box-shadow: 0 4px 12px rgba(220,38,38,0.3); }
.toast.success { background: #16a34a; box-shadow: 0 4px 12px rgba(22,163,74,0.3); }

/* 响应式 */
@media (max-width: 760px) {
    .detail-body { grid-template-columns: 1fr; }
    .app-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
    .nav { display: none; }
    .hero h1 { font-size: 1.6rem; }
}

/* 个人中心 */
.profile-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
    align-items: flex-start;
}

/* 左侧边栏 */
.profile-sidebar {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
    overflow: hidden;
}
.profile-user-card {
    padding: 28px 20px;
    text-align: center;
    border-bottom: 1px solid #f1f5f9;
}
.profile-user-card .profile-avatar {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 14px;
    gap: 8px;
}
.profile-user-card .avatar-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #fff;
    font-weight: 700;
    overflow: hidden;
}
.profile-user-card .avatar-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.profile-user-card .avatar-edit-btn {
    padding: 4px 12px;
    font-size: 0.78rem;
    color: #64748b;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s;
}
.profile-user-card .avatar-edit-btn:hover {
    background: #e2e8f0;
    color: #2563eb;
    border-color: #cbd5e1;
}
.profile-user-card .profile-name {
    font-size: 1.15rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 4px;
}
.profile-user-card .profile-email {
    font-size: 0.82rem;
    color: #94a3b8;
}
.profile-menu {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.profile-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    border-radius: 8px;
    color: #475569;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    transition: all 0.15s;
}
.profile-menu-item:hover {
    background: #f1f5f9;
    color: #2563eb;
}
.profile-menu-item.active {
    background: #3b82f6;
    color: #fff;
}
.profile-menu-item .menu-icon {
    font-size: 1rem;
    width: 20px;
    text-align: center;
}
.profile-menu-item .menu-badge {
    margin-left: auto;
    background: #ef4444;
    color: #fff;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 600;
    line-height: 1.4;
}
.profile-menu-item.active .menu-badge {
    background: #fff;
    color: #3b82f6;
}

/* 右侧主内容 */
.profile-main {
    display: flex;
    flex-direction: column;
    gap: 20px;
    animation: fadeInRight 1.5s ease-out;
    animation-fill-mode: both;
    animation-delay: 0.2s;
}

/* 统计卡片 */
.profile-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.profile-stat-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
    padding: 16px 12px;
    text-align: center;
    border: 1px solid transparent;
    animation: fadeInUp 1.5s ease-out;
    animation-fill-mode: both;
}
.profile-stat-card:nth-child(1) { animation-delay: 0.4s; }
.profile-stat-card:nth-child(2) { animation-delay: 0.5s; }
.profile-stat-card:nth-child(3) { animation-delay: 0.6s; }
.profile-stat-card:nth-child(4) { animation-delay: 0.7s; }
.profile-stat-card.blue {
    background: linear-gradient(135deg, #e0f2fe 0%, #dbeafe 100%);
    border-color: rgba(59, 130, 246, 0.15);
}
.profile-stat-card.blue .stat-card-value { color: #2563eb; }
.profile-stat-card.green {
    background: linear-gradient(135deg, #dcfce7 0%, #d1fae5 100%);
    border-color: rgba(16, 185, 129, 0.15);
}
.profile-stat-card.green .stat-card-value { color: #059669; }
.profile-stat-card.yellow {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-color: rgba(245, 158, 11, 0.15);
}
.profile-stat-card.yellow .stat-card-value { color: #d97706; }
.profile-stat-card.pink {
    background: linear-gradient(135deg, #fce7f3 0%, #fbcfe8 100%);
    border-color: rgba(236, 72, 153, 0.15);
}
.profile-stat-card.pink .stat-card-value { color: #db2777; }
.stat-card-value {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 4px;
    line-height: 1;
}
.stat-card-label {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 500;
}

/* 用户信息卡片 */
.profile-info-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
    overflow: hidden;
}
.profile-info-header {
    padding: 18px 24px;
    border-bottom: 1px solid #f1f5f9;
}
.profile-info-header h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
}
.profile-info-body {
    padding: 8px 24px;
}
.info-row {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 20px;
    padding: 16px 0;
    border-bottom: 1px solid #f1f5f9;
    align-items: center;
}
.info-row:last-child {
    border-bottom: none;
}
.info-label {
    color: #64748b;
    font-size: 0.88rem;
    font-weight: 500;
}
.info-value {
    color: #1e293b;
    font-size: 0.9rem;
    font-weight: 500;
}
.profile-role-tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 500;
    background: #f1f5f9;
    color: #64748b;
}
.profile-role-tag.admin {
    background: rgba(234,88,12,0.1);
    color: #ea580c;
}

.profile-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
    overflow: hidden;
}
.profile-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    border-bottom: 1px solid #f1f5f9;
}
.profile-card-header h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}
.profile-card-body {
    padding: 20px 24px;
}
.profile-card-actions {
    display: flex;
    gap: 8px;
}
.btn-xs {
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.78rem;
    font-weight: 500;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #475569;
    cursor: pointer;
    transition: all 0.15s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}
.btn-xs:hover {
    background: #f1f5f9;
    color: #2563eb;
    border-color: #cbd5e1;
}
.btn-xs.primary {
    background: #2563eb;
    color: #fff;
    border-color: #2563eb;
}
.btn-xs.primary:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
}
.filter-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.filter-tab {
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 0.82rem;
    font-weight: 500;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #64748b;
    cursor: pointer;
    transition: all 0.15s;
}
.filter-tab:hover {
    background: #f1f5f9;
}
.filter-tab.active {
    background: #2563eb;
    color: #fff;
    border-color: #2563eb;
}

.message-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.message-item {
    display: flex;
    gap: 14px;
    padding: 16px;
    background: #f8fafc;
    border-radius: 8px;
    transition: all 0.15s;
    cursor: pointer;
}
.message-item:hover {
    background: #f1f5f9;
}
.message-item.unread {
    background: #eff6ff;
    border-left: 3px solid #2563eb;
}
.message-icon {
    font-size: 1.3rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 8px;
    flex-shrink: 0;
}
.message-content {
    flex: 1;
    min-width: 0;
}
.message-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 4px;
}
.message-desc {
    font-size: 0.82rem;
    color: #64748b;
    margin-bottom: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.message-time {
    font-size: 0.76rem;
    color: #94a3b8;
}

.token-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.token-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: #f8fafc;
    border-radius: 8px;
}
.token-info {
    flex: 1;
}
.token-name {
    font-size: 0.88rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 6px;
}
.token-value-row {
    display: flex;
    align-items: center;
    gap: 8px;
}
.token-value {
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 0.8rem;
    color: #2563eb;
    background: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 8px;
    display: inline-block;
}
.token-meta {
    display: flex;
    gap: 16px;
}
.meta-item {
    font-size: 0.76rem;
    color: #94a3b8;
}
.token-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.76rem;
    font-weight: 500;
}
.token-status.active {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
}
.token-status.expired {
    background: rgba(148, 163, 184, 0.1);
    color: #64748b;
}

.user-app-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.user-app-item {
    display: flex;
    gap: 14px;
    padding: 16px;
    background: #f8fafc;
    border-radius: 8px;
    align-items: center;
}
.user-app-icon {
    font-size: 2rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 10px;
    flex-shrink: 0;
}
.user-app-info {
    flex: 1;
    min-width: 0;
}
.user-app-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #3b82f6;
    margin-bottom: 4px;
    text-decoration: none;
    cursor: pointer;
    display: inline-block;
}
.user-app-name:hover {
    text-decoration: underline;
}
.user-app-desc {
    font-size: 0.82rem;
    color: #64748b;
    margin-bottom: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.user-app-meta {
    display: flex;
    gap: 16px;
}
.user-app-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.76rem;
    font-weight: 500;
}
.user-app-status.approved {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
}
.user-app-status.pending {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
}
.user-app-status.rejected {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}
.user-app-price {
    font-size: 0.95rem;
    font-weight: 600;
    color: #ef4444;
    flex-shrink: 0;
}
.user-app-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.main-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 18px;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 0;
}
.main-tab {
    padding: 10px 18px;
    font-size: 0.88rem;
    font-weight: 500;
    color: #64748b;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    text-decoration: none;
    transition: all 0.15s;
}
.main-tab:hover {
    color: #2563eb;
}
.main-tab.active {
    color: #2563eb;
    border-bottom-color: #2563eb;
    font-weight: 600;
}

.order-table-wrap {
    overflow-x: auto;
}
.order-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
}
.order-table thead th {
    background: #f8fafc;
    padding: 8px 10px;
    text-align: left;
    font-weight: 600;
    color: #475569;
    border-bottom: 1px solid #e2e8f0;
    white-space: nowrap;
    font-size: 0.8rem;
}
.order-table thead th:nth-child(4),
.order-table thead th:nth-child(7) {
    text-align: right;
}
.order-table tbody td {
    padding: 9px 10px;
    border-bottom: 1px solid #f1f5f9;
    color: #1e293b;
    vertical-align: middle;
    white-space: nowrap;
}
.order-table tbody tr:hover {
    background: #f8fafc;
}
.order-table tbody tr:last-child td {
    border-bottom: none;
}
.order-no-cell {
    display: flex;
    align-items: center;
    gap: 6px;
}
.order-no {
    font-family: 'Monaco', 'Consolas', monospace;
    color: #64748b;
    font-size: 0.76rem;
}
.btn-copy {
    width: 22px;
    height: 22px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 0.85rem;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s;
    color: #94a3b8;
}
.btn-copy:hover {
    background: #e2e8f0;
    color: #475569;
}
.btn-copy:active {
    transform: scale(0.95);
}
.order-app-cell {
    display: flex;
    align-items: center;
    gap: 8px;
}
.order-app-icon-sm {
    font-size: 1.1rem;
    flex-shrink: 0;
}
.order-app-name-sm {
    font-weight: 500;
    color: #2563eb;
    text-decoration: none;
}
.order-app-name-sm:hover {
    text-decoration: underline;
}
.order-price-sm {
    font-weight: 600;
    color: #ef4444;
    text-align: right;
    display: block;
}
.order-status {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 500;
    line-height: 1.4;
    white-space: nowrap;
}
.order-status.paid {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
}
.order-status.pending {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
}
.order-status.refund {
    background: rgba(148, 163, 184, 0.1);
    color: #64748b;
}
.order-actions-sm {
    white-space: nowrap;
    text-align: right;
}
.order-actions-sm .btn-xs + .btn-xs {
    margin-left: 4px;
}

/* 响应式 */
@media (max-width: 900px) {
    .profile-layout {
        grid-template-columns: 1fr;
    }
    .profile-sidebar {
        max-width: 100%;
    }
    .profile-stats-row {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 480px) {
    .profile-stats-row {
        grid-template-columns: 1fr;
    }
    .info-row {
        grid-template-columns: 80px 1fr;
        gap: 12px;
    }
    .order-content {
        flex-wrap: wrap;
    }
    .order-price {
        width: 100%;
        text-align: right;
    }
}
.empty-state {
    text-align: center;
    padding: 40px;
}
.empty-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}
.empty-state h3 {
    font-size: 1.2rem;
    color: #334155;
    margin-bottom: 8px;
}
.empty-state p {
    font-size: 0.88rem;
    color: #64748b;
    margin-bottom: 20px;
}
.empty-actions { display: flex; gap: 12px; justify-content: center; }

/* 评价区域样式 */
.reviews-section {
    padding: 8px 0;
}
.reviews-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e2e8f0;
}
.reviews-header h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}
.reviews-stats {
    display: flex;
    align-items: center;
    gap: 6px;
}
.rating-stars-large .star {
    font-size: 1.2rem;
    color: #fbbf24;
}
.rating-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
}
.rating-count {
    font-size: 0.86rem;
    color: #64748b;
}

/* 评价表单 */
.review-form {
    background: #f8fafc;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
}
.rating-selector-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}
.rating-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1e293b;
    flex-shrink: 0;
}
.rating-selector {
    display: flex;
    align-items: center;
    gap: 6px;
}
.rating-selector .star {
    font-size: 1.6rem;
    color: #cbd5e1;
    cursor: pointer;
    transition: all 0.15s;
}
.rating-selector .star:hover,
.rating-selector .star.selected {
    color: #fbbf24;
    transform: scale(1.1);
}
.rating-text {
    margin-left: 8px;
    font-size: 0.86rem;
    color: #64748b;
    font-weight: 500;
}
.review-textarea {
    width: 100%;
    min-height: 80px;
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.88rem;
    line-height: 1.5;
    resize: vertical;
    box-sizing: border-box;
    color: #334155;
    background: #fff;
}
.review-textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37,99,235,0.1);
}
.review-textarea::placeholder {
    color: #94a3b8;
}
.review-form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
}
.char-count {
    font-size: 0.78rem;
    color: #94a3b8;
}
.review-login-hint {
    text-align: center;
    padding: 20px;
    background: #f8fafc;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.86rem;
    color: #64748b;
}

/* 评价列表 */
.reviews-list {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.loading-reviews {
    text-align: center;
    padding: 20px;
    color: #64748b;
    font-size: 0.86rem;
}
.review-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.review-avatar {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: #64748b;
    overflow: hidden;
}
.review-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.review-body {
    flex: 1;
    min-width: 0;
}
.review-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}
.review-username {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1e293b;
}
.review-rating .star {
    font-size: 0.84rem;
    color: #fbbf24;
}
.review-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}
.review-time {
    font-size: 0.78rem;
    color: #94a3b8;
}
.review-content {
    font-size: 0.88rem;
    color: #334155;
    line-height: 1.6;
}
.review-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}
.review-action-btn {
    font-size: 0.78rem;
    color: #2563eb;
    cursor: pointer;
    transition: color 0.15s;
}
.review-action-btn:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* 回复列表 */
.replies-list {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.reply-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    background: #f0f9ff;
    border-radius: 8px;
    border-left: 3px solid #3b82f6;
}
.reply-avatar-small {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #dbeafe;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    color: #3b82f6;
    overflow: hidden;
}
.reply-avatar-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.reply-body {
    flex: 1;
    min-width: 0;
}
.reply-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}
.reply-username {
    font-size: 0.82rem;
    font-weight: 600;
    color: #1e293b;
}
.reply-at {
    font-size: 0.78rem;
    color: #3b82f6;
}
.reply-time {
    font-size: 0.74rem;
    color: #94a3b8;
}
.reply-header .reply-action-btn {
    margin-left: auto;
    padding: 3px 10px;
    font-size: 0.78rem;
    border-radius: 4px;
    border: 1px solid #2563eb;
    cursor: pointer;
    background: #fff;
    color: #2563eb;
    transition: all 0.2s;
}
.reply-header .reply-action-btn:hover {
    background: #2563eb;
    color: #fff;
}
.reply-content {
    font-size: 0.84rem;
    color: #475569;
    line-height: 1.5;
}

/* 回复表单 */
.reply-form {
    margin-top: 12px;
    padding-left: 0;
}
.reply-textarea {
    width: 100%;
    min-height: 60px;
    padding: 8px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.84rem;
    line-height: 1.5;
    resize: vertical;
    box-sizing: border-box;
    color: #334155;
    background: #fff;
}
.reply-textarea:focus {
    outline: none;
    border-color: #2563eb;
}
.reply-form-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-top: 8px;
    gap: 8px;
}
.reply-char-count {
    font-size: 0.74rem;
    color: #94a3b8;
}
.btn-reply {
    padding: 6px 16px;
    font-size: 0.82rem;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    background: #2563eb;
    color: #fff;
}
.btn-reply:hover {
    background: #1d4ed8;
}
.btn-cancel-reply {
    padding: 6px 16px;
    font-size: 0.82rem;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
    cursor: pointer;
    background: #fff;
    color: #64748b;
}
.btn-cancel-reply:hover {
    background: #f8fafc;
}

/* 评价分页 */
.reviews-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px;
}
.reviews-pagination .page-btn {
    padding: 6px 14px;
    font-size: 0.84rem;
}
.page-info {
    font-size: 0.84rem;
    color: #64748b;
}

/* 下载页面 */
.download-page {
    width: 100%;
}

/* Hero 区域 */
.download-hero {
    background: #f8fafc;
    padding: 80px 20px;
    text-align: center;
    color: #1e293b;
    border-bottom: 1px solid #e2e8f0;
    animation: fadeInUp 1.5s ease-out;
}
.download-hero-content {
    max-width: 900px;
    margin: 0 auto;
}
.download-hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: #1e293b;
}
.download-hero-subtitle {
    font-size: 1.1rem;
    color: #64748b;
    margin-bottom: 32px;
}
.download-hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.btn-download-primary {
    display: inline-block;
    padding: 14px 40px;
    background: #2563eb;
    color: #fff;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    box-shadow: 0 4px 15px rgba(37,99,235,0.2);
}
.btn-download-primary:hover {
    transform: translateY(-2px);
    background: #1d4ed8;
    box-shadow: 0 6px 20px rgba(37,99,235,0.3);
}
.btn-download-secondary {
    display: inline-block;
    padding: 14px 40px;
    background: #fff;
    color: #475569;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
}
.btn-download-secondary:hover {
    background: #f8fafc;
    border-color: #94a3b8;
}
.download-hero-meta {
    font-size: 0.88rem;
    color: #94a3b8;
}

/* 通用区块标题 */
.section-title {
    text-align: center;
    font-size: 1.8rem;
    color: #1e293b;
    margin-bottom: 48px;
    font-weight: 600;
}

/* 功能特点 */
.download-features {
    padding: 80px 20px;
    background: #f8fafc;
    animation: fadeInUp 1.5s ease-out;
    animation-fill-mode: both;
    animation-delay: 0.2s;
}
.download-features .container {
    max-width: 1100px;
    margin: 0 auto;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.feature-item {
    background: #fff;
    animation: fadeInUp 1.5s ease-out;
    animation-fill-mode: both;
}
.feature-item:nth-child(1) { animation-delay: 0.3s; }
.feature-item:nth-child(2) { animation-delay: 0.4s; }
.feature-item:nth-child(3) { animation-delay: 0.5s; }
.feature-item:nth-child(4) { animation-delay: 0.6s; }
.feature-item:nth-child(5) { animation-delay: 0.7s; }
.feature-item:nth-child(6) { animation-delay: 0.8s; }
    padding: 32px 24px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
    transition: all 0.2s;
}
.feature-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}
.feature-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}
.feature-item h3 {
    font-size: 1.1rem;
    color: #1e293b;
    margin-bottom: 10px;
    font-weight: 600;
}
.feature-item p {
    font-size: 0.88rem;
    color: #64748b;
    line-height: 1.6;
}

/* 安装方式 */
.download-install {
    padding: 80px 20px;
    background: #fff;
    animation: fadeInUp 1.5s ease-out;
    animation-fill-mode: both;
    animation-delay: 0.4s;
}
.download-install .container {
    max-width: 1100px;
    margin: 0 auto;
}
.install-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.install-card {
    background: #f8fafc;
    padding: 32px 28px;
    animation: fadeInUp 1.5s ease-out;
    animation-fill-mode: both;
}
.install-card:nth-child(1) { animation-delay: 0.5s; }
.install-card:nth-child(2) { animation-delay: 0.6s; }
.install-card:nth-child(3) { animation-delay: 0.7s; }
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    transition: all 0.2s;
}
.install-card:hover {
    border-color: #2563eb;
    box-shadow: 0 4px 20px rgba(37,99,235,0.1);
}
.install-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}
.install-card h3 {
    font-size: 1.15rem;
    color: #1e293b;
    margin-bottom: 8px;
    font-weight: 600;
}
.install-desc {
    font-size: 0.88rem;
    color: #64748b;
    margin-bottom: 20px;
    line-height: 1.5;
}
.install-steps {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
}
.install-steps li {
    font-size: 0.86rem;
    color: #475569;
    padding: 8px 0;
    padding-left: 20px;
    position: relative;
    line-height: 1.5;
}
.install-steps li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: 600;
}
.install-link {
    display: inline-block;
    color: #2563eb;
    font-size: 0.88rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.15s;
}
.install-link:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* 系统要求 */
.download-requirements {
    padding: 80px 20px;
    background: #f8fafc;
    animation: fadeInUp 1.5s ease-out;
    animation-fill-mode: both;
    animation-delay: 0.6s;
}
.download-requirements .container {
    max-width: 1100px;
    margin: 0 auto;
}
.requirements-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}
.req-card {
    animation: fadeInUp 1.5s ease-out;
    animation-fill-mode: both;
}
.req-card:nth-child(1) { animation-delay: 0.7s; }
.req-card:nth-child(2) { animation-delay: 0.8s; }
.req-card:nth-child(3) { animation-delay: 0.9s; }
.req-card:nth-child(4) { animation-delay: 1.0s; }
.req-card {
    background: #fff;
    padding: 28px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}
.req-icon {
    font-size: 2rem;
    margin-bottom: 14px;
}
.req-card h3 {
    font-size: 1.05rem;
    color: #1e293b;
    margin-bottom: 16px;
    font-weight: 600;
}
.req-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.req-card li {
    font-size: 0.86rem;
    color: #475569;
    padding: 6px 0;
    padding-left: 18px;
    position: relative;
    line-height: 1.5;
}
.req-card li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #2563eb;
    font-size: 1.2em;
    line-height: 1;
}

/* CTA 区域 */
.download-cta {
    padding: 80px 20px;
    background: #f8fafc;
    text-align: center;
    color: #1e293b;
    border-top: 1px solid #e2e8f0;
    animation: fadeInUp 1.5s ease-out;
    animation-fill-mode: both;
    animation-delay: 0.8s;
}
.download-cta .container {
    max-width: 700px;
    margin: 0 auto;
}
.download-cta h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #1e293b;
}
.download-cta p {
    font-size: 1rem;
    color: #64748b;
    margin-bottom: 32px;
}
.download-cta-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* 文档页面 */
.docs-page {
    width: 100%;
    background: #f8fafc;
    min-height: 60vh;
}
.docs-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px;
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 40px;
}

/* 侧边栏 */
.docs-sidebar {
    position: sticky;
    top: 90px;
    height: fit-content;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
    padding: 16px;
}
.docs-main {
    animation: fadeInRight 1.5s ease-out;
    animation-fill-mode: both;
    animation-delay: 0.2s;
}
.docs-sidebar-title {
    font-size: 0.9rem;
    color: #1e293b;
    margin-bottom: 16px;
    padding: 0 12px 12px;
    font-weight: 600;
    border-bottom: 1px solid #e2e8f0;
}
.docs-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}
.docs-nav-item {
    margin-bottom: 2px;
}
.docs-nav-item a {
    display: block;
    padding: 10px 14px;
    color: #64748b;
    text-decoration: none;
    font-size: 0.88rem;
    border-radius: 6px;
    transition: all 0.15s;
    border-left: 2px solid transparent;
}
.docs-nav-item a:hover {
    background: #fff;
    color: #2563eb;
}
.docs-nav-item.active a {
    background: #fff;
    color: #2563eb;
    font-weight: 500;
    border-left-color: #2563eb;
}

/* 主内容区 */
.docs-main {
    min-width: 0;
}
.docs-article {
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.docs-article h2 {
    font-size: 1.6rem;
    color: #1e293b;
    margin-bottom: 20px;
    font-weight: 600;
    padding-bottom: 12px;
    border-bottom: 2px solid #f1f5f9;
}
.docs-article h3 {
    font-size: 1.1rem;
    color: #1e293b;
    margin: 28px 0 12px;
    font-weight: 600;
}
.docs-article p {
    font-size: 0.92rem;
    color: #475569;
    line-height: 1.8;
    margin-bottom: 14px;
}
.docs-article ul,
.docs-article ol {
    padding-left: 24px;
    margin-bottom: 16px;
}
.docs-article li {
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.8;
    margin-bottom: 6px;
}
.docs-article code {
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.84rem;
    color: #dc2626;
    font-family: 'Monaco', 'Consolas', monospace;
}

/* ============ 首页展示型样式 ============ */

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

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 英雄区域 */
.hero-section {
    padding: 10px 0;
    background: #f8fafc;
    animation: fadeInUp 1.5s ease-out;
}
.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.hero-content { 
    text-align: left;
    animation: fadeInLeft 1.5s ease-out;
}
.hero-image {
    animation: fadeInRight 1.5s ease-out;
}
.hero-title {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #1e293b;
}
.hero-subtitle {
    font-size: 1.15rem;
    margin-bottom: 32px;
    color: #64748b;
    line-height: 1.6;
}
.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}
.btn-lg {
    padding: 12px 28px;
    font-size: 0.95rem;
}
.btn-outline {
    background: transparent;
    color: #2563eb;
    border: 1px solid #2563eb;
}
.btn-outline:hover {
    background: #2563eb;
    color: #fff;
}
.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}
.hero-app-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 20px;
    padding: 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    width: 500px;
    height: 350px;
    overflow: hidden;
}
.hero-app-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 40px rgba(0,0,0,0.12);
}
.hero-app-icon {
    width: 96px;
    height: 96px;
    border-radius: 20px;
    margin-bottom: 16px;
    object-fit: cover;
}
.hero-app-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-app-info { 
    text-align: center; 
    padding: 12px;
}
.hero-app-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 4px;
}
.hero-app-category {
    font-size: 0.82rem;
    color: #94a3b8;
    margin-bottom: 6px;
}
.hero-app-rating { font-size: 0.85rem; }
.hero-app-rating .rating-value {
    margin-left: 4px;
    color: #475569;
    font-weight: 600;
}
.hero-app-downloads {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 0.82rem;
    color: #64748b;
    margin-top: 4px;
}
.hero-placeholder {
    text-align: center;
    padding: 60px 40px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    max-width: 320px;
}
.hero-placeholder-icon {
    font-size: 4rem;
    margin-bottom: 16px;
}
.hero-placeholder p { color: #94a3b8; }

/* 核心功能 */
.features-section {
    padding: 80px 0;
    background: #fff;
}
.features-section .section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 50px;
    border-bottom: none;
    animation: fadeInUp 1.5s ease-out;
}
.feature-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 80px;
    animation: fadeInUp 1.5s ease-out;
    animation-fill-mode: both;
}
.feature-row:nth-child(2) { animation-delay: 0.2s; }
.feature-row:nth-child(3) { animation-delay: 0.4s; }
.feature-row:nth-child(4) { animation-delay: 0.6s; }
.feature-row:last-child { margin-bottom: 0; }
.feature-row-reverse { direction: rtl; }
.feature-row-reverse > * { direction: ltr; }
.feature-image {
    display: flex;
    justify-content: center;
}
.feature-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #f8fafc;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    max-width: 360px;
    width: 100%;
}
.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}
.feature-card-icon {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    margin-bottom: 16px;
    object-fit: cover;
}
.feature-card-lg {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #f8fafc;
    border-radius: 20px;
    padding: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    width: 500px;
    height: 350px;
    overflow: hidden;
}
.feature-card-lg:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}
.feature-card-icon-lg {
    width: 100%;
    max-width: 420px;
    height: auto;
    border-radius: 16px;
    margin-bottom: 16px;
    object-fit: cover;
}
.feature-card-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}
.feature-card-info { text-align: center; }
.feature-card-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
}
.feature-card-meta {
    display: flex;
    justify-content: center;
    gap: 16px;
    font-size: 0.86rem;
    color: #64748b;
}
.feature-placeholder {
    text-align: center;
    padding: 60px 40px;
    background: #f8fafc;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    max-width: 360px;
    width: 100%;
}
.feature-placeholder-large { padding: 80px 40px; }
.feature-placeholder-icon {
    font-size: 3.5rem;
    margin-bottom: 12px;
}
.feature-placeholder p {
    font-size: 1rem;
    color: #64748b;
    font-weight: 500;
}
.feature-img-placeholder {
    max-width: 100%;
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}
.feature-bg-image {
    width: 100%;
    height: 350px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}
.feature-content h3 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 16px;
}
.feature-content p {
    font-size: 1rem;
    color: #64748b;
    line-height: 1.8;
    margin-bottom: 20px;
}
.feature-list {
    list-style: none;
    padding: 0;
}
.feature-list li {
    padding: 6px 0;
    color: #475569;
    font-size: 0.95rem;
}

/* 统计数据 */
.stats-section {
    padding: 60px 0;
    background: #f8fafc;
}
.stats-section .section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
    border-bottom: none;
    animation: fadeInUp 1.5s ease-out;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}
.stat-item {
    text-align: center;
    padding: 36px 20px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    border: 1px solid #e2e8f0;
    transition: transform 0.2s, box-shadow 0.2s;
    animation: fadeInUp 1.5s ease-out;
    animation-fill-mode: both;
}
.stat-item:nth-child(1) { animation-delay: 0.1s; }
.stat-item:nth-child(2) { animation-delay: 0.2s; }
.stat-item:nth-child(3) { animation-delay: 0.3s; }
.stat-item:nth-child(4) { animation-delay: 0.4s; }
.stat-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.stat-number {
    font-size: 2.6rem;
    font-weight: 700;
    color: #2563eb;
    margin-bottom: 8px;
}
.stat-label {
    font-size: 0.95rem;
    color: #64748b;
    font-weight: 500;
}

/* 应用展示 */
.apps-showcase {
    padding: 80px 0;
    background: #fff;
}
.apps-showcase-alt {
    background: #f8fafc;
}
.apps-showcase .section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
    border-bottom: none;
    animation: fadeInUp 1.5s ease-out;
}

/* 最新上架 - 大图卡片布局 */
.showcase-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}
.showcase-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid #e2e8f0;
    transition: transform 0.2s, box-shadow 0.2s;
    animation: fadeInUp 1.5s ease-out;
    animation-fill-mode: both;
}
.showcase-card:nth-child(1) { animation-delay: 0.1s; }
.showcase-card:nth-child(2) { animation-delay: 0.2s; }
.showcase-card:nth-child(3) { animation-delay: 0.3s; }
.showcase-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}
.showcase-cover-wrap {
    display: block;
    width: 100%;
    height: 250px;
    overflow: hidden;
    text-decoration: none;
}
.showcase-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.showcase-cover-wrap:hover .showcase-cover {
    transform: scale(1.08);
    transition: transform 0.4s ease;
}
.featured-cover-wrap:hover .featured-cover {
    transform: scale(1.08);
    transition: transform 0.4s ease;
}
.featured-cover {
    transition: transform 0.4s ease;
}
.showcase-body {
    padding: 14px 16px;
}
.showcase-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
}
.showcase-title a {
    color: #1e293b;
    text-decoration: none;
}
.showcase-title a:hover { color: #3b82f6; }
.showcase-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
    margin-bottom: 6px;
}
.showcase-version { color: #64748b; }
.showcase-downloads { color: #64748b; }
.showcase-author { font-size: 0.82rem; }
.showcase-author a { color: #64748b; text-decoration: none; }
.showcase-author a:hover { color: #3b82f6; }
.section-more { text-align: center; }


/* 精选应用 - 大图卡片布局 */
.featured-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}
.featured-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid #e2e8f0;
    transition: transform 0.2s, box-shadow 0.2s;
    animation: fadeInUp 1.5s ease-out;
    animation-fill-mode: both;
}
.featured-card:nth-child(1) { animation-delay: 0.1s; }
.featured-card:nth-child(2) { animation-delay: 0.2s; }
.featured-card:nth-child(3) { animation-delay: 0.3s; }
.featured-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}
.featured-cover-wrap {
    display: block;
    width: 100%;
    height: 250px;
    overflow: hidden;
    text-decoration: none;
}
.featured-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.featured-body {
    padding: 14px 16px;
}
.featured-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
}
.featured-title a {
    color: #1e293b;
    text-decoration: none;
}
.featured-title a:hover {
    color: #3b82f6;
}
.featured-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
    margin-bottom: 6px;
}
.featured-version {
    color: #64748b;
}
.featured-downloads {
    color: #64748b;
}
.featured-author {
    font-size: 0.82rem;
}
.featured-author a {
    color: #64748b;
    text-decoration: none;
}
.featured-author a:hover {
    color: #3b82f6;
}
/* CTA区域 */
.cta-section {
    padding: 80px 0;
    background: #f8fafc;
    text-align: center;
    animation: fadeInUp 1.5s ease-out;
}
.cta-section h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: #1e293b;
}
.cta-section p {
    font-size: 1.1rem;
    color: #64748b;
    margin-bottom: 32px;
}

/* 响应式 */
@media (max-width: 768px) {
    .hero-container { grid-template-columns: 1fr; gap: 40px; }
    .hero-title { font-size: 2rem; }
    .hero-content { text-align: center; }
    .hero-buttons { justify-content: center; }
    .hero-app-card { width: 100%; height: auto; aspect-ratio: 500/350; }
    .feature-row { grid-template-columns: 1fr; gap: 30px; margin-bottom: 50px; }
    .feature-row-reverse { direction: ltr; }
    .feature-card-lg { width: 100%; height: auto; aspect-ratio: 500/350; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .showcase-grid { grid-template-columns: 1fr; }
    .featured-grid { grid-template-columns: 1fr; }
    .features-section, .apps-showcase, .cta-section { padding: 50px 0; }
    .features-section .section-title, .apps-showcase .section-title, .stats-section .section-title { font-size: 1.5rem; }
    .cta-section h2 { font-size: 1.6rem; }
    .stat-number { font-size: 2rem; }
}

/* 代码块 */
.docs-code {
    background: #1e293b;
    color: #e2e8f0;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 14px 0 20px;
    font-size: 0.84rem;
    line-height: 1.6;
}
.docs-code code {
    background: transparent;
    color: #e2e8f0;
    padding: 0;
    font-family: 'Monaco', 'Consolas', monospace;
}

/* 文档卡片 */
.docs-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    margin: 16px 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.docs-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 12px;
}
.docs-card h4 {
    font-size: 0.98rem;
    font-weight: 600;
    color: #334155;
    margin: 16px 0 8px;
}
.docs-card p { color: #475569; line-height: 1.7; margin: 8px 0; }
.docs-card ul, .docs-card ol { color: #475569; line-height: 1.8; padding-left: 20px; margin: 8px 0; }
.docs-card li { margin: 4px 0; }

/* 行内代码块（参考站点 code-inline） */
.code-inline {
    background: #1e293b;
    color: #e2e8f0;
    padding: 16px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 10px 0;
    font-size: 0.84rem;
    line-height: 1.6;
    font-family: 'Monaco', 'Consolas', monospace;
    white-space: pre;
}
.code-inline code {
    background: transparent;
    color: inherit;
    padding: 0;
}

/* 代码块包装与复制按钮 */
.code-wrapper {
    position: relative;
    margin: 10px 0;
}
.code-wrapper .copy-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(255,255,255,0.12);
    color: #e2e8f0;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 0.78rem;
    cursor: pointer;
    transition: background 0.2s;
}
.code-wrapper .copy-btn:hover {
    background: rgba(255,255,255,0.22);
}
.code-wrapper .copy-btn.copied {
    background: #059669;
    border-color: #059669;
    color: #fff;
}
.code-wrapper .code-inline {
    margin: 0;
}

/* 表格 */
.docs-table {
    width: 100%;
    border-collapse: collapse;
    margin: 14px 0 20px;
    font-size: 0.88rem;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}
.docs-table th {
    background: #f8fafc;
    padding: 12px 16px;
    text-align: left;
    color: #1e293b;
    font-weight: 600;
    border-bottom: 1px solid #e2e8f0;
}
.docs-table td {
    padding: 12px 16px;
    color: #475569;
    border-bottom: 1px solid #f1f5f9;
}
.docs-table tbody tr:last-child td {
    border-bottom: none;
}
.docs-table tbody tr:hover {
    background: #f8fafc;
}
.docs-table .code-inline {
    margin: 0;
    padding: 10px 12px;
    font-size: 0.8rem;
    border-radius: 6px;
}
.docs-table code {
    background: #eff6ff;
    color: #2563eb;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.84rem;
    font-family: 'Monaco', 'Consolas', monospace;
}

/* 响应式 */
@media (max-width: 768px) {
    .docs-container {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .docs-sidebar {
        position: static;
    }
    .docs-article {
        padding: 24px 20px;
    }
}

/* ============ 全局渐显上升动画 ============ */
.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 3s ease, transform 3s ease;
    will-change: opacity, transform;
}
.fade-in-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* 尊重用户减少动画偏好 */
@media (prefers-reduced-motion: reduce) {
    .fade-in-up {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* 注册码选择弹窗 */
#tokenSelectModal .modal-content {
    max-width: 480px;
}
.token-select-list {
    max-height: 360px;
    overflow-y: auto;
    margin: 0 -4px;
    padding: 0 4px;
}
.token-select-item {
    padding: 14px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fff;
}
.token-select-item:hover {
    border-color: #2563eb;
    background: #eff6ff;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.1);
}
.token-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}
.token-site-name {
    font-size: 0.92rem;
    font-weight: 600;
    color: #1e293b;
}
.token-status {
    font-size: 0.74rem;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 500;
}
.token-status-active {
    background: #dcfce7;
    color: #166534;
}
.token-status-expired {
    background: #fee2e2;
    color: #991b1b;
}
.token-item-url {
    font-size: 0.8rem;
    color: #64748b;
    word-break: break-all;
}
.token-select-footer {
    text-align: center;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid #f1f5f9;
}
.token-manage-link {
    font-size: 0.82rem;
    color: #2563eb;
    text-decoration: none;
}
.token-manage-link:hover {
    text-decoration: underline;
}
