/* ============================================
   创游图片工具箱 - 共享样式
   设计语言：工业白 + 信任蓝 + 安全绿
   ============================================ */

:root {
    --white: #FAFAFA;
    --white-pure: #FFFFFF;
    --blue: #2563EB;
    --blue-light: #3B82F6;
    --blue-dark: #1D4ED8;
    --blue-bg: #EFF6FF;
    --green: #16A34A;
    --green-light: #22C55E;
    --green-bg: #F0FDF4;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;
    --red: #EF4444;
    --orange: #F59E0B;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.12);
    --shadow-blue: 0 8px 30px rgba(37,99,235,0.18);
    --radius: 12px;
    --radius-lg: 20px;
}

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

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: var(--white);
    color: var(--gray-800);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

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

/* ========== 导航栏 ========== */
.navbar {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--gray-200);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}
.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--gray-900);
}
.nav-logo img {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    object-fit: cover;
}
.nav-logo-text {
    font-size: 18px;
    font-weight: 700;
    color: var(--gray-900);
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}
.nav-links a {
    font-size: 14px;
    color: var(--gray-600);
    text-decoration: none;
    transition: color 0.2s;
    white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active { color: var(--blue); }
.nav-cta {
    background: var(--blue);
    color: white !important;
    padding: 8px 20px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 14px;
    text-decoration: none;
    transition: background 0.2s;
}
.nav-cta:hover { background: var(--blue-dark); }

/* ========== 通用区块 ========== */
.section { padding: 72px 0; }
.section-alt { background: var(--gray-50); }
.section-blue { background: var(--blue-bg); }
.section-header {
    text-align: center;
    margin-bottom: 48px;
}
.section-header h2 {
    font-size: 30px;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 12px;
}
.section-header p {
    font-size: 16px;
    color: var(--gray-500);
}
.section-header .tag {
    display: inline-block;
    background: var(--blue-bg);
    color: var(--blue);
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 12px;
}

/* ========== 按钮 ========== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--blue);
    color: white;
    padding: 14px 36px;
    border-radius: var(--radius);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    box-shadow: var(--shadow-blue);
    border: none;
    cursor: pointer;
    font-family: inherit;
}
.btn-primary:hover {
    background: var(--blue-dark);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(37,99,235,0.3);
}
.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: white;
    color: var(--blue);
    padding: 14px 28px;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    border: 1.5px solid var(--blue);
    transition: all 0.2s;
    cursor: pointer;
    font-family: inherit;
}
.btn-secondary:hover { background: var(--blue-bg); }
.btn-white {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: white;
    color: var(--blue);
    padding: 16px 40px;
    border-radius: var(--radius);
    font-size: 17px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    font-family: inherit;
}
.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255,255,255,0.3);
}

/* ========== 文档页面通用样式 ========== */
.doc-page {
    background: var(--white);
    min-height: calc(100vh - 200px);
}
.doc-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 48px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 24px;
}
.doc-sidebar {
    position: sticky;
    top: 88px;
    height: fit-content;
}
.doc-sidebar h3 {
    font-size: 14px;
    font-weight: 700;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}
.doc-sidebar a {
    display: block;
    font-size: 14px;
    color: var(--gray-600);
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.2s;
    margin-bottom: 2px;
}
.doc-sidebar a:hover, .doc-sidebar a.active {
    background: var(--blue-bg);
    color: var(--blue);
}
.doc-content {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 48px;
}
.doc-content h1 {
    font-size: 28px;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 8px;
}
.doc-content .doc-meta {
    font-size: 13px;
    color: var(--gray-400);
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--gray-200);
}
.doc-content h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--gray-800);
    margin: 32px 0 14px;
    padding-top: 24px;
    border-top: 1px solid var(--gray-200);
}
.doc-content h2:first-of-type {
    border-top: none;
    padding-top: 0;
    margin-top: 0;
}
.doc-content h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--gray-700);
    margin: 24px 0 10px;
}
.doc-content p {
    font-size: 15px;
    color: var(--gray-600);
    margin-bottom: 14px;
    line-height: 1.8;
}
.doc-content ul, .doc-content ol {
    margin: 12px 0 16px 24px;
    color: var(--gray-600);
    font-size: 15px;
}
.doc-content li {
    margin-bottom: 8px;
    line-height: 1.7;
}
.doc-content strong { color: var(--gray-800); }
.doc-content a { color: var(--blue); text-decoration: none; }
.doc-content a:hover { text-decoration: underline; }
.doc-content .warning-box {
    background: #FEF3C7;
    border: 1px solid #FDE68A;
    border-radius: 10px;
    padding: 16px 20px;
    margin: 20px 0;
    color: #92400E;
    font-size: 14px;
}
.doc-content .info-box {
    background: var(--blue-bg);
    border: 1px solid rgba(37,99,235,0.15);
    border-radius: 10px;
    padding: 16px 20px;
    margin: 20px 0;
    color: var(--blue-dark);
    font-size: 14px;
}
.doc-content .success-box {
    background: var(--green-bg);
    border: 1px solid rgba(22,163,74,0.15);
    border-radius: 10px;
    padding: 16px 20px;
    margin: 20px 0;
    color: #166534;
    font-size: 14px;
}

/* ========== FAQ 折叠区 ========== */
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    margin-bottom: 12px;
    overflow: hidden;
    transition: border-color 0.2s;
}
.faq-item:hover { border-color: var(--blue); }
.faq-question {
    padding: 18px 24px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--gray-800);
    transition: background 0.2s;
}
.faq-question:hover { background: var(--gray-50); }
.faq-question .arrow {
    color: var(--gray-400);
    font-size: 14px;
    transition: transform 0.3s;
    flex-shrink: 0;
}
.faq-item.active .faq-question .arrow { transform: rotate(180deg); color: var(--blue); }
.faq-answer {
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}
.faq-item.active .faq-answer {
    padding: 0 24px 20px;
    max-height: 600px;
}
.faq-answer p {
    font-size: 14px;
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: 10px;
}
.faq-answer ol { padding-left: 18px; }
.faq-answer li { font-size: 13px; color: var(--gray-600); margin-bottom: 4px; line-height: 1.6; }

/* ========== 客服悬浮按钮 + 面板 ========== */
.cs-fab {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 56px;
    height: 56px;
    background: var(--blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 6px 24px rgba(37,99,235,0.4);
    z-index: 1000;
    transition: all 0.3s;
    border: none;
}
.cs-fab:hover { transform: scale(1.08); box-shadow: 0 8px 32px rgba(37,99,235,0.5); }
.cs-fab svg { width: 24px; height: 24px; fill: white; }
.cs-fab .cs-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: var(--red);
    color: white;
    font-size: 10px;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
}
.cs-panel {
    position: fixed;
    bottom: 96px;
    right: 28px;
    width: 380px;
    max-height: 580px;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    z-index: 999;
    display: none;
    flex-direction: column;
    overflow: hidden;
}
.cs-panel.open { display: flex; animation: slideUp 0.3s ease; }
@keyframes slideUp {
    from { opacity:0; transform: translateY(16px); }
    to { opacity:1; transform: translateY(0); }
}
.cs-panel-header {
    background: var(--blue);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.cs-panel-header h3 { color: white; font-size: 15px; font-weight: 600; }
.cs-close {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.cs-close:hover { background: rgba(255,255,255,0.3); }
.cs-panel-body { flex:1; overflow-y:auto; padding: 16px; }
.cs-tabs {
    display: flex;
    border-bottom: 1px solid var(--gray-200);
    margin-bottom: 16px;
}
.cs-tab {
    flex: 1;
    padding: 8px 4px;
    text-align: center;
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-500);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
    background: none;
    border-top: none;
    border-left: none;
    border-right: none;
    font-family: inherit;
}
.cs-tab.active { color: var(--blue); border-bottom-color: var(--blue); }
.quick-reply-list { display: flex; flex-direction: column; gap: 8px; }
.quick-reply-btn {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 10px;
    padding: 12px 14px;
    text-align: left;
    color: var(--gray-700);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: inherit;
}
.quick-reply-btn:hover { border-color: var(--blue); background: var(--blue-bg); }
.quick-reply-btn .arrow { color: var(--gray-400); font-size: 14px; }
.reply-card {
    background: var(--blue-bg);
    border: 1px solid rgba(37,99,235,0.15);
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 10px;
    display: none;
}
.reply-card.show { display: block; animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from{opacity:0;} to{opacity:1;} }
.reply-card p { font-size: 13px; color: var(--gray-700); line-height: 1.7; margin-bottom: 10px; }
.reply-card ol { padding-left: 18px; }
.reply-card li { font-size: 12px; color: var(--gray-600); margin-bottom: 4px; line-height: 1.6; }
.reply-back-btn {
    background: white;
    border: 1px solid var(--gray-200);
    color: var(--gray-500);
    font-size: 12px;
    padding: 5px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}
.reply-back-btn:hover { border-color: var(--blue); color: var(--blue); }
.cs-form { display: none; }
.cs-form.active { display: block; }
.cs-form-group { margin-bottom: 14px; }
.cs-form label { display:block; font-size:12px; color:var(--gray-500); margin-bottom:5px; font-weight:500; }
.cs-form input, .cs-form select, .cs-form textarea {
    width:100%; background:var(--gray-50); border:1px solid var(--gray-200);
    border-radius:8px; padding:10px 12px; font-size:13px; font-family:inherit;
    color:var(--gray-800); outline:none; transition:border-color 0.2s; resize:vertical;
}
.cs-form input:focus, .cs-form select:focus, .cs-form textarea:focus { border-color:var(--blue); }
.cs-submit-btn {
    width:100%; background:var(--blue); color:white; border:none;
    padding:12px; border-radius:10px; font-size:14px; font-weight:600;
    cursor:pointer; transition:background 0.2s; font-family:inherit;
}
.cs-submit-btn:hover { background:var(--blue-dark); }
.cs-success { text-align:center; padding:30px 20px; display:none; }
.cs-success.show { display:block; }
.cs-success .icon { font-size:48px; margin-bottom:12px; }
.cs-success h4 { font-size:16px; color:var(--gray-800); margin-bottom:8px; }
.cs-success p { font-size:13px; color:var(--gray-500); }
.cs-contact-row { display:flex; gap:8px; margin-top:12px; }
.cs-contact-item {
    flex:1; background:var(--gray-50); border:1px solid var(--gray-200);
    border-radius:10px; padding:12px 8px; text-align:center; cursor:pointer; transition:all 0.2s;
}
.cs-contact-item:hover { border-color:var(--blue); }
.cs-contact-item .icon { font-size:20px; margin-bottom:4px; }
.cs-contact-item .label { font-size:10px; color:var(--gray-400); }
.cs-contact-item .value { font-size:12px; color:var(--blue); font-weight:500; margin-top:2px; }

/* ========== 页脚 ========== */
footer {
    background: var(--gray-900);
    color: var(--gray-400);
    padding: 48px 0 32px;
}
.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 32px;
    margin-bottom: 32px;
}
.footer-brand p {
    font-size: 13px;
    margin-top: 8px;
    max-width: 280px;
    line-height: 1.6;
}
.footer-links h5 {
    color: white;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
}
.footer-links a {
    display: block;
    font-size: 13px;
    color: var(--gray-400);
    text-decoration: none;
    padding: 3px 0;
    transition: color 0.2s;
}
.footer-links a:hover { color: white; }
.footer-bottom {
    border-top: 1px solid var(--gray-700);
    padding-top: 20px;
    text-align: center;
    font-size: 12px;
}
.footer-bottom a { color: var(--gray-400); text-decoration: none; }
.footer-bottom a:hover { color: white; }

/* 子页面页脚统一样式 */
.footer-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.footer-links-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 32px;
    margin-bottom: 32px;
}
@media (max-width: 768px) {
    .footer-links-row { flex-direction: column; gap: 24px; }
}

/* ========== 响应式 ========== */
@media (max-width: 1024px) {
    .doc-layout { grid-template-columns: 1fr; }
    .doc-sidebar { display: none; }
    .nav-links { gap: 20px; }
}
@media (max-width: 768px) {
    .nav-links a:not(.nav-cta) { display: none; }
    .section { padding: 48px 0; }
    .section-header h2 { font-size: 24px; }
    .btn-primary, .btn-secondary { width: 100%; justify-content: center; }
    .doc-content { padding: 24px; }
    .cs-panel { width: calc(100vw - 24px); right: 12px; bottom: 80px; max-height: 70vh; }
    .cs-fab { bottom: 16px; right: 16px; width: 52px; height: 52px; }
}
@media (max-width: 480px) {
    .doc-content { padding: 20px; }
    .doc-content h1 { font-size: 22px; }
    .doc-content h2 { font-size: 18px; }
}
