:root {
    --primary-color: #a75d5d;
    --secondary-color: #668c74;
    --info-color: #668c74;
    --text-color: #4a3f35;
    --bg-color: #f5f5f5;
    --container-bg: #eae2d6;
    --warning-text: #4a3f35;
    --warning-bg: #eae2d6;
    --warning-border: #a75d5d;
    --border-color: #ddd;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.8;
    margin: 0 auto;
    max-width: 800px;
    padding: 20px;
    color: var(--text-color);
    background-color: var(--bg-color);
}

.container { 
    padding: 1.5em; 
    border: 1px solid var(--border-color); 
    border-radius: 10px; 
    background-color: var(--container-bg); 
    box-shadow: 0 4px 8px rgba(0,0,0,0.05); 
}

h1, h2, h3 { 
    color: var(--primary-color); 
    border-bottom: 2px solid var(--secondary-color); 
    padding-bottom: 10px;
}

h1 { 
    text-align: center; 
    font-size: 2em;
}

h2 { 
    font-size: 1.5em; 
    margin-top: 30px;
}

h3 { 
    font-size: 1.2em; 
    color: var(--info-color);
}

h4 {
    font-size: 1.1em;
    color: var(--info-color);
    margin-top: 20px;
    margin-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 5px;
}

.warning {
    background-color: var(--warning-bg);
    border: 1px solid var(--warning-border);
    color: var(--warning-text);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    font-size: 1.1em;
}

ul { 
    padding-left: 25px; 
}

li { 
    margin-bottom: 12px; 
}

strong { 
    color: var(--text-color); 
}

#print-btn {
    display: block;
    width: 100%;
    padding: 12px;
    margin: 30px 0 10px;
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 1.1em;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#print-btn:hover {
    background-color: #a94442;
}

#play-pause-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.checklist-item {
    cursor: pointer;
    transition: color 0.3s ease, text-decoration 0.3s ease;
}

.checklist-item.completed {
    color: #888;
    text-decoration: line-through;
}

@media print {
  body {
    background-color: #fff;
    color: #000;
    font-size: 12pt;
    margin: 0;
    padding: 0;
  }

  #print-btn, footer {
      display: none;
  }

  .container {
    border: none;
    box-shadow: none;
    padding: 0;
  }

  h1, h2, h3 {
    color: #000;
    border-bottom: 2px solid #000;
    page-break-after: avoid;
  }

  .warning {
    border: 1px solid #000;
    background-color: #fff;
    color: #000;
  }

  a {
    text-decoration: none;
    color: #000;
  }

  .checklist-item.completed {
      text-decoration: line-through;
      color: #888;
  }
}

/* 评论区样式 */
#comment-section {
    margin-top: 30px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.comment-form {
    margin-bottom: 20px;
}

#name-input {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

#comment-box {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 14px;
    resize: vertical;
    min-height: 80px;
    box-sizing: border-box;
    font-family: inherit;
}

.comment-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.char-count {
    font-size: 12px;
    color: #666;
}

#submit-comment {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

#submit-comment:hover {
    background-color: #a02622;
}

#submit-comment:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

#comment-list-container {
    margin-top: 20px;
}

.comment-item {
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 12px;
    color: #666;
}

.comment-author {
    font-weight: bold;
    color: var(--primary-color);
}

.comment-time {
    color: #999;
}

.comment-text {
    line-height: 1.6;
    color: var(--text-color);
    word-wrap: break-word;
}

.no-comments {
    text-align: center;
    color: #999;
    font-style: italic;
    padding: 20px;
}