
/* Write Page Specific Styles */
        .write-page {
            background-color: #ffffff;
            min-height: 100vh;
            padding-bottom: 80px;
        }

        .write-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 12px 16px;
            background-color: #ffffff;
            border-bottom: 1px solid #f0f0f0;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            z-index: 100;
            height: 50px;
        }

        .write-header-left {
            display: flex;
            align-items: center;
        }

        .back-btn {
            background: none;
            border: none;
            font-size: 18px;
            color: #333;
            cursor: pointer;
            padding: 8px;
        }

        .write-header-right {
            display: flex;
            align-items: center;
        }

        .preview-btn {
            background: none;
            border: none;
            font-size: 14px;
            color: #666;
            cursor: pointer;
            padding: 8px 12px;
        }

        .write-content {
            margin-top: 50px;
            padding: 16px;
        }

        .image-upload-section {
            margin-bottom: 20px;
        }

        .image-grid {
            display: flex;
            gap: 10px;
            margin-bottom: 16px;
            flex-direction: row;
            flex-wrap: wrap;
        }

        .image-item {
            position: relative;
            width: 85px;
            height: 85px;
            border-radius: 8px;
            overflow: hidden;
            background-color: #f8f8f8;
            border: 1px solid #ddd;
        }

        .image-item img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .image-delete {
            position: absolute;
            top: 4px;
            right: 4px;
            width: 20px;
            height: 20px;
            background-color: rgba(0, 0, 0, 0.6);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
        }

        .image-delete i {
            color: white;
            font-size: 10px;
        }

        .add-image-btn {
            width: 85px;
            height: 85px;
            border: 2px dashed #ddd;
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            background-color: #fafafa;
        }

        .add-image-btn i {
            font-size: 24px;
            color: #ccc;
        }

        .input-section {
            margin-bottom: 20px;
        }

        .title-input {
            width: 100%;
            border: none;
            outline: none;
            font-size: 16px;
            font-weight: 500;
            color: #333;
            background: transparent;
            padding: 12px 0;
            border-bottom: 1px solid #f0f0f0;
            margin-bottom: 16px;
        }

        .title-input::placeholder {
            color: #ccc;
        }

        .content-input {
            width: 100%;
            border: none;
            outline: none;
            font-size: 14px;
            color: #333;
            background: transparent;
            resize: none;
            min-height: 200px;
            line-height: 1.6;
        }

        .content-input::placeholder {
            color: #ccc;
        }

        .bottom-tools {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            background-color: #ffffff;
            border-top: 1px solid #f0f0f0;
            padding: 12px 16px 20px;
        }

        .tools-row {
            display: flex;
            align-items: center;
            margin-bottom: 12px;
        }

        .tool-btn {
            display: flex;
            align-items: center;
            background: none;
            border: none;
            padding: 8px 12px;
            margin-right: 16px;
            cursor: pointer;
            border-radius: 16px;
            background-color: #f8f8f8;
        }

        .tool-btn i {
            font-size: 14px;
            color: #666;
            margin-right: 6px;
        }

        .tool-btn span {
            font-size: 12px;
            color: #666;
        }

        .location-section {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 12px 0;
            border-bottom: 1px solid #f0f0f0;
            margin-bottom: 12px;
        }

        .location-left {
            display: flex;
            align-items: center;
        }

        .location-left i {
            font-size: 16px;
            color: #666;
            margin-right: 12px;
        }

        .location-text {
            font-size: 14px;
            color: #333;
        }

        .location-arrow {
            color: #ccc;
            font-size: 14px;
        }

        .location-tags {
            display: flex;
            gap: 8px;
            margin-bottom: 12px;
            flex-wrap: wrap;
        }

        .location-tag {
            background-color: #f0f0f0;
            color: #666;
            padding: 4px 8px;
            border-radius: 12px;
            font-size: 12px;
        }

        .visibility-section {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 12px 0;
            border-bottom: 1px solid #f0f0f0;
            margin-bottom: 12px;
        }

        .visibility-left {
            display: flex;
            align-items: center;
        }

        .visibility-left i {
            font-size: 16px;
            color: #666;
            margin-right: 12px;
        }

        .visibility-text {
            font-size: 14px;
            color: #333;
        }

        .component-section {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 12px 0;
            margin-bottom: 16px;
        }

        .component-left {
            display: flex;
            align-items: center;
        }

        .component-left i {
            font-size: 16px;
            color: #666;
            margin-right: 12px;
        }

        .component-text {
            font-size: 14px;
            color: #333;
        }

        .component-right {
            font-size: 12px;
            color: #999;
        }

        .bottom-actions {
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .action-buttons {
            display: flex;
            gap: 16px;
        }

        .action-btn {
            background: none;
            border: none;
            cursor: pointer;
            padding: 8px;
        }

        .action-btn i {
            font-size: 20px;
            color: #666;
        }

        .publish-btn {
            background-color: #ff4757;
            color: white;
            border: none;
            padding: 12px 24px;
            border-radius: 20px;
            font-size: 14px;
            font-weight: 500;
            cursor: pointer;
            min-width: 100%;
        }

        .publish-btn:hover {
            background-color: #ff3742;
        }

        .publish-btn:disabled {
            background-color: #ffb3ba;
            cursor: not-allowed;
        }

        /* 分类选择 Chips 样式 */
        .category-choices {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-bottom: 12px;
        }

        .category-chip {
            display: inline-flex;
            align-items: center;
            padding: 8px 12px;
            border-radius: 999px;
            background: #f5f6fa;
            color: #333;
            border: 1px solid #e3e6ef;
            font-size: 14px;
            line-height: 1;
            cursor: pointer;
            user-select: none;
            transition: background-color .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease, transform .08s ease;
        }

        .category-chip:hover {
            background: #ff3742;
            border-color: #ff3742;
            color: #fff;
        }



        .category-chip.active {
            background: #ff3742;
            border-color: #ff3742;
            color: #fff;
            box-shadow: 0 2px 8px rgba(59,130,246,0.35);
        }

        /* 使标题和内容与 Chips 间距协调 */
        .input-section .title-input,
        .input-section .content-input {
            margin-top: 6px;
        }