/* 配色方案 - CSS 变量 */
:root {
    /* 主色 - 亮蓝色（信任感强） */
    --primary-color: #2563EB;
    --primary-light: #3B82F6;
    --primary-dark: #1D4ED8;
    
    /* 次色 - 浅灰色（柔和背景） */
    --secondary-color: #F3F4F6;
    --secondary-dark: #E5E7EB;
    --secondary-light: #F9FAFB;
    
    /* 强调色 - 紫色（高级感） */
    --accent-color: #8B5CF6;
    --accent-light: #A78BFA;
    --accent-dark: #7C3AED;
    
    /* 文字颜色 - 深蓝灰 */
    --text-primary: #1F2937;
    --text-secondary: #4B5563;
    --text-muted: #6B7280;
    --text-light: #9CA3AF;
    
    /* 背景渐变 */
    --gradient-primary: linear-gradient(135deg, #2563EB 0%, #3B82F6 50%, #8B5CF6 100%);
    --gradient-accent: linear-gradient(135deg, #8B5CF6 0%, #A78BFA 100%);
    --gradient-button: linear-gradient(135deg, #2563EB 0%, #3B82F6 100%);
    
    /* 阴影 */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 25px rgba(37, 99, 235, 0.15);
    --shadow-xl: 0 20px 40px rgba(37, 99, 235, 0.2);
    
    /* 边框 */
    --border-color: #E5E7EB;
    --border-light: #F3F4F6;
    
    /* 成功/错误 */
    --success-color: #10B981;
    --error-color: #EF4444;
}

/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
    background: var(--gradient-primary);
    min-height: 100vh;
    color: var(--text-primary);
    line-height: 1.6;
}
.logo{
    width:248px;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 顶部导航 */
.header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.header .container {
    display: flex;
    /* justify-content: space-between; */
    align-items: center;
    flex-wrap: wrap;
}

.logo h1 {
    font-size: 24px;
    color: var(--primary-color);
    font-weight: 700;
}

.nav {
    display: flex;
    flex-wrap: wrap;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s ease;
    font-size: 14px;
}

.nav-link:hover {
    background: var(--secondary-color);
    color: var(--primary-color);
}

.nav-link.active {
    background: var(--primary-color);
    color: white;
}

/* 特殊高亮导航链接 */
.nav-link-highlight {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(37, 99, 235, 0.1) 100%);
    color: var(--accent-color);
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.nav-link-highlight:hover {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

.nav-link-highlight.active {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

/* 面包屑导航 */
.breadcrumb {
    background: rgba(255, 255, 255, 0.95);
    padding: 10px 0;
    font-size: 14px;
}

.breadcrumb ol {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.breadcrumb li {
    display: flex;
    align-items: center;
}

.breadcrumb li:not(:last-child)::after {
    content: '›';
    margin-left: 8px;
    color: var(--text-light);
}

.breadcrumb a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: var(--primary-color);
}

/* 主内容区 */
.main {
    padding: 40px 0;
}

.tool-section {
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

/* 工具面板 */
.tool-panel {
    display: block; /* 独立页面默认显示 */
    padding: 40px;
}

.tool-panel.active {
    display: block;
}

.tool-header {
    margin-bottom: 30px;
    text-align: center;
}

.tool-header h1,
.tool-header h2 {
    font-size: 28px;
    color: var(--text-primary);
    margin-bottom: 10px;
    font-weight: 700;
}

.tool-header h1 {
    font-size: 32px;
}

.tool-desc {
    color: var(--text-secondary);
    font-size: 14px;
}

.tool-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 30px;
}

/* 输入区域 */
.input-area {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.input-area label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
}

.input-text {
    width: 100%;
    min-height: 300px;
    padding: 15px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background: var(--secondary-light);
}

.input-text:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    background: white;
}

.btn-generate {
    background: var(--gradient-button);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    align-self: flex-start;
    box-shadow: var(--shadow-md);
}

.btn-generate:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.35);
}

.btn-generate:active {
    transform: translateY(0);
}

/* 输出区域 */
.output-area {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.output-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.output-header span {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
}

/* 反馈区域 - 专业设计 */
.feedback-section {
    margin-top: 20px;
    padding: 16px 20px;
    background: linear-gradient(135deg, var(--secondary-color) 0%, white 100%);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    animation: fadeInUp 0.4s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feedback-label {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 12px;
    text-align: center;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.feedback-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    align-items: center;
}

.btn-feedback {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 2px solid var(--border-color);
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
    color: var(--text-secondary);
    min-width: 100px;
    position: relative;
    overflow: hidden;
}

.btn-feedback::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-feedback:hover::before {
    width: 300px;
    height: 300px;
}

.btn-feedback:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-feedback.btn-good {
    border-color: rgba(16, 185, 129, 0.3);
}

.btn-feedback.btn-good:hover {
    background: linear-gradient(135deg, var(--success-color) 0%, #34D399 100%);
    border-color: var(--success-color);
    color: white;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
}

.btn-feedback.btn-bad {
    border-color: rgba(239, 68, 68, 0.3);
}

.btn-feedback.btn-bad:hover {
    background: linear-gradient(135deg, var(--error-color) 0%, #DC2626 100%);
    border-color: var(--error-color);
    color: white;
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.3);
}

.btn-feedback.active {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.btn-feedback.btn-good.active {
    background: linear-gradient(135deg, var(--success-color) 0%, #34D399 100%);
    border-color: var(--success-color);
    color: white;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.btn-feedback.btn-bad.active {
    background: linear-gradient(135deg, var(--error-color) 0%, #DC2626 100%);
    border-color: var(--error-color);
    color: white;
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
}

.btn-feedback:disabled {
    cursor: not-allowed;
    opacity: 0.5;
    transform: none;
}

.feedback-icon {
    font-size: 24px;
    line-height: 1;
    transition: transform 0.3s ease;
}

.btn-feedback:hover .feedback-icon {
    transform: scale(1.2);
}

.btn-feedback.active .feedback-icon {
    transform: scale(1.3);
    animation: bounce 0.5s ease;
}

@keyframes bounce {
    0%, 100% {
        transform: scale(1.3);
    }
    50% {
        transform: scale(1.5);
    }
}

.feedback-text {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.btn-copy {
    background: var(--secondary-color);
    color: var(--text-secondary);
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-copy:hover {
    background: var(--primary-color);
    color: white;
}

.output-content {
    min-height: 300px;
    padding: 20px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    background: var(--secondary-light);
    font-size: 14px;
    line-height: 1.8;
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-y: auto;
    max-height: 500px;
}

.output-content .placeholder {
    color: var(--text-light);
    text-align: center;
    padding: 50px 0;
}

.output-content .loading-text {
    color: var(--primary-color);
    text-align: center;
    padding: 50px 0;
}

.output-content .error {
    color: var(--error-color);
    text-align: center;
    padding: 50px 0;
}

/* 加载提示 */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    color: white;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading p {
    font-size: 16px;
    font-weight: 500;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 15px;
    }

    .nav {
        justify-content: center;
        width: 100%;
    }

    .nav-link {
        font-size: 12px;
        padding: 6px 12px;
    }

    .tool-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .tool-panel {
        padding: 20px;
    }

    .tool-header h2 {
        font-size: 22px;
    }

    .input-text,
    .output-content {
        min-height: 200px;
    }
}

/* SEO优化 - 确保文本可见 */
.tool-header,
.tool-desc {
    color: var(--text-primary);
}

/* 滚动条样式 */
.output-content::-webkit-scrollbar {
    width: 8px;
}

.output-content::-webkit-scrollbar-track {
    background: var(--secondary-color);
    border-radius: 10px;
}

.output-content::-webkit-scrollbar-thumb {
    background: var(--secondary-dark);
    border-radius: 10px;
}

.output-content::-webkit-scrollbar-thumb:hover {
    background: var(--text-light);
}

/* 用户认证相关样式 */
.header-right {
    display: flex;
    align-items: center;
    gap: 10px;
    width:265px;
    position: absolute;
    right: 10px;
}

.usage-info {
    padding: 6px 12px;
    background: var(--secondary-color);
    border-radius: 20px;
    font-size: 13px;
    color: var(--text-primary);
    width: 95px;
}

.usage-text strong {
    color: var(--primary-color);
    font-weight: 600;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    width:160px;
}

.username {
    color: var(--text-primary);
    font-weight: 500;
    width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.btn-login, .btn-logout {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.btn-login:hover, .btn-logout:hover {
    background: var(--primary-light);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-logout {
    background: var(--text-muted);
    padding: 6px 12px;
    font-size: 12px;
}

.btn-logout:hover {
    background: var(--text-secondary);
}

/* 登录/注册模态框 */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: white;
    padding: 30px;
    border-radius: 15px;
    max-width: 400px;
    width: 90%;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.close {
    position: absolute;
    right: 15px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    color: var(--text-light);
    cursor: pointer;
    line-height: 1;
}

.close:hover {
    color: var(--text-primary);
}

.auth-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--border-light);
}

.auth-tab {
    background: none;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-light);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.3s ease;
}

.auth-tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.auth-form h2 {
    margin-bottom: 20px;
    color: var(--text-primary);
    font-size: 24px;
}

.auth-form input {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background: var(--secondary-light);
}

.auth-form input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    background: white;
}

.btn-auth {
    width: 100%;
    background: var(--gradient-button);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: var(--shadow-md);
}

.btn-auth:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.35);
}

.auth-message {
    margin-top: 10px;
    font-size: 13px;
    text-align: center;
    min-height: 20px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .header-right {
        width: 100%;
        justify-content: space-between;
        margin-top: 10px;
    }

    .usage-info {
        font-size: 12px;
        padding: 4px 8px;
    }

    .modal-content {
        padding: 20px;
        margin: 20px;
    }

    .feedback-section {
        padding: 12px 16px;
    }

    .feedback-buttons {
        gap: 8px;
    }

    .btn-feedback {
        padding: 10px 16px;
        min-width: 80px;
    }

    .feedback-icon {
        font-size: 20px;
    }

    .feedback-text {
        font-size: 12px;
    }
}

/* ==================== 首页样式 ==================== */

/* Hero Section */
.hero-section {
    text-align: center;
    padding: 60px 20px 40px;
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    margin-bottom: 40px;
}

.hero-title {
    font-size: 48px;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 30px;
    line-height: 1.8;
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.feature-tag {
    background: var(--gradient-button);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

/* 工具卡片网格 */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

/* 工具卡片 */
.tool-card {
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.tool-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    padding: 40px 30px;
    height: 100%;
}

.card-icon {
    font-size: 56px;
    margin-bottom: 20px;
    display: block;
}

.card-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 15px;
    line-height: 1.3;
}

.card-desc {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 20px;
    min-height: 90px;
}

.card-features {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.card-features li {
    padding: 8px 0;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

.card-features li::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--gradient-button);
    border-radius: 50%;
    margin-right: 10px;
}

.card-footer {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--border-light);
}

.card-cta {
    display: inline-flex;
    align-items: center;
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.tool-card:hover .card-cta {
    transform: translateX(5px);
    color: var(--accent-color);
}

/* SEO内容区 */
.seo-content {
    background: white;
    border-radius: 20px;
    padding: 50px;
    box-shadow: var(--shadow-md);
    margin-bottom: 40px;
}

.seo-content h2 {
    font-size: 32px;
    color: var(--text-primary);
    margin-bottom: 20px;
    font-weight: 700;
}

.seo-content h3 {
    font-size: 24px;
    color: var(--primary-color);
    margin: 30px 0 15px;
    font-weight: 600;
}

.seo-content p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.seo-content ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.seo-content ul li {
    padding: 12px 0;
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-secondary);
    padding-left: 30px;
    position: relative;
}

.seo-content ul li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 18px;
}

.seo-content strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* 优势网格 */
.advantage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.advantage-item {
    background: linear-gradient(135deg, var(--secondary-light) 0%, var(--secondary-dark) 100%);
    padding: 25px;
    border-radius: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.advantage-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.15);
}

.advantage-item h4 {
    font-size: 20px;
    color: var(--text-primary);
    margin-bottom: 10px;
    font-weight: 600;
}

.advantage-item p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 0;
    line-height: 1.6;
}

/* FAQ部分 */
.faq-section {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 3px solid var(--primary-color);
}

.faq-section h2 {
    font-size: 32px;
    color: var(--text-primary);
    margin-bottom: 30px;
    text-align: center;
    font-weight: 700;
}

.faq-item {
    background: var(--secondary-color);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    border-left: 4px solid var(--primary-color);
}

.faq-item:hover {
    background: white;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transform: translateX(5px);
}

.faq-item h3 {
    font-size: 18px;
    color: var(--text-primary);
    margin-bottom: 12px;
    font-weight: 600;
}

.faq-item p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 0;
}

/* 使用教程 */
.tutorial-section {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
}

.tutorial-section h2 {
    font-size: 32px;
    color: var(--text-primary);
    margin-bottom: 40px;
    text-align: center;
    font-weight: 700;
}

.tutorial-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}

.step-item {
    text-align: center;
    padding: 30px 20px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.08) 0%, rgba(139, 92, 246, 0.08) 100%);
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.step-item:hover {
    transform: translateY(-5px);
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--gradient-button);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: bold;
    margin: 0 auto 20px;
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.3);
}

.step-item h3 {
    font-size: 20px;
    color: var(--text-primary);
    margin-bottom: 10px;
    font-weight: 600;
}

.step-item p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 0;
}

/* 使用技巧网格 */
.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.tip-item {
    background: white;
    border: 2px solid var(--border-light);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
}

.tip-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.15);
    transform: translateY(-3px);
}

.tip-item h4 {
    font-size: 16px;
    color: var(--text-primary);
    margin-bottom: 10px;
    font-weight: 600;
}

.tip-item p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 0;
    line-height: 1.6;
}

/* 案例展示 */
.case-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.case-item {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.06) 0%, rgba(139, 92, 246, 0.06) 100%);
    border-radius: 12px;
    padding: 20px;
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
}

.case-item:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.case-label {
    font-size: 12px;
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.case-content {
    font-size: 15px;
    color: var(--text-primary);
    line-height: 1.6;
    font-weight: 500;
}

/* 平台展示区域 */
.platform-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.platform-section h3 {
    font-size: 28px;
    color: var(--text-primary);
    margin-bottom: 25px;
    text-align: center;
    font-weight: 600;
}

/* 案例说明 */
.case-note {
    margin-top: 20px;
    padding: 15px 20px;
    background: rgba(139, 92, 246, 0.1);
    border-left: 4px solid var(--accent-color);
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.6;
}

/* 优势展示区域 */
.advantage-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.advantage-section h3 {
    font-size: 28px;
    color: var(--text-primary);
    margin-bottom: 25px;
    text-align: center;
    font-weight: 600;
}

/* 相关工具推荐 */
.related-tools {
    margin-top: 40px;
    padding: 30px;
    background: linear-gradient(135deg, var(--secondary-light) 0%, var(--secondary-dark) 100%);
    border-radius: 15px;
}

.related-tools h3 {
    font-size: 24px;
    color: var(--text-primary);
    margin-bottom: 20px;
    text-align: center;
    font-weight: 600;
}

.related-links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.related-link {
    display: inline-block;
    padding: 12px 24px;
    background: white;
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.related-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.3);
}

/* 首页响应式设计 */
@media (max-width: 768px) {
    .hero-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .feature-tag {
        font-size: 12px;
        padding: 6px 12px;
    }

    .tools-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .card-link {
        padding: 30px 20px;
    }

    .card-icon {
        font-size: 48px;
    }

    .card-title {
        font-size: 20px;
    }

    .card-desc {
        font-size: 14px;
        min-height: auto;
    }

    .seo-content {
        padding: 30px 20px;
    }

    .seo-content h2 {
        font-size: 24px;
    }

    .seo-content h3 {
        font-size: 20px;
    }

    .seo-content p,
    .seo-content ul li {
        font-size: 14px;
    }
    
    .breadcrumb {
        font-size: 12px;
        padding: 8px 0;
    }
    
    .tips-grid,
    .case-grid,
    .advantage-grid,
    .tutorial-steps {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .related-links {
        gap: 10px;
    }
    
    .related-link {
        padding: 10px 18px;
        font-size: 13px;
    }
    
    .faq-item {
        padding: 18px;
    }
    
    .faq-item h3,
    .faq-item h4 {
        font-size: 16px;
    }
}
/* 发布案例按钮样式 */
.btn-publish {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    vertical-align: middle; /* 确保和复制按钮垂直对齐 */
}

.btn-publish:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* 按钮在“发布中”时的禁用样式 */
.btn-publish:disabled {
    cursor: not-allowed;
    opacity: 0.6;
    transform: none;
    box-shadow: none;
}

/* 成功/失败状态由JS直接设置背景色，这里确保文字颜色正确 */
.btn-publish[style*="background-color"] {
    color: white;
    border-color: transparent;
}

/* "查看案例"链接的样式 */
.case-url-span a {
    color: var(--success-color);
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
    margin-left: 10px;
}

.case-url-span a:hover {
    text-decoration: underline;
}

/* ==================== Case View Page Styles ==================== */

.case-view-container {
    max-width: 800px;
    margin: 20px auto;
    padding: 0 20px;
}

.case-article {
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    padding: 40px;
}

.case-header {
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.case-header .breadcrumb {
    padding: 0;
    background: none;
    margin-bottom: 20px;
}

.case-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 15px 0;
    line-height: 1.4;
}

.case-meta {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: var(--text-secondary);
}

.case-meta strong {
    color: var(--primary-color);
    font-weight: 600;
}

.case-body .case-section h2 {
    font-size: 22px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
}

.prompt-box, .output-box {
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    font-size: 16px;
    line-height: 1.8;
}

.prompt-box {
    background: var(--secondary-color);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-style: italic;
}

.output-box {
    background: white;
}

.case-footer {
    text-align: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--border-light);
}

.case-footer p {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.case-footer .btn-primary {
    background: var(--gradient-button);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: var(--shadow-md);
}

.case-footer .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.35);
}


