:root {
            --primary-color: #1a365d;
            --secondary-color: #2d3748;
            --accent-color: #e53e3e;
            --light-bg: #f7fafc;
            --border-color: #e2e8f0;
            --text-color: #2d3748;
            --text-light: #718096;
            --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
            --transition: all 0.3s ease;
        }
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        html {
            scroll-behavior: smooth;
            font-size: 16px;
        }
        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
            line-height: 1.6;
            color: var(--text-color);
            background-color: #fff;
            display: grid;
            grid-template-rows: auto 1fr auto;
            min-height: 100vh;
        }
        a {
            color: var(--primary-color);
            text-decoration: none;
            transition: var(--transition);
        }
        a:hover {
            color: var(--accent-color);
        }
        img {
            max-width: 100%;
            height: auto;
            display: block;
        }
        .container {
            width: 100%;
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }
        .btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 12px 24px;
            background-color: var(--primary-color);
            color: white;
            border: none;
            border-radius: 4px;
            font-weight: 600;
            cursor: pointer;
            transition: var(--transition);
            min-height: 44px;
            min-width: 44px;
        }
        .btn:hover {
            background-color: var(--accent-color);
            transform: translateY(-2px);
        }
        .btn i {
            margin-right: 8px;
        }
        .section {
            padding: 60px 0;
        }
        .section-title {
            font-size: 1.8rem;
            color: var(--primary-color);
            margin-bottom: 30px;
            padding-bottom: 15px;
            border-bottom: 2px solid var(--border-color);
            position: relative;
        }
        .section-title:after {
            content: '';
            position: absolute;
            bottom: -2px;
            left: 0;
            width: 100px;
            height: 2px;
            background-color: var(--accent-color);
        }
        .card {
            background: white;
            border-radius: 8px;
            padding: 24px;
            box-shadow: var(--shadow);
            margin-bottom: 24px;
            border: 1px solid var(--border-color);
        }
        .highlight {
            background-color: #fffaf0;
            border-left: 4px solid var(--accent-color);
            padding: 16px;
            margin: 20px 0;
        }
        .info-box {
            background-color: #ebf8ff;
            border: 1px solid #bee3f8;
            border-radius: 6px;
            padding: 16px;
            margin: 20px 0;
        }
        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: 15px 20px;
        }
        .my-logo {
            font-size: 1.8rem;
            font-weight: 800;
            color: var(--primary-color);
            display: flex;
            align-items: center;
        }
        .my-logo i {
            color: var(--accent-color);
            margin-right: 10px;
        }
        .nav-desktop {
            display: flex;
            gap: 30px;
        }
        .nav-link {
            font-weight: 600;
            position: relative;
            padding: 5px 0;
        }
        .nav-link:after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 0;
            height: 2px;
            background-color: var(--accent-color);
            transition: var(--transition);
        }
        .nav-link:hover:after {
            width: 100%;
        }
        .hamburger {
            display: none;
            font-size: 1.5rem;
            background: none;
            border: none;
            cursor: pointer;
            color: var(--primary-color);
            min-width: 44px;
            min-height: 44px;
        }
        .nav-mobile {
            display: none;
            flex-direction: column;
            background-color: white;
            padding: 20px;
            border-top: 1px solid var(--border-color);
        }
        .nav-mobile.active {
            display: flex;
        }
        .nav-mobile .nav-link {
            padding: 12px 0;
            border-bottom: 1px solid var(--border-color);
        }
        .hero {
            background: linear-gradient(rgba(26, 54, 93, 0.9), rgba(26, 54, 93, 0.8)), url('https://placeholder.com/1600x600') center/cover no-repeat;
            color: white;
            padding: 80px 0;
            text-align: center;
        }
        .hero h1 {
            font-size: 3rem;
            margin-bottom: 20px;
        }
        .hero p {
            font-size: 1.2rem;
            max-width: 800px;
            margin: 0 auto 30px;
            opacity: 0.9;
        }
        main {
            display: grid;
            grid-template-columns: 1fr 300px;
            gap: 40px;
            padding: 40px 20px;
        }
        .content {
            grid-column: 1;
        }
        .sidebar {
            grid-column: 2;
        }
        .sidebar-widget {
            margin-bottom: 30px;
        }
        .toc {
            position: sticky;
            top: 100px;
        }
        .toc ul {
            list-style: none;
        }
        .toc li {
            margin-bottom: 10px;
        }
        .toc a {
            display: block;
            padding: 8px 12px;
            background-color: var(--light-bg);
            border-radius: 4px;
            border-left: 3px solid transparent;
        }
        .toc a:hover, .toc a.active {
            background-color: #e6fffa;
            border-left-color: var(--accent-color);
        }
        .update-log {
            background-color: #f0fff4;
            border: 1px solid #c6f6d5;
        }
        .update-date {
            color: var(--accent-color);
            font-weight: 700;
            margin-bottom: 10px;
        }
        .comment-form, .rating-form {
            margin-top: 30px;
        }
        .form-group {
            margin-bottom: 20px;
        }
        .form-control {
            width: 100%;
            padding: 12px;
            border: 1px solid var(--border-color);
            border-radius: 4px;
            font-size: 1rem;
        }
        textarea.form-control {
            min-height: 120px;
            resize: vertical;
        }
        .star-rating {
            display: flex;
            flex-direction: row-reverse;
            justify-content: flex-end;
            gap: 5px;
        }
        .star-rating input {
            display: none;
        }
        .star-rating label {
            font-size: 1.5rem;
            color: #ddd;
            cursor: pointer;
            transition: var(--transition);
            min-width: 44px;
            min-height: 44px;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .star-rating input:checked ~ label,
        .star-rating label:hover,
        .star-rating label:hover ~ label {
            color: #ffc107;
        }
        .search-box {
            display: flex;
            margin-bottom: 30px;
        }
        .search-box input {
            flex: 1;
            padding: 12px 15px;
            border: 1px solid var(--border-color);
            border-radius: 4px 0 0 4px;
            font-size: 1rem;
        }
        .search-box button {
            border-radius: 0 4px 4px 0;
            border-left: none;
        }
        .social-share {
            display: flex;
            gap: 15px;
            margin: 40px 0;
            justify-content: center;
        }
        .social-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 44px;
            height: 44px;
            border-radius: 50%;
            background-color: var(--light-bg);
            color: var(--primary-color);
            transition: var(--transition);
        }
        .social-btn:hover {
            background-color: var(--primary-color);
            color: white;
            transform: translateY(-3px);
        }
        .back-to-top {
            position: fixed;
            bottom: 30px;
            right: 30px;
            width: 50px;
            height: 50px;
            border-radius: 50%;
            background-color: var(--primary-color);
            color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            opacity: 0;
            visibility: hidden;
            transition: var(--transition);
            z-index: 999;
        }
        .back-to-top.visible {
            opacity: 1;
            visibility: visible;
        }
        .back-to-top:hover {
            background-color: var(--accent-color);
        }
        footer {
            background-color: var(--secondary-color);
            color: white;
            padding: 50px 0 20px;
        }
        .footer-content {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 40px;
            margin-bottom: 40px;
        }
        .footer-section h3 {
            color: white;
            margin-bottom: 20px;
            font-size: 1.2rem;
        }
        .footer-links {
            list-style: none;
        }
        .footer-links li {
            margin-bottom: 10px;
        }
        .footer-links a {
            color: #cbd5e0;
        }
        .footer-links a:hover {
            color: white;
            padding-left: 5px;
        }
        friend-link {
            display: block;
            margin: 10px 0;
            padding: 8px 12px;
            background-color: rgba(255,255,255,0.05);
            border-radius: 4px;
        }
        .copyright {
            text-align: center;
            padding-top: 20px;
            border-top: 1px solid rgba(255,255,255,0.1);
            color: #a0aec0;
            font-size: 0.9rem;
        }
        @media (max-width: 992px) {
            main {
                grid-template-columns: 1fr;
            }
            .sidebar {
                grid-column: 1;
                order: 2;
            }
            .content {
                order: 1;
            }
            .toc {
                position: static;
            }
        }
        @media (max-width: 768px) {
            .nav-desktop {
                display: none;
            }
            .hamburger {
                display: block;
            }
            .hero h1 {
                font-size: 2.2rem;
            }
            .hero p {
                font-size: 1rem;
            }
            .section {
                padding: 40px 0;
            }
            .section-title {
                font-size: 1.5rem;
            }
            .social-share {
                flex-wrap: wrap;
            }
            .back-to-top {
                bottom: 20px;
                right: 20px;
                width: 44px;
                height: 44px;
            }
        }
        @media (max-width: 480px) {
            .container {
                padding: 0 15px;
            }
            .btn {
                padding: 10px 20px;
            }
            .card {
                padding: 16px;
            }
        }
        @media print {
            .nav-desktop, .hamburger, .social-share, .back-to-top, .comment-form, .rating-form, .search-box, footer {
                display: none !important;
            }
            main {
                grid-template-columns: 1fr;
                padding: 0;
            }
            .section {
                padding: 20px 0;
                page-break-inside: avoid;
            }
        }
