/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #2c3e50;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部导航 */
.header {
    background: white;
    color: black;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-bottom: 1px solid #e0e0e0;
}

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

.logo h1 {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 0.2rem;
}

.logo .tagline {
    font-size: 0.9rem;
    opacity: 0.8;
}

.nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: black;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: all 0.3s ease;
    cursor: pointer;
    font-weight: 500;
}

.nav-link:hover,
.nav-link.active {
    background-color: rgba(0,0,0,0.05);
    transform: translateY(-2px);
    color: #2c3e50;
}

.login-btn {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    padding: 0.7rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.4);
}

/* 店铺公告 */
.shop-notice {
    background: #fffbe8;
    color: #de8c17;
    padding: 12px 20px;
    margin: 20px 0 0 0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    font-size: 14px;
    animation: slideIn 0.5s ease;
    overflow: hidden;
    position: relative;
    white-space: nowrap;
}

.shop-notice .notice-content {
    display: inline-block;
    animation: scrollText 15s linear infinite;
    padding-left: 100%;
}

@keyframes scrollText {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

.shop-notice i {
    margin-right: 10px;
    font-size: 16px;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 轮播图 */
.carousel-container {
    position: relative;
    margin: 0;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    overflow: hidden;
    height: 85vh;
    min-height: 600px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    width: 100%;
    height: 100%;
}

.carousel-item {
    min-width: 100%;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    width: 100%;
    height: 100%;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    image-rendering: high-quality;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    transition: transform 10s ease-out;
    filter: brightness(1.02) contrast(1.05) saturate(1.1);
    will-change: transform, filter;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    animation: kenBurns 20s ease-in-out infinite alternate;
}

.carousel-item:hover img {
    transform: scale(1.08);
    filter: brightness(1.05) contrast(1.08) saturate(1.15);
    animation-play-state: paused;
}

/* 添加渐变遮罩效果 */
.carousel-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0,0,0,0.1) 0%, transparent 50%, rgba(0,0,0,0.1) 100%);
    pointer-events: none;
    z-index: 1;
}

/* 自动缩放动画 */
@keyframes kenBurns {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.05);
    }
}

.carousel-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(255,255,255,0.6);
    backdrop-filter: blur(4px);
}

.indicator.active {
    background: rgba(255,255,255,0.9);
    transform: scale(1.3);
    border-color: rgba(255,255,255,1);
    box-shadow: 0 0 15px rgba(255,255,255,0.5);
}

.indicator:hover {
    background: rgba(255,255,255,0.8);
    transform: scale(1.2);
    border-color: rgba(255,255,255,0.9);
}

/* 轮播图响应式设计 */
@media (max-width: 1200px) {
    .carousel-container {
        height: 80vh;
        min-height: 550px;
    }
}

@media (max-width: 768px) {
    .carousel-container {
        height: 75vh;
        min-height: 500px;
    }
    
    .carousel-indicators {
        bottom: 25px;
        gap: 10px;
    }
    
    .indicator {
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 480px) {
    .carousel-container {
        height: 70vh;
        min-height: 450px;
    }
    
    .carousel-indicators {
        bottom: 20px;
        gap: 8px;
    }
    
    .indicator {
        width: 8px;
        height: 8px;
    }
}

/* 页面切换 */
.page {
    display: none;
    padding-top: 80px;
    min-height: 100vh;
}

.page.active {
    display: block;
}

/* 品牌宣传区 */
.hero {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 4rem 0;
    text-align: center;
    margin-bottom: 3rem;
}

.hero-content h2 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    font-weight: 300;
}

.hero-content p {
    font-size: 1.2rem;
    color: #7f8c8d;
    margin-bottom: 2rem;
}

.cta-button {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
}

.hero-image img {
    width: 100%;
    max-width: 1200px;
    height: 400px;
    object-fit: cover;
    border-radius: 10px;
    margin-top: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* 核心功能区 */
.core-features {
    padding: 3rem 0;
    background: white;
    margin-bottom: 3rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    border: 1px solid #f1f3f4;
    position: relative;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.feature-card i {
    font-size: 3rem;
    color: #3498db;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: #7f8c8d;
    margin-bottom: 1rem;
}

.badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #e74c3c;
    color: white;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
}

/* 产品展示区 */
.products {
    padding: 3rem 0;
    background: #f8f9fa;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    color: #2c3e50;
    margin-bottom: 3rem;
    font-weight: 300;
}

.category-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.filter-btn {
    padding: 0.8rem 1.5rem;
    border: 1px solid #ddd;
    background: white;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    color: #7f8c8d;
}

.filter-btn:hover {
    border-color: #3498db;
    color: #3498db;
    transform: translateY(-2px);
}

.filter-btn.active {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border-color: #3498db;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.product-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    min-height: 350px;
    display: flex;
    flex-direction: column;
}

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

.product-image {
    height: 200px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-info {
    padding: 1.2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    line-height: 1.2;
    flex: 1;
}

.product-price-container {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.product-price {
    font-size: 1.4rem;
    color: #e74c3c;
    font-weight: bold;
}

.product-sales {
    background: #f39c12;
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.8rem;
    margin-left: auto;
}

.product-desc {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    height: 2.5rem;
}

.detail-btn {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    padding: 0.7rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.detail-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.4);
}

/* 我的页面 */
.account-header {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid #3498db;
}

.user-details h3 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 0.3rem;
}

.level {
    color: #f39c12;
    font-weight: bold;
}

.stats {
    display: flex;
    gap: 2rem;
}

.stat {
    text-align: center;
}

.stat .number {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    color: #e74c3c;
}

.stat .label {
    color: #7f8c8d;
    font-size: 0.9rem;
}

.account-menu {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.menu-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #f1f3f4;
    cursor: pointer;
    transition: all 0.3s ease;
}

.menu-item:hover {
    background-color: #f8f9fa;
}

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

.menu-item i:first-child {
    color: #3498db;
    margin-right: 1rem;
    width: 20px;
}

.menu-item span {
    flex: 1;
    color: #2c3e50;
    font-weight: 500;
}

.menu-item i:last-child {
    color: #bdc3c7;
}

/* 订单页面 */
.page-title {
    font-size: 2.2rem;
    color: #2c3e50;
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 300;
}

.order-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
    background: white;
    border-radius: 50px;
    padding: 0.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.tab-btn {
    background: none;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #7f8c8d;
}

.tab-btn.active {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    box-shadow: 0 2px 10px rgba(52, 152, 219, 0.3);
}

.orders-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.order-item {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f1f3f4;
}

.order-number {
    font-weight: bold;
    color: #2c3e50;
}

.order-status {
    padding: 0.3rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: bold;
}

.status-pending-payment {
    background: #fff3cd;
    color: #856404;
}

.status-pending-shipment {
    background: #d1ecf1;
    color: #0c5460;
}

.status-pending-receipt {
    background: #cce5ff;
    color: #004085;
}

.status-completed {
    background: #d4edda;
    color: #155724;
}

.order-products {
    margin-bottom: 1rem;
}

.order-product {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.order-product img {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
}

.order-product-info h4 {
    color: #2c3e50;
    margin-bottom: 0.3rem;
}

.order-product-info p {
    color: #7f8c8d;
    font-size: 0.9rem;
}

.order-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.order-btn {
    padding: 0.5rem 1.5rem;
    border: 1px solid #3498db;
    background: white;
    color: #3498db;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.order-btn.primary {
    background: #3498db;
    color: white;
}

.order-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

/* 物流追踪 */
.tracking-search {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    justify-content: center;
}

.tracking-search input {
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 25px;
    width: 400px;
    font-size: 1rem;
}

.tracking-search button {
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tracking-search button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.tracking-result {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.tracking-info {
    margin-bottom: 2rem;
}

.tracking-info h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.tracking-info p {
    color: #7f8c8d;
    margin-bottom: 0.5rem;
}

.tracking-timeline {
    position: relative;
    padding-left: 2rem;
}

.tracking-timeline::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #3498db;
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
    padding-left: 2rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -1.5rem;
    top: 0.5rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #3498db;
}

.timeline-item.active::before {
    background: #e74c3c;
    width: 16px;
    height: 16px;
    left: -1.7rem;
}

.timeline-time {
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 0.3rem;
}

.timeline-text {
    color: #7f8c8d;
}

/* 页脚 */
.footer {
    background: black;
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 3rem;
    margin-bottom: 2rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 2rem;
}

.footer-section h4 {
    margin-bottom: 1.5rem;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: left;
}

.footer-section h4.center {
    text-align: center;
}

.footer-section p {
    color: #ccc;
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.qr-codes {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

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

.qr-item img {
    width: 120px;
    height: 120px;
    border-radius: 12px;
    margin-bottom: 0.8rem;
    transition: transform 0.3s ease;
}

.qr-item img:hover {
    transform: scale(1.05);
}

.qr-item p {
    font-size: 0.9rem;
    color: #ccc;
    font-weight: 500;
}

.footer-bottom {
    text-align: left;
    padding-top: 2rem;
    border-top: 1px solid #333;
    color: #ccc;
    font-size: 0.9rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 2rem;
    padding-right: 2rem;
}

/* 底部导航响应式设计 */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: left;
        padding: 0 1rem;
    }
    
    .footer-section h4 {
        margin-bottom: 1rem;
        font-size: 1rem;
    }
    
    .footer-section p {
        font-size: 0.9rem;
    }
    
    .qr-codes {
        justify-content: center;
    }
    
    .qr-item {
        text-align: center;
    }
    
    .qr-item img {
        width: 100px;
        height: 100px;
    }
    
    .footer-bottom {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 2rem 0 1rem;
    }
    
    .footer-content {
        gap: 1.5rem;
        padding: 0 0.5rem;
    }
    
    .qr-codes {
        flex-direction: column;
        gap: 1rem;
    }
    
    .qr-item img {
        width: 80px;
        height: 80px;
    }
    
    .qr-item p {
        font-size: 0.8rem;
    }
    
    .footer-bottom {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
}

/* 商品详情页面样式 */
.product-detail-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.product-image-section {
    margin-bottom: 30px;
    text-align: center;
}

.product-image-main {
    max-width: 600px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.product-image-main img {
    width: 100%;
    height: auto;
    display: block;
}

.product-info-section {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.product-header {
    margin-bottom: 20px;
}

.product-header h1 {
    font-size: 2rem;
    color: #2c3e50;
    margin: 0 0 15px 0;
    font-weight: 600;
}

.product-tags {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.product-tag {
    background: #3498db;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.product-description {
    margin-bottom: 25px;
}

.product-description p {
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

/* SKU选择样式 */
.sku-selection {
    margin-bottom: 20px;
}

.sku-group {
    margin-bottom: 15px;
}

.sku-group-label {
    font-size: 14px;
    color: #333;
    margin-bottom: 8px;
    font-weight: 500;
}

.sku-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sku-option {
    padding: 8px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    color: #333;
    min-width: 80px;
    text-align: center;
}

.sku-option:hover {
    border-color: #007bff;
    color: #007bff;
}

.sku-option.selected {
    border-color: #007bff;
    background: #007bff;
    color: #fff;
}

.sku-option.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f5f5f5;
}

.sku-option.disabled:hover {
    border-color: #e0e0e0;
    color: #333;
}

.product-price-section {
    margin-bottom: 25px;
}

.price-label {
    font-size: 1rem;
    color: #666;
    margin-bottom: 8px;
}

.price-value {
    font-size: 2.5rem;
    color: #e74c3c;
    font-weight: bold;
}

.product-quantity-section {
    margin-bottom: 30px;
}

.quantity-label {
    font-size: 1rem;
    color: #666;
    margin-bottom: 10px;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity-btn {
    width: 40px;
    height: 40px;
    border: 2px solid #ddd;
    background: white;
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quantity-btn:hover {
    border-color: #3498db;
    color: #3498db;
}

#product-quantity {
    width: 80px;
    height: 40px;
    border: 2px solid #ddd;
    border-radius: 8px;
    text-align: center;
    font-size: 1rem;
    font-weight: 500;
}

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

.add-to-cart-btn, .buy-now-btn {
    flex: 1;
    height: 50px;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.add-to-cart-btn {
    background: #f8f9fa;
    color: #2c3e50;
    border: 2px solid #e9ecef;
}

.add-to-cart-btn:hover {
    background: #e9ecef;
    border-color: #dee2e6;
}

.buy-now-btn {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
}

.buy-now-btn:hover {
    background: linear-gradient(135deg, #2980b9, #1f5f8b);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.product-tabs {
    background: white;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.tab-nav {
    display: flex;
    border-bottom: 1px solid #eee;
}

.tab-btn {
    flex: 1;
    padding: 15px 20px;
    border: none;
    background: none;
    font-size: 1rem;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.tab-btn.active {
    color: #3498db;
    border-bottom-color: #3498db;
}

.tab-btn:hover {
    color: #3498db;
    background: #f8f9fa;
}

.tab-content {
    padding: 30px;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

.product-detail-images {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.product-detail-images img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.product-params h3, .product-reviews h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.param-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.param-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.param-label {
    font-weight: 500;
    color: #2c3e50;
}

.param-value {
    color: #666;
}

.product-recommendations {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.product-recommendations h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.recommendation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.recommendation-item {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.recommendation-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.recommendation-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 10px;
}

.recommendation-item h4 {
    font-size: 0.9rem;
    color: #2c3e50;
    margin: 0 0 5px 0;
}

.recommendation-item .price {
    color: #e74c3c;
    font-weight: bold;
    font-size: 1rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .product-detail-container {
        padding: 15px;
    }
    
    .product-info-section {
        padding: 20px;
    }
    
    .product-header h1 {
        font-size: 1.5rem;
    }
    
    .price-value {
        font-size: 2rem;
    }
    
    .product-actions {
        flex-direction: column;
    }
    
    .tab-nav {
        flex-direction: column;
    }
    
    .tab-btn {
        text-align: left;
        border-bottom: 1px solid #eee;
        border-right: none;
    }
    
    .tab-btn.active {
        border-bottom-color: #eee;
        border-left: 3px solid #3498db;
    }
    
    .recommendation-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }
}

/* 弹窗样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 2rem;
    cursor: pointer;
    color: #7f8c8d;
    transition: color 0.3s ease;
}

.close:hover {
    color: #e74c3c;
}

/* 表单样式 */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #2c3e50;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #3498db;
}

.verify-group {
    display: flex;
    gap: 1rem;
}

.verify-group input {
    flex: 1;
}

.verify-group button {
    padding: 0.8rem 1.5rem;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.verify-group button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

/* 商品详情弹窗 */
.product-detail {
    max-width: 800px;
    width: 90%;
}

.product-detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.product-detail-image {
    width: 100%;
    height: 300px;
    border-radius: 10px;
    overflow: hidden;
}

.product-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info h3 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.product-info .price {
    font-size: 2rem;
    color: #e74c3c;
    font-weight: bold;
    margin-bottom: 1rem;
}

.specs {
    margin-bottom: 1.5rem;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f1f3f4;
}

.quantity-selector {
    margin-bottom: 1.5rem;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.quantity-control button {
    width: 30px;
    height: 30px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quantity-control button:hover {
    background: #3498db;
    color: white;
}

.quantity-control input {
    width: 50px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 0.3rem;
}

.address-selector {
    margin-bottom: 1.5rem;
}

.address-selector select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
}

.action-buttons {
    display: flex;
    gap: 1rem;
}

.action-buttons button {
    flex: 1;
    padding: 1rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.add-to-cart {
    background: white;
    color: #3498db;
    border: 2px solid #3498db;
}

.add-to-cart:hover {
    background: #3498db;
    color: white;
}

.buy-now {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
}

.buy-now:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

/* 购物车 */
.cart-items {
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 1.5rem;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid #f1f3f4;
}

.cart-item img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
}

.cart-item-info {
    flex: 1;
}

.cart-item-info h4 {
    color: #2c3e50;
    margin-bottom: 0.3rem;
}

.cart-item-info p {
    color: #7f8c8d;
    font-size: 0.9rem;
}

.cart-item-price {
    font-weight: bold;
    color: #e74c3c;
}

.cart-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #f1f3f4;
}

.checkout-btn {
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.checkout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

/* 登录表单样式 */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #2c3e50;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.verify-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

.verify-group input {
    flex: 1;
}

.verify-group button {
    padding: 12px 15px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.3s ease;
    font-size: 14px;
}

.verify-group button:hover:not(:disabled) {
    background: #2980b9;
}

.verify-group button:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
}

.captcha-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

.captcha-group input {
    flex: 1;
}

.captcha-image-container {
    display: flex;
    align-items: center;
}

.captcha-image {
    height: 40px;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.captcha-image:hover {
    opacity: 0.8;
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
}

.error-message {
    padding: 10px;
    border-radius: 5px;
    font-size: 14px;
    text-align: center;
}

.logout-btn {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 12px;
    margin-left: 10px;
}

.logout-btn:hover {
    background: #c0392b;
}

.login-btn:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* 商品详情弹窗增强样式 */
.product-detail {
    max-width: 900px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
}

.product-detail-container {
    display: grid;
   
    gap: 2rem;
}

@media (max-width: 768px) {
    .product-detail-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

.product-gallery {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.main-image-container {
    position: relative;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: #f8f9fa;
    aspect-ratio: 1;
}

.main-image-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: transform 0.3s ease;
}

.main-image-container:hover img {
    transform: scale(1.05);
}

.thumbnails-container {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 5px 0;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.thumbnails-container::-webkit-scrollbar {
    height: 4px;
}

.thumbnails-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 2px;
}

.thumbnails-container::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 2px;
}

.thumbnails-container::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.gallery-thumb {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.gallery-thumb:hover,
.gallery-thumb.active {
    border-color: #007bff;
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

@media (max-width: 768px) {
    .main-image-container {
        aspect-ratio: 4/3;
    }
    
    .gallery-thumb {
        width: 60px;
        height: 60px;
    }
}

.product-info h2 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.product-info .price {
    font-size: 2rem;
    color: #e74c3c;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.product-info .description {
    color: #7f8c8d;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* 规格选择器 */
.spec-group {
    margin-bottom: 1rem;
}

.spec-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.spec-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.spec-option {
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    border-radius: 20px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.spec-option:hover {
    border-color: #007bff;
    background: #f8f9ff;
}

.spec-option.selected {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.spec-option.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f5f5f5;
}

/* 商品描述 */
#product-detail-description {
    margin-top: 2rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #007bff;
}

#product-detail-description img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
}

/* 商品操作按钮 */
.product-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.add-to-cart-btn, .buy-now-btn {
    flex: 1;
    padding: 1rem 2rem;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
}

.add-to-cart-btn {
    background: #f39c12;
    color: white;
}

.buy-now-btn {
    background: #e74c3c;
    color: white;
}

.add-to-cart-btn:hover {
    background: #e67e22;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.4);
}

.buy-now-btn:hover {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
}

/* 加载状态 */
.loading {
    text-align: center;
    padding: 2rem;
    color: #7f8c8d;
}

.loading::after {
    content: '...';
    animation: dots 1.5s infinite;
}

@keyframes dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}

/* 库存状态 */
.stock-status {
    color: #27ae60;
    font-weight: bold;
    margin-bottom: 1rem;
}

.stock-status.low {
    color: #f39c12;
}

.stock-status.out {
    color: #e74c3c;
}

/* 订单详情弹窗样式 */
.order-detail-content {
    max-width: 95vw;
    max-height: 95vh;
    width: 900px;
    overflow-y: auto;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.order-detail-container {
    padding: 30px;
}

.order-detail-section {
    margin-bottom: 30px;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 12px;
    border-left: 5px solid #3498db;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.order-detail-section h3 {
    margin: 0 0 15px 0;
    color: #2c3e50;
    font-size: 1.2rem;
    border-bottom: 2px solid #ecf0f1;
    padding-bottom: 10px;
}

.order-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #ecf0f1;
}

.info-item label {
    font-weight: bold;
    color: #34495e;
    min-width: 80px;
}

.info-item span {
    color: #2c3e50;
}

.status-10 { color: #f39c12; font-weight: bold; }
.status-20 { color: #e74c3c; font-weight: bold; }
.status-21 { color: #e67e22; font-weight: bold; }
.status-30 { color: #27ae60; font-weight: bold; }

.pay-status-10 { color: #e74c3c; font-weight: bold; }
.pay-status-20 { color: #27ae60; font-weight: bold; }

.delivery-status-10 { color: #f39c12; font-weight: bold; }
.delivery-status-20 { color: #27ae60; font-weight: bold; }
.delivery-status-30 { color: #3498db; font-weight: bold; }

.order-detail-goods {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.order-detail-goods-item {
    display: flex;
    align-items: flex-start;
    padding: 20px;
    background: white;
    border-radius: 12px;
    border: 1px solid #ecf0f1;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.order-detail-goods-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.order-detail-goods-item img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    margin-right: 20px;
    flex-shrink: 0;
}

.goods-info {
    flex: 1;
}

.goods-info h4 {
    margin: 0 0 12px 0;
    color: #2c3e50;
    font-size: 1.1rem;
    line-height: 1.4;
    font-weight: 600;
}

.goods-info p {
    margin: 6px 0;
    color: #666;
    font-size: 0.95rem;
}

.goods-price {
    color: #e74c3c !important;
    font-weight: bold;
    font-size: 1.1rem !important;
}

.goods-total {
    color: #2c3e50 !important;
    font-weight: bold;
}

.order-detail-address,
.order-detail-delivery {
    background: white;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #ecf0f1;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.order-detail-address h4,
.order-detail-delivery h4 {
    margin: 0 0 15px 0;
    color: #2c3e50;
    font-size: 1.1rem;
    font-weight: 600;
    border-bottom: 2px solid #ecf0f1;
    padding-bottom: 8px;
}

.order-detail-address p,
.order-detail-delivery p {
    margin: 8px 0;
    color: #34495e;
    line-height: 1.6;
    font-size: 0.95rem;
}

.delivery-item {
    padding: 10px;
    background: #f8f9fa;
    border-radius: 4px;
    margin: 8px 0;
}

.delivery-item p {
    margin: 3px 0;
    font-size: 0.9rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
    }
    
    .product-name {
        font-size: 0.85rem;
        line-height: 1.1;
        -webkit-line-clamp: 3;
        flex: 1;
    }
    
    .account-header {
        flex-direction: column;
        text-align: center;
    }
    
    .stats {
        justify-content: center;
    }
    
    .product-detail-content {
        grid-template-columns: 1fr;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .tracking-search {
        flex-direction: column;
        align-items: center;
    }
    
    .tracking-search input {
        width: 100%;
        max-width: 300px;
    }
    
    .verify-group {
        flex-direction: column;
    }
    
    .verify-group button {
        width: 100%;
    }
}

/* 收货地址相关样式 */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 0;
    border-bottom: 2px solid #f8f9fa;
    margin-bottom: 2rem;
    background: #fff;
    border-radius: 12px 12px 0 0;
    padding: 1.5rem 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-header h2 {
    color: #2c3e50;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    flex: 1;
    text-align: center;
}

.back-btn, .add-btn {
    background: linear-gradient(135deg, #3498db, #2980b9);
    border: none;
    font-size: 1.1rem;
    color: white;
    cursor: pointer;
    padding: 0.75rem;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
}

.back-btn:hover, .add-btn:hover {
    background: linear-gradient(135deg, #2980b9, #1f5f8b);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.4);
}

.back-btn:active, .add-btn:active {
    transform: translateY(0);
}

.add-btn {
    background: linear-gradient(135deg, #27ae60, #229954);
    box-shadow: 0 2px 8px rgba(39, 174, 96, 0.3);
}

.add-btn:hover {
    background: linear-gradient(135deg, #229954, #1e8449);
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.4);
}

.address-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding: 1rem 0;
}

.address-item {
    background: #fff;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 1.75rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.address-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: #3498db;
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.address-item:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
    border-color: #3498db;
}

.address-item:hover::before {
    transform: scaleY(1);
}

.address-item.default {
    border-color: #e74c3c;
    background: linear-gradient(135deg, #fff 0%, #fff5f5 100%);
}

.address-item.default::before {
    background: #e74c3c;
    transform: scaleY(1);
}

.address-info {
    flex: 1;
    padding-right: 1rem;
}

.address-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.address-name {
    font-weight: 700;
    color: #2c3e50;
    font-size: 1.1rem;
}

.address-phone {
    color: #6c757d;
    font-size: 0.95rem;
    background: #f8f9fa;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-weight: 500;
}

.default-tag {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(231, 76, 60, 0.3);
}

.address-detail {
    color: #6c757d;
    line-height: 1.6;
    font-size: 0.95rem;
    background: #f8f9fa;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border-left: 3px solid #3498db;
}

.address-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-width: 120px;
}

.action-btn {
    background: none;
    border: 2px solid #3498db;
    color: #3498db;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: #3498db;
    transition: left 0.3s ease;
    z-index: -1;
}

.action-btn:hover {
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.action-btn:hover::before {
    left: 0;
}

.action-btn.delete {
    border-color: #e74c3c;
    color: #e74c3c;
}

.action-btn.delete::before {
    background: #e74c3c;
}

.action-btn.delete:hover {
    color: white;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

.action-btn:active {
    transform: translateY(0);
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: #6c757d;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin: 2rem 0;
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    color: #bdc3c7;
    opacity: 0.7;
}

.empty-state p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #7f8c8d;
}

.empty-state .btn-primary {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.empty-state .btn-primary:hover {
    background: linear-gradient(135deg, #2980b9, #1f5f8b);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.4);
}

/* 地址表单样式 */
.address-form {
    max-width: 600px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 2rem;
}

.address-form h2 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
    border-bottom: 2px solid #f8f9fa;
    padding-bottom: 1rem;
}

.address-form .form-group {
    margin-bottom: 1.5rem;
}

.address-form .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.95rem;
}

.address-form .form-group input,
.address-form .form-group textarea,
.address-form .form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fff;
    box-sizing: border-box;
}

.address-form .form-group input:focus,
.address-form .form-group textarea:focus,
.address-form .form-group select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
    transform: translateY(-1px);
}

.address-form .form-group input:hover,
.address-form .form-group textarea:hover,
.address-form .form-group select:hover {
    border-color: #bdc3c7;
}

.address-form .form-group textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
    line-height: 1.5;
}

.region-selector {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.region-selector select {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    background: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.region-selector select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.region-selector select:hover {
    border-color: #bdc3c7;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    padding: 0.75rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.checkbox-label:hover {
    border-color: #3498db;
    background: #f0f8ff;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    cursor: pointer;
    accent-color: #3498db;
}

.checkbox-label span {
    font-weight: 500;
    color: #2c3e50;
    user-select: none;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e9ecef;
}

.form-actions .btn-secondary {
    background: #6c757d;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 100px;
}

.form-actions .btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(108, 117, 125, 0.3);
}

.form-actions .btn-primary {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 100px;
    position: relative;
    overflow: hidden;
}

.form-actions .btn-primary:hover {
    background: linear-gradient(135deg, #2980b9, #1f5f8b);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.4);
}

.form-actions .btn-primary:active {
    transform: translateY(0);
}

.form-actions .btn-primary:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* 表单验证样式 */
.address-form .form-group input:invalid,
.address-form .form-group textarea:invalid {
    border-color: #e74c3c;
}

.address-form .form-group input:valid,
.address-form .form-group textarea:valid {
    border-color: #27ae60;
}

/* 加载状态 */
.form-actions .btn-primary.loading {
    position: relative;
    color: transparent;
}

.form-actions .btn-primary.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid #ffffff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* 地址选择弹窗样式 */
.address-select {
    max-width: 700px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 2rem;
}

.address-select h2 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
    border-bottom: 2px solid #f8f9fa;
    padding-bottom: 1rem;
}

.address-select-list {
    max-height: 450px;
    overflow-y: auto;
    margin-bottom: 1.5rem;
    padding-right: 0.5rem;
}

/* 自定义滚动条 */
.address-select-list::-webkit-scrollbar {
    width: 6px;
}

.address-select-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.address-select-list::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.address-select-list::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.address-select-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
    background: #fff;
    position: relative;
    overflow: hidden;
}

.address-select-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: #3498db;
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.address-select-item:hover {
    background: #f8f9fa;
    border-color: #3498db;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.15);
}

.address-select-item:hover::before {
    transform: scaleY(1);
}

.address-select-item.selected {
    border-color: #27ae60;
    background: #f0fff4;
}

.address-select-item.selected::before {
    background: #27ae60;
    transform: scaleY(1);
}

.address-select-info {
    flex: 1;
    padding-right: 1rem;
}

.address-select-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.address-select-name {
    font-weight: 600;
    color: #2c3e50;
    font-size: 1.1rem;
}

.address-select-phone {
    color: #6c757d;
    font-size: 0.95rem;
    background: #f8f9fa;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.address-select-detail {
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.4;
    margin-top: 0.25rem;
}

.select-btn {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.95rem;
    min-width: 80px;
    position: relative;
    overflow: hidden;
}

.select-btn:hover {
    background: linear-gradient(135deg, #2980b9, #1f5f8b);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.4);
}

.select-btn:active {
    transform: translateY(0);
}

.select-btn.selected {
    background: linear-gradient(135deg, #27ae60, #229954);
}

.select-btn.selected:hover {
    background: linear-gradient(135deg, #229954, #1e8449);
}

.address-select-actions {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 2px solid #f8f9fa;
}

.address-select-actions .btn-primary {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.address-select-actions .btn-primary:hover {
    background: linear-gradient(135deg, #2980b9, #1f5f8b);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.4);
}

.address-select-actions .btn-primary i {
    font-size: 0.9rem;
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .hero {
        padding: 2rem 0;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .modal-content {
        margin: 10% auto;
        padding: 1.5rem;
    }
    
    .product-name {
        font-size: 0.8rem;
        line-height: 1.0;
        -webkit-line-clamp: 3;
        flex: 1;
    }
    
    /* 收货地址响应式 */
    .address-item {
        flex-direction: column;
        gap: 1rem;
    }
    
    .address-actions {
        flex-direction: row;
        justify-content: flex-end;
    }
    
    .region-selector {
        flex-direction: column;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .address-select-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .select-btn {
        align-self: flex-end;
    }
}

/* 订单详情增强样式 */
.extract-shop-info {
    background: white;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #ecf0f1;
    margin: 15px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.extract-shop-info p {
    margin: 8px 0;
    color: #34495e;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* 商品信息增强样式 */
.goods-line-price {
    color: #999;
    text-decoration: line-through;
    font-size: 0.9rem;
}

.goods-coupon {
    color: #e74c3c;
    font-weight: 500;
}

.goods-points {
    color: #f39c12;
    font-weight: 500;
}

.goods-points-bonus {
    color: #27ae60;
    font-weight: 500;
}

.goods-pay-price {
    color: #e74c3c;
    font-weight: 600;
    font-size: 1.1rem;
}

/* 订单状态样式增强 */
.pay-price {
    color: #e74c3c;
    font-weight: 600;
    font-size: 1.1rem;
}

.status-10 { color: #f39c12; }
.status-20 { color: #e74c3c; }
.status-21 { color: #e67e22; }
.status-30 { color: #27ae60; }

.pay-status-10 { color: #e74c3c; }
.pay-status-20 { color: #27ae60; }

.delivery-status-10 { color: #f39c12; }
.delivery-status-20 { color: #3498db; }
.delivery-status-30 { color: #9b59b6; }

.receipt-status-10 { color: #f39c12; }
.receipt-status-20 { color: #27ae60; }

/* 订单详情响应式设计 */
@media (max-width: 768px) {
    .order-detail-content {
        max-width: 98vw;
        width: 98vw;
        max-height: 98vh;
        margin: 1vh auto;
    }
    
    .order-detail-container {
        padding: 20px;
    }
    
    .order-detail-section {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .order-info-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .order-detail-goods-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 15px;
    }
    
    .order-detail-goods-item img {
        width: 120px;
        height: 120px;
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .goods-info {
        width: 100%;
    }
    
    .order-detail-address,
    .order-detail-delivery,
    .extract-shop-info {
        padding: 15px;
    }
}