:root {
    --primary-color: #FF385C;
    --secondary-color: #FF6B81;
    --text-color: #333333;
    --surface-color: #FFFFFF;
    --background-color: #F5F7FA;
    --border-color: #E5E7EB;
    --input-bg: #FFFFFF;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 10px 30px rgba(0, 0, 0, 0.05);
    --radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dark-theme {
    --text-color: #FFFFFF;
    --surface-color: #1E1E1E;
    --background-color: #121212;
    --border-color: #333333;
    --input-bg: #2D2D2D;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

/* 基础样式 */
body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    background: var(--background-color);
    color: var(--text-color);
    line-height: 1.5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 2rem 2rem;
}

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(18, 18, 18, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

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

.logo a {
    color: #FFFFFF;  /* 修改为白色 */
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
}

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

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

/* 卡片样式 */
.card, .dark-card {
    background: var(--surface-color);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
}

/* 表单元素 */
.input-group {
    margin-bottom: 0;
}

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

.form-input, .dark-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    background: var(--input-bg);
    color: var(--text-color);
    transition: var(--transition);
}

.form-input:focus, .dark-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 56, 92, 0.2);
}

/* 按钮样式 */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--radius);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    background: var(--surface-color);
    color: var(--text-color);
}

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

.btn-primary:hover {
    background: #E62E50;
    transform: translateY(-1px);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.button-group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.button-group.generate-section {
    margin-top: 2rem;
}

/* 标题样式 */
.page-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.section-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

/* 辅助类 */
.hidden {
    display: none !important;
}

.helper-text {
    font-size: 0.875rem;
    color: #9CA3AF;
    margin-left: 1rem;
}

.link {
    color: var(--primary-color);
    text-decoration: none;
}

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

/* 警告提示 */
.alert {
    padding: 1rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border-left: 4px solid #EF4444;
    color: #FCA5A5;
}

.alert-success {
    background: transparent;
    border-left: 4px solid #22C55E;
    color: #4ADE80;
    margin-top: 1.5rem;
    border-radius: 8px;
}

/* 页脚 */
.footer {
    background: rgba(18, 18, 18, 0.95);
    padding: 1.5rem 0;
    text-align: center;
    margin-top: 3rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* 区域样式 */
.section {
    margin-bottom: 40px;
}


/* 工具标题样式 */
.tool-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);  /* 修改为主色调红色 */
    font-weight: 500;
}