:root {
    --primary: #1a237e; 
    --primary-light: #534bae;
    --secondary: #d32f2f; 
    --accent: #ffab00; 
    --dark: #121212;
    --light: #f5f7fa;
    --gray: #757575;
    --gray-light: #e0e0e0;
    --success: #388e3c;
    --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-heading: Georgia, 'Times New Roman', Times, serif;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --radius: 8px;
    --transition: all 0.3s ease;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body {
    font-family: var(--font-main);
    line-height: 1.7;
    color: var(--dark);
    background-color: var(--light);
    overflow-x: hidden;
}
a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}
a:hover {
    color: var(--secondary);
}
img {
    max-width: 100%;
    height: auto;
    display: block;
}
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--primary);
}
h1 {
    font-size: 2.8rem;
    margin-top: 1.5rem;
    border-bottom: 3px solid var(--accent);
    padding-bottom: 0.5rem;
}
h2 {
    font-size: 2.2rem;
    margin-top: 2.5rem;
    padding-left: 0.5rem;
    border-left: 5px solid var(--secondary);
}
h3 {
    font-size: 1.8rem;
    margin-top: 2rem;
    color: var(--primary-light);
}
h4 {
    font-size: 1.4rem;
    margin-top: 1.5rem;
    color: var(--gray);
}
p {
    margin-bottom: 1.5rem;
    text-align: justify;
}
.lead {
    font-size: 1.25rem;
    font-weight: 300;
    color: var(--gray);
}
strong {
    color: var(--secondary);
    font-weight: 700;
}
.highlight {
    background-color: rgba(255, 171, 0, 0.15);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}
blockquote {
    border-left: 4px solid var(--accent);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--gray);
}
.site-header {
    background-color: white;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}
.my-logo {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.my-logo:hover {
    color: var(--secondary);
}
.my-logo i {
    color: var(--secondary);
    font-size: 1.8rem;
}
.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}
.main-nav a {
    font-weight: 600;
    padding: 0.5rem 0;
    position: relative;
}
.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary);
    transition: var(--transition);
}
.main-nav a:hover::after {
    width: 100%;
}
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}
.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--primary);
    border-radius: 2px;
    transition: var(--transition);
}
.breadcrumb {
    background-color: #f0f2f5;
    padding: 1rem 20px;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--gray-light);
}
.breadcrumb ul {
    display: flex;
    list-style: none;
    gap: 0.5rem;
}
.breadcrumb li:not(:last-child)::after {
    content: '›';
    margin-left: 0.5rem;
    color: var(--gray);
}
.breadcrumb a {
    color: var(--gray);
}
.breadcrumb a:hover {
    color: var(--primary);
}
.hero-search {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    padding: 3rem 20px;
    text-align: center;
    border-radius: 0 0 var(--radius) var(--radius);
    margin-bottom: 3rem;
}
.hero-search h2 {
    color: white;
    border: none;
    padding: 0;
    margin-bottom: 1.5rem;
}
.search-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}
.search-form input {
    flex-grow: 1;
    padding: 1rem 1.5rem;
    border: none;
    font-size: 1rem;
}
.search-form button {
    background-color: var(--accent);
    color: var(--dark);
    border: none;
    padding: 0 2rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}
.search-form button:hover {
    background-color: #ffb300;
}
.main-content {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
    margin: 2rem auto;
}
.article-content {
    background-color: white;
    padding: 2.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}
.sidebar-widget {
    background-color: white;
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.sidebar-widget h3 {
    font-size: 1.3rem;
    margin-top: 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--gray-light);
}
.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-top: 1px solid var(--gray-light);
    border-bottom: 1px solid var(--gray-light);
    margin-bottom: 2rem;
    font-size: 0.9rem;
    color: var(--gray);
}
.update-time {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.article-image {
    margin: 2.5rem 0;
    text-align: center;
}
.article-image img {
    border-radius: var(--radius);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    margin: 0 auto;
    max-height: 500px;
    object-fit: cover;
}
.image-caption {
    font-size: 0.9rem;
    color: var(--gray);
    margin-top: 0.5rem;
    font-style: italic;
}
.content-links {
    background-color: #f9f9ff;
    padding: 1.5rem;
    border-radius: var(--radius);
    margin: 2rem 0;
    border-left: 4px solid var(--primary);
}
.content-links h4 {
    margin-top: 0;
}
.content-links ul {
    list-style-position: inside;
    color: var(--primary);
}
.content-links li {
    margin-bottom: 0.5rem;
}
.interactive-section {
    margin: 3rem 0;
    padding: 2rem;
    background-color: #f8f9fa;
    border-radius: var(--radius);
    border: 1px solid var(--gray-light);
}
.interactive-section h3 {
    margin-top: 0;
}
.form-group {
    margin-bottom: 1.5rem;
}
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--primary);
}
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--gray-light);
    border-radius: var(--radius);
    font-family: var(--font-main);
    font-size: 1rem;
    transition: var(--transition);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26, 35, 126, 0.1);
}
.rating-stars {
    display: flex;
    gap: 0.5rem;
    font-size: 1.8rem;
    color: var(--gray-light);
    cursor: pointer;
    margin-bottom: 1rem;
}
.rating-stars .star:hover,
.rating-stars .star.active {
    color: var(--accent);
}
.btn {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 0.8rem 1.8rem;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.btn:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}
.btn-accent {
    background-color: var(--accent);
    color: var(--dark);
}
.btn-accent:hover {
    background-color: #ffb300;
}
.comments-list {
    margin-top: 2rem;
}
.comment {
    background-color: white;
    padding: 1.5rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    border-left: 3px solid var(--primary-light);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
    color: var(--gray);
}
.comment-author {
    font-weight: 700;
    color: var(--primary);
}
.comment-rating {
    color: var(--accent);
}
.site-footer {
    background-color: var(--dark);
    color: white;
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
}
.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}
.footer-logo {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: white;
}
.footer-links h4 {
    color: white;
    margin-bottom: 1.2rem;
    font-size: 1.2rem;
}
.footer-links ul {
    list-style: none;
}
.footer-links li {
    margin-bottom: 0.6rem;
}
.footer-links a {
    color: #b0b0b0;
}
.footer-links a:hover {
    color: white;
}
friend-link {
    display: block;
    padding: 1rem;
    background-color: rgba(255,255,255,0.05);
    border-radius: var(--radius);
    margin-bottom: 0.8rem;
    border-left: 3px solid var(--accent);
}
.copyright {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #aaa;
    font-size: 0.9rem;
}
@media (max-width: 992px) {
    .main-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    h1 {
        font-size: 2.4rem;
    }
    h2 {
        font-size: 2rem;
    }
}
@media (max-width: 768px) {
    .header-container {
        flex-wrap: wrap;
    }
    .main-nav {
        display: none;
        width: 100%;
        order: 3;
        margin-top: 1rem;
    }
    .main-nav.active {
        display: block;
    }
    .main-nav ul {
        flex-direction: column;
        gap: 0;
    }
    .main-nav li {
        border-bottom: 1px solid var(--gray-light);
    }
    .main-nav a {
        display: block;
        padding: 1rem 0;
    }
    .hamburger {
        display: flex;
    }
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
    .article-content {
        padding: 1.5rem;
    }
    .hero-search {
        padding: 2rem 20px;
    }
    .search-form {
        flex-direction: column;
        border-radius: var(--radius);
    }
    .search-form input,
    .search-form button {
        width: 100%;
        border-radius: 0;
    }
}
@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }
    h2 {
        font-size: 1.7rem;
    }
    .btn {
        width: 100%;
        justify-content: center;
    }
    .article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.fade-in {
    animation: fadeIn 0.6s ease-out;
}
.text-center {
    text-align: center;
}
.mt-4 { margin-top: 2rem; }
.mb-4 { margin-bottom: 2rem; }
.py-2 { padding-top: 1rem; padding-bottom: 1rem; }
.emoji {
    font-size: 1.2em;
    margin-right: 0.3rem;
}
.divider {
    height: 1px;
    background: linear-gradient(to right, transparent, var(--gray-light), transparent);
    margin: 2.5rem 0;
}
