:root {
    --primary-color: #1e73be;
    --secondary-color: #0d5a9e;
    --accent-color: #ff6b35;
    --text-color: #333;
    --text-light: #666;
    --text-muted: #999;
    --bg-light: #f8f9fa;
    --bg-white: #fff;
    --border-color: #e9ecef;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --transition: all 0.3s ease;
}

.entry-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-color);
    line-height: 1.4;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary-color);
}

.entry-title:hover {
    color: var(--primary-color);
}

.article-content {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-color);
}

.article-content h2 {
    font-size: 22px;
    font-weight: 600;
    color: var(--text-color);
    margin: 30px 0 15px;
    padding-left: 15px;
    border-left: 4px solid var(--primary-color);
}

.article-content h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color);
    margin: 25px 0 12px;
}

.article-content p {
    margin-bottom: 18px;
    text-align: justify;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    margin: 20px 0;
    transition: var(--transition);
}

.article-content img:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
}

.article-content ul,
.article-content ol {
    margin: 15px 0;
    padding-left: 25px;
}

.article-content li {
    margin-bottom: 8px;
    line-height: 1.8;
}

.article-content blockquote {
    margin: 20px 0;
    padding: 15px 20px;
    background: var(--bg-light);
    border-left: 4px solid var(--primary-color);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-style: italic;
    color: var(--text-light);
}

.article-content a {
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: 1px dashed var(--primary-color);
    transition: var(--transition);
}

.article-content a:hover {
    color: var(--accent-color);
    border-bottom-color: var(--accent-color);
}

.entry-tags {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.entry-tags a {
    display: inline-block;
    padding: 5px 12px;
    margin: 5px;
    background: var(--bg-light);
    color: var(--text-light);
    border-radius: 20px;
    font-size: 13px;
    transition: var(--transition);
    border: none;
}

.entry-tags a:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
}

.product-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    padding: 12px 15px;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    font-size: 14px;
}

.product-meta span {
    color: var(--text-light);
}

.product-meta strong {
    color: var(--text-color);
}

.product-meta time {
    color: var(--text-light);
}

.detail-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    padding: 20px 0;
    margin-top: 30px;
    border-top: 1px solid var(--border-color);
}

.detail-bottom a {
    display: inline-block;
    padding: 10px 20px;
    background: var(--bg-light);
    color: var(--text-color);
    border-radius: var(--radius-md);
    font-size: 14px;
    transition: var(--transition);
    text-decoration: none;
}

.detail-bottom a:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
}

.related {
    margin-top: 40px;
    padding: 25px;
    background: var(--bg-light);
    border-radius: var(--radius-lg);
}

.related h2 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
}

.related h3 {
    font-size: 15px;
    font-weight: 500;
    margin: 0;
}

.related h3 a {
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
}

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

.product-item {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.product-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.portfolio-img img {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
    transition: var(--transition);
}

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

.portfolio-title {
    padding: 12px 15px;
    text-align: center;
}

.breadcrumbs {
    padding: 10px 0;
    font-size: 14px;
    color: var(--text-muted);
}

.breadcrumbs a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
}

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

.showDetailMainB a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    margin: 5px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

.showDetailMainB a:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.showDetailMainB a i {
    font-size: 18px;
}

.qhd-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.qhd-content th,
.qhd-content td {
    padding: 12px 15px;
    text-align: left;
    border: 1px solid var(--border-color);
}

.qhd-content th {
    background: var(--primary-color);
    color: #fff;
    font-weight: 600;
}

.qhd-content tr:nth-child(even) {
    background: var(--bg-light);
}

.qhd-content tr:hover {
    background: rgba(30, 115, 190, 0.05);
}

@media (max-width: 768px) {
    .entry-title {
        font-size: 22px;
    }
    
    .article-content h2 {
        font-size: 18px;
    }
    
    .article-content h3 {
        font-size: 16px;
    }
    
    .product-meta {
        flex-direction: column;
        gap: 8px;
    }
    
    .detail-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .related {
        padding: 15px;
    }
    
    .showDetailMainB a {
        padding: 10px 18px;
        font-size: 13px;
    }
}

@media print {
    .related,
    .detail-bottom,
    .showDetailMainB,
    .consultation {
        display: none;
    }
    
    .article-content {
        font-size: 12pt;
    }
    
    .entry-title {
        font-size: 18pt;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fadeInUp {
    animation: fadeInUp 0.6s ease forwards;
}

::selection {
    background: var(--primary-color);
    color: #fff;
}

::-moz-selection {
    background: var(--primary-color);
    color: #fff;
}

:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

:focus:not(:focus-visible) {
    outline: none;
}

:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: #fff;
    padding: 8px 16px;
    z-index: 1000;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}
