﻿/* ===== 全局重置 & 基础 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
}

body {
    background-color: #f5f8fc;
    color: #1e2a3a;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1680px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== 顶部公告栏 ===== */
.top-bar {
    background: #0f1825;
    color: #b6c8e0;
    font-size: 13px;
    padding: 8px 0;
    border-bottom: 1px solid #1f2c3f;
}

    .top-bar .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
    }

    .top-bar a {
        color: #b6c8e0;
        text-decoration: none;
        margin-left: 18px;
        transition: color 0.2s;
    }

        .top-bar a:hover {
            color: #ffffff;
        }

    .top-bar .highlight {
        color: #f6c343;
    }

/* ===== 主导航 ===== */
.header {
    background: #ffffff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    position: sticky;
    top: 0;
    z-index: 100;
}

    .header .container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
        padding: 14px 24px;
    }

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 700;
    color: #0f1825;
    text-decoration: none;
}

    .logo i {
        color: #4f9cf7;
        font-size: 30px;
    }

    .logo small {
        font-size: 12px;
        font-weight: 400;
        color: #5f738c;
        margin-left: 4px;
    }

.search-bar {
    display: flex;
    align-items: center;
    background: #f0f4fa;
    border-radius: 40px;
    padding: 4px 6px 4px 18px;
    flex: 1;
    max-width: 520px;
    min-width: 200px;
    margin: 0 20px;
    border: 1px solid #e2e8f0;
    transition: 0.15s;
}

    .search-bar:focus-within {
        border-color: #4f9cf7;
        background: #ffffff;
        box-shadow: 0 0 0 4px rgba(79, 156, 247, 0.08);
    }

    .search-bar input {
        border: none;
        outline: none;
        background: transparent;
        padding: 10px 0;
        font-size: 14px;
        flex: 1;
        color: #1e2a3a;
    }

    .search-bar button {
        background: #1f2a3a;
        border: none;
        border-radius: 40px;
        padding: 8px 22px;
        color: #fff;
        font-weight: 500;
        font-size: 14px;
        cursor: pointer;
        transition: 0.15s;
        display: flex;
        align-items: center;
        gap: 6px;
    }

        .search-bar button:hover {
            background: #2c3b52;
        }

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

    .header-actions a {
        color: #1f2a3a;
        text-decoration: none;
        font-size: 14px;
        display: flex;
        align-items: center;
        gap: 6px;
        font-weight: 500;
        transition: 0.15s;
    }

        .header-actions a i {
            font-size: 18px;
            color: #4f6f8f;
        }

        .header-actions a:hover {
            color: #4f9cf7;
        }

    .header-actions .cart-badge {
        background: #e74c3c;
        color: #fff;
        border-radius: 30px;
        padding: 0 10px;
        font-size: 12px;
        font-weight: 600;
        line-height: 22px;
        margin-left: -6px;
    }

/* ===== 分类导航 ===== */
.category-nav {
    background: #ffffff;
    border-top: 1px solid #eef3fa;
    border-bottom: 1px solid #eef3fa;
    padding: 0 0;
}

    .category-nav .container {
        display: flex;
        align-items: center;
        gap: 28px;
        flex-wrap: wrap;
        padding: 0 24px;
    }

    .category-nav a {
        color: #2f4058;
        text-decoration: none;
        font-size: 14px;
        font-weight: 500;
        padding: 14px 0;
        border-bottom: 3px solid transparent;
        transition: 0.1s;
    }

        .category-nav a:hover,
        .category-nav a.active {
            color: #0f1825;
            border-bottom-color: #4f9cf7;
        }

    .category-nav .all-cat {
        color: #4f9cf7;
        font-weight: 600;
    }

        .category-nav .all-cat i {
            margin-right: 6px;
        }

/* ===== 登录主体 ===== */
.login-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
    padding: 40px 0 60px;
}

.login-card {
    background: #ffffff;
    border-radius: 32px;
    border: 1px solid #e9eff6;
    padding: 44px 48px 48px;
    max-width: 460px;
    width: 100%;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
}

    .login-card .login-title {
        text-align: center;
        margin-bottom: 28px;
    }

        .login-card .login-title h2 {
            font-size: 28px;
            font-weight: 700;
            color: #0b1829;
        }

        .login-card .login-title p {
            color: #5f738c;
            font-size: 15px;
            margin-top: 4px;
        }

/* ===== 登录方式切换 ===== */
.login-tabs {
    display: flex;
    border-radius: 40px;
    background: #f0f4fa;
    padding: 4px;
    margin-bottom: 28px;
}

    .login-tabs .tab {
        flex: 1;
        text-align: center;
        padding: 10px 0;
        border-radius: 40px;
        font-weight: 600;
        font-size: 15px;
        color: #5f738c;
        cursor: default;
        transition: 0.15s;
    }

        .login-tabs .tab.active {
            background: #ffffff;
            color: #0b1829;
            box-shadow: 0 2px 8px rgba(0,0,0,0.04);
        }

        .login-tabs .tab i {
            margin-right: 6px;
        }

/* ===== 表单 ===== */
.form-group {
    margin-bottom: 20px;
}

    .form-group label {
        font-weight: 500;
        font-size: 14px;
        color: #1f3348;
        display: block;
        margin-bottom: 4px;
    }

        .form-group label .required {
            color: #c0392b;
            margin-left: 2px;
        }

.input-wrapper {
    display: flex;
    align-items: center;
    background: #fafcff;
    border: 1px solid #dce4ef;
    border-radius: 16px;
    transition: 0.15s;
    overflow: hidden;
}

    .input-wrapper:focus-within {
        border-color: #4f9cf7;
        box-shadow: 0 0 0 3px rgba(79, 156, 247, 0.12);
        background: #ffffff;
    }

    .input-wrapper .prefix {
        padding: 0 0 0 16px;
        color: #5f738c;
        font-weight: 500;
        font-size: 14px;
        white-space: nowrap;
    }

    .input-wrapper input {
        border: none;
        outline: none;
        background: transparent;
        padding: 14px 16px;
        font-size: 15px;
        flex: 1;
        color: #1a2634;
        min-width: 0;
    }

        .input-wrapper input::placeholder {
            color: #9aafc7;
        }

    .input-wrapper .btn-sms {
        background: transparent;
        border: none;
        color: #4f9cf7;
        font-weight: 600;
        font-size: 14px;
        padding: 0 16px 0 8px;
        cursor: pointer;
        white-space: nowrap;
        transition: 0.15s;
    }

        .input-wrapper .btn-sms:hover {
            color: #2b7bc9;
        }

        .input-wrapper .btn-sms:disabled {
            color: #9aafc7;
            cursor: default;
        }

.form-group .form-hint {
    font-size: 13px;
    color: #6a7e99;
    margin-top: 4px;
}

.btn-login {
    width: 100%;
    padding: 16px;
    border-radius: 40px;
    border: none;
    background: #1f2a3a;
    color: #fff;
    font-weight: 700;
    font-size: 18px;
    cursor: pointer;
    transition: 0.15s;
    margin-top: 8px;
}

    .btn-login:hover {
        background: #2c3b52;
    }

.login-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    font-size: 14px;
}

    .login-footer a {
        color: #4f9cf7;
        text-decoration: none;
        font-weight: 500;
    }

        .login-footer a:hover {
            text-decoration: underline;
        }

    .login-footer .register-link {
        color: #5f738c;
    }

        .login-footer .register-link a {
            color: #1f2a3a;
            font-weight: 600;
        }

/* ===== 底部 ===== */
.footer {
    background: #0f1825;
    color: #b6c8e0;
    margin-top: auto;
    padding: 44px 0 24px;
}

    .footer .container {
        display: grid;
        grid-template-columns: 2fr 1fr 1fr 1fr;
        gap: 30px;
    }

    .footer h4 {
        color: #ffffff;
        font-weight: 600;
        margin-bottom: 16px;
        font-size: 16px;
    }

    .footer a {
        color: #b6c8e0;
        text-decoration: none;
        display: block;
        margin-bottom: 8px;
        font-size: 14px;
        transition: 0.15s;
    }

        .footer a:hover {
            color: #ffffff;
        }

    .footer .copyright {
        grid-column: 1 / -1;
        border-top: 1px solid #1f2c3f;
        padding-top: 24px;
        margin-top: 20px;
        text-align: center;
        font-size: 13px;
    }
/* ===== 会员中心主体 ===== */
.profile-wrapper {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 28px;
    margin: 16px 0 40px; width:100%;
}

/* ===== 左侧 - 用户信息卡片 ===== */
.profile-sidebar {
    background: #ffffff;
    border-radius: 28px;
    border: 1px solid #e9eff6;
    padding: 28px 20px 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.02);
    height: fit-content;
    position: sticky;
    top: 100px;
}

    .profile-sidebar .avatar {
        text-align: center;
        margin-bottom: 16px;
    }

        .profile-sidebar .avatar .avatar-icon {
            width: 80px;
            height: 80px;
            background: #e8f0fe;
            border-radius: 50%;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-size: 38px;
            color: #4f9cf7;
            border: 3px solid #ffffff;
            box-shadow: 0 2px 12px rgba(0,0,0,0.06);
        }

    .profile-sidebar .user-name {
        text-align: center;
        font-size: 20px;
        font-weight: 700;
        color: #0b1829;
    }

    .profile-sidebar .user-email {
        text-align: center;
        font-size: 14px;
        color: #5f738c;
        margin-top: 2px;
    }

    .profile-sidebar .user-level {
        text-align: center;
        margin: 12px 0 18px;
    }

        .profile-sidebar .user-level .badge {
            background: #e6f6ee;
            color: #1f7840;
            padding: 4px 18px;
            border-radius: 40px;
            font-size: 13px;
            font-weight: 500;
        }

/* 侧边菜单 */
.profile-menu {
    border-top: 1px solid #f0f4fc;
    padding-top: 18px;
}

    .profile-menu .menu-item {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 12px 14px;
        border-radius: 14px;
        color: #2f4058;
        text-decoration: none;
        font-weight: 500;
        font-size: 15px;
        transition: 0.15s;
        margin-bottom: 2px;
    }

        .profile-menu .menu-item i {
            width: 22px;
            color: #6a7e99;
            font-size: 16px;
            text-align: center;
        }

        .profile-menu .menu-item:hover {
            background: #f0f6fe;
            color: #0b1829;
        }

        .profile-menu .menu-item.active {
            background: #e8f0fe;
            color: #0b1829;
        }

            .profile-menu .menu-item.active i {
                color: #4f9cf7;
            }

        .profile-menu .menu-item .badge-count {
            margin-left: auto;
            background: #e74c3c;
            color: #fff;
            font-size: 11px;
            padding: 1px 10px;
            border-radius: 30px;
            font-weight: 600;
        }

/* ===== 右侧 - 内容区域 ===== */
.profile-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* 统计卡片 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
}

.stats-card {
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid #e9eff6;
    padding: 18px 18px 16px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.01);
}

    .stats-card .number {
        font-size: 28px;
        font-weight: 700;
        color: #0b1829;
    }

    .stats-card .label {
        font-size: 13px;
        color: #5f738c;
        margin-top: 2px;
    }

        .stats-card .label i {
            margin-right: 4px;
        }

/* 最近订单 */
.recent-orders {
    background: #ffffff;
    border-radius: 24px;
    border: 1px solid #e9eff6;
    padding: 24px 28px 28px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.02);
}

    .recent-orders .section-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 16px;
    }

        .recent-orders .section-header h3 {
            font-size: 18px;
            font-weight: 600;
            color: #0b1829;
        }

        .recent-orders .section-header a {
            color: #4f9cf7;
            text-decoration: none;
            font-weight: 500;
            font-size: 14px;
        }

.order-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid #f0f4fc;
}

    .order-item:last-child {
        border-bottom: none;
    }

    .order-item .order-info .order-id {
        font-weight: 600;
        font-size: 15px;
        color: #0b1829;
    }

    .order-item .order-info .order-meta {
        font-size: 13px;
        color: #5f738c;
    }

    .order-item .order-status {
        font-size: 13px;
        font-weight: 500;
        padding: 4px 16px;
        border-radius: 40px;
        background: #eef5ff;
        color: #2563eb;
    }

        .order-item .order-status.shipped {
            background: #e6f6ee;
            color: #1f7840;
        }

        .order-item .order-status.pending {
            background: #fff6e5;
            color: #b16f2c;
        }

        .order-item .order-status.delivered {
            background: #e8f0fe;
            color: #4f9cf7;
        }

    .order-item .order-amount {
        font-weight: 600;
        color: #0b1829;
    }

/* ===== 供应商主页主体 ===== */
.vendor-profile {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 28px;
    padding-bottom: 32px;
}

/* ===== 供应商头部 ===== */
.vendor-header {
    background: #ffffff;
    border-radius: 28px;
    border: 1px solid #e9eff6;
    padding: 28px 32px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.02);
    display: flex;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
}

    .vendor-header .vendor-avatar {
        width: 80px;
        height: 80px;
        background: #e8f0fe;
        border-radius: 20px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 36px;
        color: #4f9cf7;
        flex-shrink: 0;
    }

    .vendor-header .vendor-info {
        flex: 1;
    }

        .vendor-header .vendor-info .name {
            font-size: 24px;
            font-weight: 700;
            color: #0b1829;
            display: flex;
            align-items: center;
            gap: 12px;
            flex-wrap: wrap;
        }

            .vendor-header .vendor-info .name .badge {
                font-size: 13px;
                font-weight: 500;
                padding: 2px 14px;
                border-radius: 40px;
                background: #e6f6ee;
                color: #1f7840;
            }

        .vendor-header .vendor-info .desc {
            color: #5f738c;
            font-size: 15px;
            margin-top: 2px;
        }

        .vendor-header .vendor-info .meta {
            display: flex;
            gap: 24px;
            margin-top: 8px;
            font-size: 14px;
            color: #4d637e;
            flex-wrap: wrap;
        }

            .vendor-header .vendor-info .meta span i {
                margin-right: 4px;
                color: #6f88a3;
            }

    .vendor-header .vendor-actions {
        display: flex;
        gap: 12px;
        flex-wrap: wrap;
    }

.btn {
    padding: 10px 28px;
    border-radius: 40px;
    border: none;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: 0.15s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-primary {
    background: #1f2a3a;
    color: #fff;
}

    .btn-primary:hover {
        background: #2c3b52;
    }

.btn-outline {
    background: transparent;
    border: 1px solid #dce4ef;
    color: #1f2a3a;
}

    .btn-outline:hover {
        background: #f0f4fa;
    }

.btn-success {
    background: #1a7a4a;
    color: #fff;
}

    .btn-success:hover {
        background: #136a3e;
    }

/* ===== 供应商统计 ===== */
.vendor-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
}

    .vendor-stats .stat-card {
        background: #ffffff;
        border-radius: 20px;
        border: 1px solid #e9eff6;
        padding: 18px 18px 16px;
        text-align: center;
        box-shadow: 0 2px 8px rgba(0,0,0,0.01);
    }

        .vendor-stats .stat-card .number {
            font-size: 28px;
            font-weight: 700;
            color: #0b1829;
        }

        .vendor-stats .stat-card .label {
            font-size: 13px;
            color: #5f738c;
            margin-top: 2px;
        }

            .vendor-stats .stat-card .label i {
                margin-right: 4px;
            }

/* ===== 商品展示 ===== */
.vendor-products {
    background: #ffffff;
    border-radius: 28px;
    border: 1px solid #e9eff6;
    padding: 24px 28px 28px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.02);
}

    .vendor-products .section-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 18px;
        flex-wrap: wrap;
    }

        .vendor-products .section-header h3 {
            font-size: 18px;
            font-weight: 600;
            color: #0b1829;
        }

        .vendor-products .section-header a {
            color: #4f9cf7;
            text-decoration: none;
            font-weight: 500;
            font-size: 14px;
        }

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 18px;
}

.product-card {
    border: 1px solid #eef3fa;
    border-radius: 18px;
    padding: 16px 14px 18px;
    transition: 0.15s;
    background: #fafcff;
}

    .product-card:hover {
        border-color: #cdddee;
        box-shadow: 0 4px 12px rgba(0,0,0,0.02);
    }

    .product-card .thumb {
        height: 120px;
        background: #f0f6fe;
        border-radius: 14px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 36px;
        color: #3b6f9e;
        margin-bottom: 10px;
    }

    .product-card .name {
        font-weight: 600;
        font-size: 14px;
        color: #0b1829;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        height: 40px;
    }

    .product-card .price {
        font-weight: 700;
        color: #c0392b;
        font-size: 17px;
        margin-top: 6px;
    }

        .product-card .price small {
            font-weight: 400;
            color: #7a8fa9;
            font-size: 13px;
            text-decoration: line-through;
            margin-left: 6px;
        }

/* ===== 供应商动态 ===== */
.vendor-news {
    background: #ffffff;
    border-radius: 28px;
    border: 1px solid #e9eff6;
    padding: 24px 28px 28px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.02);
}

    .vendor-news .section-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 16px;
    }

        .vendor-news .section-header h3 {
            font-size: 18px;
            font-weight: 600;
            color: #0b1829;
        }

        .vendor-news .section-header a {
            color: #4f9cf7;
            text-decoration: none;
            font-weight: 500;
            font-size: 14px;
        }

.news-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f4fc;
}

    .news-item:last-child {
        border-bottom: none;
    }

    .news-item .news-icon {
        width: 40px;
        height: 40px;
        background: #e8f0fe;
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #4f9cf7;
        font-size: 18px;
        flex-shrink: 0;
    }

    .news-item .news-content {
        flex: 1;
    }

        .news-item .news-content .title {
            font-weight: 500;
            color: #0b1829;
        }

        .news-item .news-content .time {
            font-size: 13px;
            color: #6a7e99;
        }

