/*
Theme Name: 熊说熊图 (Xiong Theme)
Author: 格仔熊 / Kendrick
Description: A custom vintage nostalgic theme with a timeline banner, blog layout, moments post type, and guestbook functionalities. Designed for "熊说熊图".
Version: 1.0
Text Domain: xiong-theme
*/

*{box-sizing:border-box;margin:0;padding:0}
body{font-family: 'Helvetica Neue', Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;color:#222;background:#fff}

/* Header & Nav */
.site-header{max-width:1100px;margin:24px auto 0;padding:8px 16px}
.branding{display:flex;justify-content:space-between;align-items:center}
.site-title{font-size:36px;font-weight:700;letter-spacing:1px}
.site-title a { color: #222; text-decoration: none; }
.site-title a:hover { text-decoration: none; }
.tagline{font-style:italic;color:#777;font-size:14px;margin-top:0;text-align:right}

.hero{max-width:1100px;margin:12px auto;overflow:hidden;border:1px solid #eee;position:relative;}
.hero img{display:block;width:100%;height:auto;}

.nav-container {background:#0b0b0b;color:#fff;max-width:1100px;margin:0 auto}
.nav-container ul{display:flex;list-style:none;padding:8px 18px; margin: 0;}
.nav-container li{margin-right:18px}
.nav-container a{color:#fff;text-decoration:none;padding:6px 8px;display:inline-block}
.nav-container a:hover{opacity:0.85}

/* Layout */
.wrap{max-width:1100px;margin:28px auto;display:flex;gap:30px;padding:0 16px}
.main{flex:1}
.sidebar{width:260px}

/* Posts */
.post { margin-bottom: 40px; padding-bottom: 20px; border-bottom: 1px dotted #ccc; }
.post:last-child { border-bottom: none; }
.post-title{font-size:22px;font-weight:700;margin-bottom:8px}
.post-title a { color: #222; text-decoration: none; }
.post-title a:hover { text-decoration: underline; color: #555; }
.meta{color:#666;font-size:13px;margin-bottom:18px}

.audio-box{background:#f7f7f7;border:1px solid #e6e6e6;padding:12px;border-radius:6px; margin-bottom: 16px;}
.audio-controls{margin-top:8px}

.post-content{margin-top:16px;line-height:1.8;color:#333}
.post-content p { margin: 0 0 10px; }
.post-content p.cn2{ text-indent:2em; }
.post-content img { max-width: 100%; height: auto; }

/* Calendar & Sidebar */
.calendar{border:1px solid #eee;padding:12px}
.calendar h4{font-size:14px;margin-bottom:10px}
.cal-table{width:100%;border-collapse:collapse;text-align:center}
.cal-table td{padding:6px;font-size:12px;color:#666}
.cal-table .today{background:#000;color:#fff;border-radius:3px}

.branding{display:flex;justify-content:space-between;align-items:center}
.right{display:flex;flex-direction:column;align-items:flex-end;gap:4px}
.tagline{font-style:italic;color:#777;font-size:14px;margin:0;text-align:right;white-space:nowrap;margin-top: 30px;}
.author{color:#999;font-size:13px}

/* WP Specific Styles */
.wp-post-image { margin-bottom: 16px; border-radius: 4px; }
.pagination { margin-top: 20px; font-size: 14px; }
.pagination a, .pagination span { padding: 5px 10px; border: 1px solid #ddd; margin-right: 5px; text-decoration: none; color: #333; }
.pagination .current { background: #0b0b0b; color: #fff; border-color: #0b0b0b; }

/* Moments (熊图) Feed Custom Styles */
.moment-item { margin-bottom: 30px; border-bottom: 1px solid #f0f0f0; padding-bottom: 20px; }
.moment-img { max-width: 100%; border-radius: 6px; margin-bottom: 10px; }
.moment-text { font-size: 15px; color: #222; line-height: 1.6; }
.moment-meta { font-size: 12px; color: #999; margin-top: 6px; }

/* Comments */
#comments { margin-top: 40px; border-top: 2px solid #eee; padding-top: 20px; }
.commentlist { list-style: none; padding: 0; }
.commentlist li { margin-bottom: 20px; padding: 15px; background: #fdfdfd; border: 1px solid #eaeaea; border-radius: 5px; }
.comment-author { font-weight: bold; margin-bottom: 5px; }
.comment-meta { font-size: 12px; color: #888; margin-bottom: 10px;}
.comment-content p { margin: 0; }
.comment-respond { margin-top: 30px; }
.comment-reply-title { font-size: 18px; font-weight: bold; margin-bottom: 15px; }
.comment-form p { margin-bottom: 10px; }
.comment-form label { display: block; font-size: 13px; color: #666; margin-bottom: 5px;}
.comment-form input[type="text"], .comment-form textarea { width: 100%; padding: 8px; border: 1px solid #ccc; border-radius: 4px; }
.comment-form textarea { height: 100px; resize: vertical; }
.form-submit input[type="submit"] { background: #0b0b0b; color: #fff; border: none; padding: 8px 16px; border-radius: 4px; cursor: pointer; }
.form-submit input[type="submit"]:hover { opacity: 0.8; }

footer{max-width:1100px;margin:28px auto;padding:12px 16px;color:#777;font-size:13px; border-top: 1px solid #eee;}

@media (max-width:520px){
  .tagline{white-space:normal}
}
@media (max-width:880px){
  .wrap{flex-direction:column}
  .sidebar{width:100%}
  .hero img{height:140px}
}
