/* CRC Care Theme Styles */

/* 导入Google字体 */
@import url('https://fonts.googleapis.com/css2?family=Lexend+Deca:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;500;600;700&display=swap');

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family:'Lexend Deca',Helvetica,Arial,Lucida,sans-serif
}
body,
input,
textarea,
select {
  font-family:'Open Sans',Helvetica,Arial,Lucida,sans-serif
}

body {
    color: #333;
    background-color: #f8f9fa;
    font-size: 14px;
}

/* 添加链接样式 */
a {
    color: #03694B;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover, a:focus {
    color: #024a35;
    text-decoration: none;
}

header {
    background-color: #03694B !important;
    color: #fff;
    padding: 20px 0;
}

/* 修改头部链接为白色，避免与背景色冲突 */
header a {
    color: #fff;
}

header a:hover, header a:focus {
    color: #e6e6e6;
}

.crc-care-header h3 {
    color: #fff;
    font-size: 24px;
    margin-bottom: 15px;
}

#logo {
    margin-bottom: 15px;
}

footer {
    background-color: #343a40;
    color: #fff;
    padding: 30px 0;
    margin-top: 30px;
    font-size: 15px;
    font-weight: 500;
}

/* 修改底部链接为浅色，避免与深色背景冲突 */
footer a {
    color: #e6e6e6;
}

footer a:hover, footer a:focus {
    color: #fff;
}

footer h5 {
    font-size: 15px;
}
.btn-primary {
    background-color: #03694B;
    border-color: #03694B;
}

.btn-primary:hover {
    background-color: #B7C1B7;
    border-color: #B7C1B7;
    color:#03694B;
}

.list-group-item.active {
    background-color: #03694B;
    border-color: #03694B;
}

/* 产品价格更新样式 */
.product-price {
    position: relative;
}

.price-loading {
    margin-left: 10px;
    color: #03694B;
}

.price-old {
    text-decoration: line-through;
    color: #999;
    margin-right: 10px;
}

.price-new {
    color: #e74c3c;
    font-weight: bold;
}

.product-tax {
    font-size: 0.9em;
    color: #666;
    margin-top: 5px;
}

.product-points {
    font-size: 0.9em;
    color: #03694B;
    margin-top: 5px;
}

/* 产品选项样式优化 */
.product-option {
    margin-bottom: 15px;
}

.product-option label {
    font-weight: 600;
    margin-bottom: 5px;
    display: block;
}

.product-option select,
.product-option input[type="text"],
.product-option textarea {
    transition: border-color 0.3s ease;
}

.product-option select:focus,
.product-option input[type="text"]:focus,
.product-option textarea:focus {
    border-color: #03694B;
    box-shadow: 0 0 5px rgba(3, 105, 75, 0.3);
}

/* 价格更新动画 */
.product-price .price {
    transition: all 0.3s ease;
}

.product-price.updating .price {
    opacity: 0.6;
}

/* 价格更新成功动画 */
.product-price.price-updated {
    animation: priceUpdate 0.3s ease;
}

@keyframes priceUpdate {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* 价格加载指示器样式 */
.price-loading {
    margin-left: 10px;
    color: #03694B;
    font-size: 14px;
}

.price-loading .fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}