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

body {
    font-family: "Inter", "Noto Sans SC", -apple-system, BlinkMacSystemFont, sans-serif;
    background: radial-gradient(ellipse at 20% 50%, rgba(0, 240, 144, 0.025) 0%, transparent 50%), 
                radial-gradient(ellipse at 80% 20%, rgba(8, 145, 178, 0.015) 0%, transparent 50%),
                #060e0c;
    color: #cbd5e1;
    line-height: 1.6;
    min-height: 100vh;
}

.ink-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(6, 14, 12, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0, 240, 144, 0.08);
}

.ink-header-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}

.ink-header-left {
    display: flex;
    align-items: center;
    gap: 24px;
}

.ink-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.ink-logo-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    overflow: hidden;
}

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

.ink-logo-text {
    font-weight: 700;
    font-size: 22px;
    color: white;
    letter-spacing: -0.01em;
}

.ink-nav {
    display: flex;
    gap: 24px;
}

.ink-nav-link {
    color: #94a3b8;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

.ink-nav-link:hover,
.ink-nav-link.active {
    color: #00f090;
}

.ink-header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.ink-login-btn {
    padding: 8px 20px;
    background: rgba(0, 240, 144, 0.1);
    color: #00f090;
    border: 1px solid rgba(0, 240, 144, 0.3);
    border-radius: 999px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s;
}

.ink-login-btn:hover {
    background: rgba(0, 240, 144, 0.2);
    border-color: rgba(0, 240, 144, 0.5);
}

.ink-user-menu {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ink-avatar-small {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid rgba(0, 240, 144, 0.2);
}

.ink-user-name {
    font-size: 13px;
    font-weight: 600;
    color: #e2e8f0;
}

.ink-logout {
    color: #64748b;
    text-decoration: none;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 6px;
    transition: all 0.2s;
}

.ink-logout:hover {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

.ink-main {
    padding-top: 68px;
    padding-bottom: 60px;
}

.ink-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 24px;
}

.ink-hero {
    text-align: center;
    padding: 48px 24px;
    margin-bottom: 24px;
}

.ink-hero-title {
    font-size: 32px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 12px;
}

.ink-hero-subtitle {
    font-size: 16px;
    color: #64748b;
}

.ink-discussion-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ink-discussion-item {
    background: #0b1815;
    border: 1px solid rgba(0, 240, 144, 0.07);
    border-radius: 12px;
    padding: 16px;
    transition: all 0.25s;
    cursor: pointer;
}

.ink-discussion-item:hover {
    border-color: rgba(0, 240, 144, 0.22);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.ink-discussion-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.ink-discussion-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 1.5px solid rgba(0, 240, 144, 0.1);
}

.ink-discussion-meta {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.ink-discussion-author {
    font-size: 12px;
    font-weight: 600;
    color: #94a3b8;
}

.ink-discussion-time {
    font-size: 12px;
    color: #64748b;
}

.ink-discussion-title {
    margin-top: 8px;
    font-size: 15px;
    font-weight: 600;
    color: #cbd5e1;
    line-height: 1.4;
    transition: color 0.2s;
}

.ink-discussion-item:hover .ink-discussion-title {
    color: #00f090;
}

.ink-discussion-stats {
    margin-top: 8px;
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: #64748b;
}

.ink-discussion-stats span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.ink-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 32px;
}

.ink-pagination-link {
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    color: #94a3b8;
    transition: all 0.2s;
}

.ink-pagination-link:hover,
.ink-pagination-link.active {
    color: #00f090;
    background: rgba(0, 240, 144, 0.1);
}

.ink-pagination-link.disabled {
    color: #475569;
    pointer-events: none;
}

.ink-thread-header {
    margin-bottom: 24px;
}

.ink-thread-title {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 16px;
}

.ink-thread-info {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 13px;
    color: #64748b;
}

.ink-thread-author {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ink-thread-author img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

.ink-thread-author span {
    color: #94a3b8;
    font-weight: 500;
}

.ink-post-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ink-post {
    background: #0b1815;
    border: 1px solid rgba(0, 240, 144, 0.07);
    border-radius: 12px;
    padding: 18px;
}

.ink-post-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.ink-post-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ink-post-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid rgba(0, 240, 144, 0.1);
}

.ink-post-author-info {
    display: flex;
    flex-direction: column;
}

.ink-post-author-name {
    font-size: 13px;
    font-weight: 600;
    color: #e2e8f0;
}

.ink-post-time {
    font-size: 11px;
    color: #64748b;
}

.ink-post-number {
    font-size: 12px;
    color: #475569;
    background: rgba(71, 85, 105, 0.1);
    padding: 4px 10px;
    border-radius: 999px;
}

.ink-post-content {
    font-size: 14px;
    color: #cbd5e1;
    line-height: 1.7;
    white-space: pre-wrap;
    word-break: break-word;
}

.ink-reply-form {
    margin-top: 32px;
    background: #0b1815;
    border: 1px solid rgba(0, 240, 144, 0.07);
    border-radius: 12px;
    padding: 20px;
}

.ink-form-group {
    margin-bottom: 16px;
}

.ink-form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #94a3b8;
    margin-bottom: 8px;
}

.ink-form-input,
.ink-form-textarea {
    width: 100%;
    padding: 12px 16px;
    background: #071310;
    border: 1px solid rgba(0, 240, 144, 0.1);
    border-radius: 10px;
    color: #e2e8f0;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.2s;
}

.ink-form-input:focus,
.ink-form-textarea:focus {
    outline: none;
    border-color: rgba(0, 240, 144, 0.4);
    box-shadow: 0 0 0 3px rgba(0, 240, 144, 0.05);
}

.ink-form-textarea {
    min-height: 120px;
    resize: vertical;
}

.ink-form-btn {
    padding: 12px 28px;
    background: linear-gradient(135deg, #00f090 0%, #0891b2 100%);
    color: #060e0c;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.ink-form-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 240, 144, 0.3);
}

.ink-form-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.ink-new-post {
    max-width: 800px;
    margin: 0 auto;
}

.ink-new-post h1 {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 24px;
}

.ink-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 10px;
    padding: 12px 16px;
    color: #f87171;
    font-size: 13px;
    margin-bottom: 16px;
}

.ink-success {
    background: rgba(0, 240, 144, 0.1);
    border: 1px solid rgba(0, 240, 144, 0.2);
    border-radius: 10px;
    padding: 12px 16px;
    color: #00f090;
    font-size: 13px;
    margin-bottom: 16px;
}

.ink-footer {
    text-align: center;
    padding: 24px;
    color: #475569;
    font-size: 12px;
}

.ink-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 13px;
}

.ink-breadcrumb-link {
    color: #00f090;
    text-decoration: none;
    transition: color 0.2s;
}

.ink-breadcrumb-link:hover {
    color: #34d399;
}

.ink-breadcrumb-separator {
    color: #475569;
}

.ink-breadcrumb-current {
    color: #64748b;
}

.ink-new-post-inline {
    max-width: 800px;
    margin: 0 auto 32px;
    background: #0b1815;
    border: 1px solid rgba(0, 240, 144, 0.07);
    border-radius: 12px;
    padding: 20px;
}

.ink-hero-btn {
    margin-top: 16px;
    padding: 10px 24px;
    background: linear-gradient(135deg, #00f090, #0891b2);
    color: #060e0c;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.ink-hero-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 240, 144, 0.3);
}

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

.ink-post-form-close {
    padding: 6px 12px;
    background: transparent;
    color: #64748b;
    border: 1px solid #334155;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.ink-post-form-close:hover {
    color: #00f090;
    border-color: rgba(0, 240, 144, 0.3);
}

.ink-form-actions {
    display: flex;
    justify-content: center;
    margin-top: 16px;
}

.ink-new-post-inline h2 {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 16px;
}

.ink-discussion-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00f090, #0891b2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ink-thread-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00f090, #0891b2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ink-post-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00f090, #0891b2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ink-avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.ink-avatar-initials {
    color: #060e0c;
    font-weight: bold;
    font-size: 14px;
}

/* 回复引用样式 */
.ink-reply-quote {
    background: rgba(0, 240, 144, 0.03);
    border-left: 2px solid rgba(0, 240, 144, 0.3);
    padding: 12px 16px;
    margin-bottom: 16px;
    border-radius: 0 8px 8px 0;
}

.ink-reply-quote-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.ink-reply-quote-name {
    font-size: 12px;
    font-weight: 600;
    color: #00f090;
}

.ink-reply-quote-content {
    font-size: 13px;
    color: #94a3b8;
    line-height: 1.5;
}

.ink-reply-quote-form {
    margin-bottom: 16px;
}

.ink-cancel-reply {
    font-size: 12px;
    color: #64748b;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: color 0.2s;
}

.ink-cancel-reply:hover {
    color: #00f090;
}

/* Unified reply input — quote (greyed) on top, editable area below */
.ink-reply-input-wrap {
    border: 1px solid rgba(0, 240, 144, 0.1);
    border-radius: 10px;
    background: #071310;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.ink-reply-input-wrap:focus-within {
    border-color: rgba(0, 240, 144, 0.4);
    box-shadow: 0 0 0 3px rgba(0, 240, 144, 0.05);
}

.ink-reply-quote-inline {
    padding: 12px 16px;
    background: rgba(0, 240, 144, 0.03);
    border-bottom: 1px solid rgba(0, 240, 144, 0.08);
}
.ink-reply-quote-inline .ink-reply-quote-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}
.ink-reply-quote-inline .ink-reply-quote-name {
    font-size: 12px;
    font-weight: 600;
    color: #00f090;
}
.ink-reply-quote-inline .ink-reply-quote-content {
    font-size: 13px;
    color: #64748b;
    line-height: 1.5;
    max-height: 120px;
    overflow-y: auto;
    word-break: break-word;
}

.ink-form-textarea-inwrap {
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    resize: none;
}
.ink-form-textarea-inwrap:focus {
    border: none !important;
    box-shadow: none !important;
    outline: none;
}

/* 回复按钮样式 */
.ink-post-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ink-reply-btn {
    padding: 4px 10px;
    font-size: 12px;
    color: #00f090;
    background: rgba(0, 240, 144, 0.05);
    border: 1px solid rgba(0, 240, 144, 0.2);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.ink-reply-btn:hover {
    background: rgba(0, 240, 144, 0.1);
    border-color: rgba(0, 240, 144, 0.4);
}

@media (max-width: 768px) {
    .ink-header-container {
        padding: 0 16px;
    }
    
    .ink-nav {
        display: none;
    }
    
    .ink-container {
        padding: 16px;
    }
    
    .ink-hero-title {
        font-size: 24px;
    }
    
    .ink-discussion-title {
        font-size: 14px;
    }
}
