* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft YaHei", system-ui, sans-serif;
}

html, body {
    width: 100%;
    min-height: 100vh;
    overflow-x: hidden;
    background-color: #f3f4f6;
    color: #333;
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.navbar {
    background-color: #1a1a1a;
    color: #fff;
    padding: 16px 0;
    width: 100%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
}
.navbar h2 {
    font-size: 20px;
    font-weight: 600;
}
.navbar a {
    color: #e5e5e5;
    text-decoration: none;
    margin-left: 24px;
    font-size: 15px;
    transition: color 0.25s ease;
}
.navbar a:hover {
    color: #ffffff;
}

.card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    padding: 32px;
    margin-bottom: 28px;
}
.card-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 24px;
    color: #111;
    border-bottom: 1px solid #eee;
    padding-bottom: 14px;
}

.btn {
    display: inline-block;
    padding: 11px 26px;
    background: #1a1a1a;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    margin: 6px 0;
    font-size: 15px;
    transition: all 0.25s ease;
}
.btn-danger { background: #d9534f; }
.btn-success { background: #5cb85c; }
.btn-warning { background: #f0ad4e; }
.btn:hover { 
    opacity: 0.9;
    transform: translateY(-1px);
}

.btn-round {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #1a1a1a;
    color: #fff;
    font-size: 22px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    flex-shrink: 0;
    transition: background 0.25s ease;
}
.btn-round:hover {
    background: #333;
}

.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 500; }
.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    background: #fafafa;
    transition: border 0.2s ease;
}
.form-control:focus {
    outline: none;
    border-color: #222;
}

/* ============================== */
/* 【重点】订单表格：电脑端正常，手机端自动变卡片 */
/* ============================== */
.table-container {
    width: 100%;
    overflow-x: auto;
}
.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}
.table th, .table td {
    padding: 14px;
    text-align: left;
    border-bottom: 1px solid #eee;
    font-size: 15px;
}
.table th { 
    background: #f9f9f9; 
    font-weight: 600;
}

/* 手机端：表格自动变成订单卡片 */
@media (max-width: 768px) {
    /* 隐藏表头 */
    .table thead {
        display: none;
    }
    /* 每行变成卡片 */
    .table tr {
        display: block;
        margin-bottom: 16px;
        border: 1px solid #eee;
        border-radius: 12px;
        overflow: hidden;
    }
    /* 每个单元格变成一行 */
    .table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 12px 16px;
        border-bottom: 1px solid #f5f5f5;
        font-size: 14px;
    }
    /* 给每个单元格加标签 */
    .table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: #666;
    }
    /* 最后一行去掉下边框 */
    .table tr td:last-child {
        border-bottom: none;
    }
}

.login-box {
    width: 400px;
    margin: 80px auto;
}

.product-item {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    gap: 15px;
}
.product-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    flex-shrink: 0;
}
.product-info {
    flex: 1;
    min-width: 0;
}

.img-placeholder {
    width: 80px;
    height: 80px;
    background: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 12px;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    .card {
        padding: 20px;
    }
    .navbar h2 {
        font-size: 18px;
    }
    .navbar a {
        margin-left: 10px;
        font-size: 14px;
    }
    .btn {
        width: 100%;
        text-align: center;
    }
    .login-box {
        width: 94%;
        margin: 60px auto;
    }
    .product-img, .img-placeholder {
        width: 60px;
        height: 60px;
    }
    .btn-round {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
/* 终极强制居中方案 */
/* 手机端 帮会员点单 单独颜色 #960000 */
@media (max-width: 768px){
    .navbar a[href="admin_order.php"] {
        color: #960000 !important;
        font-weight: bold;
    }
}
}