     /* 全局样式 */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        body {
            background-color: #fafafa;
            font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
            color: #333;
            font-size: 14px;
            line-height: 1.6;
            display: flex;
            flex-direction: column;
            min-height: 100vh;
        }
        .container {
            max-width: 100%;
            padding: 0 15px;
            margin: 0 auto;
        }

        /* 1. 顶部导航栏 */
        .top-nav {
            background-color: #dc3545;
            color: #fff;
            padding: 12px 15px;
            width: 100%;
            position: sticky;
            top: 0;
            z-index: 100;
            box-shadow: 0 1px 3px rgba(0,0,0,0.1);
        }
        .top-nav-container {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        .nav-logo {
            font-size: 18px;
            font-weight: bold;
            display: flex;
            align-items: center;
            text-decoration: none;
            color: white;
        }
        .nav-logo i {
            margin-right: 8px;
        }
        .nav-user {
            display: flex;
            align-items: center;
            gap: 12px;
        }
        .nav-user span {
            font-size: 13px;
            display: none;
        }
        @media (min-width: 576px) {
            .nav-user span {
                display: inline;
            }
        }
        .nav-points {
            background-color: #fff;
            color: #dc3545;
            padding: 3px 10px;
            border-radius: 12px;
            font-size: 12px;
            font-weight: bold;
            display: flex;
            align-items: center;
            gap: 4px;
        }
        .nav-btn {
            color: #fff;
            text-decoration: none;
            font-size: 13px;
            display: flex;
            align-items: center;
            gap: 4px;
            padding: 3px 8px;
            border-radius: 4px;
            transition: background-color 0.2s;
        }
        .nav-btn:hover {
            background-color: rgba(255,255,255,0.1);
            color: white;
        }
        .nav-admin {
            background-color: #ffc107;
            color: #333;
            padding: 3px 10px;
            border-radius: 4px;
            font-size: 12px;
            font-weight: bold;
            text-decoration: none;
            white-space: nowrap;
            transition: background-color 0.2s;
        }
        .nav-admin:hover {
            background-color: #e6b200;
            color: #333;
        }

        /* 2. 消息提示 */
        .alert {
            padding: 10px 15px;
            margin: 15px auto;
            border-radius: 4px;
            max-width: 800px;
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 13px;
        }
        .alert-success {
            background-color: #d1e7dd;
            color: #0f5132;
            border: 1px solid #badbcc;
        }
        .alert-error {
            background-color: #f8d7da;
            color: #842029;
            border: 1px solid #f5c2c7;
        }

        /* 3. 文章内容区域 - 调整为占满空间 */
        .article-wrapper {
            flex: 1;
            display: flex;
            flex-direction: column;
        }
        .article-container {
            max-width: 800px;
            width: 100%;
            margin: 15px auto;
            padding: 0 15px;
            flex: 1;
            display: flex;
            flex-direction: column;
        }
        .article-card {
            background-color: #fff;
            border-radius: 8px;
            box-shadow: 0 2px 5px rgba(0,0,0,0.03);
            padding: 15px;
            margin-bottom: 15px;
            flex: 1;
            display: flex;
            flex-direction: column;
        }
        .article-title {
            font-size: 18px;
            font-weight: bold;
            color: #333;
            margin-bottom: 12px;
            line-height: 1.4;
            padding-bottom: 10px;
            border-bottom: 1px solid #f0f0f0;
        }
        .article-meta {
            display: flex;
            flex-wrap: wrap;
            gap: 12px;
            font-size: 12px;
            color: #999;
            margin-bottom: 15px;
            align-items: center;
        }
        .article-meta i {
            margin-right: 4px;
            color: #dc3545;
        }
        .article-price {
            font-size: 14px;
            font-weight: bold;
            color: #dc3545;
            display: flex;
            align-items: center;
            gap: 4px;
        }
        .article-free {
            font-size: 14px;
            font-weight: bold;
            color: #28a745;
            display: flex;
            align-items: center;
            gap: 4px;
        }

        /* 文章内容样式 */
        .article-content {
            font-size: 14px;
            color: #333;
            line-height: 1.8;
            padding: 10px 0;
            flex: 1; /* 内容区域占满剩余空间 */
        }
        .article-content p {
            margin-bottom: 15px;
            text-indent: 2em;
        }
        .article-excerpt {
            background-color: #fff8e1;
            border-left: 3px solid #ffc107;
            padding: 12px 15px;
            margin-bottom: 20px;
            border-radius: 0 4px 4px 0;
            font-size: 13px;
            color: #666;
            flex: 1;
        }

        /* 4. 购买区域样式 */
        .purchase-area {
            text-align: center;
            padding: 20px 15px;
            background-color: #fff;
            border-radius: 8px;
            box-shadow: 0 2px 5px rgba(0,0,0,0.03);
            margin-bottom: 15px;
            flex: 1;
            display: flex;
            flex-direction: column;
            justify-content: center;
        }
        .purchase-title {
            font-size: 16px;
            font-weight: bold;
            color: #dc3545;
            margin-bottom: 15px;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }
        .purchase-btn {
            background-color: #dc3545;
            color: #fff;
            border: none;
            padding: 8px 25px;
            border-radius: 4px;
            font-size: 14px;
            font-weight: bold;
            transition: all 0.2s ease;
            margin: 0 5px;
            display: inline-flex;
            align-items: center;
            gap: 6px;
            cursor: pointer;
        }
        .purchase-btn:hover {
            background-color: #c82333;
            color: #fff;
        }
        .purchase-btn:disabled {
            background-color: #e36c78;
            cursor: not-allowed;
        }
        .login-btn {
            background-color: #fff;
            color: #dc3545;
            border: 1px solid #dc3545;
            padding: 8px 25px;
            border-radius: 4px;
            font-size: 14px;
            font-weight: bold;
            transition: all 0.2s ease;
            margin: 0 5px;
            display: inline-flex;
            align-items: center;
            gap: 6px;
            text-decoration: none;
        }
        .login-btn:hover {
            background-color: #dc3545;
            color: #fff;
        }

        /* 5. 操作按钮 */
        .action-buttons {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-top: 20px;
            padding-top: 15px;
            border-top: 1px solid #f0f0f0;
        }
        .back-btn {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            color: #dc3545;
            text-decoration: none;
            font-size: 13px;
            padding: 6px 15px;
            border: 1px solid #dc3545;
            border-radius: 4px;
            transition: all 0.2s ease;
        }
        .back-btn:hover {
            background-color: #dc3545;
            color: #fff;
        }
        .admin-actions {
            display: flex;
            gap: 10px;
        }
        .edit-btn {
            background-color: #28a745;
            color: white;
            border: none;
            padding: 6px 12px;
            border-radius: 4px;
            font-size: 13px;
            display: flex;
            align-items: center;
            gap: 4px;
            cursor: pointer;
            transition: background-color 0.2s;
        }
        .edit-btn:hover {
            background-color: #218838;
        }
        .delete-btn {
            background-color: #dc3545;
            color: white;
            border: none;
            padding: 6px 12px;
            border-radius: 4px;
            font-size: 13px;
            display: flex;
            align-items: center;
            gap: 4px;
            cursor: pointer;
            transition: background-color 0.2s;
        }
        .delete-btn:hover {
            background-color: #c82333;
        }

        /* 6. 页脚样式 - 向下移动 */
        .footer {
            background-color: #333;
            color: #ccc;
            padding: 25px 0; /* 增加内边距使底部下移 */
            width: 100%;
            margin-top: 40px; /* 增加与内容的距离 */
        }
        .footer-content {
            max-width: 100%;
            margin: 0 auto;
            font-size: 12px;
            text-align: center;
            padding: 0 15px;
        }

        /* 7. 模态框美化 */
        .modal-header {
            background-color: #dc3545;
            color: #fff;
            padding: 10px 15px;
        }
        .modal-title {
            font-size: 16px;
            font-weight: bold;
        }
        .modal-body {
            font-size: 14px;
            color: #333;
            padding: 15px;
        }
        .modal-footer {
            padding: 10px 15px;
            border-top: 1px solid #eee;
        }
        .modal-footer .btn {
            font-size: 13px;
            padding: 6px 14px;
            border-radius: 4px;
        }
        .btn-points {
            background-color: #dc3545;
            color: #fff;
            border-color: #dc3545;
        }
        .btn-points:hover {
            background-color: #c82333;
            color: #fff;
        }
        .btn-recharge {
            background-color: #ffc107;
            color: #333;
            border-color: #ffc107;
        }
        .btn-recharge:hover {
            background-color: #e0a800;
            color: #333;
        }

        /* 8. 动画效果 */
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(10px); }
            to { opacity: 1; transform: translateY(0); }
        }
        .animate-fadeIn {
            animation: fadeIn 0.3s ease forwards;
        }

        /* 9. 响应式适配 */
        @media (max-width: 360px) {
            .purchase-btn, .login-btn {
                display: block;
                width: 100%;
                margin: 5px 0;
                justify-content: center;
            }
            .action-buttons {
                flex-direction: column;
                gap: 10px;
                align-items: flex-start;
            }
            .admin-actions {
                width: 100%;
                justify-content: space-between;
            }
        }