Changed around line 1
+ :root {
+ --primary-color: #2c3e50;
+ --secondary-color: #34495e;
+ --accent-color: #3498db;
+ --text-color: #2c3e50;
+ --background-color: #f9f9f9;
+ --sidebar-width: 250px;
+ --header-height: 60px;
+ }
+
+ * {
+ margin: 0;
+ padding: 0;
+ box-sizing: border-box;
+ }
+
+ body {
+ font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
+ line-height: 1.6;
+ color: var(--text-color);
+ background: var(--background-color);
+ }
+
+ .main-header {
+ position: fixed;
+ top: 0;
+ width: 100%;
+ height: var(--header-height);
+ background: var(--primary-color);
+ color: white;
+ box-shadow: 0 2px 5px rgba(0,0,0,0.1);
+ z-index: 1000;
+ }
+
+ .logo {
+ font-size: 1.5rem;
+ font-weight: bold;
+ padding: 1rem;
+ }
+
+ .menu-toggle {
+ display: none;
+ }
+
+ .book-container {
+ display: grid;
+ grid-template-columns: var(--sidebar-width) 1fr 300px;
+ gap: 2rem;
+ margin-top: var(--header-height);
+ min-height: calc(100vh - var(--header-height));
+ }
+
+ .sidebar {
+ background: white;
+ padding: 1rem;
+ border-right: 1px solid #eee;
+ position: fixed;
+ width: var(--sidebar-width);
+ height: calc(100vh - var(--header-height));
+ overflow-y: auto;
+ }
+
+ .chapter-list {
+ list-style: none;
+ }
+
+ .chapter-list li {
+ padding: 0.5rem;
+ cursor: pointer;
+ border-radius: 4px;
+ transition: background 0.3s;
+ }
+
+ .chapter-list li:hover {
+ background: #f0f0f0;
+ }
+
+ .chapter-list li.active {
+ background: var(--accent-color);
+ color: white;
+ }
+
+ .content-area {
+ padding: 2rem;
+ margin-left: var(--sidebar-width);
+ }
+
+ .paragraph {
+ margin: 1rem 0;
+ padding: 1rem;
+ background: white;
+ border-radius: 8px;
+ box-shadow: 0 2px 4px rgba(0,0,0,0.05);
+ cursor: pointer;
+ transition: transform 0.2s, box-shadow 0.2s;
+ }
+
+ .paragraph:hover {
+ transform: translateY(-2px);
+ box-shadow: 0 4px 8px rgba(0,0,0,0.1);
+ }
+
+ .paragraph.active {
+ border: 2px solid var(--accent-color);
+ }
+
+ .question-panel {
+ position: fixed;
+ right: 0;
+ top: var(--header-height);
+ width: 300px;
+ height: calc(100vh - var(--header-height));
+ padding: 1rem;
+ background: white;
+ border-left: 1px solid #eee;
+ }
+
+ textarea {
+ width: 100%;
+ height: 100px;
+ padding: 0.5rem;
+ margin: 1rem 0;
+ border: 1px solid #ddd;
+ border-radius: 4px;
+ resize: vertical;
+ }
+
+ .ask-button {
+ width: 100%;
+ padding: 0.75rem;
+ background: var(--accent-color);
+ color: white;
+ border: none;
+ border-radius: 4px;
+ cursor: pointer;
+ transition: background 0.3s;
+ }
+
+ .ask-button:hover {
+ background: #2980b9;
+ }
+
+ .response-area {
+ margin-top: 1rem;
+ padding: 1rem;
+ background: #f8f9fa;
+ border-radius: 4px;
+ height: calc(100vh - 400px);
+ overflow-y: auto;
+ }
+
+ footer {
+ padding: 2rem;
+ background: var(--primary-color);
+ color: white;
+ text-align: center;
+ }
+
+ footer nav {
+ margin-bottom: 1rem;
+ }
+
+ footer a {
+ color: white;
+ text-decoration: none;
+ margin: 0 1rem;
+ }
+
+ @media (max-width: 1024px) {
+ .book-container {
+ grid-template-columns: 1fr;
+ }
+
+ .sidebar {
+ display: none;
+ }
+
+ .content-area {
+ margin-left: 0;
+ }
+
+ .question-panel {
+ position: fixed;
+ bottom: 0;
+ top: auto;
+ width: 100%;
+ height: 300px;
+ border-top: 1px solid #eee;
+ }
+
+ .menu-toggle {
+ display: block;
+ position: absolute;
+ right: 1rem;
+ top: 1rem;
+ }
+ }