/* main.css - 姜小麦宝宝取名助手（从 index.php 抽离的页面样式） */
html { scroll-behavior: smooth; }
:root { --primary-color: #6a89cc; --secondary-color: #f8c291; --accent-color: #78e08f; --light-color: #f7f1e3; --dark-color: #3d3d3d; }
body { background: linear-gradient(135deg, #f5f7fa 0%, #e4edf5 100%); color: #333; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; min-height: 100vh; }
.navbar-brand { font-weight: 700; font-size: 1.8rem; color: var(--primary-color); }
.card { border-radius: 15px; box-shadow: 0 10px 20px rgba(0,0,0,0.05); border: none; transition: transform 0.3s; margin-bottom: 25px; overflow: hidden; }
.card:hover { transform: translateY(-5px); }
.card-header { background: linear-gradient(to right, var(--primary-color), #4a69bd); color: white; font-weight: 600; border-radius: 15px 15px 0 0 !important; padding: 15px 20px; display: flex; justify-content: space-between; align-items: center; }
.button-group-result { display: flex; gap: 10px; }
.btn-primary { background: var(--primary-color); border: none; padding: 10px 25px; font-weight: 600; transition: all 0.3s; }
.btn-primary:hover { background: #4a69bd; transform: translateY(-2px); }
.btn-success { background: #28a745; border: none; padding: 10px 25px; font-weight: 600; transition: all 0.3s; }
.btn-success:hover { background: #218838; transform: translateY(-2px); }
.btn-reset { background: #e74c3c; color: white; border: none; padding: 10px 25px; font-weight: 600; }
.btn-copy { background: #3498db; color: white; border: none; padding: 6px 15px; font-weight: 600; border-radius: 8px; transition: all 0.3s; display: flex; align-items: center; gap: 5px; }
.btn-copy:hover { background: #2980b9; color: white; transform: translateY(-2px); }
.btn-copy.copied { background: var(--accent-color); }
.btn-doc { background: #27ae60; }
.btn-doc:hover { background: #2ecc71; }
.form-control, .form-select { border-radius: 10px; padding: 12px 15px; border: 1px solid #ddd; transition: all 0.3s; }
.form-control:focus, .form-select:focus { border-color: var(--primary-color); box-shadow: 0 0 0 0.25rem rgba(106, 137, 204, 0.25); }
.section-title { position: relative; padding-bottom: 15px; margin-bottom: 30px; text-align: center; color: var(--primary-color); font-weight: 700; }
.section-title:after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 80px; height: 4px; background: var(--secondary-color); border-radius: 2px; }
.feature-icon { font-size: 3rem; color: var(--primary-color); margin-bottom: 20px; }
.name-card { border-left: 4px solid var(--primary-color); background: white; padding: 20px; margin-bottom: 20px; border-radius: 8px; box-shadow: 0 4px 8px rgba(0,0,0,0.05); transition: all 0.3s; }
.name-card:hover { transform: translateX(5px); box-shadow: 0 6px 12px rgba(0,0,0,0.1); }
.recommended { background: linear-gradient(to right, #f8f9fa, #fffde7); border-left: 4px solid var(--accent-color); position: relative; }
.recommended:after { content: '推荐'; position: absolute; top: 10px; right: 10px; background: var(--accent-color); color: #333; font-size: 0.8rem; padding: 3px 10px; border-radius: 20px; font-weight: bold; }
.name-display { font-size: 1.8rem; font-weight: 700; color: var(--primary-color); margin-bottom: 10px; }
.source { font-style: italic; color: #777; margin-bottom: 5px; }
.meaning { color: #555; line-height: 1.6; }
footer { background: linear-gradient(to right, #3c6382, var(--primary-color)); color: white; padding: 30px 0 15px; margin-top: 50px; }
.password-modal { background: rgba(0,0,0,0.7); }
.astrology-info { display: flex; flex-wrap: wrap; gap: 20px; }
.astrology-card { flex: 1; min-width: 250px; background: white; border-radius: 12px; padding: 20px; box-shadow: 0 4px 8px rgba(0,0,0,0.05); }
.element { display: inline-block; padding: 3px 10px; border-radius: 15px; font-size: 0.8rem; margin-right: 5px; margin-top: 5px; }
.water { background: #d1f2eb; color: #1a5276; }
.wood { background: #d5f5e3; color: #186a3b; }
.fire { background: #fadbd8; color: #b03a2e; }
.earth { background: #f9e79f; color: #7d6608; }
.metal { background: #d6eaf8; color: #2874a6; }
.api-result { background: white; border-radius: 12px; padding: 25px; box-shadow: 0 4px 12px rgba(0,0,0,0.08); line-height: 1.8; font-size: 1.05rem; max-height: 600px; overflow-y: auto; }
.api-result h1, .api-result h2, .api-result h3, .api-result h4, .api-result h5, .api-result h6 { font-family: 'Georgia', serif; line-height: 1.3; }
.api-result h3 { color: var(--primary-color); border-bottom: 2px solid var(--secondary-color); padding-bottom: 10px; margin-top: 25px; }
.api-result ul { list-style: disc; padding-left: 25px; margin-left: 0; }
.api-result ol { list-style: decimal; padding-left: 25px; margin-left: 0; }
.api-result li { margin-bottom: 10px; line-height: 1.6; }
.api-result strong { color: var(--dark-color); font-weight: 700; }
.api-result .recommended-name { background: #fffde7; padding: 15px; border-radius: 8px; border-left: 4px solid var(--accent-color); margin: 20px 0; }
.loading-spinner { display: none; text-align: center; padding: 40px 0; }
.spinner { width: 50px; height: 50px; border: 5px solid rgba(106, 137, 204, 0.3); border-radius: 50%; border-top: 5px solid var(--primary-color); animation: spin 1s linear infinite; margin: 0 auto 20px; }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
.error-container { position: fixed; top: 20px; right: 20px; z-index: 1050; max-width: 400px; }
.form-panel { background: white; border-radius: 15px; padding: 25px; box-shadow: 0 6px 15px rgba(0,0,0,0.08); }
.status-indicator { display: flex; align-items: center; margin-top: 10px; font-size: 0.9rem; }
.status-dot { width: 10px; height: 10px; border-radius: 50%; margin-right: 8px; }
.status-connected { background-color: #78e08f; }
.status-disconnected { background-color: #e74c3c; }
.focus-target { outline: 2px solid #6a89cc; animation: pulse 1.5s infinite; }
@keyframes pulse { 0% { outline-offset: 0px; } 50% { outline-offset: 5px; } 100% { outline-offset: 0px; } }
.copy-toast { position: fixed; bottom: 20px; right: 20px; background: rgba(0,0,0,0.8); color: white; padding: 10px 20px; border-radius: 8px; z-index: 1060; transform: translateY(100px); opacity: 0; transition: all 0.3s; }
.copy-toast.show { transform: translateY(0); opacity: 1; }
@media (max-width: 768px) { .navbar-brand { font-size: 1.4rem; } .card { margin-bottom: 15px; } .name-display { font-size: 1.5rem; } .api-result { padding: 15px; font-size: 0.95rem; } .error-container { left: 10px; right: 10px; top: 70px; max-width: none; } .form-panel { padding: 15px; } .card-header { flex-direction: column; gap: 10px; align-items: flex-start; } .button-group-result { justify-content: flex-start; width: 100%; gap: 5px; } .button-group-result button { flex-grow: 1; } }

/* ---- 结构化报告（示例展示样式） ---- */
.styled-report .rbox { background: #fff; border: 1px solid #eef1f6; border-radius: 12px; padding: 16px 18px; margin-bottom: 18px; box-shadow: 0 2px 8px rgba(0,0,0,0.04); }
.styled-report .rbox-title { display: flex; align-items: center; border-bottom: 2px solid var(--secondary-color); padding-bottom: 8px; color: var(--dark-color); font-weight: 700; }
.styled-report .rline { margin-bottom: 6px; line-height: 1.8; }
.styled-report .rnote { color: #888; font-size: .85rem; line-height: 1.7; padding-left: 18px; border-left: 2px solid #eee; margin: 2px 0 10px 4px; }
.styled-report .name-tile { background: #fbfcfe; border: 1px solid #edf0f5; border-left: 4px solid var(--primary-color); transition: transform .15s; }
.styled-report .name-tile:hover { transform: translateY(-2px); box-shadow: 0 4px 10px rgba(0,0,0,0.06); }
.styled-report .name-title { color: var(--primary-color); font-weight: 700; }
