/* =========================================================
   共享头部样式 (所有前台页面统一引用)
   复刻 good.gd main.css 头部结构 + 原版背景图:
   img/BarBg.jpg / BarBgWithLine.jpg / orange.jpg
   请在本文件之后加载各页面自身样式表以外的头部依赖
   ========================================================= */

/* ---- 基础重置 ---- */
body, td, a {
    font-size: 12px;
    line-height: 150%;
    text-decoration: none;
    color: #000000;
    font-family: Tahoma, "宋体", SimSun, sans-serif;
}
body {
    margin: 0;
    text-align: center;
    background: #fff;
}
div { margin-right: auto; margin-left: auto; }
p { margin: 8px 0; }
li { list-style-type: none; }
[hidden] { display: none !important; }

/* ===== 头部 Logo (#head1 85px 高, 居左) ===== */
#head1 {
    width: 960px;
    height: 85px;
    margin-top: 10px;
    text-align: left;
    position: relative;
}
.logo { display: inline-block; padding-top: 4px; }
.logo:hover { text-decoration: none; }
/* 后台上传的 logo 图片(默认 ./assets/wangpan-logo.png 为 272x81, 与原版 logo.jpg 同尺寸) */
.logo-img { display: block; border: 0; max-height: 81px; max-width: 320px; }
.logo-badge {
    display: inline-block; width: 54px; height: 54px;
    line-height: 54px; text-align: center; vertical-align: middle;
    background: linear-gradient(145deg, #ffb143 0%, #ff8000 60%, #f06f00 100%);
    border-radius: 12px; color: #fff; font-size: 34px; font-weight: bold;
    font-family: "Microsoft YaHei", sans-serif;
    box-shadow: inset 0 2px 3px rgba(255,255,255,.55), 0 2px 4px rgba(0,0,0,.2);
    text-shadow: 0 -1px 1px rgba(150,60,0,.5);
    margin-right: 8px;
}
.logo-text {
    display: inline-block; vertical-align: middle;
    font-size: 36px; font-weight: bold; color: #ff8000;
    font-family: "Microsoft YaHei", Arial, sans-serif; letter-spacing: 1px;
}
.logo-sub {
    display: inline-block; vertical-align: middle;
    margin-left: 10px; padding: 2px 8px;
    background: #ff8000; color: #fff; font-size: 14px;
    border-radius: 3px; position: relative; top: -4px;
}
/* 右上角提示文字区(#attention 空槽位) */
#attention {
    position: absolute; right: 0; top: 34px;
    color: #999999; font-size: 12px;
    white-space: nowrap;
}
.attn-link { color: #666666; text-decoration: underline; font-size: 12px; }
.attn-link:hover { color: #ff8000; }
/* 首页在此区域放置原版橙色胶囊按钮(.btn-auth 由 style.css 提供) */

/* ===== 导航横幅 (#head2: 白->橙渐变原图 repeat-x 原始比例) ===== */
#head2 {
    width: 100%;
    height: 144px;
    background-image: url('img/BarBg.jpg');
    background-repeat: repeat-x;
    margin-top: 25px;
    margin-bottom: 60px;
    box-shadow: none; /* 覆盖 style.css/share.css 遗留的横幅投影 */
}
#head2_container { width: 960px; } /* 与内容区 .wrap 同宽, Tab 架左缘对齐内容左缘 */
#head2_cows1 {
    float: left;
    text-align: left;
    width: 510px;
    height: 144px;
    margin-right: 80px;
    background-image: url('img/BarBgWithLine.jpg'); /* 原版自带导轨横线, 标签图精确坐在线上 */
    background-repeat: repeat-x;
}
#head2_cows2 { float: right; margin-right: 30px; } /* 橙子图与登录后页面(右缩进30px)一致 */
#head2_cows2 img { display: block; float: none; border: 0; }

/* 导航标签(复刻 good.gd 原版: 112x31 gif 梯形标签, 底边 y=58 与背景导轨线对齐)
   文字左对齐并留 15px(原版透明占位图宽度), 梯形右侧是斜边, 居中会显得偏右 */
.band-tab {
    float: left; box-sizing: border-box; width: 112px; height: 31px; margin-top: 27px;
    line-height: 30px; text-align: left; padding-left: 15px; font-size: 12px;
    color: #000; cursor: pointer;
    background-image: url('img/bt_nav_others.gif');
    background-repeat: no-repeat;
    position: relative; z-index: 2;
}
.band-tab + .band-tab { margin-left: 20px; }
.band-tab.current {
    color: #000;
    background-image: url('img/bt_nav_current.gif');
}

/* 游客上传面板 */
.guest-upload { clear: both; padding: 15px 4px 0 0; text-align: left; }
.guest-upload form { margin: 0; }
/* 面板控件复刻原版经典样式(原 main.css .txtbox/.button/#SearchButton): 白底 1px #ccc 无圆角 */
.guest-upload input[type=file] {
    color: #000; font-size: 12px; width: 230px; box-sizing: border-box;
    border: 0; background: transparent; border-radius: 0;
    padding: 2px 4px; font-family: Tahoma, "宋体", SimSun, sans-serif;
}
.guest-upload input[type=text] {
    color: #000; font-size: 12px; width: 230px; box-sizing: border-box; /* 与上传面板文件框同宽同位, 切换面板时按钮位置不跳动 */
    border: 1px solid #ccc; background: #fff; border-radius: 0;
    padding: 3px 4px; font-family: Tahoma, "宋体", SimSun, sans-serif;
}
.guest-upload .btn.small {
    width: 60px; height: 24px; padding: 0; margin-left: 14px;
    border: 1px solid #ccc; border-radius: 0;
    background: #efefef; color: #000; font-size: 12px;
    text-shadow: none; box-shadow: none;
    font-family: Tahoma, "宋体", SimSun, sans-serif;
}
.guest-upload .btn.small:hover {
    background: #e5e5e5; color: #000; border-color: #ccc; text-decoration: none;
}
.guest-rules {
    color: #86410e; margin-top: 10px; font-size: 12px;
    text-shadow: 0 1px 0 rgba(255, 255, 255, .4);
    white-space: nowrap; /* 提示文字单行显示, 不换行 */
}
.guest-rules a { color: #c04a00; text-decoration: underline; }
.up-progress { display: inline-block; vertical-align: middle; }
.up-bar {
    display: inline-block; vertical-align: middle;
    width: 240px; max-width: 45vw; height: 16px;
    background: rgba(255,255,255,.55); border-radius: 8px; overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(120,50,0,.35);
}
.up-bar i {
    display: block; height: 100%; width: 0;
    background: linear-gradient(180deg, #ffffff 0%, #ffe9a8 100%);
    border-radius: 8px;
    box-shadow: 0 0 6px rgba(255,200,80,.9);
    transition: width .15s linear;
}
.up-pct {
    display: inline-block; vertical-align: middle; margin-left: 10px;
    color: #a34b00; font-size: 13px; font-weight: bold; min-width: 56px;
}

/* 搜索面板 */
/* 搜索框几何统一由 .guest-upload input[type=text] 控制(与上传面板文件框对齐) */
#panelSearch input[type=text]:focus { border-color: #ff8000; background: #fffdf8; }
#guestResult { width: 960px; }

/* ===== 按钮 ===== */
.btn {
    display: inline-block; padding: 6px 14px; font-size: 13px;
    border: 1px solid #bbb; border-radius: 3px; cursor: pointer;
    background: linear-gradient(180deg, #f8f8f8 0%, #dedede 100%);
    color: #555; font-family: Tahoma, "宋体", sans-serif;
    text-shadow: 0 1px 0 #fff; white-space: nowrap;
}
.btn:hover {
    text-decoration: none;
    background: linear-gradient(180deg, #ffffff 0%, #e9e9e9 100%);
    color: #ff6a00; border-color: #ff9c2e;
}
.btn.primary {
    background: linear-gradient(180deg, #ffa53d 0%, #ff8000 100%);
    border: 1px solid #e56f00; color: #fff; font-weight: bold;
    text-shadow: 0 -1px 1px rgba(150,60,0,.45);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.5);
}
.btn.primary:hover { background: linear-gradient(180deg, #ffb25c 0%, #ff8f1f 100%); color: #fff; }
.btn.small { padding: 2px 9px; font-size: 12px; }

/* 错误提示条 */
.alert {
    background: #fff2f2; color: #F21728; border: 1px solid #f3c8c8;
    padding: 6px 9px; margin-bottom: 10px; font-size: 12px;
}

/* ===== 小屏降级(仅防破版) ===== */
@media (max-width: 1020px) {
    #head1, #head2_container { width: 96%; max-width: 960px; }
    #head2_cows1 { width: auto; margin-right: 130px; }
    .guest-upload { padding-left: 6px; }
    #guestResult { width: 96%; }
}
