*,
        *::before,
        *::after {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        :root {
            --primary: #1a3c6e;
            --primary-light: #2a5a9e;
            --primary-dark: #0f2442;
            --accent: #f5a623;
            --accent-light: #ffc857;
            --bg: #f7f9fc;
            --card-bg: #ffffff;
            --text: #1e2a3a;
            --text-light: #4a5a72;
            --border: #dce1e8;
            --radius: 12px;
            --shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
            --font: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
            --max-width: 1200px;
            --header-h: 72px;
        }
        html {
            scroll-behavior: smooth;
            font-size: 16px;
        }
        body {
            font-family: var(--font);
            background: var(--bg);
            color: var(--text);
            line-height: 1.7;
            padding-top: var(--header-h);
            min-height: 100vh;
            display: flex;
            flex-direction: column;
        }
        a {
            color: var(--primary-light);
            text-decoration: none;
            transition: color 0.2s;
        }
        a:hover {
            color: var(--accent);
            text-decoration: underline;
        }
        img {
            max-width: 100%;
            height: auto;
            display: block;
            border-radius: var(--radius);
        }
        .container {
            max-width: var(--max-width);
            margin: 0 auto;
            padding: 0 20px;
        }
        header {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            z-index: 1000;
            background: var(--primary-dark);
            color: #fff;
            height: var(--header-h);
            display: flex;
            align-items: center;
            box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
        }
        header .container {
            display: flex;
            align-items: center;
            justify-content: space-between;
            width: 100%;
        }
        .my-logo {
            font-size: 1.8rem;
            font-weight: 800;
            letter-spacing: -0.5px;
            color: #fff;
            display: flex;
            align-items: center;
            gap: 6px;
            transition: opacity 0.2s;
        }
        .my-logo:hover {
            opacity: 0.9;
            text-decoration: none;
            color: #fff;
        }
        .my-logo i {
            color: var(--accent);
            font-size: 1.6rem;
        }
        .my-logo span {
            background: linear-gradient(135deg, #fff 60%, var(--accent-light));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }
        nav {
            display: flex;
            align-items: center;
            gap: 8px;
        }
        nav a {
            color: rgba(255, 255, 255, 0.85);
            padding: 8px 14px;
            border-radius: 8px;
            font-size: 0.92rem;
            font-weight: 500;
            transition: background 0.2s, color 0.2s;
        }
        nav a:hover {
            background: rgba(255, 255, 255, 0.12);
            color: var(--accent-light);
            text-decoration: none;
        }
        .hamburger {
            display: none;
            background: none;
            border: none;
            color: #fff;
            font-size: 1.6rem;
            cursor: pointer;
            padding: 4px 8px;
            border-radius: 8px;
            transition: background 0.2s;
        }
        .hamburger:hover {
            background: rgba(255, 255, 255, 0.1);
        }
        .mobile-nav {
            display: none;
            position: fixed;
            top: var(--header-h);
            left: 0;
            right: 0;
            background: var(--primary-dark);
            padding: 16px 20px 24px;
            flex-direction: column;
            gap: 6px;
            z-index: 999;
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
            border-top: 1px solid rgba(255, 255, 255, 0.08);
        }
        .mobile-nav.open {
            display: flex;
        }
        .mobile-nav a {
            color: rgba(255, 255, 255, 0.85);
            padding: 10px 14px;
            border-radius: 8px;
            font-size: 1rem;
            font-weight: 500;
            transition: background 0.2s;
        }
        .mobile-nav a:hover {
            background: rgba(255, 255, 255, 0.1);
            text-decoration: none;
            color: var(--accent-light);
        }
        .breadcrumb {
            padding: 16px 0 8px;
            font-size: 0.88rem;
            color: var(--text-light);
            display: flex;
            flex-wrap: wrap;
            gap: 6px 10px;
            align-items: center;
        }
        .breadcrumb a {
            color: var(--primary-light);
        }
        .breadcrumb a:hover {
            color: var(--accent);
        }
        .breadcrumb span {
            color: var(--text);
            font-weight: 500;
        }
        .breadcrumb i {
            font-size: 0.7rem;
            color: var(--text-light);
        }
        main {
            flex: 1;
            padding: 20px 0 60px;
        }
        .article-header {
            margin-bottom: 32px;
            padding-bottom: 20px;
            border-bottom: 2px solid var(--border);
        }
        .article-header h1 {
            font-size: 2.6rem;
            font-weight: 800;
            line-height: 1.2;
            color: var(--primary-dark);
            margin-bottom: 12px;
        }
        .article-header .meta {
            display: flex;
            flex-wrap: wrap;
            gap: 16px 28px;
            font-size: 0.92rem;
            color: var(--text-light);
        }
        .article-header .meta i {
            margin-right: 6px;
            color: var(--accent);
        }
        .article-header .meta .last-updated {
            font-weight: 600;
            color: var(--primary);
        }
        .content {
            display: grid;
            grid-template-columns: 1fr 300px;
            gap: 40px;
        }
        .content-main {
            min-width: 0;
        }
        .content-main h2 {
            font-size: 1.9rem;
            font-weight: 700;
            color: var(--primary-dark);
            margin: 40px 0 16px;
            padding-bottom: 8px;
            border-bottom: 3px solid var(--accent);
            display: inline-block;
        }
        .content-main h3 {
            font-size: 1.45rem;
            font-weight: 600;
            color: var(--primary);
            margin: 28px 0 12px;
        }
        .content-main h4 {
            font-size: 1.15rem;
            font-weight: 600;
            color: var(--text);
            margin: 20px 0 8px;
        }
        .content-main p {
            margin-bottom: 16px;
            font-size: 1.02rem;
            color: var(--text);
        }
        .content-main ul,
        .content-main ol {
            margin: 12px 0 20px 24px;
        }
        .content-main li {
            margin-bottom: 8px;
            font-size: 1.02rem;
        }
        .content-main .feature-box {
            background: var(--card-bg);
            border-left: 4px solid var(--accent);
            padding: 20px 24px;
            border-radius: 0 var(--radius) var(--radius) 0;
            margin: 24px 0;
            box-shadow: var(--shadow);
        }
        .content-main .feature-box h4 {
            margin-top: 0;
        }
        .content-main .img-wrapper {
            margin: 28px 0;
            border-radius: var(--radius);
            overflow: hidden;
            box-shadow: var(--shadow);
            background: var(--card-bg);
        }
        .content-main .img-wrapper img {
            width: 100%;
            object-fit: cover;
        }
        .content-main .img-wrapper figcaption {
            padding: 12px 18px;
            font-size: 0.88rem;
            color: var(--text-light);
            background: var(--card-bg);
            border-top: 1px solid var(--border);
        }
        .sidebar {
            position: sticky;
            top: calc(var(--header-h) + 24px);
            align-self: start;
        }
        .sidebar-card {
            background: var(--card-bg);
            border-radius: var(--radius);
            padding: 20px 22px;
            box-shadow: var(--shadow);
            margin-bottom: 24px;
        }
        .sidebar-card h3 {
            font-size: 1.15rem;
            font-weight: 700;
            color: var(--primary-dark);
            margin-bottom: 12px;
            border-bottom: 2px solid var(--accent);
            padding-bottom: 6px;
            display: inline-block;
        }
        .sidebar-card ul {
            list-style: none;
            padding: 0;
            margin: 0;
        }
        .sidebar-card li {
            padding: 6px 0;
            border-bottom: 1px solid var(--border);
            font-size: 0.95rem;
        }
        .sidebar-card li:last-child {
            border-bottom: none;
        }
        .sidebar-card li a {
            color: var(--primary-light);
            font-weight: 500;
        }
        .sidebar-card li a:hover {
            color: var(--accent);
        }
        .form-section {
            margin: 40px 0;
            padding: 28px 30px;
            background: var(--card-bg);
            border-radius: var(--radius);
            box-shadow: var(--shadow);
        }
        .form-section h3 {
            font-size: 1.4rem;
            font-weight: 700;
            color: var(--primary-dark);
            margin-bottom: 16px;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        .form-section h3 i {
            color: var(--accent);
        }
        .form-group {
            margin-bottom: 16px;
        }
        .form-group label {
            display: block;
            font-weight: 600;
            font-size: 0.95rem;
            margin-bottom: 4px;
            color: var(--text);
        }
        .form-group input,
        .form-group textarea,
        .form-group select {
            width: 100%;
            padding: 12px 16px;
            border: 2px solid var(--border);
            border-radius: 8px;
            font-size: 1rem;
            font-family: var(--font);
            transition: border-color 0.2s;
            background: var(--bg);
        }
        .form-group input:focus,
        .form-group textarea:focus,
        .form-group select:focus {
            outline: none;
            border-color: var(--primary-light);
        }
        .form-group textarea {
            min-height: 100px;
            resize: vertical;
        }
        .btn {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 12px 28px;
            border: none;
            border-radius: 8px;
            font-size: 1rem;
            font-weight: 600;
            cursor: pointer;
            transition: background 0.2s, transform 0.1s;
            background: var(--primary);
            color: #fff;
        }
        .btn:hover {
            background: var(--primary-light);
            transform: translateY(-1px);
        }
        .btn i {
            font-size: 0.95rem;
        }
        .btn-accent {
            background: var(--accent);
            color: var(--primary-dark);
        }
        .btn-accent:hover {
            background: var(--accent-light);
        }
        .star-rating {
            display: flex;
            gap: 6px;
            font-size: 1.6rem;
            color: var(--border);
            cursor: pointer;
            direction: rtl;
        }
        .star-rating i {
            transition: color 0.15s;
        }
        .star-rating i.active,
        .star-rating i:hover,
        .star-rating i:hover~i {
            color: var(--accent);
        }
        footer {
            background: var(--primary-dark);
            color: rgba(255, 255, 255, 0.85);
            padding: 40px 0 24px;
            margin-top: 40px;
        }
        footer .container {
            display: grid;
            grid-template-columns: 2fr 1fr 1fr;
            gap: 32px;
        }
        footer h4 {
            color: #fff;
            font-size: 1.1rem;
            margin-bottom: 12px;
            font-weight: 700;
        }
        footer a {
            color: rgba(255, 255, 255, 0.75);
        }
        footer a:hover {
            color: var(--accent-light);
        }
        footer .footer-links {
            list-style: none;
            padding: 0;
            margin: 0;
        }
        footer .footer-links li {
            padding: 4px 0;
        }
        footer .copyright {
            grid-column: 1 / -1;
            border-top: 1px solid rgba(255, 255, 255, 0.12);
            padding-top: 20px;
            margin-top: 16px;
            text-align: center;
            font-size: 0.88rem;
            color: rgba(255, 255, 255, 0.6);
        }
        friend-link {
            display: block;
            margin-top: 8px;
            padding: 8px 12px;
            background: rgba(255, 255, 255, 0.05);
            border-radius: 8px;
            font-size: 0.92rem;
        }
        friend-link a {
            color: var(--accent-light);
            font-weight: 500;
        }
        friend-link a:hover {
            color: #fff;
        }
        @media (max-width: 992px) {
            .content {
                grid-template-columns: 1fr;
            }
            .sidebar {
                position: static;
                display: grid;
                grid-template-columns: 1fr 1fr;
                gap: 20px;
            }
            .sidebar-card {
                margin-bottom: 0;
            }
            footer .container {
                grid-template-columns: 1fr 1fr;
            }
        }
        @media (max-width: 768px) {
            :root {
                --header-h: 64px;
            }
            .article-header h1 {
                font-size: 1.8rem;
            }
            .content-main h2 {
                font-size: 1.5rem;
            }
            .content-main h3 {
                font-size: 1.2rem;
            }
            nav a {
                display: none;
            }
            .hamburger {
                display: block;
            }
            .sidebar {
                grid-template-columns: 1fr;
            }
            footer .container {
                grid-template-columns: 1fr;
                gap: 20px;
            }
            .form-section {
                padding: 20px;
            }
            .breadcrumb {
                font-size: 0.82rem;
            }
            .my-logo {
                font-size: 1.4rem;
            }
        }
        @media (max-width: 480px) {
            .article-header h1 {
                font-size: 1.5rem;
            }
            .content-main p {
                font-size: 0.98rem;
            }
            .container {
                padding: 0 14px;
            }
        }
        h2[id]::before,
        h3[id]::before,
        h4[id]::before {
            content: '';
            display: block;
            height: calc(var(--header-h) + 12px);
            margin-top: calc(-1 * var(--header-h) - 12px);
            visibility: hidden;
        }
