/* style.css */
:root {
    --brand-primary: #006bff;
    --brand-primary-darker: #0056b3;
    --brand-primary-lighter-bg: #e9f2ff;
    --brand-primary-lightest-bg: rgba(0, 122, 255, 0.05);
    --brand-primary-border-highlight: #cce5ff;
    --text-primary: #333;
    --text-secondary: #555;
    --text-muted: #6c757d;
    --text-light: #adb5bd;
    --bg-main: #f0f2f5;
    --bg-card: #ffffff;
    --bg-header-footer: #343a40; /* Example for dark footer, adjust if needed */
    --bg-searchbar: #f5f5f5;
    --bg-tag: #e9ecef;
    --bg-button-secondary: ##fbfbfb;
    --border-light: #e0e0e0;
    --border-lighter: #e8e8e8;
    --border-input: #d0d7de;
    --border-input-focus-shadow: rgba(9, 105, 218, 0.3);
    --success-color: #28a745;
    --success-color-darker: #218838;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    margin: 0;
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
}

.container {
    width: 95%;
    max-width: 1960px;
    margin: 0 auto;
    padding: 0 15px;
}

header {
    background-color: var(--bg-card);
    padding: 15px 0;
    border-bottom: 1px solid var(--border-light);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 24px;
    font-weight: bold;
    color: var(--brand-primary);
    text-decoration: none;
}

    .logo i { /* Font Awesome icon in logo */
        margin-right: 8px;
    }

    .logo img { /* Image icon in logo */
        margin-right: 8px;
    }


.search-bar {
    display: flex;
    align-items: center;
    background-color: var(--bg-searchbar);
    padding: 8px 18px;
    border-radius: 20px;
    width: 38%;
    position: relative;
}

    .search-bar input {
        border: none;
        outline: none;
        background-color: transparent;
        width: 100%;
        font-size: 14px;
        padding-right: 45px; /* 为圆形按钮留出更多空间 */
    }

    .search-bar .search-btn {
        position: absolute;
        right: 0;
        background-color: var(--brand-primary);
        border: none;
        cursor: pointer;
        width: 32px; /* 固定宽度 */
        height: 32px; /* 固定高度 */
        border-radius: 50%; /* 圆形 */
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.2s ease;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }

        .search-bar .search-btn:hover {
            background-color: var(--brand-primary-darker);
            box-shadow: 0 3px 6px rgba(0,0,0,0.15);
        }

        .search-bar .search-btn:active {
            transform: scale(0.95); /* 点击时稍微缩小 */
        }

        .search-bar .search-btn i {
            color: white;
            font-size: 14px;
        }

.user-actions {
    display: flex;
    align-items: center;
}

    .user-actions .thumbnail {
        width: 25px;
        height: 25px;
        border-radius: 25px;
        margin-right: 8px;
    }

    .user-actions .logout {
        color: #999;
        text-decoration: none;
        font-size: 14px;
    }

    .user-actions .login-btn,
    .user-actions .signup-btn {
        display: inline-block;
        margin-left: 10px;
        padding: 8px 15px;
        border-radius: 5px;
        cursor: pointer;
        font-size: 14px;
        font-weight: 500;
        text-decoration: none;
        text-align: center;
    }

.login-btn {
    background-color: var(--brand-primary);
    color: white;
    border: none;
}

    .login-btn:hover {
        background-color: var(--brand-primary-darker);
    }

.signup-btn {
    background-color: var(--bg-button-secondary);
    color: var(--brand-primary);
    border: 1px solid var(--brand-primary);
}

    .signup-btn:hover {
        background-color: var(--brand-primary-lighter-bg);
    }


.main-container {
    display: flex;
    margin-top: 20px;
    gap: 20px;
}

.sidebar-left {
    width: 240px;
    background-color: var(--bg-card);
    padding: 15px;
    border-radius: 8px;
    height: fit-content;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

    .sidebar-left nav ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .sidebar-left nav li a {
        display: flex;
        align-items: center;
        padding: 10px 12px;
        text-decoration: none;
        color: var(--text-primary);
        border-radius: 6px;
        margin-bottom: 5px;
        font-size: 15px;
    }

        .sidebar-left nav li a i {
            margin-right: 10px;
            width: 20px;
            text-align: center;
            color: var(--text-secondary);
        }

        .sidebar-left nav li.active a,
        .sidebar-left nav li a:hover {
            background-color: var(--brand-primary-lighter-bg);
            color: var(--brand-primary-darker);
            font-weight: 500;
        }

            .sidebar-left nav li.active a i,
            .sidebar-left nav li a:hover i {
                color: var(--brand-primary-darker);
            }

.quick-links {
    margin-top: 25px;
}

    .quick-links .quick-links-title {
        font-size: 14px;
        color: #606770;
        margin-bottom: 10px;
        padding-left: 12px;
        text-transform: uppercase;
    }

    .quick-links ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

        .quick-links ul li a {
            display: block;
            padding: 8px 12px;
            text-decoration: none;
            color: var(--brand-primary);
            border-radius: 6px;
            font-size: 14px;
        }

            .quick-links ul li a:hover {
                background-color: var(--bg-searchbar);
                text-decoration: underline;
            }

.question-list-section,
.tags-section,
.tag-questions-section,
.user-profile-section,
.user-list-main-content,
.static-content-section,
.question-content-area {
    flex: 1;
    background-color: var(--bg-card);
    padding: 20px 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

    .question-list-header,
    .tags-header,
    .tag-questions-section .question-list-header, /* Specific to tag-content */
    .user-list-header,
    .static-content-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-bottom: 1px solid var(--border-light);
        padding-bottom: 15px;
    }

        .question-list-header h2,
        .tags-header h1, /* h1 for tags page main title */
        .tag-questions-section .question-list-header h2,
        .user-list-header h1, /* h1 for user list main title */
        .static-content-header h1 { /* h1 for static page main title */
            font-size: 22px; /* Default, can be overridden by more specific selectors */
            margin: 0;
            font-weight: 600;
        }

        .tags-header h1, .user-list-header h1, .static-content-header h1 {
            font-size: 28px; /* Larger for main page titles */
        }

.tabs a.tab-btn {
    padding: 8px 12px;
    margin-left: 5px;
    border: 1px solid var(--border-input);
    background-color: #f8f9fa;
    border-radius: 5px;
    font-size: 14px;
    color: var(--text-primary) !important;
    text-decoration: none;
    display: inline-block;
}

    .tabs a.tab-btn.active {
        background-color: var(--brand-primary);
        color: white !important;
        border-color: var(--brand-primary);
    }

    .tabs a.tab-btn:hover:not(.active) {
        background-color: #e2e6ea;
    }

    .tabs a.tab-btn.active:hover {
        background-color: var(--brand-primary-darker);
    }

.question-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.question-item {
    padding: 20px 0;
    border-bottom: 1px solid var(--border-lighter);
}

    .question-item:last-child {
        border-bottom: none;
    }

.question-author-info {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-size: 13px;
    color: var(--text-secondary);
}

.avatar-image {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    margin-right: 8px;
    object-fit: cover;
    border: 1px solid #eee;
}

.question-author-info .username {
    font-weight: 500;
    color: var(--brand-primary);
    text-decoration: none;
    margin-right: 10px;
}

    .question-author-info .username:hover {
        text-decoration: underline;
    }

.question-author-info .ask-date {
    color: var(--text-muted);
}

    .question-author-info .ask-date::before {
        font-family: "Font Awesome 6 Free";
        font-weight: 400;
        content: "\f133"; /* fa-calendar-days 日历图标 */
        margin-right: 6px;
        color: var(--text-muted);
        font-size: 12px;
    }

.question-author-info .meta-item::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    content: "\f06e"; /* fa-info-circle 信息图标 */
    margin-right: 6px;
    color: var(--text-muted);
    font-size: 12px;
}

.question-author-info .follow-link::before {
    content: "";
}

.question-author-info span { /* General span for other meta */
    color: var(--text-muted);
    margin-right: 10px;
}


.question-title {
    margin: 0 0 8px 0;
    font-size: 20px;
    font-weight: 500;
}

    .question-title a {
        text-decoration: none;
        color: #212529;
    }

        .question-title a:hover {
            color: var(--brand-primary-darker);
            text-decoration: underline;
        }

.question-excerpt {
    font-size: 14px;
    color: #495057;
    margin: 0 0 12px 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.question-tags {
    margin-bottom: 15px;
    white-space: nowrap;
    overflow-x: scroll;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

    .question-tags::-webkit-scrollbar {
        display: none;
    }

    .question-tags a.tag {
        display: inline-block;
        background-color: var(--bg-tag);
        color: #495057;
        padding: 4px 10px;
        border-radius: 4px;
        font-size: 12px;
        margin-right: 6px;
        margin-bottom: 6px;
        text-decoration: none;
        transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
    }

        .question-tags a.tag:hover {
            background-color: var(--brand-primary);
            color: #ffffff;
        }

.question-bottom-stats {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 13px;
    color: var(--text-secondary);
}

    .question-bottom-stats span {
        display: flex;
        align-items: center;
    }

    .question-bottom-stats i {
        margin-right: 6px;
        font-size: 14px;
        color: var(--text-muted);
    }

    .question-bottom-stats .accepted-answer {
        background-color: var(--success-color);
        color: #ffffff;
        padding: 2px 8px;
        border-radius: 12px;
        display: inline-flex;
        align-items: center;
    }

        .question-bottom-stats .accepted-answer i {
            color: #ffffff;
            margin-right: 5px;
            font-size: 13px;
        }

            .question-bottom-stats .accepted-answer i:before { /* Specific check icon */
                content: "\f058"; /* Font Awesome check-circle-o or similar, if needed */
            }


.pagination {
    margin-top: 30px;
    margin-bottom: 10px;
    text-align: center;
}

    .pagination a {
        display: inline-block;
        padding: 8px 18px;
        margin: 3px;
        text-decoration: none;
        color: var(--brand-primary);
        border: 1px solid #dee2e6;
        border-radius: 4px;
        font-size: 14px;
    }

        .pagination a.active {
            background-color: var(--brand-primary);
            color: white;
            border-color: var(--brand-primary);
        }

        .pagination a:hover:not(.active) {
            background-color: var(--bg-searchbar);
        }

.sidebar-right {
    width: 320px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

    .sidebar-right > div {
        background-color: var(--bg-card);
        padding: 20px;
        border-radius: 8px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    }

    .sidebar-right h2 {
        font-size: 16px;
        margin-top: 0;
        margin-bottom: 15px; /* Adjusted from 0 for spacing above content */
        border-bottom: 1px solid var(--border-lighter);
        padding-bottom: 10px;
        font-weight: 600;
    }

.welcome-box p {
    font-size: 14px;
    margin-bottom: 15px;
    color: #444;
}

.welcome-box a {
    display: block;
    padding: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 10px;
    text-align: center;
    text-decoration: none;
}

.login-btn-sidebar {
    background-color: var(--brand-primary);
    color: white;
}

.signup-btn-sidebar {
    background-color: var(--brand-primary-lighter-bg);
    color: var(--brand-primary-darker);
    border: 1px solid var(--brand-primary-darker);
}


.hot-questions ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hot-questions li {
    font-size: 14px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-lighter);
    transition: background-color 0.2s ease-in-out;
}

    .hot-questions li:last-child {
        border-bottom: none;
    }

    .hot-questions li a {
        text-decoration: none;
        color: #33373a;
        display: block;
        margin-bottom: 6px;
        font-weight: 400;
    }

        .hot-questions li a:hover {
            color: var(--brand-primary);
        }

.hot-questions .answer-meta {
    display: flex;
    align-items: center;
    font-size: 13px;
}

    .hot-questions .answer-meta i {
        margin-right: 6px;
        font-size: 14px;
    }

    .hot-questions .answer-meta .fa-comments {
        color: #555D66;
    }

        .hot-questions .answer-meta .fa-comments + span {
            color: #555D66;
        }

    .hot-questions .answer-meta .fa-check-circle {
        color: var(--success-color);
    }

        .hot-questions .answer-meta .fa-check-circle + span {
            color: var(--success-color);
        }

    .hot-questions .answer-meta span { /* Reset potentially inherited styles */
        background-color: transparent !important;
        padding: 0 !important;
        border-radius: 0 !important;
        margin-left: 0;
    }


footer {
    background-color: var(--bg-header-footer);
    color: var(--text-light);
    padding: 25px 0;
    margin-top: 30px;
    font-size: 13px;
    text-align: center;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

    .footer-container p {
        margin: 5px 0;
    }

    .footer-container nav a {
        color: var(--text-light);
        text-decoration: none;
        margin-left: 15px;
    }

        .footer-container nav a:hover {
            color: #ffffff;
            text-decoration: underline;
        }

.auth-main {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 40px;
    padding-bottom: 40px;
}

.auth-container {
    background-color: var(--bg-card);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 420px;
    text-align: left;
}

.auth-title {
    font-size: 28px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 30px;
    color: var(--text-primary);
}

.auth-form .form-group {
    margin-bottom: 20px;
}

.auth-form label {
    display: block;
    font-size: 14px;
    color: var(--text-primary);
    margin-bottom: 8px;
    font-weight: 500;
}

.auth-form .label-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

    .auth-form .label-group label {
        margin-bottom: 0;
    }

.auth-form input[type="email"],
.auth-form input[type="password"],
.auth-form input[type="text"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-input);
    border-radius: 6px;
    font-size: 16px;
    box-sizing: border-box;
}

    .auth-form input[type="email"]:focus,
    .auth-form input[type="password"]:focus,
    .auth-form input[type="text"]:focus {
        border-color: var(--brand-primary);
        box-shadow: 0 0 0 3px var(--border-input-focus-shadow);
        outline: none;
    }

.auth-form .forgot-password {
    font-size: 13px;
    color: var(--brand-primary);
    text-decoration: none;
}

    .auth-form .forgot-password:hover {
        text-decoration: underline;
    }

.auth-button {
    width: 100%;
    padding: 12px;
    background-color: var(--brand-primary);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

    .auth-button:hover {
        background-color: var(--brand-primary-darker);
    }

.auth-switch {
    text-align: center;
    margin-top: 25px;
    font-size: 14px;
    color: var(--text-primary);
}

    .auth-switch a {
        color: var(--brand-primary);
        text-decoration: none;
        font-weight: 500;
    }

        .auth-switch a:hover {
            text-decoration: underline;
        }

.auth-terms {
    text-align: center;
    font-size: 12px;
    color: #57606a;
    margin-top: 20px;
    line-height: 1.5;
}

    .auth-terms a {
        color: var(--brand-primary);
        text-decoration: none;
    }

        .auth-terms a:hover {
            text-decoration: underline;
        }

.tags-header .tabs a.tab-btn { /* Specific to tags page header if needed */
    padding: 6px 12px;
    font-size: 14px;
    margin-left: 8px;
}

.tags-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.tag-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 6px;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.tag-card-header {
    margin-bottom: 10px;
}

.tag-card .tag-name {
    display: inline-block;
    background-color: var(--bg-tag);
    color: #495057;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
}

    .tag-card .tag-name:hover {
        background-color: #d1d9e0;
    }

.tag-card .tag-description {
    font-size: 14px;
    color: #495057;
    line-height: 1.5;
    margin-bottom: 15px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 63px;
}

.tag-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #606770;
}

    .tag-meta .follow-btn {
        padding: 6px 12px;
        font-size: 13px;
        color: var(--brand-primary);
        background-color: var(--bg-card);
        border: 1px solid var(--brand-primary);
        border-radius: 4px;
        cursor: pointer;
        transition: background-color 0.2s ease, color 0.2s ease;
    }

        .tag-meta .follow-btn:hover {
            background-color: var(--brand-primary);
            color: #ffffff;
        }

    .tag-meta .question-count i {
        margin-right: 5px;
        font-size: 14px;
    }

.tag-info-header { /* Header specific to tags-content.html */
    padding-bottom: 20px;
    margin-bottom: 25px;
    border-bottom: 1px solid var(--border-lighter);
}

    .tag-info-header h1 {
        font-size: 26px;
        font-weight: 600;
        color: var(--text-primary);
        margin-top: 0;
        margin-bottom: 10px;
    }

.tag-page-description {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
}

.tag-page-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

    .tag-page-actions .follow-btn { /* "Follow this tag" button */
        padding: 7px 15px;
        font-size: 13px;
        font-weight: 500;
        color: var(--brand-primary);
        background-color: var(--bg-card);
        border: 1px solid var(--brand-primary);
        border-radius: 4px;
        cursor: pointer;
        display: inline-flex;
        align-items: center;
        text-decoration: none;
        transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    }

        .tag-page-actions .follow-btn:hover {
            background-color: var(--brand-primary);
            color: #ffffff;
        }

        .tag-page-actions .follow-btn i {
            margin-right: 6px;
        }

        .tag-page-actions .follow-btn.followed { /* "Followed" state */
            background-color: var(--success-color);
            color: #ffffff;
            border-color: var(--success-color);
        }

            .tag-page-actions .follow-btn.followed:hover {
                background-color: var(--success-color-darker);
                border-color: var(--success-color-darker);
            }

    .tag-page-actions .ask-related-question-btn {
        padding: 7px 15px;
        font-size: 13px;
        font-weight: 500;
        color: #fff;
        background-color: var(--brand-primary);
        border: 1px solid var(--brand-primary);
        border-radius: 4px;
        text-decoration: none;
        display: inline-flex;
        align-items: center;
        transition: background-color 0.2s ease, border-color 0.2s ease;
    }

        .tag-page-actions .ask-related-question-btn i {
            margin-right: 6px;
        }

        .tag-page-actions .ask-related-question-btn:hover {
            background-color: var(--brand-primary-darker);
            border-color: var(--brand-primary-darker);
        }

.user-profile-header {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--border-lighter);
}

.profile-avatar {
    width: 160px;
    height: 160px;
    border-radius: 8px;
    margin-right: 25px;
    object-fit: cover;
}

.profile-info .profile-name {
    font-size: 28px;
    font-weight: 600;
    color: #212529;
    margin-top: 0;
    margin-bottom: 5px;
}

.profile-info .profile-username {
    font-size: 16px;
    color: #606770;
    margin-top: 0;
    margin-bottom: 15px;
}

.profile-info .profile-stats {
    font-size: 15px;
    color: var(--text-primary);
    margin-bottom: 10px;
}

    .profile-info .profile-stats strong {
        font-weight: 600;
        color: #000;
    }

    .profile-info .profile-stats .stat-divider {
        margin: 0 8px;
        color: var(--border-input);
    }

        .profile-info .profile-stats .stat-divider::before {
            content: "|";
        }

.profile-info .profile-join-date {
    font-size: 14px;
    color: #606770;
}

.profile-tabs {
    display: flex;
    margin-bottom: 25px;
    border-bottom: 1px solid var(--border-lighter);
}

.profile-tab-btn {
    padding: 10px 20px;
    font-size: 15px;
    font-weight: 500;
    color: var(--brand-primary);
    text-decoration: none;
    border: none;
    background-color: transparent;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: color 0.2s ease, border-bottom-color 0.2s ease;
    margin-bottom: -1px; /* Overlap with parent border */
}

    .profile-tab-btn.active {
        color: var(--brand-primary);
        border-bottom-color: var(--brand-primary);
        font-weight: 600;
    }

    .profile-tab-btn:hover:not(.active) {
        color: var(--brand-primary-darker);
        border-bottom-color: var(--brand-primary-border-highlight);
    }

.profile-content-section {
    /* Default display, JS handles active state */
}

    .profile-content-section:not(.active-content) {
        display: none;
    }


.profile-about,
.profile-activity-list,
.user-answers-list, /* Added for consistency */
.user-questions-list { /* Added for consistency */
    margin-bottom: 30px;
}

    .profile-content h2, /* Generic h2 within profile content */
    .user-answers-list h2, /* Specific for answers list */
    .user-questions-list h2, /* Specific for questions list */
    #reviews-content h2 { /* Added for reviews section */
        font-size: 20px;
        font-weight: 600;
        color: var(--text-primary);
        margin-top: 0;
        margin-bottom: 15px;
        padding-bottom: 10px;
        border-bottom: 1px solid #f0f0f0;
    }

#reviews-content h2 {
    margin-bottom: 25px;
}


.profile-about p {
    font-size: 15px;
    color: #495057;
    line-height: 1.7;
}

.profile-activity-list ul,
.user-answers-list ul,
.user-questions-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.profile-activity-list li {
    padding: 12px 0;
    border-bottom: 1px solid #f0f2f5;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .profile-activity-list li:last-child {
        border-bottom: none;
    }

    .profile-activity-list li a {
        font-size: 15px;
        color: var(--brand-primary);
        text-decoration: none;
        flex-grow: 1;
    }

        .profile-activity-list li a:hover {
            text-decoration: underline;
            color: var(--brand-primary-darker);
        }

.activity-stats { /* Stats for Overview lists */
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 13px;
    color: var(--text-secondary);
    white-space: nowrap;
}

    .activity-stats span {
        display: flex;
        align-items: center;
    }

        .activity-stats span i {
            margin-right: 5px;
            color: var(--text-muted);
        }

    .activity-stats .status-accepted i,
    .activity-stats .status-answered-accepted i {
        color: var(--success-color);
    }

    .activity-stats .status-accepted,
    .activity-stats .status-answered-accepted {
        color: var(--success-color);
    }

/* User's Answers/Questions lists (in separate tabs) */
.user-answers-list li,
.user-questions-list li {
    padding: 15px 0;
    border-bottom: 1px solid var(--border-lighter);
}

    .user-answers-list li:last-child,
    .user-questions-list li:last-child {
        border-bottom: none;
    }

.item-title { /* Title of an answer/question in these lists */
    display: block;
    font-size: 18px;
    font-weight: 500;
    color: var(--brand-primary);
    text-decoration: none;
    margin-bottom: 8px;
}

    .item-title:hover {
        text-decoration: underline;
        color: var(--brand-primary-darker);
    }

.item-meta {
    font-size: 13px;
    color: #606770;
    margin-bottom: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 5px 15px;
}

    .item-meta span {
        display: flex;
        align-items: center;
    }

        .item-meta span i {
            margin-right: 5px;
        }

.item-tags .tag { /* Reusing .tag style */
    display: inline-block;
    background-color: var(--bg-tag);
    color: #495057;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    margin-right: 6px;
    margin-bottom: 6px;
    text-decoration: none;
}

    .item-tags .tag:hover {
        background-color: var(--brand-primary);
        color: #ffffff;
    }

.empty-placeholder { /* For empty "Reviews" tab */
    text-align: center;
    padding: 40px 20px;
    background-color: #f9f9f9;
    border-radius: 6px;
    color: #777;
}

    .empty-placeholder i {
        font-size: 48px;
        margin-bottom: 15px;
        color: #ccc;
    }

    .empty-placeholder p {
        font-size: 16px;
        margin: 0;
    }

.user-category {
    margin-bottom: 30px;
}

.user-category-title {
    font-size: 18px;
    font-weight: 500;
    color: #3c4043;
    margin-top: 0;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.users-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.user-card-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    padding: 12px;
    border-radius: 8px;
    transition: background-color 0.2s ease-in-out;
}

    .user-card-link:hover {
        background-color: #f8f9fa;
    }

.user-avatar-container {
    margin-right: 12px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .user-avatar-container .user-avatar-svg,
    .user-avatar-container .user-avatar-image {
        width: 48px;
        height: 48px;
        border-radius: 50%;
        object-fit: cover;
        border: 1px solid var(--border-light);
    }

    .user-avatar-container .user-avatar-svg {
        border-radius: 8px;
    }


.user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.4;
}

.user-name {
    font-size: 15px;
    font-weight: 500;
    color: var(--brand-primary);
    margin-bottom: 3px;
}

.user-card-link:hover .user-name {
    text-decoration: underline;
}

.user-reputation {
    font-size: 13px;
    color: #5f6368;
}

.static-content-body h2 {
    font-size: 22px;
    font-weight: 500;
    color: #3c4043;
    margin-top: 30px;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f0f0f0;
}

.static-content-body h3 {
    font-size: 18px;
    font-weight: 500;
    color: #3c4043;
    margin-top: 25px;
    margin-bottom: 10px;
}

.static-content-body p {
    margin-bottom: 15px;
    color: #495057;
}

.static-content-body ul {
    margin-bottom: 15px;
    padding-left: 25px;
    color: #495057;
}

    .static-content-body ul li {
        margin-bottom: 8px;
    }

.static-content-body strong {
    font-weight: 600;
    color: var(--text-primary);
}

.static-content-body a {
    color: var(--brand-primary);
    text-decoration: none;
}

    .static-content-body a:hover {
        text-decoration: underline;
    }

.question-title-detail {
    font-size: 28px;
    font-weight: 600;
    color: #212529;
    margin-top: 0;
    margin-bottom: 10px;
    line-height: 1.3;
}

/* Question author info on detail page - reusing .question-author-info for avatar, username, date */
/* Additional meta for question detail */
.question-author-info .meta-item {
    color: var(--text-muted);
    font-size: 13px;
}

    .question-author-info .meta-item:first-of-type {
        margin-left: 0; /* No left margin for the first actual meta item after date */
    }


.question-author-info .follow-link {
    color: var(--brand-primary);
    text-decoration: none;
}

    .question-author-info .follow-link:hover {
        text-decoration: underline;
    }


.question-body-section { /* Container for question text, tags, actions */
    margin-bottom: 30px;
}

.question-content-text {
    font-size: 16px;
    line-height: 1.7;
    color: #3c4043;
    margin-bottom: 20px;
}

    .question-content-text p {
        margin-bottom: 1em;
    }

    .question-content-text a {
        color: var(--brand-primary);
    }

.question-tags-detail {
    margin-bottom: 20px;
    white-space: nowrap;
    overflow-x: scroll;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

    .question-tags-detail::-webkit-scrollbar {
        display: none;
    }

    .question-tags-detail .tag {
        display: inline-block;
        background-color: var(--bg-tag);
        color: #495057;
        padding: 4px 10px;
        border-radius: 4px;
        font-size: 12px;
        margin: 3px;
        text-decoration: none;
        box-sizing: border-box;
    }

        .question-tags-detail .tag:hover {
            background-color: var(--brand-primary);
            color: #ffffff;
        }

.question-actions, .answer-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
}

.vote-controls {
    display: flex;
    align-items: center;
    gap: 5px;
}

.vote-btn {
    background-color: var(--bg-searchbar);
    border: 1px solid var(--border-input);
    color: #3c4043;
    padding: 6px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
}

    .vote-btn i {
        margin-right: 5px;
    }

    .vote-btn:hover {
        background-color: #e2e6ea;
    }

    .vote-btn.comment-count-btn i {
        margin-right: 0;
    }

.action-links {
    display: flex;
    align-items: center;
    gap: 15px;
}

    .action-links .action-link {
        font-size: 13px;
        color: #5f6368;
        text-decoration: none;
    }

        .action-links .action-link i {
            margin-right: 4px;
        }

        .action-links .action-link:hover {
            color: var(--brand-primary);
            text-decoration: underline;
        }

.answers-section {
    margin-top: 30px;
}

.answers-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-lighter);
    margin-top: 20px;
}

    .answers-header h2 {
        font-size: 20px;
        font-weight: 600;
        color: #212529;
        margin: 0;
    }

.answer-sort-options .sort-btn { /* Sorting buttons for answers */
    background-color: transparent;
    border: 1px solid var(--border-input);
    color: #3c4043;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 13px;
    margin-left: 8px;
}

    .answer-sort-options .sort-btn.active {
        background-color: var(--brand-primary);
        color: #ffffff;
        border-color: var(--brand-primary);
    }

    .answer-sort-options .sort-btn:hover:not(.active) {
        background-color: var(--bg-tag);
    }

.answer-item {
    padding: 30px 0;
    border-bottom: 1px solid var(--border-lighter);
}

    .answer-item:last-of-type {
        border-bottom: none; /* For the last answer if it's not "Your Answer" section */
    }

.answer-author-info {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    position: relative;
}

.avatar-image-answer {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    margin-right: 10px;
    object-fit: cover;
}

.answer-author-info .author-details {
    display: flex;
    flex-direction: column;
}

.username-answer {
    font-size: 15px;
    font-weight: 500;
    color: var(--brand-primary);
    text-decoration: none;
    margin-bottom: 2px;
}

    .username-answer:hover {
        text-decoration: underline;
    }

.answered-date-answer {
    font-size: 12px;
    color: #5f6368;
}

.best-answer-badge {
    background-color: var(--success-color-darker);
    color: #ffffff;
    font-size: 12px;
    padding: 3px 8px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    margin-left: auto;
}

    .best-answer-badge i {
        margin-right: 4px;
    }

.answer-content {
    font-size: 15px;
    line-height: 1.8;
    color: #3c4043;
    padding: 5px 0;
}

    .answer-content p {
        margin: 0.6em 0;
    }

    .answer-content a {
        color: var(--brand-primary);
    }

.your-answer-section {
    padding-top: 20px;
    margin-top: 20px; /* Add margin from previous content */
    border-top: 1px solid var(--border-light);
}

    .your-answer-section h2 {
        font-size: 20px; /* Changed from 18px to match .answers-header h2 */
        font-weight: 600; /* Changed from 500 */
        margin-bottom: 15px;
        color: #212529;
    }

    .your-answer-section textarea {
        width: 100%;
        min-height: 150px;
        padding: 12px 15px;
        border: 1px solid var(--border-input);
        border-radius: 6px;
        font-size: 15px;
        box-sizing: border-box;
        margin-bottom: 15px;
        line-height: 1.6;
    }

        .your-answer-section textarea:focus {
            border-color: var(--brand-primary);
            box-shadow: 0 0 0 3px var(--border-input-focus-shadow);
            outline: none;
        }

.submit-answer-btn {
    background-color: var(--brand-primary);
    color: white;
    border: none;
    border-radius: 5px;
    padding: 10px 20px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

    .submit-answer-btn:hover {
        background-color: var(--brand-primary-darker);
    }


.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex; /* Hidden by default via inline style or JS */
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px;
    box-sizing: border-box;
}

.modal-content {
    background-color: var(--bg-card);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    width: 100%;
    max-width: 460px;
    text-align: center;
    position: relative;
    animation: fadeInModal 0.3s ease-out;
    /* Content padding is applied to inner elements now */
    padding: 30px;
}

/* Separated content sections within modal */
.modal-header-section { /* For title like "Login to continue" */
    padding: 20px 30px;
    border-bottom: 1px solid var(--border-lighter);
}

.modal-body-section { /* For main content like "Welcome to..." and subtitle */
    padding: 30px 30px 20px; /* Less bottom padding if actions follow */
}

.modal-actions-section { /* For buttons */
    padding: 0px 30px 30px;
}


@keyframes fadeInModal {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close-btn {
    position: absolute;
    top: 30px; /* Adjusted for better placement with new padding */
    right: 30px;
    background: none;
    border: none;
    font-size: 28px;
    color: #888;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}

    .modal-close-btn:hover {
        color: var(--text-primary);
    }

.modal-prompt-title { /* Text like "Login to continue" */
    font-size: 16px;
    font-weight: 500; /* Made slightly bolder */
    color: var(--text-primary); /* Darker for better readability */
    margin: 0; /* Reset margin as padding is on parent */
    text-align: left; /* As per image */
    border-bottom: 1px solid var(--border-lighter);
    margin-bottom: 20px;
    padding-bottom: 20px;
}

.modal-main-title {
    font-size: 26px;
    font-weight: 600;
    color: #222;
    margin-top: 0; /* Reset margin */
    margin-bottom: 12px;
}

.modal-subtitle {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
    margin-top: 0; /* Reset margin */
    margin-bottom: 0; /* Reset, spacing handled by parent padding or .modal-actions */
}

.modal-actions { /* Container for buttons inside .modal-actions-section */
    display: flex;
    flex-direction: row;
    gap: 15px;
    margin-top: 30px; /* Space above buttons if subtitle is short */
}

.modal-body-section + .modal-actions-section .modal-actions { /* If actions directly follow body, no extra top margin */
    margin-top: 0;
}


.modal-btn-primary {
    background-color: var(--brand-primary);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: background-color 0.2s ease;
    border: none;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
}

    .modal-btn-primary:hover {
        background-color: var(--brand-primary-darker);
    }

.modal-btn-secondary {
    background-color: var(--bg-button-secondary); /* Use variable */
    color: var(--brand-primary);
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
    width: 100%;
    box-sizing: border-box;
    border: 1px solid var(--brand-primary);
    text-align: center;
}

    .modal-btn-secondary:hover {
        color: var(--brand-primary-darker);
        background-color: var(--brand-primary-lightest-bg);
        border-color: var(--brand-primary-darker);
    }



@media (max-width: 1280px) {
    .sidebar-left {
        width: 200px; /* Slightly reduce width */
    }

    .sidebar-right {
        width: 300px; /* Slightly reduce width */
    }
}


@media (max-width: 991.98px) {
    .container {
        width: 94%; /* Already set, can be removed if same as base */
    }

    .main-container {
        flex-direction: column;
    }

    .sidebar-left,
    .sidebar-right,
    .question-list-section,
    .tags-section,
    .user-profile-section,
    .user-list-main-content,
    .static-content-section,
    .question-content-area {
        width: 100%; /* Make sections full width when stacked */
        box-sizing: border-box; /* Ensure padding doesn't cause overflow */
    }

    .quick-links { /* Hide quick links on smaller tablets */
        display: none;
    }

    .sidebar-right {
        order: 3; /* Place right sidebar after main content */
    }

    .search-bar {
        width: 60%; /* Increase search bar width a bit */
    }

    .profile-avatar { /* User profile avatar */
        width: 120px;
        height: 120px;
    }

    .tags-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }

    .users-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); /* Adjusted minmax */
    }
}

@media (max-width: 767.98px) {
    .header-container {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 15px;
        align-items: center;
    }

    /* 第一行：logo和用户操作 */
    .logo {
        order: 1;
        flex: 0 0 auto;
    }

    .user-actions {
        order: 2;
        flex: 0 0 auto;
        width: auto;
        justify-content: flex-end;
        margin-top: 0;
        margin-left: auto; /* 推到右边 */
    }

        .user-actions .login-btn,
        .user-actions .signup-btn {
            flex-grow: 0;
            margin: 0 0 0 8px;
            padding: 6px 12px;
            font-size: 13px;
        }

    /* 第二行：搜索栏 */
    .search-bar {
        order: 3;
        width: 100%;
        flex: 1 1 100%; /* 强制换行到新行 */
        margin: 0;
        box-sizing: border-box;
    }

    .question-list-header,
    .tags-header,
    .tag-questions-section .question-list-header {
        flex-direction: row;
        align-items: flex-start;
        gap: 10px;
    }

    .tabs .tab-btn { /* General tab button adjustments */
        flex-grow: 1;
        text-align: center;
        margin: 0 2px !important; /* Override specific margins, use important if needed */
        padding: 8px 5px;
    }

    .question-title {
        font-size: 18px;
    }

    .question-excerpt {
        font-size: 13px;
    }

    .question-bottom-stats {
        font-size: 12px;
        gap: 15px;
    }

    .sidebar-left nav li a {
        font-size: 14px;
        padding: 8px 10px;
        display: block;
    }

    .sidebar-left nav li a {
        font-size: 14px;
        padding: 8px 10px;
        text-align: center;
        display: block;
        margin-bottom: 0;
    }

        .sidebar-left nav li a i {
            margin: 0;
        }

    .profile-tabs {
        overflow-x: auto; /* Allow horizontal scrolling for tabs */
        white-space: nowrap;
        justify-content: flex-start;
    }

    .profile-tab-btn {
        padding: 8px 15px;
        font-size: 14px;
    }

    .user-profile-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .profile-avatar {
        margin-right: 0;
        margin-bottom: 15px;
    }

    .profile-info .profile-stats {
        flex-direction: row; /* Keep stats in a row but allow wrap */
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px 15px; /* Row and column gap */
    }

        .profile-info .profile-stats .stat-divider {
            display: none;
        }

    .tag-card .tag-description {
        min-height: auto;
    }

    .footer-container {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

        .footer-container nav {
            margin-top: 10px;
        }

            .footer-container nav a {
                margin: 0 8px;
            }

    .modal-content {
        padding: 20px;
        max-width: 90%;
    }

    .modal-header-section, .modal-body-section, .modal-actions-section {
        padding: 15px 20px;
    }

    .modal-actions-section {
        padding-top: 0;
        padding-bottom: 20px;
    }

    .modal-main-title {
        font-size: 22px;
    }

    .modal-subtitle {
        font-size: 14px;
    }

    .question-title-detail {
        font-size: 22px;
    }
    /* Adjusted from 24px */
    .answers-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .question-actions, .answer-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        align-items: flex-start;
        gap: 10px;
    }

    .vote-controls, .action-links {
        width: 100%;
    }

    .action-links {
        justify-content: flex-end;
        align-items: center;
        height: 28.5px;
    }
}

@media (max-width: 767.98px) {
    .container {
        padding: 0 10px;
    }

    .logo i {
        font-size: 22px;
    }

    .sidebar-left {
        padding: 10px;
    }

        .sidebar-left nav ul {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            align-items: center;
        }

    .question-list-section,
    .tags-section,
    .user-profile-section,
    .user-list-main-content,
    .static-content-section,
    .question-content-area,
    .sidebar-right > div {
        padding: 15px;
    }

    .question-list-header h2,
    .tags-header h1,
    .user-list-header h1,
    .static-content-header h1,
    .tag-info-header h1 { /* Added tag-info-header */
        font-size: 20px;
    }

    .question-title-detail {
        font-size: 20px;
    }

    .tabs a.tab-btn, .tags-header .tabs a.tab-btn {
        padding: 5px 8px;
        font-size: 12px;
    }

    .answers-header h2, .your-answer-section h2, .profile-content h2 { /* Added profile content h2 */
        font-size: 18px;
    }

    .question-title {
        font-size: 17px;
    }

    .question-excerpt {
        -webkit-line-clamp: 3;
    }


    .question-tags a.tag {
        padding: 3px 8px;
        font-size: 11px;
    }

    .pagination a {
        padding: 6px 10px;
        font-size: 13px;
        margin: 0 2px;
    }

    .auth-container {
        padding: 20px;
    }

    .auth-title {
        font-size: 22px;
        margin-bottom: 20px;
    }
    /* Adjusted */
    .auth-form input[type="email"],
    .auth-form input[type="password"],
    .auth-form input[type="text"],
    .auth-button {
        font-size: 15px;
        padding: 10px 12px;
    }

    .tags-grid, .users-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .profile-avatar {
        width: 100px;
        height: 100px;
    }

    .profile-info .profile-name {
        font-size: 20px;
    }

    .profile-info .profile-username {
        font-size: 14px;
    }

    .profile-tab-btn {
        padding: 8px 10px;
        font-size: 13px;
    }

    .modal-content {
        padding: 15px;
    }

    .modal-header-section, .modal-body-section, .modal-actions-section {
        padding: 10px 15px;
    }

    .modal-actions-section {
        padding-top: 0;
        padding-bottom: 15px;
    }

    .modal-main-title {
        font-size: 18px;
    }

    .modal-subtitle {
        font-size: 13px;
        margin-bottom: 15px;
    }

    .modal-btn-primary, .modal-btn-secondary {
        padding: 12px 15px;
        font-size: 15px;
    }

    .modal-close-btn {
        top: 10px;
        right: 10px;
        font-size: 24px;
    }

    .static-content-body h2 {
        font-size: 18px;
    }

    .static-content-body h3 {
        font-size: 16px;
    }
}


.user-profile-edit {
    flex: 1;
    background-color: var(--bg-card);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.user-profile-edit-container {
    margin: 0 auto;
}

.user-profile-edit-header {
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 15px;
    margin-bottom: 20px;
}

    .user-profile-edit-header h1 {
        font-size: 24px;
        font-weight: 600;
        color: var(--text-primary);
        margin: 0;
    }

.profile-edit-form {
    padding: 5px 0;
}

    .profile-edit-form .form-group {
        margin-bottom: 25px;
    }

    .profile-edit-form label {
        display: block;
        font-size: 15px;
        color: var(--text-primary);
        margin-bottom: 8px;
        font-weight: 500;
    }

    .profile-edit-form .optional {
        color: var(--text-muted);
        font-weight: normal;
        font-size: 13px;
    }

    .profile-edit-form input[type="text"],
    .profile-edit-form input[type="email"],
    .profile-edit-form select,
    .profile-edit-form textarea {
        width: 100%;
        padding: 12px 15px;
        border: 1px solid var(--border-input);
        border-radius: 6px;
        font-size: 15px;
        box-sizing: border-box;
    }

    .profile-edit-form select {
        appearance: none;
        background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
        background-repeat: no-repeat;
        background-position: right 15px center;
        background-size: 15px;
    }

    .profile-edit-form textarea {
        min-height: 120px;
        resize: vertical;
    }

        .profile-edit-form input[type="text"]:focus,
        .profile-edit-form input[type="email"]:focus,
        .profile-edit-form select:focus,
        .profile-edit-form textarea:focus {
            border-color: var(--brand-primary);
            box-shadow: 0 0 0 3px var(--border-input-focus-shadow);
            outline: none;
        }

    .profile-edit-form .avatar-upload {
        margin-bottom: 30px;
    }

    .profile-edit-form .avatar-container {
        display: flex;
        align-items: center;
        margin-top: 10px;
    }

    .profile-edit-form .current-avatar {
        width: 100px;
        height: 100px;
        border-radius: 50%;
        object-fit: cover;
        margin-right: 20px;
        border: 1px solid var(--border-light);
    }

    .profile-edit-form .avatar-actions {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .profile-edit-form .upload-btn {
        display: inline-flex;
        align-items: center;
        background-color: var(--bg-button-secondary);
        color: var(--text-primary);
        padding: 10px 15px;
        border-radius: 6px;
        cursor: pointer;
        font-size: 14px;
        border: 1px solid var(--border-input);
        transition: background-color 0.2s;
    }

        .profile-edit-form .upload-btn i {
            margin-right: 8px;
        }

        .profile-edit-form .upload-btn:hover {
            background-color: #e8e8e8;
        }

    .profile-edit-form .avatar-hint {
        font-size: 12px;
        color: var(--text-muted);
        margin-top: 8px;
        margin-bottom: 0;
    }

    .profile-edit-form .form-actions {
        display: flex;
        gap: 15px;
        margin-top: 30px;
        padding-top: 20px;
        border-top: 1px solid var(--border-light);
    }

    .profile-edit-form .save-btn {
        background-color: var(--brand-primary);
        color: white;
        padding: 12px 20px;
        border-radius: 6px;
        border: none;
        font-size: 15px;
        font-weight: 500;
        cursor: pointer;
        transition: background-color 0.2s;
    }

        .profile-edit-form .save-btn:hover {
            background-color: var(--brand-primary-darker);
        }

    .profile-edit-form .cancel-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background-color: var(--bg-button-secondary);
        color: var(--text-primary);
        padding: 12px 20px;
        border-radius: 6px;
        font-size: 15px;
        text-decoration: none;
        transition: background-color 0.2s;
        border: 1px solid var(--border-input);
    }

        .profile-edit-form .cancel-btn:hover {
            background-color: #e8e8e8;
        }

@media (max-width: 767.98px) {
    .profile-edit-form .avatar-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .profile-edit-form .current-avatar {
        margin-right: 0;
        margin-bottom: 15px;
    }

    .profile-edit-form .form-actions {
        flex-direction: column;
    }

    .profile-edit-form .save-btn,
    .profile-edit-form .cancel-btn {
        width: 100%;
        text-align: center;
    }
}


.user-edit-btn {
    display: inline-flex;
    align-items: center;
    background-color: #f8f9fa;
    color: #3a7bfd;
    padding: 8px 15px;
    border-radius: 4px;
    font-size: 14px;
    border: 1px solid #dee2e6;
    text-decoration: none;
    transition: all 0.2s ease;
}

    .user-edit-btn i {
        margin-right: 8px;
    }

    .user-edit-btn:hover {
        background-color: #e9ecef;
        color: #0056b3;
    }


.add-question-btn {
    display: inline-flex;
    align-items: center;
    background-color: #28a745;
    color: white;
    padding: 8px 15px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

    .add-question-btn:hover {
        background-color: #218838;
    }

    .add-question-btn::before {
        content: "\f067";
        font-family: "Font Awesome 6 Free";
        font-weight: 900;
        margin-right: 8px;
    }


.add-question-section {
    flex: 1;
    background-color: var(--bg-card);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.add-question-container {
    margin: 0 auto;
}

.add-question-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 20px 0;
}

.add-question-form .form-group {
    margin-bottom: 20px;
}

.add-question-form label {
    display: block;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 8px;
}

.question-title-input,
.question-tags-input,
.question-content-textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-input);
    border-radius: 6px;
    font-size: 15px;
    box-sizing: border-box;
}

.question-content-textarea {
    resize: vertical;
    min-height: 200px;
    font-family: inherit;
    line-height: 1.5;
}

    .question-title-input:focus,
    .question-tags-input:focus,
    .question-content-textarea:focus {
        border-color: var(--brand-primary);
        box-shadow: 0 0 0 3px var(--border-input-focus-shadow);
        outline: none;
    }

.tags-hint {
    margin-top: 8px;
    font-size: 13px;
    color: var(--text-muted);
}

.question-option {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
}

    .question-option input[type="checkbox"] {
        margin-right: 8px;
    }

.submit-question-btn {
    background-color: #0d6efd;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

    .submit-question-btn:hover {
        background-color: #0b5ed7;
    }



/* 分享弹窗样式 */
.share-popup {
    position: absolute;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 12px;
    z-index: 1000;
    display: none;
    width: 220px;
}

    .share-popup.active {
        display: block;
    }

.share-popup-title {
    font-size: 14px;
    margin-bottom: 10px;
    color: #666;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}

.share-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 10px;
}

.share-button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: transform 0.2s;
    border: 0;
    font-size: 18px;
}

    .share-button:hover {
        transform: scale(1.1);
    }

    .share-button.facebook {
        background-color: #1877F2;
    }

    .share-button.twitter {
        background-color: #1DA1F2;
    }

    .share-button.whatsapp {
        background-color: #25D366;
    }

    .share-button.telegram {
        background-color: #0088cc;
    }

    .share-button.reddit {
        background-color: #FF4500;
    }

    .share-button.linkedin {
        background-color: #0077B5;
    }

    .share-button.tumblr {
        background-color: #36465D;
    }

    .share-button.info {
        background-color: #333;
    }

.share-copy-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-top: 1px solid #eee;
    padding-top: 10px;
}

.share-copy-button {
    display: flex;
    align-items: center;
    padding: 8px 10px;
    border-radius: 4px;
    background-color: #f5f5f5;
    cursor: pointer;
    transition: background-color 0.2s;
}

    .share-copy-button:hover {
        background-color: #eee;
    }

    .share-copy-button i {
        margin-right: 8px;
        color: #666;
    }

/* 提示 */
.toast-div {
    position: fixed;
    bottom: 50%;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0,0,0,0.7);
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    z-index: 2000;
    transition: opacity 0.3s;
}
