/* 信息流、帖子详情和公开主页共用的暖色布局。 */
.social-shell{width:100%;max-width:760px;margin:0 auto 30px}
.social-feed{width:100%}
.social-header{display:flex;align-items:center;gap:14px;min-height:64px;margin-bottom:12px}
.social-header h1{font-size:28px;color:#3B2218;flex:1}
.social-header button,.social-shell button:not(.button){min-width:44px;min-height:44px;border:0;border-radius:999px;background:transparent;color:#7A5A48;display:inline-flex;align-items:center;justify-content:center;gap:8px;cursor:pointer;font:inherit}
.social-header button:hover,.social-shell button:not(.button):hover{background:#FFE9D2;color:#3B2218}
.social-shell button:focus-visible,.social-post:focus-visible{outline:2px solid #B52D17;outline-offset:3px}
.social-tabs{display:flex;border-bottom:1px solid #F3DCC4;margin-bottom:20px}
.social-tabs>button{flex:1;position:relative;border-radius:12px 12px 0 0!important;min-height:52px!important;padding:12px 20px!important;font-weight:600!important}
.social-tabs>button[aria-selected=true]{color:#3B2218!important}
.social-tabs>button[aria-selected=true]:after{content:"";height:4px;position:absolute;bottom:0;width:44px;left:calc(50% - 22px);border-radius:999px;background:#D9381E}
.social-composer{display:flex;gap:13px;padding:20px;background:#FFFFFF;border:1px solid #F3DCC4;border-radius:20px;margin-bottom:20px}
.social-avatar{flex:none;width:44px;height:44px;border-radius:50%!important;background:#FFE9D2!important;color:#3B2218!important;font-size:19px!important;padding:0!important;overflow:hidden;font-weight:700!important}
.social-avatar img{display:block;width:100%;height:100%;object-fit:cover}
.social-composer-main{flex:1;min-width:0}
#social-compose-text{display:block;resize:vertical;width:100%;border:0;border-radius:12px;padding:10px 0;min-height:94px;max-height:280px;font-size:17px;color:#3B2218;background:#FFFFFF;line-height:1.8}
.social-compose-tools{display:flex;align-items:center;gap:9px;margin-top:9px;border-top:1px solid #F3DCC4;padding-top:9px;flex-wrap:wrap}
.social-compose-tools>div{display:flex;gap:1px;margin-right:auto}
.social-compose-tools>div button{color:#B52D17!important}
.social-compose-tools>span{font-size:12px;color:#7A5A48}
.social-publish{min-height:44px;min-width:82px;padding:10px 22px}
.social-compose-count.over-limit,#social-compose-count.over-limit{color:#B52D17;font-weight:700}
.social-selected-images{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin:10px 0}
.social-selected-images figure{position:relative;margin:0;border-radius:14px;overflow:hidden;background:#FFF6EA;border:1px solid #F3DCC4}
.social-selected-images figure img{width:100%;aspect-ratio:4/3;object-fit:cover;display:block}
.social-selected-images figure button{position:absolute;right:4px;top:4px;background:#FFFFFF!important;color:#B52D17!important;box-shadow:0 2px 12px rgba(122,40,20,.18)}
.social-attached-recipe{padding:15px;background:#FFF6EA;border:1px solid #F3DCC4;border-radius:16px;margin:14px 0;overflow-wrap:anywhere}
.social-attached-recipe>strong{font-size:18px;color:#3B2218}
.social-attached-recipe>p{color:#7A5A48;font-size:13px;line-height:1.8;margin:7px 0}
.social-attached-recipe>label{display:flex;align-items:center;gap:14px;font-size:13px;color:#7A5A48}
.social-attached-recipe select{min-height:44px;border:1px solid #F3DCC4;border-radius:11px;padding:8px;flex:1}
.social-attached-recipe input{display:block;width:100%;min-height:44px;padding:10px;border:1px solid #F3DCC4;border-radius:11px;margin-top:10px;font-size:14px}
.social-post{background:#FFFFFF;border:1px solid #F3DCC4;border-radius:20px;padding:20px;margin:0 0 16px;min-width:0;position:relative;overflow:hidden}
.social-post[role=link]{cursor:pointer;transition:border-color .18s,box-shadow .18s}
.social-post[role=link]:hover{border-color:#D9B498;box-shadow:0 5px 22px rgba(122,40,20,.08)}
.social-post-header,.social-comment-header{display:flex;align-items:center;gap:10px;min-height:44px}
.social-author{justify-content:flex-start!important;min-width:44px!important;flex:0 1 auto;padding:0 3px!important;text-align:left;color:#7A5A48!important;overflow-wrap:anywhere}
.social-author strong{font-weight:600;font-size:14px}
.social-post-header>time,.social-comment-header>time{color:#7A5A48;font-size:12px;white-space:nowrap;margin-left:auto}
.social-post-body{font-size:16px;line-height:1.95;color:#3B2218;white-space:pre-wrap;overflow-wrap:anywhere;margin:12px 0 13px}
.social-post-images{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;border-radius:16px;overflow:hidden;background:#FFF6EA;margin:12px 0}
.social-post-images>img{display:block;width:100%;height:100%;aspect-ratio:1;object-fit:cover;min-width:0;min-height:0;max-height:420px}
.social-post-images[data-count="1"]{grid-template-columns:1fr}
.social-post-images[data-count="1"]>img{aspect-ratio:16/11;max-height:480px;object-fit:contain}
.social-post-images[data-count="3"]>img:first-child{grid-row:span 2;aspect-ratio:auto;max-height:none}
.social-post-images[data-count="3"]>img:not(:first-child){aspect-ratio:1.5}
.social-recipe{background:#FFF6EA;border:1px solid #F3DCC4;border-radius:16px;padding:16px;margin:14px 0;overflow-wrap:anywhere}
.social-recipe>div{display:flex;align-items:center;gap:8px;margin-bottom:8px;color:#3B2218}
.social-recipe>div>strong{font-family:"Noto Serif SC",serif;font-size:19px;font-weight:700}
.social-recipe>p{font-size:13px;line-height:1.9;color:#7A5A48;margin:3px 0;white-space:pre-wrap}
.social-recipe>p>.icon{width:15px;height:15px;margin-right:5px}
.social-recipe-stars{color:#B52D17;font-size:15px;letter-spacing:2px;display:block;margin-top:8px}
.social-actions{display:flex;align-items:center;justify-content:space-between;gap:5px;border-top:1px solid #F3DCC4;margin-top:14px;padding-top:8px}
.social-actions>button{min-width:50px!important;padding:10px!important;color:#7A5A48!important;font-size:13px!important}
.social-actions>button:hover{background:#FFE9D2!important;color:#3B2218!important}
.social-like.liked{color:#D9381E!important}
.social-like.liked .icon{fill:#D9381E;stroke:#D9381E;animation:social-heart-pop .24s ease-out}
.social-post-detail{cursor:default;border-radius:20px;margin-bottom:20px}
.social-post-detail .social-post-body{font-size:19px;line-height:2}
.social-exact-time{display:block;color:#7A5A48;font-size:12px;margin-top:19px}
.social-detail-counts{font-size:13px;color:#7A5A48;padding:15px 0 3px;word-spacing:4px}
.social-detail-counts strong{color:#3B2218}
.social-actions-large>button{min-width:60px!important}
.social-comment-composer{background:#FFFFFF;border:1px solid #F3DCC4;border-radius:20px;padding:20px;margin-bottom:19px}
.social-comment-compose-row{display:grid;grid-template-columns:44px minmax(0,1fr) auto;align-items:start;gap:10px;min-width:0}
.social-comment-compose-row>div{display:flex;flex-direction:column-reverse;align-items:flex-end;gap:8px;min-width:0}
.social-comment-compose-row .button{padding:10px 17px}
#social-comment-text{display:block;width:100%;min-height:88px;max-height:240px;resize:vertical;padding:12px;border:1px solid #F3DCC4;border-radius:14px;font-size:16px;line-height:1.8}
.social-comment-composer>.social-comment-compose-row{margin-top:0}
#social-comment-count{font-size:12px;color:#7A5A48}
.social-comment-tabs{display:flex;align-items:center;gap:8px;margin:14px 0}
.social-comment-tabs button{padding:10px 18px!important}
.social-comment-tabs button[aria-selected=true]{background:#FFE9D2!important;color:#3B2218!important;font-weight:600!important}
.social-comments{display:flex;flex-direction:column;gap:12px}
.social-comment{background:#FFFFFF;border:1px solid #F3DCC4;border-radius:20px;padding:17px;position:relative;min-height:110px}
.social-comment-header{padding-right:55px;flex-wrap:wrap;column-gap:8px;row-gap:0}
.social-comment-header>.social-author{max-width:calc(100% - 60px)}
.social-comment-header>time{margin-left:54px;font-size:11px;width:100%;margin-top:-5px}
.social-comment>p{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.9;font-size:15px;color:#3B2218;margin:10px 55px 0 54px}
.social-comment-actions{display:flex;align-items:center;gap:10px;margin:4px 0 0 44px}
.social-comment-actions>button{padding:9px!important;font-size:12px!important}
.social-comment-actions>.social-like{position:absolute;top:19px;right:10px;display:flex;flex-direction:column;gap:2px!important;min-width:44px!important;min-height:58px!important;color:#7A5A48}
.social-comment-empty{color:#7A5A48;text-align:center;padding:28px 15px}
.social-profile{background:#FFFFFF;border:1px solid #F3DCC4;border-radius:20px;padding:25px;margin-bottom:20px;color:#3B2218}
.social-profile-avatar{width:70px!important;height:70px!important;font-size:28px!important;margin-bottom:15px}
.social-profile h2{font-size:23px;margin-bottom:9px}
.social-profile p{color:#7A5A48;font-size:14px}
.social-error,.social-empty{background:#FFFFFF;border:1px solid #F3DCC4;border-radius:20px;padding:32px 24px;text-align:center;color:#7A5A48;margin:14px 0}
.social-empty img{display:block;width:min(210px,70%);margin:0 auto 15px}
.social-empty h2{color:#3B2218;font-size:21px;margin-bottom:13px}
.social-empty p,.social-error p{font-size:14px;line-height:1.9}
.social-error .button{margin-top:16px}
.social-inline-error{color:#B52D17;font-size:13px;line-height:1.8;margin:10px 0}
.social-end{text-align:center;color:#7A5A48;padding:18px;font-size:13px}
.social-more{text-align:center;padding:15px 0}
.social-more button{min-height:44px!important;min-width:160px!important}
.social-sentinel{height:44px;display:block}
.social-skeletons{display:flex;flex-direction:column;gap:15px}
.social-skeleton{display:flex;gap:14px;min-height:170px;padding:20px;border:1px solid #F3DCC4;border-radius:20px;background:#FFFFFF;animation:social-loading 1.4s ease-in-out infinite alternate}
.social-skeleton>span{width:44px;height:44px;border-radius:50%;background:#FFE9D2;flex:none}
.social-skeleton>div{flex:1;min-width:0}
.social-skeleton i{display:block;height:14px;background:#FFE9D2;border-radius:8px;margin-bottom:15px}
.social-skeleton i:first-child{width:40%}
.social-skeleton i:last-child{width:65%}
.social-pending{border-style:dashed}
.social-shell .social-like:disabled{background:#FFFFFF!important;color:#7A5A48!important;cursor:wait}
.social-shell .social-like.liked:disabled{color:#D9381E!important}
@keyframes social-heart-pop{0%{transform:scale(.85)}55%{transform:scale(1.2)}100%{transform:scale(1)}}
@keyframes social-loading{from{opacity:.55}to{opacity:1}}
@media(max-width:700px){
 .guest-view .main-nav{justify-content:center}
 .guest-view .main-nav a{width:100%;justify-content:center}
 .social-feed{margin-bottom:20px}
 .social-header{min-height:55px;margin-bottom:5px}
 .social-header h1{font-size:25px}
 .social-tabs{margin-bottom:16px}
 .social-composer{gap:10px;padding:15px}
 .social-avatar{width:44px;height:44px}
 #social-compose-text{font-size:16px;min-height:85px;padding:5px 0}
 .social-compose-tools{gap:5px}
 .social-compose-tools>span{font-size:11px}
 .social-publish{padding:10px 17px;min-width:72px}
 .social-post{padding:16px;margin-bottom:14px}
 .social-author strong{font-size:13px}
 .social-post-header{gap:8px;flex-wrap:wrap}
 .social-post-header>time{font-size:11px}
 .social-post-body{font-size:15px;line-height:1.95}
 .social-post-detail .social-post-body{font-size:18px}
 .social-comment-composer{padding:15px}
 .social-comment{padding:15px}
 .social-comment>p{margin-left:0;margin-right:40px;font-size:14px}
 .social-comment-actions{margin-left:-5px}
 .social-comment-header{padding-right:40px}
 .social-comment-header>time{margin-left:52px}
 .social-recipe{padding:13px}
 .social-recipe>div>strong{font-size:18px}
 .social-recipe>p{font-size:12px}
 .social-shell .social-selected-images figure img{aspect-ratio:1}
 .social-skeleton{min-height:150px;padding:16px}
 .social-profile{padding:21px}
}
@media(prefers-reduced-motion:reduce){.social-like.liked .icon,.social-skeleton{animation:none!important}}
