* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
:root {
    --primary: #2c3e50;
    --secondary: #e74c3c;
    --accent: #f39c12;
    --light: #ecf0f1;
    --dark: #2c3e50;
    --text: #333;
    --text-light: #7f8c8d;
    --shadow: 0 4px 12px rgba(0,0,0,0.08);
    --transition: all 0.3s ease;
}
body {
    background-color: #f9f9f9;
    color: var(--text);
    line-height: 1.7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.site-header {
    background-color: var(--primary);
    color: white;
    padding: 1rem 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.my-logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}
.my-logo span {
    color: var(--accent);
}
.breadcrumb {
    background-color: #34495e;
    padding: 0.8rem 0;
    font-size: 0.9rem;
}
.breadcrumb a {
    color: var(--light);
    text-decoration: none;
}
.breadcrumb a:hover {
    color: var(--accent);
}
.main-nav ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}
.main-nav a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    padding: 0.5rem 0;
    position: relative;
}
.main-nav a:hover,
.main-nav a.active {
    color: var(--accent);
}
.main-nav a:hover::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--accent);
}
.hamburger {
    display: none;
    font-size: 1.5rem;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
}
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, #1a2530 100%);
    color: white;
    padding: 3rem 0;
    text-align: center;
    margin-bottom: 2rem;
}
.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}
.hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 1.5rem;
    opacity: 0.9;
}
.search-box {
    max-width: 600px;
    margin: 2rem auto;
    background: white;
    border-radius: 50px;
    padding: 0.5rem;
    display: flex;
    box-shadow: var(--shadow);
}
.search-box input {
    flex: 1;
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    font-size: 1rem;
    outline: none;
}
.search-box button {
    background-color: var(--secondary);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 0 2rem;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}
.search-box button:hover {
    background-color: #c0392b;
}
.main-content {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2.5rem;
    padding: 2rem 0;
}
@media (max-width: 992px) {
    .main-content {
        grid-template-columns: 1fr;
    }
}
.article-content {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}
.article-content h2 {
    color: var(--primary);
    margin: 2rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--accent);
}
.article-content h3 {
    color: var(--dark);
    margin: 1.5rem 0 1rem;
}
.article-content h4 {
    color: var(--text-light);
    margin: 1rem 0 0.5rem;
}
.article-content p {
    margin-bottom: 1.2rem;
    text-align: justify;
}
.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
    box-shadow: var(--shadow);
}
.article-content blockquote {
    border-left: 4px solid var(--accent);
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: var(--text-light);
}
.article-content ul, .article-content ol {
    margin-left: 1.5rem;
    margin-bottom: 1.2rem;
}
.article-content a {
    color: var(--secondary);
    text-decoration: none;
    font-weight: 600;
}
.article-content a:hover {
    text-decoration: underline;
}
.highlight {
    background-color: #fffacd;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.widget {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}
.widget h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--light);
}
.related-links ul {
    list-style: none;
}
.related-links li {
    margin-bottom: 0.8rem;
}
.related-links a {
    color: var(--text);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}
.related-links a:hover {
    color: var(--secondary);
    transform: translateX(5px);
}
.update-time {
    font-size: 0.9rem;
    color: var(--text-light);
    text-align: center;
    padding: 0.5rem;
    background-color: #f8f9fa;
    border-radius: 8px;
}
.comment-section, .rating-section {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-top: 2rem;
}
.comment-section h2, .rating-section h2 {
    color: var(--primary);
    margin-bottom: 1.5rem;
}
.comment-form, .rating-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.form-group {
    display: flex;
    flex-direction: column;
}
.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 600;
}
.form-group input, .form-group textarea, .form-group select {
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
}
.form-group textarea {
    min-height: 120px;
    resize: vertical;
}
.submit-btn {
    background-color: var(--secondary);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    align-self: flex-start;
}
.submit-btn:hover {
    background-color: #c0392b;
}
.stars {
    display: flex;
    gap: 0.5rem;
    font-size: 1.8rem;
    color: #ddd;
    cursor: pointer;
}
.stars .active {
    color: var(--accent);
}
.site-footer {
    background-color: var(--primary);
    color: white;
    padding: 3rem 0 1.5rem;
    margin-top: 3rem;
}
.footer-inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}
.footer-section h3 {
    color: var(--accent);
    margin-bottom: 1.5rem;
}
.footer-section ul {
    list-style: none;
}
.footer-section li {
    margin-bottom: 0.8rem;
}
.footer-section a {
    color: #bdc3c7;
    text-decoration: none;
    transition: var(--transition);
}
.footer-section a:hover {
    color: white;
    padding-left: 5px;
}
friend-link {
    display: block;
    background-color: #34495e;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}
.copyright {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid #34495e;
    color: #95a5a6;
    font-size: 0.9rem;
}
@media (max-width: 768px) {
    .header-inner {
        flex-wrap: wrap;
    }
    .hamburger {
        display: block;
    }
    .main-nav {
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.5s ease;
    }
    .main-nav.active {
        max-height: 300px;
        margin-top: 1rem;
    }
    .main-nav ul {
        flex-direction: column;
        gap: 0;
    }
    .main-nav li {
        width: 100%;
    }
    .main-nav a {
        display: block;
        padding: 0.8rem 0;
        border-bottom: 1px solid #34495e;
    }
    .hero h1 {
        font-size: 2rem;
    }
    .article-content {
        padding: 1.5rem;
    }
}
