@charset "utf-8";
/* ============================================================
   马来风格（Malay）装饰覆盖层
   仅在 body.theme-malay 下生效；颜色主基调由 theme.php 输出缓冲
   统一映射，本文件只做结构性装饰（宋吉织锦、金色描边、暖象牙底）
   色板：马来深红 #B02A2E / 酒红 #7A1018 / 旧金 #B8860B
         织金 #C9A227 / 浅金 #E7C766 / 象牙 #FBF4E2
   ============================================================ */

body.theme-malay {
    background-color: #f6edd9;
    background-image:
        radial-gradient(circle at 18px 18px, rgba(184, 134, 11, .09) 0 1.5px, transparent 2.5px),
        radial-gradient(circle at 42px 42px, rgba(122, 16, 24, .06) 0 1.5px, transparent 2.5px);
    background-size: 48px 48px, 48px 48px;
}

/* 选中态：金底酒红字 */
body.theme-malay ::selection {
    background: #e7c766;
    color: #7a1018;
}

/* ---------- 顶部栏：象牙白 + 宋吉织金底边 ---------- */
body.theme-malay header,
body.theme-malay .agent-header {
    position: relative;
    background: #fffdf7 !important;
    border-bottom: none !important;
    box-shadow: 0 2px 12px rgba(122, 16, 24, .10) !important;
}
body.theme-malay header::after,
body.theme-malay .agent-header::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -5px;
    height: 5px;
    background-color: #7a1018;
    background-image:
        linear-gradient(45deg, #c9a227 25%, transparent 25%, transparent 75%, #c9a227 75%),
        linear-gradient(45deg, #c9a227 25%, transparent 25%, transparent 75%, #c9a227 75%);
    background-size: 12px 12px;
    background-position: 0 0, 6px 6px;
    opacity: .95;
}
body.theme-malay .logo {
    color: #7a1018 !important;
    letter-spacing: 1px;
}

/* 头像金边 */
body.theme-malay .agent-header-top .agent-avatar,
body.theme-malay .agent-header .top-bar .agent-avatar {
    border-color: #c9a227 !important;
    box-shadow: 0 0 0 1px rgba(184, 134, 11, .35);
}

/* “推荐好料”文字：金色渐变 */
body.theme-malay .recommend-text {
    background: linear-gradient(135deg, #f0d27a 0%, #b8860b 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    color: #b8860b !important;
}

/* ---------- 卡片：暖象牙 + 金色细边 + 暖色阴影 ---------- */
body.theme-malay .article-card,
body.theme-malay .record-board,
body.theme-malay .card,
body.theme-malay .modal-content {
    background: #fffdf8 !important;
    border: 1px solid rgba(201, 162, 39, .38);
    box-shadow: 0 3px 14px rgba(122, 16, 24, .08) !important;
}
body.theme-malay .article-card:hover {
    border-color: #c9a227;
    box-shadow: 0 8px 22px rgba(122, 16, 24, .14) !important;
}

/* 文章标题点缀金色系 */
body.theme-malay .article-card h3 a {
    color: #2a1a12;
}

/* 自定义标签：内描金边 */
body.theme-malay .custom-tag {
    box-shadow: inset 0 0 0 1px rgba(201, 162, 39, .55);
}

/* 战绩榜标题竖条改金色 */
body.theme-malay .record-board .board-title::before {
    background: linear-gradient(180deg, #e7c766, #b8860b) !important;
}

/* ---------- 弹窗 ---------- */
body.theme-malay .contact-modal .modal-content {
    border-top: 4px solid #7a1018;
}

/* ---------- 底部导航 ---------- */
body.theme-malay .footer-nav,
body.theme-malay footer {
    background: #fffdf7 !important;
    border-top: 1px solid rgba(201, 162, 39, .45) !important;
    box-shadow: 0 -2px 10px rgba(122, 16, 24, .06);
}

/* ---------- 输入框聚焦：金边酒红光晕 ---------- */
body.theme-malay input:focus,
body.theme-malay textarea:focus,
body.theme-malay select:focus {
    border-color: #b8860b !important;
    box-shadow: 0 0 0 3px rgba(184, 134, 11, .15) !important;
    outline: none;
}

/* ---------- 用户中心头部（header_user） ---------- */
body.theme-malay .header-user-wrap .page-title {
    color: #7a1018 !important;
}
body.theme-malay .header-user-wrap.header-pos-below .header-title-row .page-title {
    color: #8a6a18 !important;
    box-shadow: 0 2px 10px rgba(0,0,0,.10), 0 0 0 1px rgba(201,162,39,.35) !important;
}

/* ---------- 通用区块标题金色竖条（若存在） ---------- */
body.theme-malay .section-title::before,
body.theme-malay .block-title::before {
    background: linear-gradient(180deg, #e7c766, #b8860b) !important;
}

/* ============================================================
   会员/代理页面（user / settings / agent_* / message 等 23 页）
   ============================================================ */

/* 统一页头 .user-header：宋吉织金底边（内嵌，避免与负边距浮卡冲突） */
body.theme-malay .user-header {
    position: relative;
}
body.theme-malay .user-header::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 4px;
    background-color: #7a1018;
    background-image:
        linear-gradient(45deg, #c9a227 25%, transparent 25%, transparent 75%, #c9a227 75%),
        linear-gradient(45deg, #c9a227 25%, transparent 25%, transparent 75%, #c9a227 75%);
    background-size: 10px 10px;
    background-position: 0 0, 5px 5px;
    opacity: .95;
}

/* 表单卡 / 统计浮卡：象牙底 + 金细边 + 暖色阴影 */
body.theme-malay .form-card,
body.theme-malay .stats-card {
    background: #fffdf8 !important;
    border: 1px solid rgba(201, 162, 39, .38);
    box-shadow: 0 3px 14px rgba(122, 16, 24, .08) !important;
}
/* 统计浮卡以负 margin 压在页头上：页头 position:relative 后层级会盖住浮卡
   （agent_article 等页源码缺少 z-index），需提升浮卡层级恢复圆角悬浮效果；
   织金条此时仅在浮卡左右 15px 间隙露出 */
body.theme-malay .stats-card {
    position: relative;
    z-index: 1;
}

/* 弹窗头部金色分隔 */
body.theme-malay .modal-header {
    border-bottom: 1px solid rgba(201, 162, 39, .45);
}

/* 裸行列表（文章行/菜单行）：分隔线暖金 + hover 浅金底 */
body.theme-malay .article-item,
body.theme-malay .menu-item {
    border-bottom-color: rgba(201, 162, 39, .30) !important;
    transition: background-color .15s ease;
}
body.theme-malay .article-item:hover,
body.theme-malay .menu-item:hover {
    background: rgba(201, 162, 39, .10) !important;
}

/* 会员中心提现按钮：橙系 -> 马来深红 / 旧金 */
body.theme-malay .cash-apply-btn {
    background: linear-gradient(135deg, #b02a2e 0%, #7a1018 100%) !important;
}
body.theme-malay .cash-history-btn {
    background: linear-gradient(135deg, #d9b44a 0%, #b8860b 100%) !important;
}

/* ============================================================
   登录 / 注册页（login.php / register.php）
   ============================================================ */

/* 整页底色：马来酒红纯色（设计稿 #66131D），覆盖全局象牙织锦底 */
body.theme-malay.auth-page {
    background-color: #66131d;
    background-image: none;
}

/* 站名位于深红渐变背景上，覆盖通用 .logo 的深色规则，保持亮白 + 淡金光晕 */
body.theme-malay .container > .logo {
    color: #fffdf5 !important;
    text-shadow: 0 1px 8px rgba(122, 16, 24, .45), 0 0 2px rgba(231, 199, 102, .55);
}

/* 登录/注册卡片：象牙底 + 金细边 + 暖色阴影 */
body.theme-malay .form {
    background: #fffdf8 !important;
    border: 1px solid rgba(201, 162, 39, .38);
    box-shadow: 0 10px 30px rgba(122, 16, 24, .28) !important;
}
body.theme-malay .form h2 {
    color: #7a1018;
}

/* 辅助链接 hover 用旧金，避免使用转换后的深红 */
body.theme-malay .links a:hover {
    color: #b8860b !important;
}
