/* Base Styles - YBCell 易白生物品牌配色 */
:root {
    --primary: #80cc28;
    --primary-dark: #6aa81f;
    --secondary: #6aa81f;
    --accent-blue: #1EADEF;
    --dark: #1a1a2e;
    --light: #f8f9fa;
    --gray: #6c757d;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "PingFang SC", "Microsoft YaHei";
    color: #333;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

a:hover {
    color: var(--primary);
}

/* Navbar Styles */
.navbar {
    transition: all 0.3s ease;
}

.navbar.scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary) !important;
}

/* Button Styles */
.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #333;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    color: #333;
}

.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline-primary:hover {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #333;
}

/* Card Styles */
.card {
    border-radius: 12px;
    transition: all 0.3s ease;
}

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

/* Section Styles */
section {
    position: relative;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #666;
}

/* Utility Classes */
.text-primary {
    color: var(--primary) !important;
}

.bg-primary {
    background-color: var(--primary) !important;
}

/* Footer Styles */
footer {
    background-color: var(--dark);
}

footer a {
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--primary) !important;
}

/* Pagination */
.pagination .page-link {
    color: var(--primary);
    border-color: #dee2e6;
}

.pagination .page-item.active .page-link {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #333;
}

/* Breadcrumb */
.breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 0;
}

.breadcrumb-item a {
    color: var(--primary);
}

.breadcrumb-item.active {
    color: #666;
}

/* Form Styles */
.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(180, 207, 42, 0.25);
}

/* Badge */
.badge {
    font-weight: 500;
    padding: 0.35em 0.65em;
}

.bg-primary.text-dark {
    color: #333 !important;
}

/* Product Card */
.product-card {
    border-radius: 12px;
    transition: all 0.3s ease;
}

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

/* Animation */
[data-aos] {
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.6s ease, opacity 0.6s ease;
}

[data-aos].aos-animate {
    transform: translateY(0);
    opacity: 1;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #1a1a2e 0%, #0f3460 50%, #1EADEF20 100%);
}

/* Responsive */
@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }

    body {
        padding-top: 60px;
    }
}

/* Price Styles */
.price-section {
    margin: 1.5rem 0;
    padding: 1.25rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    border-left: 4px solid var(--primary);
    border-image: linear-gradient(to bottom, var(--primary), var(--accent-blue)) 1;
}

.price-label {
    font-size: 0.875rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.price-current {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-dark);
    line-height: 1.2;
}

.price-current::before {
    content: '¥';
    font-size: 1.25rem;
    margin-right: 0.25rem;
}

.price-original {
    font-size: 1rem;
    color: #999;
    text-decoration: line-through;
    font-weight: 400;
}

.price-promo-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent-blue) 0%, #0088cc 100%);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    margin-left: 0.5rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.price-range {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.price-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: white;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.price-item-spec {
    font-weight: 500;
    color: #495057;
}

.price-item-amount {
    font-weight: 600;
    color: var(--primary-dark);
}

/* Product Card Price */
.product-card-price {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

.product-card-price .price-current {
    font-size: 1.25rem;
}

.product-card-price .price-promo-badge {
    font-size: 0.625rem;
    padding: 0.15rem 0.5rem;
}

/* Product Card Flex Layout for Alignment */
.product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card .card-footer:last-child {
    margin-top: auto;
}