* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
html {
    scroll-behavior: smooth;
}
body {
    background-color: #0a0e17;
    color: #e0e0e0;
    line-height: 1.7;
    overflow-x: hidden;
    max-width: 100%;
}
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}
img {
    max-width: 100%;
    height: auto;
    display: block;
}
a {
    color: #ff4655;
    text-decoration: none;
    transition: all 0.3s ease;
}
a:hover {
    color: #ff7b85;
    text-decoration: underline;
}
h1, h2, h3, h4 {
    color: #fff;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
}
h1 {
    font-size: 3.5rem;
    background: linear-gradient(90deg, #ff4655, #00ccff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-top: 1.5rem;
}
h2 {
    font-size: 2.5rem;
    color: #00ccff;
    border-left: 5px solid #ff4655;
    padding-left: 15px;
    margin-top: 3rem;
}
h3 {
    font-size: 1.8rem;
    color: #ffcc00;
    margin-top: 2.5rem;
}
h4 {
    font-size: 1.4rem;
    color: #9dff00;
    margin-top: 2rem;
}
p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    text-align: justify;
}
strong {
    color: #ffcc00;
    font-weight: 700;
}
em {
    color: #9dff00;
    font-style: italic;
}
blockquote {
    border-left: 4px solid #ff4655;
    padding-left: 20px;
    margin: 2rem 0;
    font-style: italic;
    background: rgba(255, 70, 85, 0.05);
    padding: 1.5rem;
    border-radius: 0 10px 10px 0;
}
.site-header {
    background: linear-gradient(180deg, #1a1f2e 0%, #0a0e17 100%);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.my-logo {
    font-family: 'Impact', sans-serif;
    font-size: 2.2rem;
    background: linear-gradient(45deg, #ff4655, #00ccff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}
.my-logo a {
    color: inherit;
    text-decoration: none;
}
.my-logo a:hover {
    text-decoration: none;
}
.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}
.main-nav a {
    color: #b0b0b0;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 5px;
}
.main-nav a:hover, .main-nav a.active {
    color: #fff;
    background: rgba(255, 70, 85, 0.2);
    text-decoration: none;
}
.hamburger {
    display: none;
    font-size: 1.8rem;
    background: none;
    border: none;
    color: #ff4655;
    cursor: pointer;
}
.breadcrumb {
    padding: 1rem 0;
    font-size: 0.9rem;
    color: #aaa;
}
.breadcrumb a {
    color: #00ccff;
}
.breadcrumb span {
    color: #ff4655;
}
.search-section {
    background: rgba(26, 31, 46, 0.8);
    padding: 2rem;
    border-radius: 10px;
    margin: 2rem 0;
    text-align: center;
}
.search-form {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
}
.search-form input {
    flex-grow: 1;
    padding: 1rem;
    border: 2px solid #ff4655;
    border-radius: 5px 0 0 5px;
    background: #1a1f2e;
    color: #fff;
    font-size: 1rem;
}
.search-form button {
    background: #ff4655;
    color: white;
    border: none;
    padding: 0 1.5rem;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    font-size: 1.2rem;
    transition: background 0.3s;
}
.search-form button:hover {
    background: #ff2a3d;
}
.main-content {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
    margin: 2rem 0;
}
.article-content {
    background: rgba(26, 31, 46, 0.7);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}
.widget {
    background: rgba(26, 31, 46, 0.9);
    padding: 1.5rem;
    border-radius: 10px;
    border-top: 4px solid #00ccff;
}
.widget h3 {
    font-size: 1.4rem;
    margin-top: 0;
    margin-bottom: 1rem;
    color: #ffcc00;
}
.related-links ul {
    list-style: none;
}
.related-links li {
    margin-bottom: 0.8rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px dashed #333;
}
.related-links a {
    display: block;
    color: #b0b0b0;
}
.related-links a:hover {
    color: #ff4655;
    padding-left: 5px;
}
.featured-image {
    margin: 2.5rem 0;
    text-align: center;
}
.featured-image img {
    border-radius: 10px;
    border: 3px solid #ff4655;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    margin: 0 auto;
}
.featured-image figcaption {
    font-style: italic;
    color: #aaa;
    margin-top: 0.5rem;
}
.info-box {
    background: linear-gradient(135deg, #1a2b4a, #0d1525);
    padding: 2rem;
    border-radius: 10px;
    margin: 2.5rem 0;
    border-left: 6px solid #ffcc00;
}
.info-box h3 {
    color: #ffcc00;
    margin-top: 0;
}
.info-box ul {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}
.rating-section, .comment-section {
    background: rgba(26, 31, 46, 0.9);
    padding: 2rem;
    border-radius: 10px;
    margin-top: 3rem;
}
.rating-form, .comment-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.stars {
    display: flex;
    gap: 0.5rem;
    font-size: 2rem;
    color: #555;
    cursor: pointer;
}
.stars .star:hover,
.stars .star.active {
    color: #ffcc00;
}
.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.form-group label {
    font-weight: 600;
    color: #b0b0b0;
}
.form-group input,
.form-group textarea,
.form-group select {
    padding: 0.8rem;
    background: #1a1f2e;
    border: 1px solid #444;
    border-radius: 5px;
    color: #fff;
    font-size: 1rem;
}
.form-group textarea {
    min-height: 150px;
    resize: vertical;
}
.submit-btn {
    background: linear-gradient(90deg, #ff4655, #ff2a3d);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    align-self: flex-start;
    transition: transform 0.3s;
}
.submit-btn:hover {
    transform: scale(1.05);
    text-decoration: none;
}
.site-footer {
    background: #0d111f;
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
    border-top: 3px solid #ff4655;
}
.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}
.footer-widget h4 {
    color: #00ccff;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
}
friend-link {
    display: block;
    margin-bottom: 1rem;
    color: #9dff00;
}
friend-link a {
    color: inherit;
}
.copyright {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid #333;
    color: #777;
    font-size: 0.9rem;
}
.update-time {
    color: #ff4655;
    font-weight: bold;
}
@media (max-width: 1024px) {
    h1 { font-size: 2.8rem; }
    h2 { font-size: 2.2rem; }
    .main-content {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 768px) {
    .header-container {
        flex-wrap: wrap;
    }
    .hamburger {
        display: block;
    }
    .main-nav {
        display: none;
        width: 100%;
        order: 3;
        margin-top: 1rem;
    }
    .main-nav.active {
        display: block;
    }
    .main-nav ul {
        flex-direction: column;
        gap: 0.5rem;
    }
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    .article-content, .search-section, .rating-section, .comment-section {
        padding: 1.5rem;
    }
}
@media (max-width: 480px) {
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.5rem; }
    .search-form {
        flex-direction: column;
    }
    .search-form input, .search-form button {
        border-radius: 5px;
        width: 100%;
    }
    .search-form button {
        margin-top: 0.5rem;
        padding: 0.8rem;
    }
}
