/* ============================================
   亦城礼品汇平台 (ycgift) 公共样式
   橙色主题 · 简洁大气 · 桌面/手机自适应
   ============================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    font-size: 17px; color: #333; background: #fff8f0; line-height: 1.7;
}
a { color: #e8641a; text-decoration: none; }
a:hover { color: #ff6a00; }
img { max-width: 100%; border: 0; display: block; }
ul, ol { list-style: none; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ---------- 顶部公告 ---------- */
.topbar { background: linear-gradient(90deg, #ff6a00, #ff9a2e); color: #fff; font-size: 15px; }
.topbar .wrap { display: flex; justify-content: center; padding: 7px 20px; }

/* ---------- 头部导航 ---------- */
.header { background: #fff; box-shadow: 0 2px 12px rgba(232, 100, 26, .10); position: sticky; top: 0; z-index: 100; }
.header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: flex; align-items: center; font-size: 24px; font-weight: bold; color: #e8641a; }
.logo .mark {
    width: 40px; height: 40px; border-radius: 10px; margin-right: 10px;
    background: linear-gradient(135deg, #ff6a00, #ffb347);
    color: #fff; display: flex; align-items: center; justify-content: center;
    font-size: 20px; font-weight: bold;
}
.logo small { font-size: 12px; color: #b98a5e; font-weight: normal; margin-left: 8px; letter-spacing: 1px; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a { padding: 8px 16px; border-radius: 22px; font-size: 17px; color: #5a4632; }
.nav a:hover { background: #fff1e2; color: #e8641a; }
.nav a.on { background: linear-gradient(135deg, #ff6a00, #ff9a2e); color: #fff; font-weight: bold; }
.nav .btn-login { border: 2px solid #ff8c1a; color: #e8641a; font-weight: bold; }
.nav .btn-login:hover { background: #fff1e2; }
.nav .btn-user { background: #fff1e2; color: #e8641a; font-weight: bold; }
.menu-btn { display: none; font-size: 26px; color: #e8641a; background: none; border: 0; cursor: pointer; padding: 6px 10px; }

/* ---------- 横幅 ---------- */
.hero {
    background: linear-gradient(120deg, #ff6a00 0%, #ff8c1a 55%, #ffb347 100%);
    color: #fff; padding: 64px 0 72px; position: relative; overflow: hidden;
}
.hero::after {
    content: ""; position: absolute; right: -80px; top: -80px; width: 340px; height: 340px;
    border-radius: 50%; background: rgba(255, 255, 255, .14);
}
.hero::before {
    content: ""; position: absolute; right: 120px; bottom: -120px; width: 260px; height: 260px;
    border-radius: 50%; background: rgba(255, 255, 255, .10);
}
.hero h1 { font-size: 40px; letter-spacing: 2px; margin-bottom: 14px; text-shadow: 0 2px 8px rgba(0,0,0,.12); }
.hero p { font-size: 20px; opacity: .95; max-width: 720px; }
.hero .hero-btns { margin-top: 26px; display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
    display: inline-block; padding: 12px 34px; border-radius: 28px; font-size: 17px;
    border: 0; cursor: pointer; text-align: center; line-height: 1.5;
}
.btn-main { background: #fff; color: #e8641a; font-weight: bold; box-shadow: 0 4px 14px rgba(0,0,0,.12); }
.btn-main:hover { transform: translateY(-2px); color: #ff6a00; }
.btn-ghost { border: 2px solid rgba(255,255,255,.85); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.16); color: #fff; }
.btn-orange { background: linear-gradient(135deg, #ff6a00, #ff9a2e); color: #fff; font-weight: bold; box-shadow: 0 4px 12px rgba(255,106,0,.28); }
.btn-orange:hover { opacity: .92; color: #fff; }
.btn-line { border: 2px solid #ff8c1a; color: #e8641a; background: #fff; }
.btn-line:hover { background: #fff1e2; }
.btn-sm { padding: 6px 16px; font-size: 14px; border-radius: 18px; }
.btn-danger { background: #f5f0ea; color: #d43c33; }
.btn-danger:hover { background: #fdeceb; color: #d43c33; }

/* ---------- 统计条 ---------- */
.stats { display: flex; gap: 20px; margin-top: 30px; flex-wrap: wrap; }
.stats .stat { background: rgba(255,255,255,.16); border-radius: 12px; padding: 12px 26px; }
.stats b { font-size: 26px; display: block; }
.stats span { font-size: 14px; opacity: .92; }

/* ---------- 区块标题 ---------- */
.sec { padding: 46px 0 10px; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 22px; }
.sec-head h2 { font-size: 27px; color: #4a3626; }
.sec-head h2::before { content: ""; display: inline-block; width: 8px; height: 24px; background: linear-gradient(#ff6a00,#ffb347); border-radius: 4px; margin-right: 10px; vertical-align: -3px; }
.sec-head a { font-size: 15px; }
.sec-head p { color: #a3836a; font-size: 15px; }

/* ---------- 卡片网格 ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.card {
    background: #fff; border-radius: 14px; overflow: hidden;
    box-shadow: 0 3px 14px rgba(190, 120, 50, .10); transition: all .22s;
    display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 8px 22px rgba(232, 100, 26, .18); }
.card .thumb {
    height: 170px; background: linear-gradient(135deg, #ffe3c2, #ffd199);
    display: flex; align-items: center; justify-content: center;
    font-size: 44px; color: #e8641a; overflow: hidden; position: relative;
}
.card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.card .thumb .cat-tag {
    position: absolute; left: 10px; top: 10px; background: rgba(232,100,26,.9);
    color: #fff; font-size: 13px; padding: 3px 12px; border-radius: 14px;
}
.card .thumb .top-tag {
    position: absolute; right: 10px; top: 10px; background: #d43c33;
    color: #fff; font-size: 13px; padding: 3px 10px; border-radius: 4px;
}
.card .body { padding: 16px 18px 18px; flex: 1; display: flex; flex-direction: column; }
.card .body h3 { font-size: 19px; color: #3d2c1e; line-height: 1.45; margin-bottom: 8px; }
.card .body h3 a { color: #3d2c1e; }
.card .body h3 a:hover { color: #e8641a; }
.card .desc { font-size: 15px; color: #8a7460; flex: 1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .meta { margin-top: 12px; display: flex; justify-content: space-between; align-items: center; font-size: 14px; color: #a3836a; }
.card .price { color: #e8641a; font-size: 20px; font-weight: bold; }
.card .price small { font-size: 13px; font-weight: normal; }
.badge { display: inline-block; background: #fff1e2; color: #e8641a; border-radius: 4px; font-size: 13px; padding: 1px 8px; margin-left: 8px; vertical-align: 2px; }

/* ---------- 筛选条 ---------- */
.filter { background: #fff; border-radius: 12px; padding: 14px 18px; margin-bottom: 22px; box-shadow: 0 2px 10px rgba(190,120,50,.08); display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 16px; }
.filter a { padding: 5px 16px; border-radius: 18px; color: #5a4632; }
.filter a.on { background: #ff6a00; color: #fff; font-weight: bold; }
.filter form { display: flex; gap: 8px; margin-left: auto; }
.filter input[type=text] { border: 2px solid #ffd8b0; border-radius: 20px; padding: 7px 16px; font-size: 16px; width: 210px; outline: none; }
.filter input[type=text]:focus { border-color: #ff8c1a; }
.filter button { border: 0; background: linear-gradient(135deg,#ff6a00,#ff9a2e); color: #fff; border-radius: 20px; padding: 7px 22px; font-size: 16px; cursor: pointer; }

/* ---------- 分页 ---------- */
.pager { display: flex; justify-content: center; align-items: center; gap: 8px; margin: 34px 0 20px; flex-wrap: wrap; }
.pager .pg { padding: 8px 18px; background: #fff; border-radius: 8px; color: #5a4632; font-size: 16px; box-shadow: 0 2px 8px rgba(190,120,50,.10); }
.pager .pg:hover { background: #fff1e2; color: #e8641a; }
.pager .pg.cur { background: linear-gradient(135deg,#ff6a00,#ff9a2e); color: #fff; font-weight: bold; }
.pager .pg.disabled { color: #cbb8a6; cursor: not-allowed; }
.pager .pg.dots { background: none; box-shadow: none; }
.pager-info { color: #a3836a; font-size: 14px; margin-right: 6px; }

/* ---------- 详情页 ---------- */
.detail { background: #fff; border-radius: 14px; box-shadow: 0 3px 14px rgba(190,120,50,.10); padding: 30px 34px; margin-top: 26px; }
.detail h1 { font-size: 27px; color: #3d2c1e; line-height: 1.5; margin-bottom: 10px; }
.detail .sub { color: #a3836a; font-size: 15px; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px dashed #f0d9c2; }
.detail .sub span { margin-right: 18px; }
.detail .content { font-size: 17px; color: #4a3a2c; line-height: 2; }
.detail .content p { margin-bottom: 12px; }
.detail .price-line { background: #fff7ef; border-radius: 10px; padding: 14px 20px; margin: 18px 0; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.detail .price-line .price { color: #e8641a; font-size: 26px; font-weight: bold; }
.info-table { width: 100%; border-collapse: collapse; margin: 10px 0; }
.info-table th, .info-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid #f7ead9; font-size: 16px; }
.info-table th { width: 110px; color: #a3836a; font-weight: normal; white-space: nowrap; }

/* ---------- 提示/空状态 ---------- */
.empty { text-align: center; color: #b09880; padding: 60px 0; font-size: 17px; }
.empty .icon { font-size: 52px; margin-bottom: 12px; }
.msg-tip { background: #fff7ef; border: 1px solid #ffd8b0; color: #b06a1e; border-radius: 10px; padding: 12px 18px; margin: 14px 0; font-size: 15px; }

/* ---------- 表单 ---------- */
.form-box { background: #fff; border-radius: 14px; box-shadow: 0 3px 14px rgba(190,120,50,.10); padding: 34px 38px; max-width: 560px; margin: 40px auto; }
.form-box.wide { max-width: 820px; }
.form-box h1 { text-align: center; font-size: 25px; color: #e8641a; margin-bottom: 6px; }
.form-box .tip { text-align: center; color: #a3836a; font-size: 15px; margin-bottom: 24px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 16px; color: #5a4632; margin-bottom: 7px; font-weight: bold; }
.field label i { color: #d43c33; font-style: normal; margin-left: 3px; }
.field input[type=text], .field input[type=password], .field select, .field textarea {
    width: 100%; border: 2px solid #f0d9c2; border-radius: 10px; padding: 11px 14px;
    font-size: 17px; font-family: inherit; outline: none; background: #fffdf9; color: #333;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: #ff8c1a; background: #fff; }
.field textarea { min-height: 130px; resize: vertical; }
.field .hint { font-size: 13px; color: #b09880; margin-top: 4px; }
.captcha-row { display: flex; align-items: center; gap: 12px; }
.captcha-row input { flex: 1; min-width: 0; letter-spacing: 8px; text-align: center; font-size: 22px; }
.captcha-row img { height: 68px; border-radius: 8px; cursor: pointer; border: 1px solid #f0d9c2; flex-shrink: 0; }
.captcha-row .refresh { font-size: 14px; color: #e8641a; white-space: nowrap; cursor: pointer; }
.form-btns { margin-top: 26px; }
.form-btns .btn { width: 100%; font-size: 18px; padding: 13px; }
.form-foot { text-align: center; margin-top: 18px; font-size: 15px; color: #8a7460; }

/* ---------- 表格（后台/企业中心） ---------- */
.table-wrap { background: #fff; border-radius: 12px; box-shadow: 0 2px 12px rgba(190,120,50,.10); padding: 20px 22px; overflow-x: auto; margin-top: 18px; }
table.list { width: 100%; border-collapse: collapse; font-size: 15.5px; min-width: 640px; }
table.list th { background: #fff3e6; color: #8a5a2b; padding: 11px 10px; text-align: left; white-space: nowrap; }
table.list td { padding: 11px 10px; border-bottom: 1px solid #f7ead9; vertical-align: middle; }
table.list tr:hover td { background: #fffaf4; }
table.list .ops a, table.list .ops button { margin-right: 8px; font-size: 14px; }
.batch-bar { display: flex; align-items: center; gap: 10px; margin: 14px 0 0; flex-wrap: wrap; }
.batch-bar select, .batch-bar button { font-size: 15px; }
.tag { display: inline-block; padding: 2px 10px; border-radius: 12px; font-size: 13px; }
.tag-green { background: #e6f7ec; color: #1d9e4b; }
.tag-gray { background: #f1ece6; color: #8a7460; }
.tag-orange { background: #fff1e2; color: #e8641a; }
.tag-red { background: #fdeceb; color: #d43c33; }

/* ---------- 布局：侧栏 + 主区 ---------- */
.layout { display: flex; gap: 22px; margin-top: 24px; align-items: flex-start; }
.side { width: 220px; flex-shrink: 0; background: #fff; border-radius: 12px; box-shadow: 0 2px 12px rgba(190,120,50,.10); overflow: hidden; }
.side a { display: block; padding: 14px 22px; color: #5a4632; font-size: 16.5px; border-left: 4px solid transparent; }
.side a:hover { background: #fff7ef; color: #e8641a; }
.side a.on { background: #fff1e2; color: #e8641a; font-weight: bold; border-left-color: #ff6a00; }
.side .side-head { background: linear-gradient(135deg,#ff6a00,#ff9a2e); color: #fff; padding: 16px 22px; font-size: 17px; font-weight: bold; }
.main { flex: 1; min-width: 0; }

/* ---------- 关于页 ---------- */
.about-box { background: #fff; border-radius: 14px; box-shadow: 0 3px 14px rgba(190,120,50,.10); padding: 34px 38px; margin-top: 26px; }
.about-box h2 { font-size: 22px; color: #4a3626; margin: 22px 0 10px; }
.about-box h2:first-child { margin-top: 0; }
.about-box p { font-size: 17px; color: #4a3a2c; margin-bottom: 10px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 14px; }
.contact-grid .qr-box { text-align: center; background: #fff7ef; border-radius: 12px; padding: 22px; }
.contact-grid .qr-box img { width: 190px; height: 190px; margin: 0 auto 12px; border-radius: 10px; }
.contact-grid .qr-box .ph {
    width: 190px; height: 190px; margin: 0 auto 12px; border-radius: 10px;
    background: repeating-linear-gradient(0deg,#3d2c1e 0 8px,#fff 8px 16px), repeating-linear-gradient(90deg,#3d2c1e 0 8px,#fff 8px 16px);
    background-blend-mode: screen; opacity: .9; display: flex; align-items: center; justify-content: center;
}
.contact-grid .qr-box .ph span { background: #fff; padding: 8px 12px; border-radius: 6px; color: #3d2c1e; font-size: 14px; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 14px; }
.steps .step { background: #fff7ef; border-radius: 12px; padding: 20px 16px; text-align: center; }
.steps .step b { display: block; font-size: 34px; color: #ffb347; line-height: 1.2; }
.steps .step h4 { font-size: 17px; color: #4a3626; margin: 6px 0; }
.steps .step p { font-size: 14px; color: #8a7460; margin: 0; }

/* ---------- 页脚 ---------- */
.footer { background: #4a3626; color: #c9b39a; margin-top: 60px; padding: 34px 0 24px; font-size: 15px; }
.footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
.footer h4 { color: #fff; font-size: 17px; margin-bottom: 10px; }
.footer a { color: #f0b27a; }
.footer .copyright { text-align: center; border-top: 1px solid #5e4835; margin-top: 24px; padding-top: 18px; font-size: 14px; }

/* ---------- 手机适配 ---------- */
@media (max-width: 860px) {
    body { font-size: 16px; }
    .menu-btn { display: block; }
    .nav {
        display: none; position: absolute; top: 68px; left: 0; right: 0;
        background: #fff; flex-direction: column; align-items: stretch; padding: 10px 16px 16px;
        box-shadow: 0 10px 18px rgba(0,0,0,.08); gap: 2px;
    }
    .nav.open { display: flex; }
    .nav a { padding: 13px 16px; font-size: 18px; border-radius: 10px; }
    .hero { padding: 40px 0 48px; }
    .hero h1 { font-size: 28px; }
    .hero p { font-size: 17px; }
    .sec-head h2 { font-size: 22px; }
    .detail, .about-box { padding: 22px 18px; }
    .detail h1 { font-size: 22px; }
    .form-box { padding: 26px 20px; margin: 24px auto; }
    .contact-grid { grid-template-columns: 1fr; }
    .steps { grid-template-columns: 1fr 1fr; }
    .layout { flex-direction: column; }
    .side { width: 100%; display: flex; flex-wrap: wrap; }
    .side a { padding: 12px 16px; font-size: 16px; }
    .side .side-head { width: 100%; }
    .stats .stat { padding: 10px 18px; }
    .stats b { font-size: 22px; }
    .filter input[type=text] { width: 150px; }
    .captcha-row img { height: 60px; }
    .grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
}
