/* ===== Question Page ===== */
.question-page {
    background: var(--bg-light);
    padding: 40px 0 60px;
    margin-top: var(--header-height);
    min-height: calc(100vh - var(--header-height) - 300px);
}

.question-page .section-header {
    margin-bottom: 24px;
}

.question-page .section-title-left {
    font-size: 1.6rem;
}

/* ===== Breadcrumb ===== */
.question-page .breadcrumb {
    padding: 16px 0;
}

/* ===== Q&A List ===== */
.qa-list-section {
    padding: 40px 0 20px;
}

.qa-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin-bottom: 20px;
}

.qa-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #eee;
}

.qa-card-header h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2c2c2c;
    margin: 0;
}

.qa-ask-link {
    display: inline-block;
    padding: 8px 20px;
    background: #27ae60;
    color: #fff;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.qa-ask-link:hover {
    background: #219a52;
    color: #fff;
}

.qa-item {
    padding: 24px;
    border-bottom: 1px solid #f0f0f0;
}

.qa-item:last-child {
    border-bottom: none;
}

.qa-item-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.qa-item-row:last-child {
    margin-bottom: 0;
}

.qa-label {
    flex-shrink: 0;
    display: inline-block;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.8;
}

.qa-label-question {
    background: #e8f5e9;
    color: #2e7d32;
}

.qa-label-answer {
    background: #e3f2fd;
    color: #1565c0;
}

.qa-label-content {
    background: #fff3e0;
    color: #e65100;
}

.qa-item-title {
    flex: 1;
    font-size: 1rem;
    font-weight: 600;
    color: #2c2c2c;
    line-height: 1.5;
}

.qa-item-text {
    flex: 1;
    font-size: 0.9rem;
    color: #666;
    line-height: 1.7;
}

.qa-item-meta {
    flex-shrink: 0;
    font-size: 0.8rem;
    color: #999;
    white-space: nowrap;
}

.qa-item-meta .qa-author {
    color: #666;
    font-weight: 500;
}

.qa-reply-box {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 14px 16px;
    border-left: 3px solid #27ae60;
}

.qa-reply-text {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.7;
    margin-bottom: 6px;
}

.qa-reply-text .reply-more {
    color: #27ae60;
    cursor: pointer;
    font-weight: 500;
}

.qa-reply-text .reply-more:hover {
    color: #219a52;
}

.qa-reply-date {
    font-size: 0.8rem;
    color: #999;
}

.qa-pagination {
    padding: 16px 24px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: center;
}

/* ===== Ask Form ===== */
.ask-form-section {
    padding: 20px 0 40px;
}

.ask-form-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 32px;
    width: 100%;
    box-sizing: border-box;
}

.ask-form-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2c2c2c;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #eee;
}

.form-row {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    gap: 16px;
}

.form-row-label {
    flex-shrink: 0;
    width: 90px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #2c2c2c;
    text-align: right;
    padding-top: 10px;
}

.form-row-label .required {
    color: #e74c3c;
}

.form-row-body {
    flex: 1;
    min-width: 0;
}

.form-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.9rem;
    color: #2c2c2c;
    background: #fff;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-input:focus {
    border-color: #27ae60;
    outline: none;
    box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.1);
}

.form-input::placeholder {
    color: #999;
}

.form-textarea {
    width: 100%;
    min-height: 120px;
    padding: 12px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.9rem;
    font-family: inherit;
    color: #2c2c2c;
    resize: vertical;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-textarea:focus {
    border-color: #27ae60;
    outline: none;
    box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.1);
}

.form-input-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.form-input-row .form-input {
    flex: 1;
    min-width: 180px;
}

.form-captcha-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.form-captcha-row .form-input {
    width: 160px;
    flex: none;
}

.form-captcha-row img {
    width: 80px;
    height: 30px;
    border-radius: 4px;
    cursor: pointer;
}

.form-nickname-display {
    height: 40px;
    line-height: 40px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #2c2c2c;
}

.form-anonymous {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: #666;
    cursor: pointer;
    margin-left: 8px;
}

.form-anonymous input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #27ae60;
    cursor: pointer;
}

.form-submit-row {
    margin-top: 8px;
}

.btn-submit-form {
    display: inline-block;
    padding: 12px 36px;
    background: #27ae60;
    color: #fff;
    border: none;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-submit-form:hover {
    background: #219a52;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.3);
    color: #fff;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .question-page {
        padding: 24px 0 40px;
    }

    .question-page .section-title-left {
        font-size: 1.3rem;
    }

    .qa-card-header {
        padding: 16px;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .qa-item {
        padding: 16px;
    }

    .qa-item-row {
        flex-wrap: wrap;
        gap: 8px;
    }

    .qa-item-meta {
        width: 100%;
        margin-top: 4px;
    }

    .ask-form-card {
        padding: 20px 16px;
    }

    .form-row {
        flex-direction: column;
        gap: 8px;
    }

    .form-row-label {
        width: auto;
        text-align: left;
        padding-top: 0;
    }

    .form-input-row {
        flex-direction: column;
    }

    .form-input-row .form-input {
        min-width: auto;
    }

    .form-captcha-row {
        flex-wrap: wrap;
    }

    .btn-submit-form {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .qa-item {
        padding: 14px;
    }

    .ask-form-card {
        padding: 16px 14px;
    }

    .qa-card-header h3 {
        font-size: 1.05rem;
    }
}
