/* ========================================
   材质重量计算器官网样式
   简约现代风格
   ======================================== */

/* 基础变量 */
:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --secondary-color: #64748b;
    --accent-color: #0ea5e9;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    
    --border-color: #e2e8f0;
    --border-light: #f1f5f9;
    
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    
    --transition: all 0.3s ease;
}

/* 重置样式 */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
}

/* 容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ========================================
   导航栏
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-light);
    padding: 16px 0;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-primary);
}

.logo-link:hover {
    color: var(--text-primary);
}

.logo-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border-radius: var(--radius-md);
    color: white;
    overflow: hidden;
    flex-shrink: 0;
}

.logo-icon svg {
    width: 20px;
    height: 20px;
    display: none;
}

.logo-img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border-radius: var(--radius-md);
}

/* logo 图片加载失败时：去掉渐变背景，显示 SVG 降级图标 */
.logo-icon.fallback-mode {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
}

.logo-icon.fallback-mode svg.show-fallback {
    display: block;
}

.logo-icon.fallback-mode .logo-img.hide-on-error {
    display: none;
}

.logo-text {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-link {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 8px 0;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

/* ========================================
   主横幅
   ======================================== */
.hero {
    padding: 140px 0 80px;
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.hero-subtitle {
    font-size: 24px;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.hero-description {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 16px;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* 按钮 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 500;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

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

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

/* 图片占位符 */
.image-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: var(--bg-tertiary);
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px;
    color: var(--text-muted);
    min-height: 300px;
}

.image-placeholder.large {
    min-height: 250px;
}

.image-placeholder svg {
    width: 48px;
    height: 48px;
    opacity: 0.5;
}

.image-placeholder span {
    font-size: 16px;
    font-weight: 500;
}

.image-placeholder small {
    font-size: 13px;
    color: var(--text-muted);
}

/* ========================================
   区块通用样式
   ======================================== */
.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
}

/* ========================================
   核心特点
   ======================================== */
.features {
    padding: 80px 0;
    background: var(--bg-primary);
}

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

.feature-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: var(--transition);
}

.feature-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.feature-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(14, 165, 233, 0.1));
    border-radius: var(--radius-md);
    margin-bottom: 20px;
}

.feature-icon svg {
    width: 28px;
    height: 28px;
    color: var(--primary-color);
}

.feature-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.feature-desc {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ========================================
   功能模块
   ======================================== */
.modules {
    padding: 80px 0;
    background: var(--bg-secondary);
}

.module-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 80px;
}

.module-item:last-child {
    margin-bottom: 0;
}

.module-item.reverse {
    direction: rtl;
}

.module-item.reverse > * {
    direction: ltr;
}

.module-badge {
    display: inline-block;
    padding: 6px 12px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    font-size: 13px;
    font-weight: 500;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
}

.module-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.module-desc {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.module-features {
    list-style: none;
}

.module-features li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    font-size: 15px;
    color: var(--text-secondary);
}

.check-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
    border-radius: 50%;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}

.module-image {
    display: flex;
    justify-content: center;
}

/* ========================================
   钢材类型
   ======================================== */
.steel-types {
    padding: 80px 0;
    background: var(--bg-primary);
}

.types-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 24px;
}

.type-card {
    text-align: center;
    padding: 24px 16px;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.type-card:hover {
    background: var(--bg-primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.type-icon {
    font-size: 36px;
    margin-bottom: 12px;
    color: var(--primary-color);
}

.type-card h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.type-card p {
    font-size: 13px;
    color: var(--text-muted);
}

/* ========================================
   应用截图
   ======================================== */
.screenshots {
    padding: 80px 0;
    background: var(--bg-secondary);
}

.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.screenshot-item {
    text-align: center;
}

.screenshot-label {
    margin-top: 16px;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-secondary);
}

/* ========================================
   Hero 徽章
   ======================================== */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(14, 165, 233, 0.1));
    border: 1px solid rgba(37, 99, 235, 0.2);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 16px;
}

/* ========================================
   下载应用
   ======================================== */
.download {
    padding: 80px 0;
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 50%, var(--bg-primary) 100%);
}

.download-content {
    max-width: 640px;
    margin: 0 auto;
}

.download-card {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.download-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 28px 32px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
}

.download-card-header h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 4px;
}

.download-card-header p {
    font-size: 14px;
    opacity: 0.85;
}

.store-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    flex-shrink: 0;
}

.store-icon svg {
    width: 28px;
    height: 28px;
}

.download-card-body {
    padding: 28px 32px 32px;
}

.harmonyos-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: linear-gradient(135deg, rgba(254, 80, 0, 0.08), rgba(254, 80, 0, 0.04));
    border: 1px solid rgba(254, 80, 0, 0.15);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: #E84026;
    margin-bottom: 24px;
}

.download-steps {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.step {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 15px;
    color: var(--text-secondary);
}

.step-number {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 600;
    flex-shrink: 0;
}

.step strong {
    color: var(--text-primary);
}

.download-notice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 16px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: var(--radius-md);
}

.download-notice svg {
    color: #f97316;
    flex-shrink: 0;
    margin-top: 1px;
}

.download-notice p {
    font-size: 14px;
    color: #9a3412;
    line-height: 1.7;
}

.download-notice em {
    font-style: normal;
    color: #dc2626;
    font-weight: 500;
}

/* ========================================
   反馈结果消息
   ======================================== */
.result-message {
    text-align: center;
    padding: 60px 40px;
}

.result-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 24px;
}

.success-type .result-icon {
    background: rgba(16, 185, 129, 0.1);
}

.success-type .result-icon svg {
    width: 40px;
    height: 40px;
    color: var(--success-color);
}

.error-type .result-icon {
    background: rgba(239, 68, 68, 0.1);
}

.error-type .result-icon svg {
    width: 40px;
    height: 40px;
    color: var(--error-color);
}

.result-message h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 12px;
}

.success-type h3 {
    color: var(--success-color);
}

.error-type h3 {
    color: var(--error-color);
}

.result-message p {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

/* 附件说明 */
.attachment-note {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: var(--radius-md);
}

.attachment-note .note-icon {
    width: 20px;
    height: 20px;
    color: var(--primary-color);
    flex-shrink: 0;
    margin-top: 2px;
}

.attachment-note .note-content p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.attachment-note .note-content p:last-child {
    margin-bottom: 0;
}

/* ========================================
   反馈 CTA
   ======================================== */
.feedback-cta {
    padding: 60px 0;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
}

.cta-content {
    display: flex;
    align-items: center;
    gap: 32px;
    color: white;
}

.cta-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    flex-shrink: 0;
}

.cta-icon svg {
    width: 32px;
    height: 32px;
}

.cta-text {
    flex: 1;
}

.cta-text h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 6px;
}

.cta-text p {
    font-size: 15px;
    opacity: 0.9;
    line-height: 1.6;
}

.feedback-cta .btn-primary {
    background: white;
    color: var(--primary-color);
    font-size: 16px;
    padding: 14px 28px;
    white-space: nowrap;
    flex-shrink: 0;
}

.feedback-cta .btn-primary:hover {
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* ========================================
   浮动反馈按钮
   ======================================== */
.floating-feedback {
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 999;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    box-shadow: var(--shadow-xl);
    transition: var(--transition);
    text-decoration: none;
}

.floating-feedback:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(37, 99, 235, 0.4);
    color: white;
}

/* 反馈页浮动首页按钮 */
.floating-home {
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 999;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    box-shadow: var(--shadow-xl);
    transition: var(--transition);
    text-decoration: none;
}

.floating-home:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(37, 99, 235, 0.4);
    color: white;
}

/* ========================================
   图片样式
   ======================================== */
.hero-img {
    width: 100%;
    height: auto;
    max-height: 520px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    object-fit: cover;
    object-position: top;
}

.module-img {
    width: 100%;
    height: auto;
    max-height: 450px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    object-fit: cover;
    object-position: top;
}

.screenshot-img {
    width: 100%;
    height: auto;
    max-height: 480px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    object-fit: cover;
    object-position: top;
}

/* 让占位符和图片容器等宽 */
.hero-image .image-placeholder,
.module-image .image-placeholder,
.screenshot-item .image-placeholder {
    width: 100%;
    min-height: unset;
    aspect-ratio: 4/3;
    padding: 24px;
}

/* ========================================
   页脚
   ======================================== */
.footer {
    padding: 60px 0 30px;
    background: var(--text-primary);
    color: white;
}

.footer-content {
    margin-bottom: 32px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.footer-brand .logo-icon {
    background: rgba(255, 255, 255, 0.1);
}

.footer-brand span {
    font-size: 18px;
    font-weight: 600;
}

.footer-desc {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-links {
    display: flex;
    gap: 32px;
    margin-bottom: 32px;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 15px;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
}

/* ========================================
   反馈页面
   ======================================== */
.feedback-page {
    padding: 120px 0 80px;
    background: var(--bg-secondary);
    min-height: 100vh;
}

.feedback-header {
    text-align: center;
    margin-bottom: 48px;
}

.feedback-header h1 {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.feedback-header p {
    font-size: 18px;
    color: var(--text-secondary);
}

.feedback-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.feedback-info {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: 32px;
    height: fit-content;
    box-shadow: var(--shadow-sm);
}

.feedback-info h2 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 24px;
}

.info-item {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(14, 165, 233, 0.1));
    border-radius: var(--radius-md);
    flex-shrink: 0;
}

.info-icon svg {
    width: 22px;
    height: 22px;
    color: var(--primary-color);
}

.info-text h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.info-text p {
    font-size: 14px;
    color: var(--text-secondary);
}

/* 反馈表单 */
.feedback-form-wrapper {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-sm);
}

.feedback-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
}

.required {
    color: var(--error-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 16px;
    font-size: 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* 文件上传 */
.file-upload-area {
    position: relative;
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.file-upload-area:hover {
    border-color: var(--primary-color);
    background: rgba(37, 99, 235, 0.02);
}

.file-upload-area input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.file-upload-content svg {
    width: 48px;
    height: 48px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.file-upload-content p {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.file-upload-content span {
    font-size: 13px;
    color: var(--text-muted);
}

.file-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
}

.file-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    font-size: 14px;
    color: var(--text-secondary);
}

.file-item .remove-file {
    cursor: pointer;
    color: var(--error-color);
    font-size: 18px;
    line-height: 1;
}

/* 表单操作 */
.form-actions {
    display: flex;
    gap: 16px;
    margin-top: 8px;
}

.btn-submit {
    min-width: 140px;
}

.spinner {
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}

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

/* 成功/错误消息 */
.success-message,
.error-message {
    text-align: center;
    padding: 60px 40px;
}

.success-icon,
.error-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 24px;
}

.success-icon {
    background: rgba(16, 185, 129, 0.1);
}

.success-icon svg {
    width: 40px;
    height: 40px;
    color: var(--success-color);
}

.error-icon {
    background: rgba(239, 68, 68, 0.1);
}

.error-icon svg {
    width: 40px;
    height: 40px;
    color: var(--error-color);
}

.success-message h3,
.error-message h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 12px;
}

.success-message h3 {
    color: var(--success-color);
}

.error-message h3 {
    color: var(--error-color);
}

.success-message p,
.error-message p {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

/* 配置说明 */
.config-notice {
    display: flex;
    gap: 20px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05), rgba(14, 165, 233, 0.05));
    border: 1px solid rgba(37, 99, 235, 0.2);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 32px;
}

.notice-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    border-radius: var(--radius-md);
    flex-shrink: 0;
}

.notice-icon svg {
    width: 22px;
    height: 22px;
    color: white;
}

.notice-content h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.notice-content p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.notice-content ol {
    margin: 12px 0;
    padding-left: 20px;
}

.notice-content li {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.notice-content code {
    background: rgba(37, 99, 235, 0.1);
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--primary-color);
}

.notice-content a {
    color: var(--primary-color);
    font-weight: 500;
}

/* 配置区域 */
.config-section {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-sm);
}

.config-section h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.config-form {
    display: grid;
    grid-template-columns: repeat(3, 1fr) auto;
    gap: 16px;
    align-items: end;
}

.config-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.config-group label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
}

.config-group input {
    padding: 10px 14px;
    font-size: 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: monospace;
}

.config-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.config-hint {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 12px;
}

/* ========================================
   响应式设计
   ======================================== */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .types-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .module-item {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .module-item.reverse {
        direction: ltr;
    }
    
    .config-form {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-primary);
        flex-direction: column;
        padding: 20px;
        gap: 0;
        border-top: 1px solid var(--border-color);
        box-shadow: var(--shadow-lg);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu li {
        width: 100%;
    }
    
    .nav-link {
        display: block;
        padding: 12px 0;
        border-bottom: 1px solid var(--border-light);
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero {
        padding: 120px 0 60px;
    }
    
    .hero .container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 20px;
    }
    
    .hero-description {
        font-size: 16px;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .types-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .screenshots-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-content {
        flex-direction: column;
        text-align: center;
    }
    
    .feedback-content {
        grid-template-columns: 1fr;
    }
    
    .feedback-info {
        order: -1;
    }
    
    .footer-links {
        flex-wrap: wrap;
        gap: 16px;
    }
    
    .download-card-header {
        padding: 20px 24px;
    }
    
    .download-card-body {
        padding: 20px 24px 24px;
    }
    
    /* 移动端图片优化 */
    .hero-img {
        max-height: 380px;
    }
    
    .module-img,
    .screenshot-img {
        max-height: 340px;
    }
    
    .hero-image,
    .module-image {
        order: 1;
    }
    
    .module-content {
        order: 0;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .types-grid {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions .btn {
        width: 100%;
    }
    
    .floating-feedback,
    .floating-home {
        bottom: 16px;
        right: 16px;
        width: 44px;
        height: 44px;
    }
    
    /* 小屏幕图片 */
    .hero-img {
        max-height: 320px;
    }
    
    .module-img,
    .screenshot-img {
        max-height: 280px;
    }
    
    .image-placeholder {
        aspect-ratio: 16/9;
    }
}
