/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #f8f8f8;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    background-color: #000;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: #333;
}

.btn-outline {
    display: inline-block;
    background-color: transparent;
    color: #000;
    padding: 9px 19px;
    border: 1px solid #000;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background-color: #000;
    color: #fff;
}

.btn-small {
    padding: 6px 12px;
    font-size: 0.85em;
}

.btn-edit {
    background-color: transparent;
    color: #666;
    border: 1px solid #ddd;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-edit:hover {
    background-color: #f0f0f0;
}

/* 头部样式 */
header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo h1 {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 2px;
}

.logo p {
    font-size: 12px;
    color: #666;
}

nav ul {
    display: flex;
}

nav ul li {
    margin-left: 25px;
}

nav ul li a {
    font-size: 14px;
    font-weight: 500;
    padding: 5px 0;
    position: relative;
}

nav ul li a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #000;
    transition: width 0.3s ease;
}

nav ul li a:hover:after,
nav ul li a.active:after {
    width: 100%;
}

/* 个人中心容器 */
.profile-container {
    padding: 40px 0;
}

.profile-wrapper {
    display: flex;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

/* 左侧导航 */
.profile-sidebar {
    width: 250px;
    background-color: #f9f9f9;
    padding: 30px 0;
    border-right: 1px solid #eee;
}

.user-info {
    text-align: center;
    padding: 0 20px 20px;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
}

.user-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 15px;
    border: 3px solid #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
}

.user-level {
    display: inline-block;
    background-color: #ffd700;
    color: #000;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.sidebar-menu li {
    padding: 12px 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    font-weight: 500;
}

.sidebar-menu li:hover {
    background-color: #f0f0f0;
}

.sidebar-menu li.active {
    background-color: #000;
    color: #fff;
}

.sidebar-menu li i {
    margin-right: 10px;
    font-size: 18px;
}

/* 右侧内容区 */
.profile-content {
    flex: 1;
    padding: 30px;
}

.section-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

/* 标签页内容 */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* 账户信息 */
.account-info {
    display: grid;
    grid-gap: 25px;
}

.info-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.info-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: #f9f9f9;
    border-bottom: 1px solid #eee;
}

.info-header h3 {
    font-size: 16px;
    font-weight: 600;
}

.info-body {
    padding: 20px;
}

.info-item {
    display: flex;
    margin-bottom: 15px;
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-item .label {
    width: 100px;
    color: #666;
}

.info-item .value {
    flex: 1;
    font-weight: 500;
}

.account-summary {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 15px;
    margin-top: 25px;
}

.summary-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 20px;
    text-align: center;
}

.summary-value {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #000;
}

.summary-label {
    color: #666;
    font-size: 14px;
}

.vip-benefits {
    margin-top: 25px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 20px;
}

.vip-benefits h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 15px;
}

.benefit-item {
    text-align: center;
    padding: 15px;
    border-radius: 8px;
    background-color: #f9f9f9;
    transition: all 0.3s ease;
}

.benefit-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.benefit-icon {
    font-size: 24px;
    margin-bottom: 10px;
}

.benefit-name {
    font-size: 14px;
    font-weight: 500;
}

/* 我的订单 */
.order-filter {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.filter-tabs {
    display: flex;
}

.filter-tabs li {
    padding: 8px 15px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    font-weight: 500;
    transition: all 0.3s ease;
}

.filter-tabs li:hover {
    color: #000;
}

.filter-tabs li.active {
    color: #000;
    border-bottom-color: #000;
}

.search-order {
    display: flex;
}

.search-order input {
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
    width: 200px;
}

.search-order button {
    background-color: #000;
    color: #fff;
    border: none;
    padding: 0 15px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

.order-list {
    display: grid;
    grid-gap: 20px;
}

.order-item {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: #f9f9f9;
    border-bottom: 1px solid #eee;
}

.order-info {
    display: flex;
    align-items: center;
}

.order-date {
    margin-right: 20px;
    color: #666;
}

.order-number {
    font-weight: 500;
}

.order-status {
    font-weight: 600;
    color: #ff6b00;
}

.order-products {
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.product-item {
    display: flex;
    align-items: center;
}

.product-image {
    width: 80px;
    height: 80px;
    border-radius: 4px;
    overflow: hidden;
    margin-right: 15px;
}

.product-info h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
}

.product-spec {
    color: #666;
    font-size: 14px;
    margin-bottom: 5px;
}

.product-price {
    font-weight: 500;
}

.order-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.order-total {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.total-price {
    margin-top: 5px;
    font-size: 16px;
}

.total-price strong {
    font-size: 18px;
    color: #ff6b00;
}

.order-actions {
    display: flex;
    gap: 10px;
}

/* 我的收藏 */
.favorites-filter {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.filter-options {
    display: flex;
    gap: 15px;
}

.filter-options select {
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
}

.favorites-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 20px;
}

.product-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.product-image {
    position: relative;
}

.product-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #ff6b00;
    color: #fff;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.product-info {
    padding: 15px;
}

.product-info h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
}

.product-brand {
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
}

.product-price {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.original-price {
    color: #999;
    text-decoration: line-through;
    margin-right: 10px;
}

.price {
    font-size: 18px;
    font-weight: 700;
    color: #ff6b00;
}

.product-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 10px;
}

.add-to-cart {
    background-color: #000;
    color: #fff;
    border: none;
    padding: 8px 0;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.add-to-cart:hover {
    background-color: #333;
}

.remove-favorite {
    background-color: transparent;
    color: #666;
    border: 1px solid #ddd;
    padding: 8px 0;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.remove-favorite:hover {
    background-color: #f0f0f0;
}

/* 收货地址 */
.address-actions {
    margin-bottom: 25px;
}

.address-list {
    display: grid;
    grid-gap: 20px;
}

.address-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 20px;
    border: 1px solid #eee;
}

.address-item.default {
    border-color: #ffd700;
}

.address-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.recipient {
    font-weight: 600;
    margin-right: 15px;
}

.phone {
    color: #666;
}

.default-tag {
    background-color: #ffd700;
    color: #000;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    margin-left: 15px;
}

.address-detail {
    color: #333;
    line-height: 1.5;
}

.address-actions a {
    margin-left: 15px;
    color: #666;
    transition: all 0.3s ease;
}

.address-actions a:hover {
    color: #000;
}

/* 优惠券 */
.coupon-list {
    display: grid;
    grid-gap: 20px;
}

.coupon-item {
    display: flex;
    align-items: center;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.coupon-amount {
    width: 120px;
    height: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #ff6b00;
    color: #fff;
    font-size: 28px;
    font-weight: 700;
}

.coupon-info {
    flex: 1;
    padding: 20px;
}

.coupon-info h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
}

.coupon-date {
    color: #666;
    font-size: 14px;
    margin-top: 5px;
}

.coupon-action {
    padding: 20px;
}

/* 积分中心 */
.points-summary {
    display: grid;
    grid-template-columns: 1fr 2fr;
    grid-gap: 25px;
    margin-bottom: 30px;
}

.points-card {
    background-color: #000;
    color: #fff;
    border-radius: 8px;
    padding: 25px;
    text-align: center;
}

.points-header {
    font-size: 16px;
    margin-bottom: 15px;
}

.points-value {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
}

.points-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.points-rules {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 25px;
}

.points-rules h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
}

.points-rules ul {
    list-style: disc;
    padding-left: 20px;
}

.points-rules li {
    margin-bottom: 10px;
}

.points-exchange {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 25px;
}

.points-exchange h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
}

.exchange-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 20px;
}

.exchange-item {
    background-color: #f9f9f9;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.exchange-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.exchange-image {
    height: 120px;
    overflow: hidden;
}

.exchange-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.exchange-info {
    padding: 15px;
    text-align: center;
}

.exchange-info h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
}

.exchange-points {
    color: #ff6b00;
    font-weight: 600;
    margin-bottom: 10px;
}

/* 账户设置 */
.settings-section {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 25px;
    margin-bottom: 25px;
}

.settings-section h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
}

.settings-list {
    display: grid;
    grid-gap: 15px;
}

.settings-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.settings-item:last-child {
    border-bottom: none;
}

.settings-info h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
}

.settings-info p {
    color: #666;
    font-size: 14px;
}

/* 开关样式 */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
}

input:checked + .slider {
    background-color: #000;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

/* 页脚样式 */
footer {
    background-color: #000;
    color: #fff;
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 30px;
    margin-bottom: 30px;
}

.footer-section h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
}

.footer-section h3:after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: #fff;
}

.footer-section p {
    line-height: 1.8;
    margin-bottom: 15px;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a:hover {
    text-decoration: underline;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.social-link {
    display: inline-block;
    padding: 8px 15px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .favorites-grid,
    .benefits-grid,
    .exchange-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .profile-wrapper {
        flex-direction: column;
    }
    
    .profile-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #eee;
    }
    
    .account-summary,
    .favorites-grid,
    .benefits-grid,
    .exchange-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .account-summary,
    .favorites-grid,
    .benefits-grid,
    .exchange-grid {
        grid-template-columns: 1fr;
    }
    
    .order-header,
    .order-footer {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .order-actions {
        margin-top: 15px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}