:root {
    --accent: #ff6b6b;
    --accent-soft: #ffb570;
    --muted: #6b7280;
    --bg: #f8fafc;
    --card: #ffffff;
    --maxw: 1100px;
    --radius: 10px;
}

/* 基础重置 */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: var(--bg);
    color: #111827;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 品牌区 */
.logo {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--accent), var(--accent-soft));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 18px;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

/* 左上角品牌区域整体 */
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

/* Logo 外框：圆角小徽章 */
.brand-logo-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 20px;                 /* 圆角矩形，不会太死板 */
    background: radial-gradient(circle, #111 0%, #020617 70%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.45);
}

/* 真正的 Logo 图像 */
.brand-logo {
    height: 100%;
    width: 100%;
    object-fit: contain;
    border-radius: 16px;                 /* 把图本身再稍微圆一点 */
    display: block;
}

/* 品牌文字：金黑条纹渐变 + 圆润一点的字体 */
.brand-title {
    font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont,
                 "Segoe UI", sans-serif;
    font-size: 81px;
    font-weight: 800;
    letter-spacing: 0.03em;

    /* 金色 + 深色条纹渐变（比较低调） */
    background-image: repeating-linear-gradient(
        135deg,
        #b8860b 0px,     /* 深金（接近古铜）*/
        #d4af37 10px,    /* 金色 */
        #8a6e2f 20px,    /* 暗金 */
        #111 30px        /* 黑色 */
    );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;

    /* 让文字更“圆润”一点的视觉感 */
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.15);

        /* 描边提高可读性 */
    /* text-shadow:
        0 1px 1px rgba(0,0,0,0.3),
        0 0 2px rgba(0,0,0,0.35); */
}

/* 鼠标悬停时稍微亮一点 */
.brand:hover .brand-title {
    filter: brightness(1.1);
}


.brand-subtitle {
    font-size: 12px;
    color: var(--muted);
}

/* 导航 */
nav a {
    margin-left: 18px;
    color: var(--muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

nav a:hover {
    color: #111827;
}

/* 导航里的 Cart 徽章 */
.nav-cart {
    position: relative;
    margin-left: 18px;
    color: var(--muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

.nav-cart:hover {
    color: #111827;
}

.nav-cart-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    margin-left: 6px;
    border-radius: 999px;
    background: var(--accent);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
}

/* 登录后右上角用户名显示 */
.nav-user {
    margin-left: 20px;              /* 和 Contact 之间拉开一点 */
    padding: 6px 12px;
    border-radius: 999px;           /* 胶囊效果 */
    background: #f3f4f6;
    font-size: 13px;
    font-weight: 600;
    color: #111827;
}

/* 让 Logout 不紧贴用户名 */
.nav-user + a {
    margin-left: 10px !important;
}

/* 顶部导航里的账号菜单 */
.nav-account {
    display: inline-flex;     /* 保证它在一行 */
    align-items: center;      /* 垂直居中 */
    position: relative;
    margin-left: 18px;
}

.nav-user-toggle {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border-radius: 999px;
    border: none;
    background: #f3f4f6;
    font-size: 13px;
    font-weight: 600;
    color: #111827;
    cursor: pointer;
}

.nav-user-toggle:hover {
    background: #e5e7eb;
}

.nav-user-caret {
    font-size: 10px;
    opacity: 0.8;
}

/* 下拉菜单 */
.nav-account-menu {
    position: absolute;
    right: 0;
    top: 110%;
    min-width: 160px;
    padding: 6px 0;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.18);
    font-size: 13px;
    display: none;              /* 默认隐藏 */
    z-index: 1000;
}

.nav-account-menu a {
    display: block;
    padding: 7px 12px;
    text-decoration: none;
    color: #374151;
}

.nav-account-menu a:hover {
    background: #f3f4f6;
}

/* 打开状态 */
.nav-account.open .nav-account-menu {
    display: block;
}

/* Banner / Hero */
.banner {
    margin-top: 18px;
    background: linear-gradient(90deg, rgba(255, 107, 107, 0.08), rgba(255, 181, 112, 0.04));
    border-radius: var(--radius);
    padding: 28px;
    overflow: hidden;
}

.banner .info {
    flex: 1;
}

.banner h1 {
    margin: 0;
    font-size: 28px;
}

.banner p {
    margin: 8px 0;
    color: var(--muted);
}

.cta {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    padding: 10px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
}

.cta:hover {
    filter: brightness(1.05);
}

.banner .art {
    width: 220px;
    height: 120px;
    background: linear-gradient(135deg, #ffffff 0%, #ffe6e6 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-weight: 700;
    font-size: 22px;
    box-shadow: 0 8px 20px rgba(17, 24, 39, 0.06);
}

/* 区块标题 */
.section-title h2 {
    margin: 0;
    font-size: 18px;
}

.section-title a {
    color: var(--muted);
    text-decoration: none;
    font-size: 14px;
}

/* 卡片/商品列表 */
.card {
    background: var(--card);
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* 商品卡片内部结构 */
.product-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* 名称 + 底部行整体 */
.product-card-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 6px;
}

/* 名称：单独一行，点击跳转 detail */
.product-title-link {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    text-decoration: none;
}

.product-title-link:hover {
    text-decoration: underline;
}

/* 底部：左边价格右边购物车图标 */
.product-card-footer {
    margin-top: 2px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

/* 产品详情页主图（缩略） */
.product-main-thumb {
    width: 100%;
    max-width: 420px;
    border-radius: 16px;
    object-fit: cover;
    cursor: zoom-in;
    display: block;
}

/* 触发图片弹窗的按钮 */
.image-trigger {
    padding: 0;
    border: none;
    background: none;
    display: block;
    width: 100%;
}

/* 小提示文字 */
.image-tip {
    font-size: 12px;
    color: var(--muted);
    margin-top: 6px;
    text-align: center;
}

/* 图片弹窗整体容器 */
.image-modal {
    position: fixed;
    inset: 0;
    display: none;              /* 默认隐藏 */
    align-items: center;
    justify-content: center;
    z-index: 1200;
}

/* 打开状态 */
.image-modal.open {
    display: flex;
}

/* 半透明背景 */
.image-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
}

/* 弹窗里的大图 */
.image-modal-img {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 18px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.6);
    cursor: zoom-out;
}


/* 价格 */
.product-price {
    font-size: 14px;
    font-weight: 600;
    color: #f97373; /* 或者用你之前的 var(--accent) */
}

/* 购物车按钮：圆形小 icon */
.icon-button {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    border: none;
    background: #111827;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
}

.icon-button:hover {
    background: #f97373;
}

.icon-button svg {
    width: 16px;
    height: 16px;
    fill: #ffffff;
}


/* 商品缩略图容器 */
.thumb {
    background: #f3f4f6;
    border-radius: 12px;
    height: 200px;                 /* 统一一个展示高度，想小一点可以改成 140/160 */
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-weight: 600;
    font-size: 14px;

    overflow: hidden;              /* 🔴 关键：超出部分裁掉 */
}

/* 缩略图里的图片：自动等比例裁剪铺满 */
.thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;             /* 保持比例，裁剪填充 */
    display: block;
}

.meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
}

.meta small,
.card small {
    font-size: 14px;
    color: var(--muted);
    font-weight: 600;
}

.price {
    color: var(--accent);
}

/* 按钮 */
.btn {
    margin-top: 8px;
    padding: 8px;
    border-radius: 8px;
    border: 0;
    background: #111827;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
}

.btn:hover {
    filter: brightness(1.05);
}

/* About 区块 */
.about {
    background: linear-gradient(180deg, #ffffff, #ffffff);
    border-radius: 12px;
    padding: 18px;
    color: var(--muted);
    line-height: 1.5;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.03);
    font-size: 14px;
}

/* Footer */
footer {
    margin-top: 36px;
    padding: 18px 0;
    color: var(--muted);
    text-align: center;
    font-size: 14px;
}

.footer-link {
    color: var(--muted);
    text-decoration: none;
}

.footer-link:hover {
    text-decoration: underline;
}

/* =============== Auth (Login / Register) =============== */

.auth-subtitle {
    margin-top: 8px;
    margin-bottom: 12px;
    color: var(--muted);
    font-size: 14px;
}

.auth-bullets {
    list-style: none;
    padding-left: 0;
    margin: 0;
    margin-top: 6px;
    color: var(--muted);
    font-size: 13px;
}

.auth-bullets li::before {
    content: "•";
    margin-right: 6px;
    color: var(--accent);
}

.auth-form h2 {
    margin: 0 0 4px 0;
    font-size: 20px;
}

.auth-hint {
    margin: 0 0 18px 0;
    font-size: 13px;
    color: var(--muted);
}

.link-to-register {
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
}

.link-to-register:hover {
    text-decoration: underline;
}

.form-stack {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-login {
    width: 100%;
    padding: 10px 14px;
    font-size: 14px;
}

.auth-small-hint {
    margin-top: 10px;
    font-size: 11px;
    color: var(--muted);
}

/* 表单基础样式（如果还没加，可以补上） */
.form-group {
    display: flex;
    flex-direction: column;
}

.form-label {
    font-size: 14px;
    margin-bottom: 4px;
    font-weight: 600;
    color: #374151;
}

.form-group input {
    padding: 9px 11px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    font-size: 14px;
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 1px rgba(255, 107, 107, 0.35);
}

.form-errors {
    margin: 4px 0 0;
    padding: 0;
    list-style: none;
    color: #b91c1c;
    font-size: 12px;
}

.btn-outline {
    display: inline-block;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    background: #ffffff;
    color: #374151;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* Add to cart 区域 */
.add-to-cart-form {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.qty-row-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
}

.qty-label {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}

.qty-control {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    border: 1px solid #d1d5db;
    overflow: hidden;
    background: #f9fafb;
}

.qty-btn {
    border: none;
    background: transparent;
    width: 32px;
    height: 32px;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4b5563;
}

.qty-btn:hover {
    background: #e5e7eb;
}

.qty-input {
    width: 48px;
    padding: 6px 0;
    border: none;
    text-align: center;
    font-size: 14px;
    background: transparent;
    appearance: none;          /* 标准写法 */
    -webkit-appearance: none;  /* Chrome / Safari */
    -moz-appearance: textfield;
}

/* 去掉 number 输入的上下箭头 */
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.qty-input:focus {
    outline: none;
}

.btn-add {
    padding: 10px 16px;
    font-size: 14px;
}

@media (max-width: 600px) {
    .add-to-cart-form {
        width: 100%;
        justify-content: space-between;
    }

    .btn-add {
        flex: 1;
        text-align: center;
    }
}

/* 购物车数量控制器 */
.cart-qty-wrapper {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
}

.cart-qty-wrapper .qty-label {
    font-weight: 600;
    color: #374151;
}

.qty-control {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    border: 1px solid #d1d5db;
    overflow: hidden;
    background: #f9fafb;
}

.qty-btn {
    border: none;
    background: transparent;
    width: 28px;
    height: 28px;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4b5563;
}

.qty-btn:hover {
    background: #e5e7eb;
}

.qty-input {
    width: 45px;
    padding: 5px 0;
    border: none;
    text-align: center;
    font-size: 14px;
    background: transparent;
    appearance: none;          /* 标准写法 */
    -webkit-appearance: none;  /* Chrome / Safari */
    -moz-appearance: textfield;
}

/* 去掉 number 箭头 */
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.qty-input:focus {
    outline: none;
}

/* About 区域整体宽度稍微收窄一点，看起来更精致 */
/* #about .about {
    max-width: 1000px;
    margin: 0 auto;
} */

/* 两列布局：左文字，右图片 */
.about-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    gap: 24px;
    align-items: center;
}

/* 文字稍微放松一点行距 */
.about-text p {
    line-height: 1.6;
    margin-top: 8px;
}

/* 图片容器 + 覆盖标题 */
.about-image-wrapper {
    position: relative;
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    max-height: 320px;              /* 限制高度，避免太高 */
}

.about-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 覆盖在图片上的标题条 */
.about-image-caption {
    position: absolute;
    top: 10%;
    left: 50%;
    transform: translate(-50%, -50%);   /* 让文字中心点和图片中心对齐 */

    padding: 10px 24px;
    border-radius: 10px;

    background: rgba(0,0,0,0.45);
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: .5px;
    white-space: nowrap;                /* 防止换行 */

    text-shadow: 0 2px 4px rgba(0,0,0,0.4);
    backdrop-filter: blur(2px);
}
/* 小屏幕上自动变成上下排 */
@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-image-wrapper {
        max-height: 260px;
        margin-top: 12px;
    }
}

/* ================================
   Home Page Banner
   ================================ */
.home-banner {
    position: relative;
    width: 100%;
    height: 260px;               /* 🔥 控制 banner 高度 */
    border-radius: 18px;
    overflow: hidden;
    margin: 20px auto 32px auto;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #ddd;           /* 防止图片加载前闪白 */
}

.home-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 🔥 Caption 文案居中 */
.home-banner-caption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    padding: 10px 24px;
    border-radius: 10px;

    background: rgba(0, 0, 0, 0.45);  /* 半透明深色背景 */
    color: #fff;
    font-size: 36px;
    font-weight: 700;
    letter-spacing: .6px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.4);
    backdrop-filter: blur(2px);

    white-space: nowrap;              /* 🔥 一行显示 */
}

/* 可选：更小屏幕自适应 */
@media (max-width: 600px) {
    .home-banner {
        height: 180px;
    }
    .home-banner-caption {
        font-size: 16px;
        padding: 8px 16px;
    }
}

/* Contact section */
/* Contact grid layout */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    padding: 24px;
    border-radius: 16px;
    background: #f8fafc;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

/* Left section */
.contact-left .contact-intro {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 16px;
}

.email-button {
    display: inline-block;
    padding: 10px 20px;
    background: #111;
    color: #fff;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
}

.email-button:hover {
    background: #444;
}

.direct-email {
    margin-top: 8px;
    font-size: 14px;
    color: var(--muted);
}

.contact-right .contact-block {
    margin-bottom: 20px;
}

.contact-block-title {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 4px;
}

/* Responsive */
@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .contact-right {
        margin-top: 12px;
    }
}

.btn-danger {
    background: #dc2626;
    color: white;
    padding: 4px 10px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
}
.btn-danger:hover {
    background: #b91c1c;
}

/* ============================
   Admin – Product list & detail
   ============================ */

/* 整体 admin 页面容器 */
.admin-page,
.product-detail.admin-product-detail {
    max-width: var(--maxw);
    margin: 24px auto 32px auto;
}

/* 列表页外层卡片 */
.admin-card {
    background: var(--card);
    border-radius: 16px;
    padding: 20px 24px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

/* 小副标题 */
.admin-subtitle {
    margin-top: 4px;
    font-size: 14px;
    color: var(--muted);
}

/* 顶部右侧“Add product”链接区域 */
.admin-links {
    margin-top: 16px;
    display: flex;
    justify-content: flex-end;
}

/* 表格外层，负责滚动和圆角 */
.table-wrapper {
    margin-top: 12px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    background: #ffffff;
}

/* 通用表格样式 */
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.data-table thead {
    background: #f9fafb;
}

.data-table th,
.data-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid #f3f4f6;
}

.data-table th {
    font-weight: 600;
    color: #4b5563;
    font-size: 13px;
}

.data-table tbody tr:hover {
    background: #f9fafb;
}

.data-table td.text-right {
    text-align: right;
}

/* 小按钮：列表里的 Edit / Delete */
.btn-small {
    padding: 5px 10px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    background: #ffffff;
    color: #374151;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.btn-small + .btn-small,
.btn-small + form,
form + .btn-small {
    margin-left: 6px;
}

.btn-small:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* Danger 小按钮（列表页里的 Delete） */
.btn-small.btn-danger {
    border-color: transparent;
    background: #dc2626;
    color: #ffffff;
}

.btn-small.btn-danger:hover {
    background: #b91c1c;
}

/* 详情页 Delete 用的大按钮，之前已经有 .btn-danger，这里补一点间距 */
.btn-danger {
    background: #dc2626;
    color: white;
    padding: 8px 14px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
}
.btn-danger:hover {
    background: #b91c1c;
}

/* 状态 badge，用在 Active / Hidden */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
}

.badge-active {
    background: #06e955;
    color: #ffffff;
}

.badge-light,
.badge-muted {
    background: #e5e7eb;
    color: #4b5563;
}

/* ========== Product Detail (Admin) ========= */

.product-detail.admin-product-detail .section-title {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 18px;
}

.product-detail-inner {
    background: #ffffff;
    border-radius: 16px;
    padding: 20px 24px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);

    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.5fr);
    gap: 28px;
    align-items: flex-start;
}

/* 左侧图片区域 */
.product-images {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.product-main-image {
    background: #f3f4f6;
    border-radius: 16px;
    min-height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-main-image img {
    display: block;
    margin: 0 auto;        /* 强制居中 */
}


.image-tip {
    font-size: 12px;
    color: var(--muted);
    margin-top: 6px;
    text-align: center;
}

/* 右侧 info / 表单区域 */
.admin-product-info h1 {
    margin: 0 0 6px 0;
    font-size: 24px;
}

/* 统一表单的垂直间距 */
.stack-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* 右下角按钮区域 */
.form-actions {
    margin-top: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.form-actions .btn,
.form-actions .btn-outline {
    margin-top: 0; /* 覆盖通用 .btn 的 margin-top */
}

/* 小屏幕下单列展示 */
@media (max-width: 900px) {
    .product-detail-inner {
        grid-template-columns: 1fr;
    }
}

.order-detail {
    max-width: 960px;
    margin: 0 auto;
}

.order-header-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    gap: 12px;
}

.order-header-card h1 {
    font-size: 22px;
    margin: 0;
}

.order-status .badge {
    font-size: 12px;
}

.order-alert {
    padding: 12px 16px;
    border-radius: 12px;
    background: #fffbeb;
    border: 1px solid #facc15;
    margin-bottom: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    font-size: 14px;
}

.order-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.1fr);
    gap: 20px;
}

.order-panel {
    background: #fff;
    border-radius: 16px;
    padding: 16px 18px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
    margin-bottom: 12px;
}

.order-panel h2,
.order-panel h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 16px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    margin: 4px 0;
}

.summary-total {
    font-weight: 600;
}

.order-footer-links {
    margin-top: 20px;
    display: flex;
    gap: 8px;
    align-items: center;
}

.orders-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1.5rem;
    font-size: 0.95rem;
}

.orders-table thead {
    background: #f5f7fb;
}

.orders-table th,
.orders-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.orders-table th:last-child,
.orders-table td:last-child {
    text-align: right;   /* 右边对齐 view detail 按钮 */
}

.orders-table tbody tr:hover {
    background: #f9fafb;
}
