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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8f0fe 100%);
    min-height: 100vh;
}


/* 顶部信息栏 */
.top-header {
    background: #f7f9fc;
    border-bottom: 1px solid #e6ecf5;
}

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

.header-left {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 0 0 auto;
}

.logo-img {
    width: 52px;
    height: 52px;
    object-fit: contain;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 24px;
    list-style: none;
    flex: 1 1 auto;
    justify-content: center;
    margin: 0;
    padding: 0;
}

.header-nav a {
    color: #2c3e60;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.2px;
    padding: 6px 2px;
    border-bottom: 2px solid transparent;
    transition: color 0.2s, border-color 0.2s;
}

.header-nav a:hover,
.header-nav a.active {
    color: #2c4aa5;
    border-color: #2c4aa5;
}

.header-title {
    font-size: 18px;
    font-weight: 700;
    color: #2c4aa5;
    letter-spacing: 0.2px;
}

.header-subtitle {
    font-size: 12px;
    color: #7b8db1;
    margin-top: 2px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
}

/* 用户认证区域 */
.auth-area {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-auth {
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-login {
    color: #1976d2;
    background: #f4f8ff;
    border: 1px solid #cfe0ff;
}

.btn-login:hover {
    background: #e9f2ff;
}

.btn-register {
    color: white;
    background: #1976d2;
    border: none;
}

.btn-register:hover {
    background: #1565c0;
}

/* 用户菜单 */
.user-menu {
    position: relative;
    display: none;
}

.user-menu.active {
    display: block;
}

.user-menu-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #ffffff;
    border: 1px solid #e6ecf5;
    border-radius: 999px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #2c4aa5;
    box-shadow: 0 6px 16px rgba(44, 74, 165, 0.08);
    transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
}

.user-menu-trigger:hover {
    background: #f7f9ff;
    box-shadow: 0 8px 20px rgba(44, 74, 165, 0.12);
    transform: translateY(-1px);
}

.user-avatar {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #2c4aa5 0%, #4f7cff 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(44, 74, 165, 0.25);
}

.user-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: white;
    border-radius: 16px;
    border: 1px solid #eef2f8;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
    min-width: 180px;
    overflow: hidden;
    z-index: 100;
}

.user-dropdown.show {
    display: block;
}

.user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    font-size: 14px;
    color: #1f2d3d;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, transform 0.2s;
}

.user-dropdown-item:hover {
    background: #f3f6ff;
    color: #2c4aa5;
    transform: translateX(2px);
}

.user-dropdown-item.danger {
    color: #d32f2f;
}

.user-dropdown-item span:first-child {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f1f5ff;
    font-size: 14px;
}

.user-dropdown-item.danger span:first-child {
    background: #ffebee;
}

.user-dropdown-divider {
    height: 1px;
    background: #e8ecf2;
    margin: 4px 0;
}

/* 宣传横幅 */
.promo-banner {
    background: linear-gradient(90deg, #e3f2fd 0%, #bbdefb 100%);
    padding: 12px 0;
    text-align: center;
    color: #1565c0;
    font-size: 14px;
}

.sparkle {
    color: #ffd700;
    margin-right: 8px;
}

/* 主内容区 */
.main-content {
    max-width: 1000px;
    margin: 28px auto 60px;
    padding: 0 20px;
}

/* 标题区域 */
.title-section {
    text-align: center;
    margin-bottom: 48px;
}

.main-title {
    font-size: 48px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 20px;
    line-height: 1.3;
}

.main-title .sparkle {
    font-size: 36px;
    vertical-align: middle;
}

.subtitle {
    font-size: 18px;
    color: #1976d2;
    margin-bottom: 12px;
    font-weight: 500;
}

.description {
    font-size: 16px;
    color: #1976d2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.rocket {
    font-size: 18px;
}

/* 功能操作卡片 */
.operation-card {
    background: white;
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
    margin-bottom: 32px;
}

/* 卡片顶部一行：上传模式 + 右侧操作 */
.card-top-row {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    justify-content: space-between;
}

.upload-mode-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.card-actions {
    margin-left: auto;
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    gap: 10px;
}

.btn-activate {
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    color: #1976d2;
    background: #f4f8ff;
    border: 1px solid #cfe0ff;
    border-radius: 8px;
    cursor: pointer;
}

.btn-activate:hover {
    background: #e9f2ff;
}

.code-status {
    font-size: 12px;
    color: #7a8cae;
    margin-top: 4px;
    text-align: right;
}

.code-status.bound {
    color: #4caf50;
}

/* 上传区域：单独一行铺大 */
.upload-section {
    width: 100%;
    min-height: 260px;
    margin-bottom: 20px;
}

.upload-area {
    border: 2px dashed #d0d7e2;
    border-radius: 14px;
    padding: 64px 32px;
    text-align: center;
    background: #f8fafc;
    position: relative;
    transition: all 0.2s;
    cursor: pointer;
    width: 100%;
    min-height: 260px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.upload-area:hover {
    border-color: #1976d2;
    background: #f0f7ff;
}

.upload-area.dragover {
    border-color: #1976d2;
    background: #e3f2fd;
}

.upload-text {
    font-size: 16px;
    color: #555;
    margin-bottom: 6px;
    font-weight: 500;
}

.upload-hint {
    font-size: 13px;
    color: #999;
}

.file-input {
    display: none;
}

/* 多图预览网格 */
.preview-area {
    display: none;
    margin-top: 10px;
}

.preview-area.active {
    display: block;
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 12px;
    color: #666;
}

.preview-count {
    font-weight: 600;
    color: #1976d2;
}

.btn-clear-all {
    padding: 6px 12px;
    font-size: 12px;
    color: #e53935;
    background: transparent;
    border: 1px solid #e53935;
    border-radius: 6px;
    cursor: pointer;
}

.btn-clear-all:hover {
    background: #ffebee;
}

.preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 8px;
}

.preview-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    background: #f0f0f0;
    border: 1px solid #e0e0e0;
}

.preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.preview-item .btn-remove-one {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 22px;
    height: 22px;
    border: none;
    border-radius: 50%;
    background: rgba(0,0,0,0.6);
    color: white;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.preview-item .btn-remove-one:hover {
    background: #e53935;
}

.preview-item .file-name {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 4px 6px;
    font-size: 10px;
    color: #fff;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mode-label {
    font-size: 13px;
    color: #666;
    font-weight: 500;
}

.mode-switch {
    display: inline-flex;
    background: #f0f2f5;
    border-radius: 8px;
    padding: 2px;
    gap: 0;
}

.mode-btn {
    padding: 6px 14px;
    font-size: 13px;
    color: #666;
    background: transparent;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.mode-btn.active {
    background: #1976d2;
    color: white;
    font-weight: 600;
}

.mode-btn:not(.active):hover {
    background: #e8eaed;
    color: #333;
}

.action-buttons {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 20px;
}

.btn-convert {
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 600;
    color: white;
    background: #1976d2;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-convert:hover:not(:disabled) {
    background: #1565c0;
}

.btn-convert:disabled {
    background: #bdbdbd;
    cursor: not-allowed;
}

.btn-send-icon {
    font-size: 14px;
}

/* 最近项目 */
.recent-section {
    text-align: center;
    margin-bottom: 6px;
}

.btn-recent {
    padding: 12px 32px;
    border: 2px solid #1976d2;
    color: #1976d2;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
}

/* 案例展示 */
.showcase-section {
    max-width: 1100px;
    margin: 4px auto 60px;
    padding: 0 20px;
}

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.showcase-card {
    background: white;
    border-radius: 16px;
    padding: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.showcase-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(0,0,0,0.12);
}

.showcase-image {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background: #f6f7fb;
}

.showcase-card img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.showcase-card:hover img {
    transform: scale(1.04);
}

.showcase-zoom {
    position: absolute;
    right: 10px;
    bottom: 10px;
    background: rgba(25, 118, 210, 0.9);
    color: #fff;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 999px;
}

.showcase-caption {
    margin-top: 10px;
    font-size: 14px;
    color: #4a5a78;
    text-align: center;
    font-weight: 600;
}

.showcase-summary {
    margin-top: 20px;
    background: #f7faff;
    border: 1px solid #dbe7ff;
    padding: 16px 20px;
    border-radius: 12px;
    color: #334155;
    font-size: 15px;
    line-height: 1.8;
    text-align: justify;
    text-justify: inter-ideograph;
}

.showcase-summary strong {
    color: #1976d2;
}

.showcase-more {
    margin-top: 10px;
    text-align: center;
    font-size: 13px;
    color: #6b7da8;
}

/* 通用模态框样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    z-index: 1004;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-content {
    width: 420px;
    max-width: 90vw;
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 12px 36px rgba(0,0,0,0.2);
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-content.large {
    width: 600px;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border: none;
    background: #f5f5f5;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: #e0e0e0;
    color: #333;
}

.modal-title {
    font-size: 20px;
    font-weight: 700;
    color: #1f2d3d;
    margin-bottom: 24px;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #e8ecf2;
    border-radius: 10px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: #1976d2;
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.btn-primary {
    flex: 1;
    padding: 12px;
    background: #1976d2;
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: background 0.2s;
}

.btn-primary:hover {
    background: #1565c0;
}

.btn-secondary {
    flex: 1;
    padding: 12px;
    background: #f5f5f5;
    color: #666;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
}

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

.form-link {
    text-align: center;
    margin-top: 16px;
    font-size: 13px;
    color: #666;
}

.form-link a {
    color: #1976d2;
    text-decoration: none;
    font-weight: 600;
}

.form-link a:hover {
    text-decoration: underline;
}

.form-error {
    background: #ffebee;
    color: #c62828;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 16px;
    display: none;
}

.form-error.active {
    display: block;
}

.form-success {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 16px;
    display: none;
}

.form-success.active {
    display: block;
}

/* 个人中心样式 */
.profile-tabs {
    display: flex;
    border-bottom: 2px solid #e8ecf2;
    margin-bottom: 24px;
}

.profile-tab {
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    color: #666;
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
}

.profile-tab.active {
    color: #1976d2;
}

.profile-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: #1976d2;
}

.profile-panel {
    display: none;
}

.profile-panel.active {
    display: block;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid #f0f0f0;
}

.info-label {
    color: #666;
    font-size: 14px;
}

.info-value {
    color: #1f2d3d;
    font-size: 14px;
    font-weight: 600;
}

.info-value.highlight {
    color: #1976d2;
}

.usage-list {
    max-height: 300px;
    overflow-y: auto;
}

.usage-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 13px;
}

.usage-empty {
    text-align: center;
    color: #999;
    padding: 40px 0;
    font-size: 14px;
}

/* 兑换码列表样式 */
.code-section {
    margin-top: 20px;
}

.code-section-title {
    font-size: 14px;
    font-weight: 600;
    color: #1f2d3d;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e8ecf2;
}

.code-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.code-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    background: linear-gradient(135deg, #f8faff 0%, #f0f4ff 100%);
    border: 1px solid #e3ebff;
    border-radius: 12px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.code-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(44, 74, 165, 0.1);
}

.code-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.code-value {
    font-size: 15px;
    font-weight: 700;
    color: #2c4aa5;
    font-family: 'Monaco', 'Consolas', monospace;
    letter-spacing: 0.5px;
}

.code-expire {
    font-size: 12px;
    color: #7b8db1;
}

.code-remaining {
    text-align: right;
}

.remaining-num {
    font-size: 24px;
    font-weight: 700;
    color: #1976d2;
}

.remaining-label {
    font-size: 12px;
    color: #7b8db1;
}

.code-empty {
    text-align: center;
    color: #999;
    padding: 30px 0;
    font-size: 14px;
}

/* 图片放大预览 */
.image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.8);
    z-index: 1003;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.image-modal.active {
    display: flex;
}

.image-modal-content {
    width: 92vw;
    max-width: 1100px;
    max-height: 88vh;
    background: #fff;
    border-radius: 14px;
    padding: 12px;
    position: relative;
    box-shadow: 0 12px 36px rgba(0,0,0,0.25);
}

.image-modal img {
    width: 100%;
    height: auto;
    max-height: 78vh;
    display: block;
    border-radius: 10px;
    object-fit: contain;
}

.image-modal-caption {
    margin-top: 8px;
    text-align: center;
    font-size: 14px;
    color: #4a5a78;
    font-weight: 600;
}

.image-modal-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 30px;
    height: 30px;
    border: none;
    background: #f0f2f5;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    color: #666;
}

/* 激活码弹窗 */
.activation-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    z-index: 1004;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.activation-modal.active {
    display: flex;
}

.activation-content {
    width: 420px;
    max-width: 90vw;
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 12px 36px rgba(0,0,0,0.2);
    position: relative;
}

.activation-title {
    font-size: 18px;
    font-weight: 700;
    color: #1f2d3d;
    margin-bottom: 12px;
}

.activation-input {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #e8ecf2;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 16px;
}

.activation-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.btn-cancel {
    padding: 8px 14px;
    border: 1px solid #d1d5db;
    background: #f5f5f5;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
}

.btn-confirm {
    padding: 8px 14px;
    border: none;
    background: #1976d2;
    color: #fff;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
}

/* 加载动画 */
.loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.loading-overlay.active {
    display: flex;
}

.loading-content {
    background: white;
    padding: 40px;
    border-radius: 16px;
    text-align: center;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #e0e0e0;
    border-top-color: #1976d2;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-text {
    font-size: 16px;
    color: #666;
}

.loading-progress {
    width: 100%;
    margin-top: 16px;
}

.progress-track {
    width: 100%;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #1976d2, #42a5f5);
    border-radius: 4px;
    width: 0%;
    transition: width 0.3s ease;
}

.progress-text {
    text-align: center;
    font-size: 14px;
    color: #1976d2;
    font-weight: 600;
    margin-top: 8px;
}

/* 多图结果网格 */
.result-grid {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 16px;
    padding: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    justify-content: flex-start;
    align-items: stretch;
}

.result-grid-item {
    flex: 0 0 auto;
    min-width: 160px;
    max-width: 220px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fafafa;
}

.result-grid-item:hover {
    border-color: #1976d2;
    box-shadow: 0 4px 12px rgba(25, 118, 210, 0.2);
    transform: translateY(-2px);
}

.result-svg-thumb {
    width: 100%;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #fff;
    border-radius: 4px;
}

.result-svg-thumb svg {
    max-width: 100%;
    max-height: 100%;
}

.result-item-name {
    margin-top: 8px;
    font-size: 12px;
    color: #666;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 多图详情弹窗 */
.result-detail-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.result-detail-content {
    background: white;
    border-radius: 16px;
    padding: 24px;
    max-width: 90vw;
    max-height: 90vh;
    overflow: auto;
    position: relative;
    min-width: 300px;
}

.result-detail-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border: none;
    background: #f0f0f0;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
}

.result-detail-close:hover {
    background: #e0e0e0;
    color: #333;
}

.result-detail-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 16px;
}

.result-nav-btn {
    padding: 8px 16px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
}

.result-nav-btn:hover:not(:disabled) {
    background: #f5f5f5;
    border-color: #1976d2;
    color: #1976d2;
}

.result-nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.result-nav-info {
    font-size: 14px;
    color: #666;
}

.result-detail-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    max-height: 60vh;
    overflow: auto;
    background: #f9f9f9;
    border-radius: 8px;
    padding: 16px;
}

.result-detail-preview svg {
    max-width: 100%;
    max-height: 100%;
}

.result-detail-name {
    text-align: center;
    margin-top: 12px;
    font-size: 14px;
    color: #666;
}

.btn-download-single {
    display: block;
    width: 100%;
    margin-top: 16px;
    padding: 12px;
    background: #4caf50;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
}

.btn-download-single:hover {
    background: #43a047;
}

/* 结果模态框 */
.result-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    z-index: 1001;
    align-items: center;
    justify-content: center;
}

.result-modal.active {
    display: flex;
}

.result-content {
    background: white;
    padding: 40px;
    border-radius: 16px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.result-title {
    font-size: 24px;
    font-weight: 600;
    color: #1976d2;
    margin-bottom: 24px;
    text-align: center;
}

/* SVG 预览区域：限制在视口内，超出可滚动 */
#resultPreview {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    max-width: 100%;
    overflow: auto;
    padding: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fafafa;
    min-height: 200px;
    max-height: min(60vh, calc(100vh - 220px));
    box-sizing: border-box;
}

#resultPreview svg {
    max-width: 100% !important;
    max-height: 100% !important;
    width: auto !important;
    height: auto !important;
    min-width: 0 !important;
    min-height: 0 !important;
    display: block;
    margin: 0 auto;
    flex-shrink: 0;
}

/* 公告模态框 */
.announcement-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    z-index: 1002;
    align-items: center;
    justify-content: center;
}

.announcement-modal.active {
    display: flex;
}

.announcement-content {
    background: white;
    padding: 40px;
    border-radius: 16px;
    max-width: 700px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
}

.announcement-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border: none;
    background: #f5f5f5;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.announcement-close:hover {
    background: #e0e0e0;
    color: #333;
}

.announcement-header {
    text-align: center;
    margin-bottom: 28px;
}

.announcement-badge {
    display: inline-block;
    padding: 6px 12px;
    background: #e8f2ff;
    color: #1976d2;
    font-size: 12px;
    border-radius: 999px;
    font-weight: 600;
    margin-bottom: 10px;
}

.announcement-subtitle {
    font-size: 18px;
    color: #2c3e50;
    text-align: center;
    font-weight: 600;
    letter-spacing: 0.3px;
    font-family: "Georgia", "Times New Roman", serif;
}

.announcement-section {
    margin-bottom: 28px;
}

.announcement-section-title {
    font-size: 18px;
    font-weight: 700;
    color: #1f2d3d;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e8ecf2;
    font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    display: flex;
    align-items: center;
    gap: 8px;
}

.title-icon {
    font-size: 18px;
}

.announcement-section-content {
    font-size: 15px;
    line-height: 1.8;
    color: #555;
}

.announcement-section-content p {
    margin-bottom: 12px;
    text-align: justify;
    text-justify: inter-ideograph;
}

.announcement-section-content p:last-child {
    margin-bottom: 0;
}

.highlight-text {
    color: #1976d2;
    font-weight: 600;
}

.contact-info {
    background: #f8f9fa;
    padding: 16px;
    border-radius: 8px;
    margin-top: 12px;
}

.contact-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-icon {
    font-size: 18px;
}

.contact-info strong {
    color: #2c3e50;
}

.contact-info .wechat {
    font-size: 16px;
    color: #1976d2;
    font-weight: 600;
    font-family: 'Courier New', monospace;
}

.result-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.btn-download {
    flex: 1;
    padding: 12px;
    background: #4caf50;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
}

.btn-close {
    flex: 1;
    padding: 12px;
    background: #666;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
}

.error-message {
    display: none;
    padding: 16px;
    background: #ffebee;
    color: #c62828;
    border-radius: 8px;
    margin-top: 16px;
    text-align: center;
}

.error-message.active {
    display: block;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .main-title {
        font-size: 32px;
    }

    .subtitle {
        font-size: 16px;
    }

    .operation-card {
        padding: 24px;
    }
