/* 活动页面样式 */
.activity-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* 活动标题 */
.activity-header {
    text-align: center;
    margin-bottom: 40px;
}

.activity-header h1 {
    font-size: 32px;
    font-weight: bold;
    color: #333;
    margin: 0;
}

/* 活动产品卡片 */
.activity-product-card {
    display: flex;
    background-color: #f5d7a8;
    border: 1px solid #e0c497;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 50px;
    min-height: 160px;
}

/* 左侧产品信息区 */
.product-info {
    flex: 1;
    padding: 20px 24px;
    border-right: 1px solid #e0c497;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* 产品标题区域 */
.product-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    justify-content: center;
}



.product-title {
    font-size: 20px;
    font-weight: bold;
    color: #333;
}

.product-features {
    font-size: 12px;
    color: #e74c3c;
    font-weight: bold;
}

/* 产品规格区域 */
.product-specs {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 8px;
    position: relative;
    padding-bottom: 12px;
}

.specs-title {
    font-size: 17px;
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
}

.product-specs::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background-color: #e0c497;
}

.spec-row {
    display: flex;
    gap: 40px;
    align-items: center;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.spec-label {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.spec-value {
    font-size: 14px;
    color: #333;
    font-weight: bold;
}

/* 右侧价格操作区 */
.product-price {
    width: 400px;
    padding: 20px 24px;
    background-color: #f0c987;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}

/* 拼团价标签 */
.group-buy-tag {
    display: flex;
    align-items: center;
    align-self: flex-start;
    margin-bottom: 16px;
    border-radius: 4px;
    overflow: hidden;
    font-family: 'Microsoft YaHei', sans-serif;
    box-shadow: none;
    border: 1px solid #A84600;
}

.tag-icon {
    background-color: #A84600;
    padding: 4px 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    line-height: 1;
}

.tag-text {
    background-color: #FDDCC4;
    border: none;
    padding: 4px 8px;
    display: flex;
    align-items: center;
    line-height: 1;
}

.tag-text span {
    font-size: 12px;
    font-weight: 500;
    color: #6D4C41;
    letter-spacing: 0;
}

.discount-tag {
    background-color: #FF3B30;
    padding: 4px 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    border-left: 1px solid #A84600;
}

/* 价格信息 */
.price-info {
    display: flex;
    align-items: baseline;
    gap: 20px;
    margin-bottom: 12px;
}

.current-price {
    font-size: 36px;
    font-weight: bold;
    color: #e74c3c;
}

.price-unit {
    font-size: 14px;
    font-weight: normal;
    color: #333;
    margin-left: 4px;
}

.original-price {
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
}

/* 限制说明 */
.price-note {
    border: 1px solid #e74c3c;
    border-radius: 2px;
    padding: 6px 12px;
    margin-bottom: 16px;
    align-self: flex-start;
}

.price-note {
    font-size: 12px;
    color: #e74c3c;
    font-weight: 500;
    line-height: 1.3;
}

/* 参团按钮 */
.buy-btn {
    align-self: center;
    width: 100%;
    display: flex;
    justify-content: center;
}

.buy-btn button {
    background-color: #8b4513;
    color: white;
    border: none;
    padding: 10px 40px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 160px;
}

.buy-btn button:hover {
    background-color: #a0522d;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .activity-product-card {
        flex-direction: column;
        min-height: auto;
    }
    
    .product-info {
        border-right: none;
        border-bottom: 1px solid #e0c497;
    }
    
    .product-price {
        width: 100%;
    }
    
    .spec-row {
        flex-wrap: wrap;
        gap: 20px;
    }
    
    .product-header {
        flex-wrap: wrap;
    }
}

/* 活动规则 */
.activity-rules {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 30px;
    border: 1px solid #eee;
}

.activity-rules h2 {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
}

.activity-rules ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.activity-rules li {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.activity-rules li:before {
    content: "（" counter(item) "）";
    counter-increment: item;
    position: absolute;
    left: 0;
    color: #666;
}

.activity-rules ul {
    counter-reset: item;
}

/* 导航栏活动中心高亮 */
.nav-item a.active {
    color: #0066ff;
    font-weight: bold;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .activity-product-card {
        flex-direction: column;
    }
    
    .product-info {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    }
    
    .product-price {
        width: 100%;
        align-items: center;
    }
    
    .spec-row {
        flex-direction: column;
        gap: 10px;
    }
    
    .price-tag {
        align-self: center;
    }
    
    .buy-btn {
        align-self: center;
    }
}

/* 产品规格下单框 */
.product-spec-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.product-spec-modal.active {
    display: flex;
}

.modal-content {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e8e8e8;
}

.modal-header h2 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    color: #333;
}

.modal-body {
    padding: 20px;
}

.modal-note {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.note-icon {
    font-size: 16px;
    margin-right: 8px;
    margin-top: 2px;
}

.note-text {
    font-size: 14px;
    color: #ff4d4f;
    line-height: 20px;
}

.ping-note {
    font-size: 14px;
    color: #ff7a45;
    margin-bottom: 20px;
}

.spec-item {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.spec-item label {
    font-size: 14px;
    color: #333;
    width: 100px;
    flex-shrink: 0;
}

.line-options {
    display: flex;
    gap: 10px;
}

.line-btn {
    padding: 6px 16px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    background-color: #fff;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    transition: all 0.3s;
}

.line-btn.active {
    background-color: #8c6d3f;
    color: #fff;
    border-color: #8c6d3f;
}

.line-btn:hover:not(.active) {
    border-color: #8c6d3f;
    color: #8c6d3f;
}

.os-select,
.os-version-select {
    padding: 8px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 14px;
    margin-right: 10px;
    min-width: 180px;
}

.price-info {
    margin-top: 30px;
    margin-bottom: 30px;
}

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

.price-label {
    font-size: 14px;
    color: #333;
}

.price-value {
    font-size: 24px;
    font-weight: 600;
    color: #ff4d4f;
}

.discount-tag {
    background-color: #ff7a45;
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.original-price {
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
}

.modal-footer {
    padding: 20px;
    border-top: 1px solid #e8e8e8;
    display: flex;
    justify-content: center;
}

.buy-now-btn {
    background-color: #8c6d3f;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 12px 48px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.buy-now-btn:hover {
    background-color: #7a5d32;
    transform: translateY(-2px);
}

/* 活动产品购买查询按钮 */
.query-button-container {
    display: flex;
    justify-content: center;
    margin: 30px 0;
}

.query-btn {
    padding: 8px 80px;
    background-color: white;
    color: #333;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: none;
    position: relative;
    overflow: hidden;
    display: inline-block;
    user-select: none;
}

.query-btn:hover {
    background-color: #fafafa;
    border-color: #d9d9d9;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transform: translateY(-1px);
}

.query-btn:active {
    transform: scale(0.96) translateY(0);
    background-color: #f0f0f0;
    box-shadow: none;
    transition: all 0.1s ease;
}

/* 活动产品购买查询模态框 */
.query-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none !important;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.query-modal.active {
    display: flex !important;
}

.query-modal .modal-content {
    background-color: white;
    border-radius: 8px;
    width: 95%;
    max-width: 1400px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.query-modal .modal-header {
    padding: 20px;
    border-bottom: 1px solid #e8e8e8;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.query-modal .modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.query-modal .close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.query-modal .close-btn:hover {
    color: #333;
}

.query-modal .modal-body {
    padding: 20px;
}

.query-table-container {
    overflow-x: auto;
}

.query-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    border: 1px solid #e8e8e8;
}

.query-table th,
.query-table td {
    padding: 12px;
    text-align: center !important;
    border: 1px solid #e8e8e8;
}

.query-table th {
    background-color: #fafafa;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
    text-align: center !important;
}

.query-table td {
    color: #666;
    vertical-align: middle !important;
    text-align: center !important;
}

.query-table td div {
    text-align: center !important;
    margin: 0 auto;
    display: block;
}

.query-table td:first-child {
    font-weight: 500;
    color: #333;
}

.query-table .status-success {
    color: #52c41a;
    font-weight: 500;
}

.query-table .status-danger {
    color: #ff4d4f;
    font-weight: 500;
}

.query-table .status-warning {
    color: #faad14;
    font-weight: 500;
}

.query-table .detail-link {
    color: #1890ff;
    text-decoration: none;
    cursor: pointer;
}

.query-table .detail-link:hover {
    text-decoration: underline;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .query-button-container {
        margin: 20px 0;
    }
    
    .query-btn {
        padding: 10px 24px;
        font-size: 14px;
    }
    
    .query-modal .modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .query-table {
        font-size: 12px;
    }
    
    .query-table th,
    .query-table td {
        padding: 8px;
    }
}