:root {
    --bg-body: #f5f6f8;
    --bg-white: #ffffff;
    --bg-topbar: #3d4556;
    --bg-footer: #3d4556;
    --bg-friend-box: #343b4b;
    --text-main: #334155;
    --text-sub: #475569;
    --text-desc: #94a3b8;
    --color-primary: #3b82f6;
    --color-success: #10b981;
    --max-width: 1330px;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    outline: none;
}

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 16px;
}

.top-bar {
    background-color: var(--bg-topbar);
    color: #b8c4d8;
    font-size: 11px;
    padding: 8px 0;
    letter-spacing: 0.5px;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.direct-switch {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    user-select: none;
}

.direct-switch span {
    font-size: 11px;
    color: #b8c4d8;
    transition: color 0.3s;
}

.direct-switch:hover span {
    color: #fff;
}

.switch-track {
    position: relative;
    width: 28px;
    height: 14px;
    border-radius: 10px;
    background-color: #64748b;
    transition: 0.3s;
}

.switch-track.active {
    background-color: var(--color-success);
}

.switch-dot {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 10px;
    height: 10px;
    background-color: #fff;
    border-radius: 50%;
    transition: transform 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.switch-track.active .switch-dot {
    transform: translateX(14px);
}

.site-header {
    background: var(--bg-white);
    padding: 14px 0;
    border-bottom: 1px solid #ebebeb;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 10px;
    order: 1;
}

.logo-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #fbd38d;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.logo-text h1 {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.2;
    letter-spacing: 0.2px;
}

.logo-text p {
    font-size: 11px;
    color: #94a3b8;
    white-space: nowrap;
    letter-spacing: 0.2px;
}

.header-nav {
    display: flex;
    gap: 16px;
    align-items: center;
    order: 2;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.nav-item img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.nav-item span {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-sub);
    letter-spacing: 0.3px;
}

.header-search {
    order: 3;
    width: 100%;
    margin-top: 16px;
}

#search-box-pill {
    display: flex;
    align-items: center;
    width: 100%;
    height: 44px;
    background: var(--bg-white);
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 0 10px;
    transition: 0.3s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
    position: relative;
}

#search-box-pill:focus-within {
    border-color: var(--color-primary);
}

.search-btn-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    cursor: pointer;
}

.search-btn-icon:hover {
    color: var(--color-primary);
}

#main-search {
    flex: 1;
    height: 100%;
    border: none;
    background: transparent;
    font-size: 14px;
    font-weight: 500;
    outline: none;
    padding: 0 8px;
}

.search-engine-selector {
    height: 100%;
    display: flex;
    align-items: center;
}

.engine-dropdown {
    position: absolute;
    top: 48px;
    left: 0;
    width: 100%;
    background: var(--bg-white);
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    padding: 8px;
    list-style: none;
    display: none;
    grid-template-columns: repeat(6, 1fr);
    gap: 6px;
    z-index: 100;
}

.engine-dropdown.show {
    display: grid;
}

.engine-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 4px;
    cursor: pointer;
    border-radius: 8px;
    font-size: 12px;
    color: var(--text-main);
    transition: 0.2s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: clip;
}

.engine-item:hover {
    background: #f3f4f6;
}

.engine-item img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    flex-shrink: 0;
}

.recommend-board {
    display: block;
    margin-top: 14px;
}

.recommend-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 14px;
}

.recommend-item {
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.2s;
}

.recommend-item img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

.recommend-placeholder {
    height: 55px;
    background-color: #f8fafc;
    border: 1px dashed #cbd5e1;
    color: #94a3b8;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.main-content {
    flex-grow: 1;
    padding-top: 20px;
    padding-bottom: 20px;
}

.category-section {
    margin-bottom: 24px;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 12px;
    padding: 0 4px;
}

.category-title {
    font-size: 14.5px;
    font-weight: 600;
    color: #4b5563;
    line-height: 1;
    letter-spacing: 0.3px;
}

.category-desc {
    font-size: 11px;
    color: var(--text-desc);
    margin-bottom: 1px;
    letter-spacing: 0.2px;
}

.app-grid {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(3, 1fr);
}

.app-card {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-white);
    border-radius: 8px;
    padding: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
    border: none;
    transition: 0.2s;
    cursor: pointer;
    min-width: 0;
}

.app-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.app-card-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.app-card-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 4px;
}

.app-card-icon span {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-primary);
}

.app-card-name {
    flex: 1;
    min-width: 0;
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-sub);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: clip;
    letter-spacing: 0.3px;
}

.app-card-more {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    background: var(--bg-white);
    border-radius: 8px;
    padding: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
    transition: 0.2s;
    cursor: pointer;
    text-decoration: none;
    min-width: 0;
}

.app-card-more:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.app-card-more .app-card-icon i {
    font-size: 14px;
    color: #8ba4c7;
    transition: 0.2s;
}

.app-card-more .more-text {
    font-size: 13px;
    font-weight: 500;
    color: #8ba4c7;
    transition: 0.2s;
}

.app-card-more .more-arrow {
    font-size: 11.5px;
    color: #8ba4c7;
    transition: 0.2s;
    margin-top: 1px;
}

.app-card-more:hover .app-card-icon i,
.app-card-more:hover .more-text,
.app-card-more:hover .more-arrow {
    color: var(--color-primary);
}

.site-footer {
    background: var(--bg-footer);
    padding: 16px 0 24px 0;
    color: #a0aec0;
    font-size: 11.5px;
    position: relative;
    margin-top: auto;
}

.friend-links-container {
    margin-bottom: 16px;
}

.friend-links-box {
    background: var(--bg-friend-box);
    border-radius: 8px;
    padding: 10px 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
    line-height: 1.4;
}

.friend-links-box a {
    font-size: 11px;
    color: #e5e7eb;
    font-weight: 500;
    transition: color 0.2s;
}

.friend-links-box a:hover {
    color: #fff;
}

.footer-meta {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    line-height: 1.6;
    color: #9ca3af;
    letter-spacing: 0.5px;
    width: 100% !important;
}

.footer-links {
    text-align: center;
}

.footer-copyright {
    text-align: center;
}

.footer-meta a {
    margin: 0 4px;
    transition: color 0.2s;
}

.footer-meta a:hover {
    color: #fff;
    text-decoration: underline;
}

@media (min-width: 640px) {
    .app-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
    }
}

@media (min-width: 768px) {
    .container {
        padding: 0 24px;
    }

    .header-inner {
        flex-wrap: nowrap;
    }

    .header-search {
        order: 2;
        flex: 1;
        max-width: 480px;
        margin: 0 24px;
    }

    .header-nav {
        order: 3;
    }

    .app-grid {
        grid-template-columns: repeat(6, 1fr);
    }

    .recommend-row {
        grid-template-columns: repeat(4, 1fr);
    }

    .main-content {
        padding-top: 20px;
    }

    .footer-meta {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

@media (min-width: 1024px) {
    .app-grid {
        grid-template-columns: repeat(8, 1fr);
    }
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 32px;
    margin-bottom: 10px;
}

.page-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--bg-white);
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 13.5px;
    color: var(--text-sub);
    transition: 0.2s;
    cursor: pointer;
    text-decoration: none;
}

.page-btn:hover:not(.disabled) {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: #eff6ff;
}

.page-btn.disabled {
    background: #f8fafc;
    color: #cbd5e1;
    cursor: not-allowed;
    border-color: #f1f5f9;
}

.page-info {
    font-size: 13px;
    color: var(--text-desc);
    font-weight: 500;
}

.video-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    margin-top: 8px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
    z-index: 1000;
    max-height: 420px;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.video-search-results::-webkit-scrollbar {
    display: none;
}

.vs-item {
    display: flex;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid #f1f5f9;
    cursor: pointer;
    transition: 0.2s;
    text-decoration: none;
    color: inherit;
    align-items: center;
}

.vs-item:last-child {
    border-bottom: none;
}

.vs-item:hover {
    background: #f8fafc;
}

.vs-item:hover .vs-title {
    color: var(--color-primary);
}

.vs-item:hover .fa-play {
    color: var(--color-primary) !important;
}

.vs-pic {
    width: 45px;
    height: 60px;
    border-radius: 6px;
    object-fit: cover;
    background: #e2e8f0;
    flex-shrink: 0;
}

.vs-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    flex: 1;
}

.vs-title {
    font-size: 14.5px;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 4px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.2s;
}

.vs-desc {
    font-size: 12px;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vs-loading, .vs-empty {
    padding: 30px 20px;
    text-align: center;
    color: #94a3b8;
    font-size: 13.5px;
}

.btn-locked {
    background: #fef2f2 !important;
    color: #ef4444 !important;
    border-color: #fecaca !important;
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.05) !important;
}

.btn-locked:hover {
    background: #fee2e2 !important;
    border-color: #fca5a5 !important;
}

.unlock-modal-card {
    text-align: left;
    width: 320px !important;
    max-width: 90vw;
    padding: 24px 20px !important;
    border-radius: 16px;
    display: grid;
    grid-template-columns: 100px 1fr;
    grid-template-areas: "header header" "qr desc" "qr input";
    gap: 12px 16px;
    align-items: center;
}

.unlock-header {
    grid-area: header;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-bottom: 4px;
}

.unlock-title {
    font-size: 16px;
    color: #1e293b;
    font-weight: 600;
    margin: 0;
    text-align: center;
    width: 100%;
}

.unlock-title i {
    margin-right: 6px;
    color: var(--color-primary);
}

.unlock-close-btn {
    display: none !important;
}

.unlock-qr-container {
    grid-area: qr;
    width: 100px;
    height: 100px;
    margin: 0;
    padding: 6px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}

.unlock-qr-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

.unlock-desc {
    grid-area: desc;
    font-size: 12px;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
    text-align: left;
    align-self: end;
}

.unlock-highlight {
    color: #0f172a;
    font-weight: 600;
    background: #f1f5f9;
    padding: 2px 4px;
    border-radius: 4px;
    margin: 0 2px;
}

.unlock-input-group {
    grid-area: input;
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    margin: 0;
    align-self: start;
}

.unlock-input {
    width: 100% !important;
    height: 32px !important;
    text-align: center !important;
    padding: 0 10px !important;
    font-size: 13px !important;
    font-weight: 500;
    letter-spacing: 1px;
    margin-bottom: 0 !important;
    color: #334155;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    outline: none;
    transition: 0.2s;
}

.unlock-input:focus {
    border-color: var(--color-primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
}

.unlock-submit-btn {
    width: 100%;
    height: 32px;
    padding: 0;
    background: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

.unlock-submit-btn:hover {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(59,130,246,0.2);
}

.hero-tabs-header {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    padding: 0 4px;
    gap: 16px;
}

.hero-tab-btn {
    font-size: 14px;
    font-weight: 500;
    color: #94a3b8;
    cursor: pointer;
    transition: 0.2s;
    line-height: 1;
    user-select: none;
}

.hero-tab-btn:hover {
    color: #64748b;
}

.hero-tab-btn.active {
    font-size: 14.5px;
    font-weight: 600;
    color: #4b5563;
    letter-spacing: 0.3px;
}

.hero-tab-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 11px;
    color: var(--text-desc);
    line-height: 1;
}

.hero-action-btn {
    cursor: pointer;
    transition: 0.2s;
    display: none;
    align-items: center;
    gap: 4px;
    color: var(--text-sub);
}

.hero-action-btn:hover {
    color: var(--color-primary);
}

.app-card {
    position: relative;
}

.app-card-dashed {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: transparent;
    border-radius: 8px;
    padding: 8px;
    border: 1px dashed #cbd5e1;
    color: #94a3b8;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: 0.2s;
    height: 100%;
    min-height: 42px;
}

.app-card-dashed:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: #f8fafc;
}

.auth-modal-card {
    max-width: 320px;
    text-align: center;
    padding: 32px 24px;
}

.auth-title {
    font-size: 16px;
    color: var(--text-main);
    margin: 0 0 6px 0;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.auth-desc {
    font-size: 12px;
    color: var(--text-desc);
    margin-bottom: 24px;
    letter-spacing: 0.2px;
}

.auth-input-group {
    text-align: left;
    margin-bottom: 20px;
}

.auth-input {
    width: 100%;
    height: 44px;
    border-radius: 8px;
    font-size: 14px;
    padding: 0 14px;
    border: 1px solid #cbd5e1;
    outline: none;
    background: #ffffff;
    color: #1e293b;
    transition: 0.2s ease;
}

.auth-input::placeholder {
    color: #cbd5e1;
    font-weight: 400;
}

.auth-input:focus {
    border-color: #94a3b8;
    background: #ffffff;
    box-shadow: none;
}

.auth-input.mb-12 {
    margin-bottom: 12px;
}

.auth-input.mb-0 {
    margin-bottom: 0;
}

.auth-btn {
    border-radius: 8px;
    font-size: 14px;
    height: 44px;
    width: 100%;
    background: #eff6ff;
    color: #8baee2;
    border: none;
    cursor: pointer;
    font-weight: 500;
    transition: 0.2s ease;
    letter-spacing: 0.5px;
}

.auth-btn:hover {
    background: #e0f2fe;
    color: #6e99d8;
}

.auth-tip {
    margin-top: 16px;
    font-size: 11.5px;
    color: #cbd5e1;
    letter-spacing: 0.2px;
}

.custom-modal-card {
    max-width: 320px;
    padding: 32px 24px;
    text-align: center;
}

.fav-item-card {
    position: relative;
}

.fav-delete-btn {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 22px;
    height: 22px;
    background: #ffffff;
    border-radius: 50%;
    color: #ef4444;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: 0.2s;
    border: 1px solid #fee2e2;
}

.fav-delete-btn:hover {
    transform: scale(1.1);
    background: #fef2f2;
    color: #dc2626;
}

@keyframes jiggle {
    0% { transform: rotate(-1deg); }
    50% { transform: rotate(1.5deg); }
    100% { transform: rotate(-1deg); }
}

.fav-edit-mode .fav-item-card {
    animation: jiggle 0.3s infinite;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.3);
    backdrop-filter: blur(3px);
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 40px -10px rgba(0,0,0,0.08);
    border: 1px solid rgba(255,255,255,0.8);
    transform: translateY(10px) scale(0.98);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: default;
}

.modal-overlay.active .modal-card {
    transform: translateY(0) scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.modal-header h3 {
    font-size: 15px;
    font-weight: 600;
    margin: 0;
    color: var(--text-main);
    letter-spacing: 0.5px;
}

.modal-close {
    background: #f8fafc;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #94a3b8;
    cursor: pointer;
    transition: 0.3s;
}

.modal-close:hover {
    background: #f1f5f9;
    color: var(--text-sub);
    transform: rotate(90deg);
}

.submit-main .form-input, .submit-main .form-textarea-inner {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    box-sizing: border-box;
    max-width: 100%;
}

.submit-main {
    padding-top: 15px;
    padding-bottom: 40px;
    flex-grow: 1;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

.submit-layout {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.submit-form-area {
    flex: 1;
    min-width: 0;
    background: var(--bg-white);
    border-radius: 12px;
    padding: 24px 30px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
    border: 1px solid #e5e7eb;
    box-sizing: border-box;
    width: 100%;
}

.submit-sidebar {
    width: 320px;
    flex-shrink: 0;
    background: var(--bg-white);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
    border: 1px solid #e5e7eb;
    position: sticky;
    top: 20px;
    box-sizing: border-box;
}

.submit-header {
    margin-bottom: 24px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 14px;
}

.submit-header h2 {
    font-size: 18px;
    color: #1e293b;
    margin-bottom: 4px;
    font-weight: 600;
}

.submit-header p {
    font-size: 12.5px;
    color: #94a3b8;
}

.submit-form-area .form-group {
    margin-bottom: 20px;
    width: 100%;
    box-sizing: border-box;
}

.submit-form-area .form-label {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 8px;
}

.submit-form-area .form-label span.req {
    color: #f43f5e;
    margin-left: 2px;
    font-weight: normal;
}

.submit-form-area .input-wrapper {
    display: flex;
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
    align-items: center;
}

.submit-form-area .form-input {
    flex: 1;
    min-width: 0;
    display: block;
    width: 100%;
    height: 42px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0 14px;
    font-size: 13.5px;
    outline: none;
    transition: all 0.2s ease;
    background: #f8fafc;
    color: #1e293b;
    font-family: inherit;
    box-sizing: border-box;
}

.submit-form-area .form-input:focus {
    border-color: var(--color-primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(59,130,246,0.08);
}

.submit-form-area .form-input::placeholder {
    color: #cbd5e1;
    font-weight: 400;
}

.submit-form-area .btn-action {
    height: 42px;
    padding: 0 16px;
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: 0.2s;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-shrink: 0;
    box-sizing: border-box;
}

.submit-form-area .btn-action:hover {
    background: #e2e8f0;
    color: #1e293b;
    border-color: #cbd5e1;
}

.submit-form-area .btn-action:disabled {
    color: #94a3b8;
    cursor: not-allowed;
}

.submit-form-area #captcha-img {
    width: 120px;
    height: 42px;
    border-radius: 8px;
    cursor: pointer;
    border: 1px solid #e2e8f0;
    object-fit: cover;
    flex-shrink: 0;
    background: #fff;
    box-sizing: border-box;
}

.submit-form-area .textarea-container {
    position: relative;
    width: 100%;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-sizing: border-box;
}

.submit-form-area .textarea-container:focus-within {
    border-color: var(--color-primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(59,130,246,0.08);
}

.submit-form-area .form-textarea-inner {
    width: 100%;
    border: none;
    background: transparent;
    padding: 12px 12px 40px 12px;
    font-size: 13.5px;
    outline: none;
    resize: vertical;
    height: 140px;
    line-height: 1.6;
    font-family: inherit;
    color: #1e293b;
    box-sizing: border-box;
}

.submit-form-area .form-textarea-inner::placeholder {
    color: #cbd5e1;
    font-weight: 400;
}

.submit-form-area .btn-ai-inner {
    position: absolute;
    right: 8px;
    bottom: 8px;
    height: 28px;
    padding: 0 10px;
    background: #eff6ff;
    color: var(--color-primary);
    border: 1px solid #bfdbfe;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    z-index: 10;
}

.submit-form-area .btn-ai-inner:hover {
    background: #dbeafe;
    color: #1d4ed8;
    border-color: #93c5fd;
}

.submit-form-area .btn-ai-inner:disabled {
    background: #f8fafc;
    color: #cbd5e1;
    border-color: transparent;
    cursor: not-allowed;
}

.submit-form-area .btn-submit {
    width: 100%;
    height: 46px;
    background: #eff6ff;
    color: #3b82f6;
    border: none;
    border-radius: 8px;
    font-size: 14.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 5px;
    letter-spacing: 1px;
    box-sizing: border-box;
}

.submit-form-area .btn-submit:hover {
    background: #dbeafe;
    color: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.1);
}

.submit-sidebar .rule-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.submit-sidebar .rule-list li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 14px;
    font-size: 12.5px;
    color: #475569;
    line-height: 1.6;
}

.submit-sidebar .rule-list li i {
    margin-top: 3px;
    color: var(--color-primary);
    font-size: 13px;
}

.submit-sidebar .rule-list li strong {
    color: #1e293b;
    display: block;
    margin-bottom: 1px;
}

@media (max-width: 860px) {
    .submit-layout {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
    }

    .submit-sidebar {
        width: 100% !important;
        margin-top: 0;
        position: static;
    }

    .submit-form-area {
        width: 100% !important;
        padding: 24px 20px;
    }
}

@media (max-width: 640px) {
    .submit-form-area {
        padding: 20px 16px;
        border-radius: 12px;
    }

    .submit-main {
        padding-top: 10px;
    }

    .submit-form-area .url-input-wrapper {
        display: flex !important;
        flex-direction: row !important;
        gap: 8px !important;
        width: 100% !important;
        align-items: center !important;
    }

    .submit-form-area .url-input-wrapper .form-input {
        flex: 1 !important;
        width: 0 !important;
        min-width: 0 !important;
        display: block !important;
        margin: 0 !important;
    }

    .submit-form-area .url-input-wrapper .btn-action {
        flex-shrink: 0 !important;
        width: 90px !important;
        padding: 0 !important;
        justify-content: center !important;
        font-size: 12px !important;
        display: inline-flex !important;
        margin: 0 !important;
    }

    .submit-form-area .captcha-input-wrapper {
        display: flex !important;
        flex-direction: row !important;
        gap: 8px !important;
        width: 100% !important;
        align-items: center !important;
    }

    .submit-form-area .captcha-input-wrapper .form-input {
        flex: 1 !important;
        width: 0 !important;
        min-width: 0 !important;
        margin: 0 !important;
    }

    .submit-form-area #captcha-img {
        flex-shrink: 0 !important;
        width: 90px !important;
        height: 42px !important;
        border: 1px solid #e2e8f0 !important;
        border-radius: 8px !important;
        display: block !important;
    }

    .category-desc {
        display: none;
    }

    .hero-tabs-header .hero-tab-actions > span {
        display: none;
    }
}