* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', sans-serif;
    background-color: #f5f5f5;
    color: #333;
}

.container {
    width: 1200px;
    margin: 0 auto;
}

header {
    background: linear-gradient(135deg, #ff5000 0%, #ff7000 100%);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(255, 80, 0, 0.3);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 28px;
    font-weight: bold;
    color: #fff;
    text-decoration: none;
}

.logo span {
    font-size: 14px;
    font-weight: normal;
    margin-left: 10px;
}

.nav {
    display: flex;
    list-style: none;
}

.nav li {
    margin-left: 30px;
}

.nav li a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    transition: all 0.3s;
}

.nav li a:hover {
    color: #ffe0cc;
}

.user-info {
    color: #fff;
    font-size: 14px;
}

.user-info a {
    color: #fff;
    text-decoration: none;
    margin-left: 15px;
}

.user-info a:hover {
    text-decoration: underline;
}

.search-box {
    background: #fff;
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.search-form {
    display: flex;
    align-items: center;
}

.search-input {
    flex: 1;
    height: 45px;
    padding: 0 20px;
    font-size: 16px;
    border: 2px solid #ff5000;
    border-radius: 25px 0 0 25px;
    outline: none;
}

.search-btn {
    height: 45px;
    width: 120px;
    background: linear-gradient(135deg, #ff5000 0%, #ff7000 100%);
    color: #fff;
    border: none;
    border-radius: 0 25px 25px 0;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
}

.search-btn:hover {
    transform: scale(1.05);
}

.main-content {
    display: flex;
    margin-top: 20px;
}

.sidebar {
    width: 240px;
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-right: 20px;
}

.sidebar-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
    padding-bottom: 10px;
    border-bottom: 2px solid #ff5000;
}

.sidebar-cats {
    list-style: none;
}

.sidebar-cats li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.sidebar-cats li:last-child {
    border-bottom: none;
}

.sidebar-cats li a {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
}

.sidebar-cats li a:hover {
    color: #ff5000;
    padding-left: 10px;
}

.hot-tags {
    margin-top: 20px;
}

.hot-tags-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

.hot-tags-list {
    display: flex;
    flex-wrap: wrap;
}

.hot-tags-list a {
    display: inline-block;
    padding: 5px 12px;
    background: #f5f5f5;
    color: #666;
    text-decoration: none;
    border-radius: 20px;
    font-size: 13px;
    margin: 4px;
    transition: all 0.3s;
}

.hot-tags-list a:hover {
    background: #ff5000;
    color: #fff;
}

.product-list {
    flex: 1;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.product-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}

.product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.product-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-info {
    padding: 15px;
}

.product-title {
    font-size: 14px;
    color: #333;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 10px;
}

.product-price {
    font-size: 20px;
    font-weight: bold;
    color: #ff5000;
    margin-bottom: 5px;
}

.product-coupon {
    display: inline-block;
    padding: 2px 8px;
    background: #ff4d4f;
    color: #fff;
    font-size: 12px;
    border-radius: 4px;
    margin-bottom: 10px;
}

.product-rate {
    font-size: 12px;
    color: #999;
    margin-bottom: 10px;
}

.product-actions {
    display: flex;
    gap: 10px;
}

.btn {
    flex: 1;
    padding: 8px;
    text-align: center;
    border-radius: 4px;
    text-decoration: none;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, #ff5000 0%, #ff7000 100%);
    color: #fff;
}

.btn-primary:hover {
    opacity: 0.9;
}

.btn-default {
    background: #f5f5f5;
    color: #666;
}

.btn-default:hover {
    background: #eee;
}

.pagination {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    list-style: none;
}

.pagination li {
    margin: 0 5px;
}

.pagination li a {
    display: block;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #666;
    transition: all 0.3s;
}

.pagination li a:hover {
    border-color: #ff5000;
    color: #ff5000;
}

.pagination li.active a {
    background: #ff5000;
    color: #fff;
    border-color: #ff5000;
}

.auth-container {
    width: 400px;
    margin: 50px auto;
    background: #fff;
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.auth-title {
    font-size: 24px;
    text-align: center;
    margin-bottom: 30px;
    color: #333;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #666;
}

.form-group input {
    width: 100%;
    height: 45px;
    padding: 0 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: all 0.3s;
}

.form-group input:focus {
    border-color: #ff5000;
}

.auth-btn {
    width: 100%;
    height: 45px;
    background: linear-gradient(135deg, #ff5000 0%, #ff7000 100%);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    margin-top: 20px;
}

.auth-btn:hover {
    opacity: 0.9;
}

.auth-link {
    text-align: center;
    margin-top: 15px;
    font-size: 14px;
    color: #666;
}

.auth-link a {
    color: #ff5000;
    text-decoration: none;
}

.auth-link a:hover {
    text-decoration: underline;
}

.message {
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    text-align: center;
}

.message.success {
    background: #f6ffed;
    border: 1px solid #b7eb8f;
    color: #52c41a;
}

.message.error {
    background: #fff2f0;
    border: 1px solid #ffccc7;
    color: #ff4d4f;
}

.profile-container {
    display: flex;
    margin-top: 20px;
}

.profile-sidebar {
    width: 240px;
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-right: 20px;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: #ff5000;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 40px;
}

.profile-name {
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 20px;
}

.profile-menu {
    list-style: none;
}

.profile-menu li {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.profile-menu li:last-child {
    border-bottom: none;
}

.profile-menu li a {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
}

.profile-menu li a:hover {
    color: #ff5000;
}

.profile-menu li a i {
    margin-right: 10px;
    font-size: 16px;
}

.profile-content {
    flex: 1;
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.profile-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.stat-item {
    background: linear-gradient(135deg, #fff5f0 0%, #fff0e6 100%);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.stat-value {
    font-size: 24px;
    font-weight: bold;
    color: #ff5000;
}

.stat-label {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
}

.order-item {
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

.order-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.order-id {
    font-size: 14px;
    color: #666;
}

.order-status {
    font-size: 14px;
    font-weight: bold;
}

.order-status.pending {
    color: #faad14;
}

.order-status.paid {
    color: #1890ff;
}

.order-status.success {
    color: #52c41a;
}

.order-status.refund {
    color: #ff4d4f;
}

.order-item-info {
    display: flex;
    gap: 15px;
}

.order-item-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
}

.order-item-detail {
    flex: 1;
}

.order-item-title {
    font-size: 14px;
    color: #333;
    margin-bottom: 5px;
}

.order-item-price {
    font-size: 16px;
    color: #ff5000;
    font-weight: bold;
}

.order-item-commission {
    font-size: 14px;
    color: #52c41a;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    width: 400px;
    max-width: 90%;
}

.modal-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 20px;
}

.modal-body {
    margin-bottom: 20px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.copy-btn {
    padding: 8px 15px;
    background: #ff5000;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.copy-btn:hover {
    opacity: 0.9;
}

.close-btn {
    padding: 8px 15px;
    background: #f5f5f5;
    color: #666;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.close-btn:hover {
    background: #eee;
}

.text-center {
    text-align: center;
}

.empty-state {
    padding: 50px;
    text-align: center;
    color: #999;
}

.empty-state i {
    font-size: 60px;
    margin-bottom: 15px;
    color: #ddd;
}

footer {
    background: #333;
    color: #fff;
    padding: 30px 0;
    margin-top: 50px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
}

.footer-section {
    width: 25%;
}

.footer-section h3 {
    margin-bottom: 15px;
    font-size: 16px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    padding: 5px 0;
}

.footer-section ul li a {
    color: #999;
    text-decoration: none;
    font-size: 14px;
}

.footer-section ul li a:hover {
    color: #ff5000;
}

.footer-bottom {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #444;
    color: #666;
    font-size: 13px;
}
