* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html, body {
    width: 100%;
    min-height: 100vh;
    overflow-x: hidden;
}
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'PingFang SC', 'Microsoft YaHei', sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.breadcrumb {
    background: #fff;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}
.breadcrumb .container {
    display: flex;
    align-items: center;
    gap: 8px;
}
.breadcrumb a {
    color: #3CB371;
    text-decoration: none;
}
.breadcrumb a:hover {
    text-decoration: underline;
}
.breadcrumb span {
    color: #999;
}
.breadcrumb .current {
    color: #666;
}
.header {
    background: #fff;
    padding: 12px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.logo {
    margin: 0;
}
.logo .site-title {
    font-size: 24px;
    color: #333;
    font-weight: 600;
    margin: 0;
}
.logo .site-title a {
    color: #333;
    text-decoration: none;
}
.logo .site-title span {
    color: #3CB371;
}
.nav {
    margin-left: auto;
}
.nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
}
.nav ul li {
    margin: 0;
}
.nav ul li a {
    color: #333;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 4px;
    transition: all 0.2s ease;
    font-size: 15px;
}
.nav ul li a:hover, .nav ul li a.active {
    background: #3CB371;
    color: #fff;
}
.nav ul li a.btn-primary {
    background: #3CB371;
    color: #fff;
    padding: 8px 20px;
    font-weight: 500;
    margin-left: 8px;
}
.nav ul li a.btn-primary:hover {
    background: #2E8B57;
}
.banner {
    background: linear-gradient(135deg, #3CB371 0%, #2E8B57 100%);
    color: #fff;
    padding: 40px 0;
    text-align: center;
}
.banner h1, .banner .banner-title {
    font-size: 32px;
    margin-bottom: 12px;
    font-weight: 600;
}
.banner p {
    font-size: 16px;
    opacity: 0.9;
}
.content {
    padding: 10px 0;
    width: 100%;
    box-sizing: border-box;
    background: #fff;
}
.content .container {
    display: flex;
    gap: 25px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5px;
    box-sizing: border-box;
}
.sidebar {
    width: 320px;
    flex-shrink: 0;
}
.main-content {
    flex: 1;
    min-width: 0;
    background: #fff;
    border-radius: 8px;
    padding: 24px;
}
.ask-detail-page .main-content {
    border: 1px solid #eee;
}
.question-filter {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #eee;
}
.filter-btn {
    padding: 8px 16px;
    background: #f5f5f5;
    border: none;
    border-radius: 4px;
    color: #666;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    text-decoration: none;
    display: inline-block;
}
.filter-btn.active, .filter-btn:hover {
    background: #3CB371;
    color: #fff;
    text-decoration: none;
}
.search-box {
    display: flex;
    gap: 0;
    margin-bottom: 20px;
}
.search-box input {
    flex: 1;
    height: 40px;
    padding: 0 14px;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
    font-size: 14px;
    outline: none;
}
.search-box button {
    height: 40px;
    width: 80px;
    background: #3CB371;
    border: none;
    border-radius: 0 4px 4px 0;
    color: #fff;
    cursor: pointer;
    font-size: 14px;
}
.question-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.question-card {
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 8px;
    transition: all 0.2s ease;
}
.question-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border-color: #3CB371;
}
.question-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}
.question-header {
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
    margin-bottom: 25px;
}
.question-title {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
    margin-bottom: 16px;
}
.question-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 14px;
    color: #666;
}
.question-meta .tag {
    background: #e8f5e9;
    color: #3CB371;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 13px;
}
.question-meta .status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.question-meta .status.solved {
    color: #3CB371;
}
.question-meta .status.pending {
    color: #f39c12;
}
.question-content {
    margin-bottom: 30px;
}
.question-content h3 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
}
.question-content p {
    font-size: 15px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 12px;
    text-align: justify;
}
.question-content ul,
.question-content ol {
    padding-left: 24px;
    margin-bottom: 12px;
}
.question-content li {
    margin-bottom: 8px;
    color: #555;
}
.answer-section {
    background: #fafafa;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 30px;
}
.answer-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px dashed #ddd;
}
.answer-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3CB371 0%, #2e8b57 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    font-weight: 600;
}
.answer-info {
    flex: 1;
}
.answer-author {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 2px;
}
.answer-role {
    font-size: 13px;
    color: #3CB371;
}
.answer-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 13px;
    color: #999;
}
.answer-content {
    font-size: 15px;
    line-height: 1.8;
    color: #333;
}
.answer-content h4 {
    font-size: 16px;
    font-weight: 600;
    margin-top: 20px;
    margin-bottom: 12px;
    color: #333;
}
.answer-content p {
    margin-bottom: 12px;
    text-align: justify;
}
.answer-content ul,
.answer-content ol {
    padding-left: 24px;
    margin-bottom: 12px;
}
.answer-content li {
    margin-bottom: 8px;
}
.question-content a,
.answer-content a {
    color: #3CB371;
    text-decoration: none;
}
.question-content a:hover,
.answer-content a:hover {
    text-decoration: none;
}
.answer-content .highlight {
    background: #fff3cd;
    border-left: 4px solid #f39c12;
    padding: 12px 16px;
    margin: 15px 0;
    border-radius: 0 4px 4px 0;
}
.answer-actions {
    display: flex;
    align-items: center;
    gap: 30px;
    padding-top: 15px;
    margin-top: 20px;
    border-top: 1px dashed #ddd;
    flex-wrap: wrap;
}
.action-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    color: #666;
    font-size: 14px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.2s ease;
}
.action-btn:hover {
    background: #f0f0f0;
    color: #3CB371;
}
.action-btn.liked {
    color: #3CB371;
}
.comments-section {
    margin-bottom: 30px;
}
.comments-section h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #3CB371;
}
.comment-form {
    background: #fafafa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
}
.comment-form textarea {
    width: 100%;
    height: 100px;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    resize: vertical;
    outline: none;
    transition: border-color 0.2s ease;
}
.comment-form textarea:focus {
    border-color: #3CB371;
}
.comment-form .submit-btn {
    margin-top: 12px;
    padding: 10px 24px;
    background: #3CB371;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s ease;
}
.comment-form .submit-btn:hover {
    background: #2e8b57;
}
.comments-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.comment-item {
    display: flex;
    gap: 12px;
    padding-bottom: 20px;
    border-bottom: 1px dashed #eee;
}
.comment-item:last-child {
    border-bottom: none;
}
.comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 16px;
    flex-shrink: 0;
}
.comment-content {
    flex: 1;
}
.comment-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}
.comment-author {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}
.comment-time {
    font-size: 12px;
    color: #999;
}
.comment-text {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
}
.comment-actions {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}
.comment-actions button {
    background: none;
    border: none;
    color: #999;
    font-size: 12px;
    cursor: pointer;
}
.comment-actions button:hover {
    color: #3CB371;
}
.question-card h3 a {
    color: #333;
    text-decoration: none;
}
.question-card h3 a:hover {
    color: #3CB371;
}
.question-card .excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.question-card .meta {
    display: flex;
    gap: 20px;
    font-size: 13px;
    color: #999;
}
.question-card .meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}
.question-card .meta a {
    color: #3CB371;
    text-decoration: none;
}
.pagebar {
    text-align: center;
    margin-top: 30px;
    padding: 20px 0;
}
.pagebar a, .pagebar span {
    display: inline-block;
    padding: 8px 16px;
    margin: 0 4px;
    text-decoration: none;
    color: #333;
    border: 1px solid #eee;
    border-radius: 4px;
    font-size: 14px;
}
.pagebar a:hover, .pagebar a.active {
    background: #3CB371;
    color: #fff;
    border-color: #3CB371;
}
.pagebar span {
    color: #999;
    background: #f5f5f5;
}
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.sidebar-module {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #eee;
}
.sidebar-module h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #3CB371;
    color: #333;
}
.sidebar-module ul {
    list-style: none;
}
.sidebar-module ul li {
    padding: 10px 0;
    border-bottom: 1px dashed #eee;
}
.sidebar-module ul li:last-child {
    border-bottom: none;
}
.sidebar-module ul li a {
    color: #333;
    text-decoration: none;
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.sidebar-module ul li a:hover {
    color: #3CB371;
}
.sidebar-module ul li span {
    color: #999;
    font-size: 12px;
}
.btn-primary {
    display: inline-block;
    padding: 10px 24px;
    background: #3CB371;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.2s ease;
}
.btn-primary:hover {
    background: #2E8B57;
}
.stats {
    display: flex;
    gap: 30px;
    margin-bottom: 20px;
    padding: 16px;
    background: #fafafa;
    border-radius: 8px;
}
.stat-item {
    text-align: center;
    flex: 1;
}
.stat-item .num {
    font-size: 24px;
    font-weight: 700;
    color: #3CB371;
}
.stat-item .label {
    font-size: 13px;
    color: #999;
    margin-top: 4px;
}
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.tag-cloud a {
    padding: 6px 14px;
    background: #f5f5f5;
    color: #666;
    text-decoration: none;
    font-size: 13px;
    border-radius: 4px;
    transition: all 0.2s ease;
}
.tag-cloud a:hover {
    background: #3CB371;
    color: #fff;
}
.footer {
    background: #1a1a1a;
    padding: 40px 0 20px;
    margin-top: 40px;
    width: 100%;
    box-sizing: border-box;
}
.footer .container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}
.footer-top {
    display: flex;
    justify-content: space-between;
    padding-bottom: 25px;
    border-bottom: 1px solid #333;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 20px;
}
.footer-brand {
    flex: 1;
    min-width: 280px;
}
.footer-brand h2 {
    font-size: 22px;
    color: #fff;
    margin-bottom: 10px;
    font-weight: 600;
}
.footer-brand h2 span {
    color: #3CB371;
}
.footer-brand p {
    color: #999;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}
.footer-links {
    color: #fff;
}
.footer-links h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 12px;
}
.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}
.footer-links ul li {
    padding: 0;
}
.footer-links ul li a {
    color: #999;
    text-decoration: none;
    font-size: 14px;
    padding: 6px 0;
}
.footer-links ul li a:hover {
    color: #3CB371;
}
.footer-bottom {
    text-align: center;
    color: #999;
    font-size: 13px;
}
.footer-bottom p {
    margin: 0;
}
.header .mobile-menu-btn {
    display: none;
    width: 40px;
    height: 40px;
    background: #f0f0f0;
    border: none;
    border-radius: 4px;
    color: #333;
    font-size: 20px;
    cursor: pointer;
}
.header .mobile-nav {
    display: none;
    background: #fff;
    padding: 15px 20px;
    border-top: 1px solid #eee;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}
.header .mobile-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.header .mobile-nav ul li a {
    color: #333;
    font-size: 16px;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 4px;
    display: block;
    transition: all 0.2s ease;
}
.header .mobile-nav ul li a:hover, .header .mobile-nav ul li a.active {
    background: #3CB371;
    color: #fff;
}
@media (max-width: 1024px) {
    .content .container {
        gap: 25px;
    }
    .sidebar {
        width: 280px;
    }
}
@media (max-width: 900px) {
    .content .container {
        flex-direction: column;
        gap: 20px;
    }
    .sidebar {
        width: 100%;
        order: 1;
    }
}
@media (max-width: 768px) {
    html, body {
        -webkit-overflow-scrolling: touch;
        overflow-x: hidden;
    }
    .container {
        padding: 0 15px;
    }
    .header-inner {
        padding: 0 15px;
    }
    .header .nav {
        display: none;
    }
    .header .mobile-menu-btn {
        display: block;
    }
    .header {
        padding: 10px 0;
    }
    .banner {
        padding: 30px 0;
    }
    .banner h1, .banner .banner-title {
        font-size: 22px;
    }
    .banner p {
        font-size: 14px;
        padding: 0 15px;
    }
    .content {
        padding: 25px 0;
    }
    .content .container {
        flex-direction: column;
        gap: 20px;
    }
    .main-content {
        padding: 16px;
    }
    .question-filter {
        flex-wrap: wrap;
        gap: 8px;
    }
    .filter-btn {
        padding: 8px 14px;
        font-size: 13px;
    }
    .stats {
        gap: 10px;
        padding: 12px;
    }
    .stat-item .num {
        font-size: 18px;
    }
    .stat-item .label {
        font-size: 12px;
    }
    .sidebar {
        order: 1;
    }
    .sidebar-module {
        padding: 16px;
    }
}
@media (max-width: 576px) {
    .header .logo .site-title {
        font-size: 20px;
    }
    .banner {
        padding: 20px 0;
    }
    .banner h1, .banner .banner-title {
        font-size: 19px;
    }
    .banner p {
        font-size: 13px;
    }
    .content {
        padding: 15px 0;
    }
    .main-content {
        padding: 12px;
    }
    .question-card {
        padding: 14px;
    }
    .question-card h3 {
        font-size: 16px;
    }
    .question-card .excerpt {
        font-size: 13px;
    }
    .question-card .meta {
        flex-wrap: wrap;
        gap: 8px;
        font-size: 12px;
    }
    .stats {
        flex-direction: column;
        gap: 12px;
    }
    .stat-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 8px 0;
        border-bottom: 1px dashed #eee;
    }
    .stat-item:last-child {
        border-bottom: none;
    }
    .footer-top {
        flex-direction: column;
        gap: 25px;
    }
    .footer-brand {
        min-width: 100%;
    }
    .footer-links ul {
        gap: 15px;
    }
}
@media (max-width: 375px) {
    .header .logo .site-title {
        font-size: 18px;
    }
    .banner h1, .banner .banner-title {
        font-size: 17px;
    }
    .mobile-menu-btn {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }
    .question-card h3 {
        font-size: 15px;
    }
    .search-box input {
        font-size: 13px;
    }
}
@media (max-width: 320px) {
    .container {
        padding: 0 10px;
    }
    .header-inner {
        padding: 0 10px;
    }
    .header .logo .site-title {
        font-size: 16px;
    }
    .banner h1, .banner .banner-title {
        font-size: 16px;
    }
    .banner p {
        font-size: 12px;
    }
    .question-card {
        padding: 10px;
    }
    .question-card h3 {
        font-size: 14px;
    }
}