/* ==================== CSS 变量 ==================== */
:root {
    --bg-dark: #0F0B1A;
    --bg-card: #1A1428;
    --bg-glass: rgba(26, 20, 40, 0.7);
    --border: rgba(168, 85, 247, 0.08);
    --primary: #A855F7;
    --primary-light: #C084FC;
    --text: #F4F0FF;
    --text-muted: #C4B5FD;
    --text-weak: #8B7FAD;
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    --radius: 12px;
    --container-width: 1400px;
}

/* ==================== 全局重置 ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: var(--bg-dark);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 20%, rgba(192, 132, 252, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(168, 85, 247, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ==================== 导航栏 ==================== */
.navbar {
    background: var(--bg-card);
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    text-shadow: 0 0 10px rgba(168, 85, 247, 0.3);
    flex-shrink: 0;
}

.logo .main-title {
    color: var(--primary-light);
    text-decoration: none;
}

.logo .version-tag {
    background: var(--primary);
    color: white;
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 20px;
    font-weight: 600;
    box-shadow: 0 0 8px rgba(168, 85, 247, 0.4);
}

.logo .tagline {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 400;
    margin-left: 8px;
    padding-left: 12px;
    border-left: 1px solid var(--border);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-menu a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 6px 12px;
    border-radius: var(--radius);
    transition: all 0.2s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--text);
    background: var(--bg-glass);
    box-shadow: 0 0 8px rgba(168, 85, 247, 0.2);
}

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

.nav-actions .btn {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.nav-actions .btn-outline {
    background: transparent;
    color: var(--primary-light);
    border: 1px solid var(--primary-light);
}

.nav-actions .btn-outline:hover {
    background: var(--primary-light);
    color: white;
}

/* ==================== 主内容区 ==================== */
.main-content {
    flex: 1;
    padding: 2rem 0;
    max-width: 1000px;
    margin: 0 auto;
}

/* ==================== 玻璃卡片 ==================== */
.glass {
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.card {
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

/* ==================== 按钮 ==================== */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-align: center;
    text-decoration: none;
    font-size: 0.95rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(168, 85, 247, 0.5);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(168, 85, 247, 0.3);
}

.btn.small {
    padding: 0.3rem 0.8rem;
    font-size: 0.85rem;
}

.btn.full {
    width: 100%;
    padding: 0.8rem;
    font-size: 1.1rem;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* ==================== 英雄区 ==================== */
.hero {
    padding: 5rem 0;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #C084FC, #A855F7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 30px rgba(192, 132, 252, 0.3));
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--text-muted);
}

.hero .subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 2rem;
    line-height: 1.8;
}

.hero .btn {
    margin: 0 0.5rem;
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
}

/* ==================== 功能卡片区 ==================== */
.features {
    padding: 4rem 0;
}

.features h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
    color: var(--text);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
    box-shadow: var(--shadow);
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(168, 85, 247, 0.3);
    box-shadow: 0 12px 40px rgba(168, 85, 247, 0.15);
}

.feature-card .icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    color: var(--text);
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ==================== 输入框 ==================== */
input[type="text"],
input[type="password"],
input[type="email"],
input[type="file"],
textarea,
select {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.75rem 1rem;
    color: var(--text);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    width: 100%;
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.15);
}

textarea {
    resize: vertical;
    min-height: 100px;
}

select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23C4B5FD'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
    padding-right: 2.5rem;
    cursor: pointer;
}

::placeholder {
    color: var(--text-weak);
}

/* ==================== 尺寸选择网格 ==================== */
.size-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
}

.size-option {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.size-option:hover,
.size-option.selected {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.size-option .label {
    font-weight: bold;
    font-size: 0.9rem;
}

.size-option .dimensions {
    font-size: 0.75rem;
    opacity: 0.8;
}

/* ==================== 旧尺寸按钮组（保留下级页面兼容） ==================== */
.size-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    color: var(--text-muted);
    font-size: 0.82rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    text-align: center;
}

.size-btn span {
    font-size: 0.7rem;
    color: var(--text-weak);
}

.size-btn:hover {
    background: rgba(168, 85, 247, 0.1);
    border-color: rgba(168, 85, 247, 0.3);
    color: var(--text);
}

.size-btn.active {
    background: rgba(168, 85, 247, 0.2);
    border-color: var(--primary);
    color: #fff;
}

.size-btn.active span {
    color: var(--primary-light);
}

/* ==================== 上传区域 ==================== */
.upload-box {
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.02);
}

.upload-box:hover {
    border-color: rgba(168, 85, 247, 0.4);
    background: rgba(168, 85, 247, 0.05);
}

.upload-box .upload-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.upload-box .upload-text {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.upload-box .upload-hint {
    color: var(--text-weak);
    font-size: 0.8rem;
    margin-top: 0.5rem;
}

/* ==================== 预览区 ==================== */
.preview-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-weak);
    min-height: 300px;
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    transition: border-color 0.3s;
}

.preview-area.has-image {
    border-style: solid;
    border-color: rgba(168, 85, 247, 0.2);
}

.preview-area img {
    max-width: 100%;
    max-height: 250px;
    border-radius: 8px;
    object-fit: contain;
}

.preview-area .icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* ==================== 标签 ==================== */
.section-title {
    display: block;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.section-title span {
    margin-right: 0.35rem;
}

/* ==================== 标签页按钮 ==================== */
.tab-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-size: 0.9rem;
    border-radius: 8px;
    transition: all 0.2s;
}

.tab-btn:hover {
    background: rgba(168, 85, 247, 0.1);
}

.tab-btn.active {
    color: var(--text);
    background: rgba(168, 85, 247, 0.15);
}

/* ==================== 登录页 ==================== */
.login-page {
    background: var(--bg-dark);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 2rem;
}

.login-container .card {
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2.5rem;
    box-shadow: var(--shadow);
    text-align: center;
}

.login-container .logo {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    display: block;
}

.login-container h2 {
    color: var(--text);
    margin-bottom: 2rem;
    font-size: 1.5rem;
}

.input-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ==================== 仪表盘统计卡 ==================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s, border-color 0.3s;
    box-shadow: var(--shadow);
}

.stat-card:hover {
    transform: translateY(-3px);
    border-color: rgba(168, 85, 247, 0.3);
}

.stat-card h3 {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.stat-card .number {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-light);
}

.stat-card small {
    display: block;
    color: var(--text-weak);
    font-size: 0.85rem;
    margin-top: 0.3rem;
}

/* ==================== 底部管理栏 ==================== */
.footer-admin {
    background: var(--bg-card);
    padding: 1rem 0;
    border-top: 1px solid var(--border);
    text-align: center;
    margin-top: auto;
}

.footer-admin a {
    color: var(--text-muted);
    text-decoration: none;
    margin: 0 1rem;
    transition: color 0.2s;
}

.footer-admin a:hover {
    color: var(--text);
}

/* QQ 联系链接金色醒目标识 */
.footer-admin a[href*="tencent"] {
    color: #ffd700;
    font-weight: 600;
}

.footer-admin a[href*="tencent"]:hover {
    color: #fff;
}

/* 旧页脚兼容 */
.footer {
    background: rgba(15, 12, 26, 0.8);
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid var(--border);
    margin-top: 4rem;
    color: var(--text-weak);
}

/* ==================== 表单组 ==================== */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

/* ==================== 尺寸分组容器 ==================== */
.size-group {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem;
}

.group-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}

.group-title {
    font-size: 0.95rem;
    font-weight: bold;
    color: var(--primary-light);
}

.group-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-left: 0.75rem;
}

.toggle-arrow {
    color: var(--text-weak);
    font-size: 0.85rem;
    cursor: pointer;
}

.size-options {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.5rem;
}

/* 生成按钮全宽（兼容旧页面） */
.btn-full {
    width: 100%;
    padding: 0.9rem;
    font-size: 1.1rem;
    margin-top: 0.5rem;
}

/* 图标按钮（动态创建用） */
.btn-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    padding: 0;
}

.btn-icon:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

/* ==================== 模态框 ==================== */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
}

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.modal-content img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 0 40px rgba(168, 85, 247, 0.5);
}

.modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: #fff;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
}

.modal-close:hover {
    color: var(--primary);
}

/* ==================== 动画 ==================== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==================== 图生图、位图转矢量 ==================== */
.tool-layout {
    display: flex;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: flex-start;
}

.tool-layout .card.glass {
    flex: 1;
    min-width: 0;
}

/* ==================== 首页引导模块 ==================== */
.guide-section {
    padding: 4rem 0;
}

.guide-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--text);
}

.guide-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
}

.guide-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.guide-card {
    position: relative;
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    padding-top: 2rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.guide-card:hover {
    border-color: rgba(168, 85, 247, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(168, 85, 247, 0.15);
}

.guide-num {
    position: absolute;
    top: -12px;
    left: 16px;
    width: 28px;
    height: 28px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.4);
}

.guide-card h3 {
    color: var(--text);
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

.guide-card p {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.7;
}

/* ==================== 位图转矢量 ==================== */
.vector-converter {
    display: flex;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: flex-start;
}

.converter-left {
    flex: 1;
    min-width: 0;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 25px;
}

.converter-right {
    flex: 1;
    min-width: 0;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 25px;
    min-height: 400px;
}

/* Tab 切换栏 */
.convert-tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0;
}

.convert-tabs .tab-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    padding: 0.6rem 1.2rem;
    cursor: pointer;
    font-size: 0.9rem;
    border-radius: 6px 6px 0 0;
    transition: all 0.2s;
    font-family: inherit;
    border-bottom: 2px solid transparent;
}

.convert-tabs .tab-btn:hover {
    background: rgba(168, 85, 247, 0.05);
    color: var(--text);
}

.convert-tabs .tab-btn.active {
    color: #fff;
    background: var(--primary);
    border-bottom-color: var(--primary);
}

/* 粘贴提示 */
.upload-paste-link {
    color: var(--primary-light);
    font-size: 0.8rem;
    margin-top: 0.75rem;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.2s;
}

.upload-paste-link:hover {
    color: var(--text);
}

/* 输出格式选择器 */
.format-selector {
    display: flex;
    gap: 8px;
}

.format-btn {
    flex: 1;
    padding: 0.6rem 0.5rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.format-btn:hover {
    background: rgba(168, 85, 247, 0.1);
    border-color: rgba(168, 85, 247, 0.3);
    color: var(--text);
}

.format-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.3);
}

/* 操作按钮行 */
.convert-actions {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.convert-actions .btn-full {
    flex: 1;
    margin-top: 0;
}

/* 结果内容区 */
.result-content {
    min-height: 350px;
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.result-empty {
    text-align: center;
    color: var(--text-weak);
}

.result-empty-icon {
    font-size: 3rem;
    opacity: 0.3;
    margin-bottom: 0.75rem;
}

.result-empty p {
    font-size: 0.9rem;
}

.result-content.has-result {
    border-style: solid;
    border-color: rgba(168, 85, 247, 0.2);
    flex-direction: column;
    gap: 1rem;
}

.result-content img {
    max-width: 100%;
    max-height: 300px;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.result-content .result-file-info {
    color: var(--text-muted);
    font-size: 0.85rem;
    text-align: center;
}

.result-content .result-success {
    color: #4ecdc4;
    font-weight: 600;
}

/* 结果操作栏 */
.result-actions-bar {
    display: flex;
    gap: 10px;
    margin-top: 1rem;
}

/* 使用说明 */
.usage-section {
    max-width: 1200px;
    margin: 3rem auto 0;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 25px;
}

.usage-title {
    color: var(--text);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.usage-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.usage-list li {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.7;
    padding-left: 1.2rem;
    position: relative;
}

.usage-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-light);
    font-weight: bold;
}

/* ==================== 响应式 ==================== */

/* 移动端导航汉堡按钮（JS 控制显示） */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-size: 1.5rem;
    padding: 6px 12px;
    cursor: pointer;
    line-height: 1;
}

/* 中间尺寸：900px 以下 */
@media (max-width: 900px) {
    .tool-layout,
    .vector-converter {
        flex-direction: column;
    }

    .guide-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .guide-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    /* 文生图比例按钮从5列改为3列 */
    #ratioGrid {
        grid-template-columns: repeat(3, 1fr) !important;
    }

    /* 预览区图片放大 */
    .preview-area img {
        max-height: 350px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .container {
        padding: 0 12px;
    }
}

/* 手机尺寸：768px 以下 */
@media (max-width: 768px) {
    /* 导航栏 - 紧凑布局 */
    .navbar {
        padding: 8px 0;
    }

    .navbar-container {
        flex-wrap: wrap;
        gap: 0.5rem;
        position: relative;
    }

    .mobile-nav-toggle {
        display: block;
    }

    .logo {
        font-size: 1.2rem;
        gap: 6px;
    }

    .logo .tagline {
        display: none;
    }

    .logo .version-tag {
        font-size: 0.65rem;
        padding: 1px 6px;
    }

    .nav-menu {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 2px;
        padding: 8px 0;
        border-top: 1px solid var(--border);
        margin-top: 6px;
    }

    .nav-menu.open {
        display: flex;
    }

    .nav-menu a {
        padding: 10px 12px;
        font-size: 1rem;
        width: 100%;
        border-radius: 8px;
    }

    .nav-actions {
        gap: 6px;
    }

    .nav-actions .btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }

    /* 主内容 */
    .hero {
        padding: 2.5rem 0;
    }

    .hero h1 {
        font-size: 1.6rem;
    }

    .hero p,
    .hero .subtitle {
        font-size: 0.95rem;
    }

    .hero .btn {
        display: block;
        margin: 0.4rem auto;
        width: 90%;
        padding: 0.7rem 1.5rem;
        font-size: 1rem;
    }

    /* 工具页操作面板 */
    .card {
        padding: 1rem;
    }

    .card.glass {
        padding: 1rem;
    }

    .tool-layout .card.glass {
        padding: 1rem;
    }

    /* 尺寸按钮 */
    #ratioGrid .size-btn {
        padding: 0.6rem 0.4rem;
        font-size: 0.8rem;
        min-height: 48px;
        display: flex;
        justify-content: center;
    }

    #ratioGrid .size-btn span {
        font-size: 0.65rem;
    }

    .size-btn {
        padding: 0.5rem 0.5rem;
        font-size: 0.78rem;
        min-height: 44px;
    }

    /* 分辨率按钮 */
    #resGroup .size-btn {
        padding: 0.7rem 0.5rem;
        font-size: 0.9rem;
    }

    .size-grid {
        grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    }

    .size-options {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }

    /* 触摸友好按钮 */
    .btn,
    .btn-primary {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    #generateBtn {
        min-height: 52px;
        font-size: 1rem;
    }

    /* 模型选择 */
    select {
        min-height: 44px;
        font-size: 0.95rem;
    }

    textarea {
        min-height: 80px;
        font-size: 0.95rem;
    }

    /* 预览区 */
    .preview-area {
        min-height: 200px;
        padding: 1rem;
    }

    .preview-area img {
        max-height: 300px;
    }

    /* 标签页 */
    .tab-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
    }

    .section-title {
        font-size: 0.85rem;
    }

    /* 功能卡片 */
    .features-grid {
        grid-template-columns: 1fr;
    }

    .features h2 {
        font-size: 1.5rem;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .guide-grid,
    .guide-grid-4 {
        grid-template-columns: 1fr;
    }

    .guide-card {
        padding: 1rem;
        padding-top: 1.8rem;
    }

    .stat-card {
        padding: 1.2rem;
    }

    .stat-card .number {
        font-size: 1.8rem;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }

    /* 图生图区域 */
    .convert-tabs .tab-btn {
        padding: 0.5rem 0.8rem;
        font-size: 0.82rem;
    }

    .format-selector {
        gap: 4px;
    }

    .format-btn {
        padding: 0.5rem 0.3rem;
        font-size: 0.78rem;
    }

    /* footer */
    .footer-admin a {
        margin: 0 0.5rem;
        font-size: 0.8rem;
        display: inline-block;
        padding: 4px 0;
    }

    .container {
        padding: 0 10px;
    }

    /* 模态框 */
    .modal-content {
        max-width: 95%;
    }
}

/* 极小屏：480px 以下 */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.3rem;
    }

    #ratioGrid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .container {
        padding: 0 8px;
    }

    .card {
        padding: 0.8rem;
    }

    .card.glass {
        padding: 0.8rem;
    }

    .logo {
        font-size: 1rem;
    }

    .nav-actions .btn {
        padding: 5px 8px;
        font-size: 0.75rem;
    }
}
