body {
    margin: 0;
    font: 12px/150% Tahoma, "宋体", SimSun, sans-serif;
    color: #000;
    background: #fff;
    text-align: center;
}
div { margin-left: auto; margin-right: auto; }
a { color: #000; text-decoration: none; }
a:hover { text-decoration: underline; }
[hidden] { display: none !important; }

.wrap { width: 960px; margin: 0 auto; text-align: left; }

/* ===== Logo 头部 ===== */
#head1 { height: 85px; padding-top: 12px; position: relative; }
.head-auth { position: absolute; right: 0; top: 30px; }
.btn-auth {
    display: inline-block; margin-left: 10px; padding: 8px 24px;
    font-size: 14px; font-weight: bold; cursor: pointer;
    border: 1px solid #e56f00; border-radius: 4px;
    background: linear-gradient(180deg, #ffa53d 0%, #ff8000 100%);
    color: #fff; font-family: Tahoma, "宋体", sans-serif;
    text-shadow: 0 -1px 1px rgba(150,60,0,.45);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 2px 3px rgba(0,0,0,.12);
}
.btn-auth:hover {
    text-decoration: none;
    background: linear-gradient(180deg, #ffb25c 0%, #ff8f1f 100%);
    color: #fff;
}
.logo { display: inline-block; }
.logo:hover { text-decoration: none; }
/* 后台上传的 logo 图片(与 head.css 前台头部一致) */
.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;
}

/* ===== 橙色横幅(与 head.css 前台头部一致, 使用原版 BarBg.jpg 背景) ===== */
#head2 {
    width: 100%;
    height: 144px;
    background-image: url('img/BarBg.jpg');
    background-repeat: repeat-x;
    margin-top: 25px;
    margin-bottom: 60px;
    box-shadow: none;
}
.band-inner { height: 144px; position: relative; overflow: hidden; }
/* 标签区背景: 与首页 #head2_cows1 一致, 自带导轨线, gif 标签坐在线上 */
.band-nav-line {
    float: left; width: 510px; height: 144px;
    background-image: url('img/BarBgWithLine.jpg');
    background-repeat: repeat-x;
}
/* 管理后台标签较多, 导航线区通栏 */
.band-nav-line.wide { width: 100%; }
/* 网盘页(app)/管理后台内部导航标签: 与前台头部一致的 gif 文件夹标签
   (这两类页面仅加载本文件; 前台 index/auth 另有 head.css 在后覆盖同名属性, 不冲突) */
.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: 8px; }
a.band-tab:hover { text-decoration: none; }
.band-tab.current, .nav-item.active {
    color: #000;
    background-image: url('img/bt_nav_current.gif');
}
.head-user { margin: 0 6px; color: #666; font-size: 13px; vertical-align: middle; }

/* ===== 两侧广告位 ===== */
.ad-side {
    position: fixed; top: 250px; z-index: 5;
    width: 160px; height: 600px; overflow: hidden;
}
.ad-side img { display: block; }
.ad-left { left: 10px; }
.ad-right { right: 10px; }
@media (max-width: 1360px) {
    .ad-side { display: none; }
}
.band-rules {
    position: absolute; left: 400px; top: 26px;
    color: #fff3e0; font-size: 12px; line-height: 180%;
    text-shadow: 0 1px 1px rgba(150,60,0,.35); max-width: 400px;
}
.band-rules a { color: #fff; text-decoration: underline; }
.band-user {
    position: absolute; right: 130px; top: 30px;
    color: #fff; font-size: 13px; font-weight: bold;
    text-shadow: 0 1px 1px rgba(150,60,0,.4);
}
.band-user .link-btn { color: #fff; text-decoration: underline; margin-left: 6px; font-weight: normal; }
.band-orange {
    position: absolute; right: 30px; top: 0;
    width: 124px; height: 144px;
    background: url('img/orange.jpg') no-repeat center / contain;
}

/* ===== 首页加高横幅 + 游客上传 ===== */
#head2.band-tall, .band-tall { height: 145px; }
#head2.band-tall .band-inner, .band-tall .band-inner { height: 145px; }
.guest-upload { clear: both; padding: 14px 4px 0; }
.guest-upload form { margin: 0; }
.guest-upload input[type=file] { color: #663300; font-size: 12px; }
.guest-upload .btn.small { margin-left: 14px; }
.guest-rules {
    color: #fff3e0; margin-top: 10px; font-size: 12px;
    text-shadow: 0 1px 1px rgba(150,60,0,.35);
}
.guest-rules a { color: #fff; 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,.3); 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,255,255,.8);
    transition: width .15s linear;
}
.up-pct {
    display: inline-block; vertical-align: middle; margin-left: 10px;
    color: #fff; font-size: 13px; font-weight: bold;
    text-shadow: 0 1px 1px rgba(150,60,0,.45); min-width: 56px;
}
/* 搜索框几何统一由 head.css 的 .guest-upload input[type=text] 控制 */
#panelSearch input[type=text]:focus { border-color: #ff8000; background: #fffdf8; }
#panelSearch .btn.small { margin-left: 14px; }
#searchResult { margin-top: 12px; }
#searchResult .file-table { margin-bottom: 22px; }
#guestResult { margin-top: 10px; }
#guestResult .guest-ok { margin: 0; }
#guestResult .link-row { display: flex; gap: 8px; margin-top: 8px; }
#guestResult .link-row input {
    flex: 1; border: 1px solid #ddd; background: #f6f6f6;
    padding: 5px 8px; font-size: 12px; color: #777;
}
#guestResult .alert { margin-top: 10px; }

/* ===== 主体两栏 ===== */
#body { min-height: 320px; overflow: hidden; padding-bottom: 20px; }
#left { float: left; width: 250px; text-align: left; }
#right { float: left; width: 680px; margin-left: 30px; text-align: left; }
.no-left #right { float: none; width: 100%; margin-left: 0; }

/* ===== 站点页面(关于/联系/协议等) ===== */
.page-cols { overflow: hidden; }
.page-menu { float: left; width: 200px; border: 1px dashed #ccc; background: #fff; }
.page-menu-head {
    padding: 11px 16px; background: #f2f2f2;
    font-weight: bold; color: #000; border-bottom: 1px solid #ddd;
}
.page-menu a {
    display: block; padding: 11px 16px;
    border-bottom: 1px solid #e0e0e0; color: #444; font-size: 13px;
}
.page-menu a:last-child { border-bottom: 0; }
.page-menu a:hover { background: #f6f9ff; color: #ff6a00; }
.page-menu a.current { color: #f21728; font-weight: bold; }
.page-main { float: right; width: 730px; text-align: left; }
.page-text { line-height: 210%; color: #444; padding: 12px 8px; }
.page-text p { margin-bottom: 14px; }
.page-text li { margin-left: 22px; line-height: 190%; }
.footer-line {
    border: 1px solid #e5a3a3; border-radius: 10px;
    height: 2px; margin-bottom: 16px;
}

.ad-home { overflow: hidden; }
.ad-home img { max-width: 100%; }

/* ===== 红色小标题 + 灰色内容块(与 page.css 协议页风格一致) ===== */
.SubTitle {
    font-size: 14px; color: #F21728; line-height: 200%;
}
.SubContent {
    line-height: 28px; background-image: url('img/GradualGrayBg.jpg');
    background-repeat: repeat-x; background-color: #fff;
    padding: 10px; color: #000;
    margin-bottom: 22px; text-align: left; min-height: 49px;
}
.SubContent a { line-height: 28px; text-decoration: underline; }
.SubContent p { margin: 8px 0; line-height: 28px; }
.SubContent li { margin-left: 18px; list-style-type: none; }
.SubContent font[color=red] { color: #F21728; }

/* ===== 右侧提示框(黄) ===== */
.NoticeBox {
    background: #FFFFCC; border: 1px solid #ECE9D8;
    padding: 14px 16px; color: #999; line-height: 190%;
    font-size: 12px; margin-bottom: 14px;
}
.NoticeBox b { color: #ff8000; display: block; margin-bottom: 8px; font-size: 14px; }
.NoticeBox p { margin: 0 0 8px 0; }

/* ===== 登录/注册卡片 ===== */
.retro-card {
    width: 250px; background: #fff; border: 1px solid #ECE9D8;
    box-shadow: 0 3px 10px rgba(0,0,0,.08); text-align: left;
}
.retro-card .card-band {
    height: 44px; line-height: 44px; padding-left: 14px;
    background: linear-gradient(180deg, #ffb143 0%, #ff8000 100%);
    color: #fff; font-size: 15px; font-weight: bold;
    text-shadow: 0 -1px 1px rgba(150,60,0,.4);
}
.retro-card .card-body { padding: 14px; }
.tabs { display: flex; gap: 4px; background: #f0f0f0; padding: 3px; border-radius: 3px; margin-bottom: 12px; }
.tab {
    flex: 1; border: 0; background: transparent; padding: 6px 0;
    cursor: pointer; color: #999; font-size: 13px; border-radius: 2px;
    font-family: Tahoma, "宋体", sans-serif;
}
.tab.active { background: #fff; color: #ff6a00; font-weight: bold; box-shadow: 0 1px 2px rgba(0,0,0,.12); }
.alert {
    background: #fff2f2; color: #F21728; border: 1px solid #f3c8c8;
    padding: 6px 9px; margin-bottom: 10px; font-size: 12px;
}
.auth-form input {
    width: 100%; padding: 8px 9px; margin-bottom: 9px;
    border: 1px solid #ccc; background: #fff; font-size: 13px;
    box-sizing: border-box; outline: none; font-family: Tahoma, "宋体", sans-serif;
}
.auth-form input:focus { border-color: #ff8000; background: #fffdf8; }
.btn.block { display: block; width: 100%; }
.card-tip { color: #999; margin-top: 10px; line-height: 160%; }

/* ===== 按钮 ===== */
.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.danger:hover { color: #F21728; border-color: #F21728; background: #fff2f2; text-shadow: none; }
.btn.small { padding: 2px 9px; font-size: 12px; }
.btn.big { padding: 10px 24px; font-size: 15px; }
.link-btn {
    border: 0; background: none; color: #ff6a00; cursor: pointer;
    font-size: 12px; font-family: Tahoma, "宋体", sans-serif; padding: 0;
}
.link-btn:hover { text-decoration: underline; }

/* ===== 面包屑 ===== */
.crumbs { font-size: 13px; color: #999; line-height: 30px; overflow-wrap: anywhere; }
.crumbs a { cursor: pointer; color: #666; text-decoration: underline; }
.crumbs a:hover { color: #ff6a00; }
.crumbs b { color: #d35400; }
.crumbs .sep { margin: 0 6px; color: #ccc; }

/* ===== 工具栏 ===== */
.toolbar {
    display: flex; align-items: center; justify-content: space-between;
    gap: 10px; flex-wrap: wrap; margin-bottom: 10px;
    border-bottom: 3px solid #ECE9D8; padding-bottom: 8px;
}
.toolbar-actions { display: flex; gap: 8px; }

/* ===== 文件表格 ===== */
.file-table {
    width: 100%; border-collapse: collapse;
    background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
    border: 1px solid #eee; text-align: left;
}
.file-table th {
    text-align: left; font-size: 12px; color: #666; font-weight: bold;
    background: linear-gradient(180deg, #fafafa 0%, #ececec 100%);
    padding: 8px 12px; border-bottom: 2px solid #ECE9D8;
}
.file-table td { text-align: left; padding: 8px 12px; border-bottom: 1px dashed #e5e5e5; font-size: 13px; }
.file-table tbody tr:hover { background: #fff7e8; }
.cell-name { max-width: 300px; overflow-wrap: anywhere; }
.cell-name .icon { margin-right: 6px; }
.col-size { width: 80px; }
.col-time { width: 120px; }
.col-ops { width: 230px; text-align: right !important; }
.col-ops .btn { margin-left: 5px; }
.muted { color: #999; }
.empty { text-align: center; color: #999; padding: 45px 0 !important; }

/* ===== 存储条 ===== */
.bar { height: 10px; background: #e9e9e9; border-radius: 5px; overflow: hidden; box-shadow: inset 0 1px 2px rgba(0,0,0,.15); }
.bar i {
    display: block; height: 100%; width: 0;
    background: linear-gradient(180deg, #ffb143 0%, #ff8000 100%);
    border-radius: 5px; transition: width .4s;
}
.storage-num { color: #666; margin-bottom: 6px; white-space: nowrap; }
.storage-num b { display: inline; margin-bottom: 0; font-size: 12px; }
.storage-num b { color: #ff6a00; }

/* ===== 弹窗 ===== */
.modal-mask {
    position: fixed; inset: 0; z-index: 50;
    background: rgba(0,0,0,.5);
    display: flex; align-items: center; justify-content: center;
}
.modal {
    width: 400px; max-width: calc(100vw - 40px);
    background: #fff; border: 1px solid #ECE9D8;
    box-shadow: 0 6px 24px rgba(0,0,0,.3); text-align: left;
}
.modal h3 {
    margin: 0; padding: 12px 16px; font-size: 14px; color: #fff;
    background: linear-gradient(180deg, #ffb143 0%, #ff8000 100%);
    text-shadow: 0 -1px 1px rgba(150,60,0,.4);
}
.modal .modal-content { padding: 16px; }
.modal label { display: block; font-size: 12px; color: #999; margin: 10px 0 5px; }
.modal input[type=text], .modal select {
    width: 100%; padding: 7px 9px; border: 1px solid #ccc;
    font-size: 13px; outline: none; box-sizing: border-box;
    font-family: Tahoma, "宋体", sans-serif; background: #fff;
}
.modal input[type=text]:focus, .modal select:focus { border-color: #ff8000; background: #fffdf8; }
.modal p { color: #999; margin: 8px 0 0; }
.modal code { background: #f2f2f2; border: 1px solid #ddd; padding: 1px 5px; color: #d35400; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
.link-row { display: flex; gap: 6px; margin-top: 10px; }
.link-row input { flex: 1; font-size: 12px !important; background: #f6f6f6; color: #777; }
.modal .modal-body-pad { padding: 16px; }

/* ===== 图片预览 ===== */
.preview-modal { padding: 8px; background: #fff; border: 1px solid #ECE9D8; }
.preview-modal img {
    max-width: calc(100vw - 100px); max-height: calc(100vh - 140px); display: block;
}
.preview-close { text-align: right; margin-bottom: 6px; }
.preview-close a { color: #666; cursor: pointer; }

/* ===== 消息提示 ===== */
.toast-box {
    position: fixed; top: 16px; left: 50%; transform: translateX(-50%);
    z-index: 99; display: flex; flex-direction: column; gap: 8px; align-items: center;
}
.toast {
    background: #4a3a28; color: #ffe; padding: 8px 20px;
    border: 1px solid #ff8000; font-size: 13px;
    box-shadow: 0 4px 14px rgba(0,0,0,.3); animation: toast-in .25s ease-out;
}
.toast.err { background: #F21728; border-color: #a10f1d; color: #fff; }
@keyframes toast-in {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== 页脚 ===== */
#footer {
    text-align: center; color: #999; line-height: 220%;
    margin: 25px auto 20px; padding-top: 14px;
    border-top: 1px dashed #ECE9D8; width: 960px; font-size: 12px;
}
#footer a { color: #666; }
#footer a:hover { color: #ff6a00; }

/* ===== 首页页脚(与 page.css 协议页风格一致) ===== */
#footer.foot-home {
    width: 960px; line-height: 250%;
    margin-top: 20px; margin-bottom: 30px;
    padding-top: 0; border-top: 0; color: #000;
}
#footer .foot-img { border: 0; }
#footer.foot-home .foot-img { width: 100%; height: 14px; }
#footer.foot-home a { color: #000; }
#footer.foot-home a:hover { color: #000; text-decoration: underline; }
#footer .icp {
    display: block;
    color: #cccccc;
    font-size: 12px;
}

@media (max-width: 1000px) {
    .wrap, #footer, #footer.foot-home { width: 96%; }
    #left { width: 100%; float: none; }
    #right { width: 100%; margin: 15px 0 0; }
    .band-rules { display: none; }
    .band-orange { display: none; }
    .band-user { right: 20px; }
    .retro-card { width: 100%; }
    .col-time { display: none; }
}
