/* 基础重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
    background-color: rgb(243, 253, 254);
}

/* 容器样式 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== 头部导航样式 ===== */
.header {
    background-color: rgb(243, 253, 254);
    border-bottom: 1px solid #f0f0f0;
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 40px;
}

/* Logo样式 */
.logo-text {
    font-family: 'Brush Script MT', cursive;
    font-size: 24px;
    color: #4A90E2;
    font-weight: 400;
}

/* 导航菜单 */
.nav-menu {
    display: flex;
    gap: 32px;
}

.nav-link {
    color: #333;
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    position: relative;
}

.nav-link.portfolio::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #000;
}

/* 头部右侧功能区 */
.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-left: auto;
}

.icon-btn {
    background: none;
    border: none;
    padding: 8px;
    position: relative;
    font-size: 16px;
    color: #333;
}

.icon-btn .icon-heart {
    color: #ff4757;
}

.cart-btn, .profile-btn {
    position: relative;
}

.badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background-color: #ff4757;
    color: white;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 5px;
    border-radius: 10px;
    min-width: 16px;
    text-align: center;
}

.login-btn {
    background-color: rgb(172, 208, 210);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
}

/* 购物车主体 */
.cart-main {
  max-width: 1200px;
  margin: 24px auto 0 auto;
  background: transparent;
}
.cart-title {
  display: flex;
  align-items: center;
  font-size: 22px;
  color: #3d3d3d;
  margin-bottom: 12px;
  gap: 12px;
}
.back-arrow {
  font-size: 22px;
  color: #7a8a8e;
  margin-right: 8px;
}
.cart-title-text {
  font-weight: 500;
}
.cart-edit {
  margin-left: auto;
  color: #7a8a8e;
  font-size: 16px;
  cursor: pointer;
}
.cart-select-all {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 15px;
  color: #3d3d3d;
  border-bottom: 2px solid #dbe6ea;
  padding-bottom: 8px;
  margin-bottom: 18px;
}
.cart-selected {
  color: #7a8a8e;
  font-size: 14px;
}
.cart-total-label {
  margin-left: auto;
  color: #7a8a8e;
  font-size: 14px;
}
.cart-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 18px;
}
.cart-item {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.08);
  display: flex;
  align-items: center;
  padding: 18px 24px;
  gap: 24px;
}
.cart-img {
  width: 110px;
  height: 110px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.cart-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.cart-name {
  font-size: 17px;
  color: #222;
  font-weight: 500;
}
.cart-meta {
  font-size: 14px;
  color: #7a8a8e;
  line-height: 1.6;
}
.cart-price {
  font-size: 16px;
  color: #3d3d3d;
  font-weight: 600;
  margin-top: 8px;
}
.cart-ctrl {
  display: flex;
  align-items: center;
  gap: 8px;
}
.cart-btn {
  width: 28px;
  height: 28px;
  border: none;
  background: #eaf6f7;
  color: #3d3d3d;
  font-size: 18px;
  border-radius: 6px;
  cursor: pointer;
}
.cart-qty {
  font-size: 16px;
  width: 24px;
  text-align: center;
}

/* 结算区 */
.cart-summary {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.08);
  padding: 18px 24px;
  margin-bottom: 24px;
  gap: 24px;
}
.cart-summary-left { flex: 1; }
.cart-summary-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}
.cart-total {
  font-size: 18px;
  color: #222;
  font-weight: 600;
}
.cart-total span { color: #4f8cff; }
.cart-discount {
  font-size: 15px;
  color: #7a8a8e;
}
.cart-checkout {
  background: #7fa7b3;
  color: #fff;
  font-size: 16px;
  border: none;
  border-radius: 8px;
  padding: 8px 28px;
  margin-top: 8px;
  cursor: pointer;
  transition: background 0.2s;
}
.cart-checkout:hover { background: #4f8cff; }

/* ===== 页脚样式 ===== */
.footer {
    background-color: rgb(165, 188, 194);
    border-top: 1px solid #f0f0f0;
    padding: 48px 0 24px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 32px;
    margin-bottom: 32px;
}

/* 品牌信息 */
.footer-brand {
    max-width: 300px;
}

.footer-logo .logo-text {
    font-family: 'Brush Script MT', cursive;
    font-size: 20px;
    color: #4A90E2;
    font-weight: 400;
    margin-bottom: 12px;
    display: block;
}

.footer-description {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    font-weight: bold;
}
/* 页脚标题 */
.footer-title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 16px;
}

/* 快速链接 */
.footer-menu {
    list-style: none;
}

.footer-menu li {
    margin-bottom: 8px;
}

.footer-link {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
}

/* 联系方式 */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #666;
    font-weight: bold;
}

.contact-icon {
    font-size: 16px;
    width: 16px;
    text-align: center;
}

/* 社交媒体 */
.social-icons {
    display: flex;
    gap: 12px;
}

.social-link {
    display: block;
}

.social-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

/* 版权信息 */
.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid #f0f0f0;
}

.copyright {
    font-size: 12px;
    color: #999;
}

/* ===== 响应式设计 ===== */
@media (max-width: 768px) {
    .product-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .product-details {
        padding-left: 0;
    }
    
    .header-container {
        flex-wrap: wrap;
        gap: 16px;
    }
    
    .nav-menu {
        order: 3;
        width: 100%;
        justify-content: center;
        margin-left: 0;
    }
    
    .works-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .action-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .delivery-buttons {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .product-title {
        font-size: 24px;
    }
    
    .current-price {
        font-size: 28px;
    }
    
    .thumbnail-gallery {
        gap: 8px;
    }
    
    .thumbnail img {
        width: 80px;
        height: 80px;
    }
}
