/* 话术模板文章通用样式 */
:root {
    --primary-color: #667eea;
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --cta-gradient: linear-gradient(135deg, #00d4ff 0%, #0099ff 50%, #0066ff 100%);
    --text-color: #333;
    --text-muted: #666;
    --bg-color: #f5f7fa;
    --card-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.8;
    color: var(--text-color);
    background: var(--bg-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏 */
.navbar {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 24px;
    font-weight: bold;
    color: #000;
    text-decoration: none;
}

.logo img {
    height: 32px;
    width: auto;
    margin-right: 8px;
}

.nav-links {
    display: flex;
    gap: 20px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    padding: 8px 16px;
    border-radius: 6px;
    transition: background-color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    background-color: #f8f9fa;
    color: var(--primary-color);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: #333;
    transition: all 0.3s;
}

/* 页面内容 */
.page-content {
    margin-top: 80px;
    padding: 40px 0;
}

/* 面包屑 */
.breadcrumb {
    padding: 15px 0;
    font-size: 14px;
    color: var(--text-muted);
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb span {
    margin: 0 8px;
}

/* 内容布局 */
.content-wrapper {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.article-content {
    flex: 1;
    background: white;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    padding: 50px;
}

/* 侧边栏/目录 (可选) */
.article-sidebar {
    width: 300px;
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

/* 侧边栏内部卡片样式 */
.article-sidebar .phrase-item {
    max-height: none;
}

@media (max-width: 1024px) {
    .content-wrapper {
        flex-direction: column;
    }
    .article-sidebar {
        width: 100%;
        position: static;
        max-height: none;
        overflow-y: visible;
    }
}

.article-header {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid #f0f0f0;
}

.article-header h1 {
    font-size: 32px;
    line-height: 1.4;
    margin-bottom: 20px;
    color: #000;
}

.article-meta {
    color: var(--text-muted);
    font-size: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.article-body {
    font-size: 17px;
    line-height: 1.8;
}

.article-body h2 {
    font-size: 26px;
    margin: 40px 0 20px;
    color: #000;
    border-left: 5px solid var(--primary-color);
    padding-left: 15px;
}

.article-body h3 {
    font-size: 20px;
    margin: 30px 0 15px;
    color: #000;
}

.article-body p {
    margin-bottom: 20px;
}

.article-body ul, .article-body ol {
    margin-bottom: 20px;
    padding-left: 25px;
}

.article-body li {
    margin-bottom: 10px;
}

/* 话术列表卡片样式 */
.phrase-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

.phrase-item:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    background: #fff;
}

.script-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.script-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a202c;
    margin: 0;
}

.script-content {
    background: #fff;
    border: 1px solid #ecf0f1;
    border-radius: 8px;
    padding: 15px;
    color: #4a5568;
    line-height: 1.8;
    font-size: 16px;
    white-space: pre-wrap;
    margin-bottom: 15px;
    position: relative;
    user-select: all;
}

.copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.copy-btn:hover {
    background: #4c51bf;
    transform: translateY(-1px);
}

.copy-btn svg {
    width: 16px;
    height: 16px;
}

.copy-btn.copied {
    background: #48bb78;
}

/* CTA 卡片 */
.cta-card {
    background: var(--cta-gradient);
    color: white;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 153, 255, 0.3);
    margin: 60px 0;
}

.cta-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

.cta-btn {
    display: inline-block;
    background: white;
    color: #000;
    padding: 14px 40px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
    transition: all 0.3s;
    margin-top: 20px;
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

/* FAQ 样式 */
.faq-section {
    margin-top: 60px;
}

.faq-item {
    margin-bottom: 15px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    background: #fff;
    padding: 15px 20px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question:after {
    content: '+';
    font-size: 20px;
}

.faq-item.active .faq-question:after {
    content: '-';
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    background: #f8fafc;
}

.faq-item.active .faq-answer {
    padding: 15px 20px;
    max-height: 500px;
}

/* 页脚 */
.footer {
    background: #1a202c;
    color: #e2e8f0;
    padding: 60px 0 30px;
    margin-top: 80px;
}

/* 响应式适配 */
@media (max-width: 768px) {
    .nav-toggle { display: flex; }
    .nav-links { display: none; }
    .nav-links.open { display: flex; flex-direction: column; position: absolute; top: 60px; left: 0; right: 0; background: #fff; border-top: 1px solid #eee; }
    .article-content { padding: 30px 20px; }
    .article-header h1 { font-size: 28px; }
}
