/* ------------------------------------------------------------------
   以下样式直接取自饭否线上样式表 static.fanfou.com/css/base.css
   图片资源已本地化到 assets/img/，规则值未做改动。
   文末「单栏适配」块是本站唯一新增的部分（去掉右栏后的宽度处理）。
   ------------------------------------------------------------------ */

*{margin:0;padding:0}
*,* html *{font-family:HelveticaNeue,"Helvetica Neue",Helvetica,Arial,sans-serif}
html{overflow-y:scroll}
body{background:#acdae5 url(img/bg0.png) no-repeat 0 0;color:#222;font-size:12px;line-height:150%}
abbr{border-bottom:1px dashed #666;cursor:help}
a{color:#06c;text-decoration:underline}
a:hover{background-color:#06c;color:#fff;text-decoration:none}
a.candle,a.candle:hover{background:transparent;text-decoration:none}
.stamp{display:block;margin-top:3px;color:#999;font-size:12px}
.stamp a{border-bottom:1px dotted #999;color:#999;text-decoration:none}
.stamp a:hover{background:transparent;color:#06c;border-bottom-style:solid}
a.photo img{padding:2px;border:1px solid #ccc;background:#fff}
a.photo:hover img{border:1px solid #06c}
h2{font-size:16px}
h3{font-size:14px}
.input_text,select,textarea{border:1px solid;border-color:#7c7c7c #c3c3c3 #ddd;font-size:12px;line-height:120%}
.input_text{height:15px;padding:3px 4px;line-height:15px}
.formbutton:focus{border-color:#000}

#container{width:775px;margin:0 auto}
#main{width:500px;overflow:hidden}
#columns{width:100%;border:0;border-collapse:collapse;border-spacing:0}

/* ---------- header / navigation（含饭否四角圆角结构） ---------- */
#header{position:relative;width:100%;padding:1em 0}
#header:after{content:".";display:block;font-size:0;line-height:0;clear:both;visibility:hidden}
#header a{text-decoration:none}
#header h1{float:left;width:203px}
#navigation{float:right;margin-top:7px}
#navigation div{float:left}
#navigation .ui-roundedbox-content{height:25px;padding:0 5px 0 3px;font-size:14px;line-height:25px;white-space:nowrap}
#navigation ul{float:left;list-style:none}
#navigation li{float:left}
#navigation li a{padding:2px 7px}
#navigation li a .count{margin-left:3px}

.ui-roundedbox{*zoom:1}
.ui-roundedbox:after{content:".";display:block;font-size:0;line-height:0;clear:both;visibility:hidden}
.ui-roundedbox-corner{position:relative;background:url(img/radius.png) no-repeat;*zoom:1}
.ui-roundedbox-tl{background-position:0 0;margin:0 10px 10px 0;top:0;left:0}
.ui-roundedbox-tr{background-position:100% 0;top:0;right:-10px}
.ui-roundedbox-bl{background-position:0 100%;bottom:-10px;left:-10px}
.ui-roundedbox-br{background-position:100% 100%;bottom:0;right:-10px}
.ui-roundedbox-content{position:relative;left:-5px;top:-5px;background:#fff}

/* ---------- tabs ---------- */
.tabs{position:relative;margin-bottom:5px;border-bottom:1px solid #acdae5;*zoom:1}
.tabs:after{content:".";display:block;font-size:0;line-height:0;clear:both;visibility:hidden}
.tabs a.crumb{position:absolute;top:10px;right:10px;padding:0 .5em;font-size:12px}
.tabs ul{position:relative;list-style:none;margin-bottom:-1px;font-size:14px;text-align:left}
.tabs ul{margin-bottom:-2px}
.tabs li{display:inline;margin-right:2px}
.tabs li a{display:inline-block;height:21px;margin:5px 0 0;padding:1px 12px 0;background:#acdae5;border:1px solid #acdae5;color:#222;text-decoration:none;line-height:21px;vertical-align:bottom}
.tabs li a:hover{background:#fff;color:#ff7031}
.tabs li.current a{margin:0;padding:4px 12px 2px;border-bottom:1px solid #fff;background:#fff}

/* ---------- 内容流 #stream ---------- */
#stream h3{padding:2px 0 5px 3px;color:#666;font-size:14px;border-bottom:1px dashed #ddd;font-weight:700}
#stream ol{list-style:none;*zoom:1}
#stream li{position:relative;z-index:0;width:445px;padding:12px 50px 12px 5px;border-bottom:1px dashed #ddd;font-size:14px;overflow:hidden;overflow-x:hidden;-o-text-overflow:ellipsis}
#stream li a.avatar{float:left;margin-left:-59px;margin-top:3px;overflow:hidden}
#stream li a.name{font-weight:700}
#stream li span.content{text-overflow:ellipsis;white-space:pre-line}
#stream li span.content a.photo{float:right;margin-left:5px;overflow:hidden}
#stream li .op,#stream li .op a{display:block}
#stream li .op{position:absolute;top:5px;right:5px;z-index:1}
#stream li .op a{margin-top:4px;visibility:hidden}
#stream li.light{background:#f5f5f5}
#stream .wa li{width:388px;padding:9px 50px 12px 62px;overflow:hidden}
#stream .wa li.sys{width:433px;min-height:0;padding:12px 5px 12px 62px}
#stream .wa li:after,#stream li:after{content:".";display:block;font-size:0;line-height:0;clear:both;visibility:hidden}
#stream .wa li,#stream li{*zoom:1;word-wrap:break-word;min-height:50px}
#stream li span.avatar{float:left;margin-left:-55px;overflow:hidden}
#stream.message h2{padding:0;border:none;color:#576166;font-size:16px}
#stream.message li a.avatar img{display:block;width:48px;height:48px}
#stream.search li{width:auto;padding-right:5px}
#stream.search li dt{margin:.2em 0;font-weight:700}
#stream.search li dd{margin:.15em 0;font-size:12px}

/* ---------- 分页 ---------- */
.pagination{margin-top:15px}
.pagination .more{display:block;height:22px;line-height:1.5em;margin-bottom:6px;background:#fff url(img/bg-more.gif) repeat-x 0 0;border:1px solid #ddd;border-color:#ddd #aaa #aaa #ddd;font-size:14px;padding:6px 0;text-align:center;text-decoration:none;-moz-border-radius:5px;outline:none;float:left}
.pagination .more:hover{border:1px solid #bbb;color:#06c;text-decoration:none;background-position:left -78px}

/* ---------- 发布框 #update ---------- */
#update{width:500px;margin:0 0 10px}
#update h2{font-size:16px}
#update form{position:relative}
#update p{margin:.6em 0}
#update textarea{width:490px;height:3.6em;font-size:14px}
#update .act{padding:0 0 5px;*zoom:1}
#update .act .actpost{float:right;width:165px;text-align:right}
#update .act .lastmsg{margin-right:170px;color:#666;word-wrap:break-word;text-overflow:ellipsis}
#update .act .lastmsg p{line-height:1.2}
#update a{color:#666}
#update .act .time{color:#999}
#update:after{content:".";display:block;font-size:0;line-height:0;clear:both;visibility:hidden}
#update .tip{position:absolute;right:0;top:0;margin:0;color:#999;line-height:20px}
#update .tip .counter{color:#444;font-size:20px;font-family:"Times New Roman",Times,serif;font-weight:700}
#update .caution,#update .caution .counter{color:#c00}
#update .formbutton{width:115px;height:32px;border:0;background:url(img/button-send.gif) 0 0 no-repeat;color:#444;font-size:15px;font-weight:700;line-height:32px;letter-spacing:.5em}
#update .formbutton:hover{color:#000}

/* ---------- 页脚 ---------- */
#footer{margin:1.25em 0}
#footer .ui-roundedbox-content{width:765px;padding:1px 0;color:#fff;text-align:center}
#footer p{display:inline;margin-right:1em;color:#333}
#footer a{margin-left:.25em;text-decoration:none}

/* ---------- 本站单栏适配（唯一新增块） ---------- */
#main{width:auto;padding:20px}
#update{width:auto}
#update textarea{width:100%}
#stream li{width:auto;padding-right:50px}
#columns{display:block}
a{text-decoration:none}

/* 单栏适配：给头像让出 59px 的负边距空间 */
#stream ol{padding-left:59px}

/* 单栏适配：头像改为绝对定位，文本从 59px 起排（与饭否 li 的 5px+54px 视觉一致） */
#stream ol{padding-left:0}
#stream li{width:auto;padding:12px 50px 12px 59px}
#stream li a.avatar{position:absolute;left:5px;top:12px;float:none;margin:0;width:48px;height:48px;overflow:visible}
#stream li a.avatar > .avatar{position:static;float:none;margin:0;display:flex;width:48px;height:48px}

/* 删除按钮：饭否的 op 结构里悬停才显示 */
#stream li .op button{background:transparent;border:0;padding:0;margin-top:4px;visibility:hidden;cursor:pointer}
#stream li:hover .op button{visibility:visible}

/* 窄屏适配（本站单栏，无侧栏） */
@media (max-width:800px){
  #container{width:auto;padding:0 8px}
  #header h1{width:auto}
  #navigation{float:none;clear:both;margin-top:6px;display:inline-block}
  #navigation .ui-roundedbox-content{height:auto;line-height:22px;padding:2px 4px}
  #main{padding:14px 12px 20px}
  #update textarea{width:100%}
  #stream li{padding:10px 10px 10px 59px}
  #footer .ui-roundedbox-content{width:auto}
}

/* ---------- 图片 logo 覆盖（本文件最后加载） ---------- */
#header h1{width:auto;max-width:none}
.logo{display:block;padding:0;height:auto;line-height:0}
.logo img{display:block;width:auto;height:64px;max-width:100%;border:0}
#navigation{margin-top:20px}
@media (max-width:719px){
  .logo img{height:46px}
  #navigation{margin-top:12px}
}


/* Tab 对齐：未激活底边与分隔线齐平，激活项压住分隔线形成开口 */
.tabs{display:flex;align-items:flex-end;flex-wrap:wrap;position:relative;border-bottom:1px solid #acdae5;margin:0 0 12px;padding:0;line-height:1}
.tabs ul{display:flex;align-items:flex-end;flex-wrap:wrap;list-style:none;margin:0 0 -1px;padding:0;font-size:14px}
.tabs li{display:block;margin:0 2px 0 0}
.tabs li a{display:block;height:24px;line-height:24px;padding:0 12px;margin:5px 0 0;box-sizing:border-box;background:#acdae5;border:1px solid #acdae5;color:#222;font-size:14px;text-decoration:none;vertical-align:bottom}
.tabs li a:hover{background:#fff;color:#ff7031;text-decoration:none}
.tabs li.current a,.tabs li.active a{height:30px;line-height:30px;padding:0 12px;margin:0 0 -1px;background:#fff;border-bottom-color:#fff;box-shadow:0 1px 0 #fff;color:#222;position:relative;z-index:1}
.tabs>a.tab{display:block;height:24px;line-height:24px;padding:0 12px;margin:5px 2px -1px 0;box-sizing:border-box;background:#acdae5;border:1px solid #acdae5;color:#222;font-size:14px;text-decoration:none;vertical-align:bottom}
.tabs>a.tab:hover{background:#fff;color:#ff7031;text-decoration:none}
.tabs>a.tab.active{height:30px;line-height:30px;margin:0 2px -1px 0;background:#fff;border-bottom-color:#fff;box-shadow:0 1px 0 #fff;color:#222;position:relative;z-index:1}


/* 内容配图：正文下方九宫格 */
.photo-grid{display:grid;gap:5px;margin:10px 0 2px;max-width:100%;clear:both}
.photo-grid a.photo{display:block;float:none;margin:0;overflow:hidden;background:#f2f2f2;border:1px solid #ddd;line-height:0}
.photo-grid a.photo:hover{border-color:#06c}
.photo-grid a.photo img{display:block;width:100%;height:100%;aspect-ratio:1/1;object-fit:cover;padding:0;border:0;background:#f2f2f2}
.photo-grid.photos-1{grid-template-columns:minmax(0,200px)}
.photo-grid.photos-2{grid-template-columns:repeat(2,minmax(0,1fr));max-width:300px}
.photo-grid.photos-3{grid-template-columns:repeat(3,minmax(0,1fr));max-width:288px}
.photo-grid.photos-4{grid-template-columns:repeat(2,minmax(0,1fr));max-width:240px}
.photo-grid.photos-many{grid-template-columns:repeat(3,minmax(0,1fr));max-width:288px}
@media (max-width:800px){
  .photo-grid.photos-1{grid-template-columns:minmax(0,200px)}
}
