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

body {
    font-family: "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
    background: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

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

ul, ol {
    list-style: none;
}

/* 顶部整体渐变容器 */
.top-gradient-wrapper {
    background: linear-gradient(to bottom, #e8f4f8 0%, #f0f8fc 40%, #fafbfc 70%, #ffffff 100%);
    box-shadow: 0 2px 8px rgba(0,136,204,0.1);
}

/* 顶部信息栏 */
.top-bar {
    height: 40px;
    line-height: 40px;
}

.container {
    width: 1200px;
    margin: 0 auto;
}

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

.top-date {
    color: #666;
    font-size: 14px;
}

.top-links {
    display: flex;
    gap: 20px;
}

.top-links a {
    color: #666;
    font-size: 14px;
    transition: color 0.3s;
}

.top-links a:hover {
    color: #0088cc;
}
/* APP二维码悬停 */
.app-qrcode-wrapper {
    position: relative;
}

.qrcode-popup {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 15px;
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    min-width: 160px;
    text-align: center;
}

.app-qrcode-wrapper:hover .qrcode-popup {
    opacity: 1;
    visibility: visible;
    margin-top: 10px;
}

.qrcode-arrow {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #fff;
}

.qrcode-image {
    width: 130px;
    height: 130px;
    display: block;
    margin: 0 auto 10px;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
}

.qrcode-text {
    font-size: 13px;
    color: #666;
    margin: 0;
    padding: 0;
}

/* Logo区域 */
.header {
    padding: 20px 0;
}

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

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #0099dd 0%, #0077bb 50%, #005599 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 4px 10px rgba(0,136,204,0.3);
}

.logo-icon::before {
    content: "";
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0.1) 100%);
    border-radius: 50%;
}

.logo-text h1 {
    font-size: 28px;
    color: #0088cc;
    font-weight: bold;
    margin-bottom: 2px;
}

.logo-text p {
    font-size: 12px;
    color: #999;
}
/* 搜索框 */
.search-area {
    display: flex;
    align-items: center;
    gap: 15px;
}

.search-tips {
    color: #999;
    font-size: 13px;
}

.search-box {
    display: flex;
}

.search-input {
    width: 280px;
    height: 38px;
    border: 1px solid #ddd;
    padding: 0 15px;
    font-size: 14px;
    border-radius: 4px 0 0 4px;
    outline: none;
}

.search-input:focus {
    border-color: #0088cc;
}

.search-btn {
    width: 70px;
    height: 38px;
    background: linear-gradient(to bottom, #0099dd 0%, #0077bb 100%);
    color: #fff;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
    box-shadow: 0 2px 4px rgba(0,136,204,0.2);
}

.search-btn:hover {
    background: linear-gradient(to bottom, #0088cc 0%, #0066aa 100%);
    box-shadow: 0 3px 6px rgba(0,136,204,0.3);
}

/* 导航栏 */
.nav {
    background: linear-gradient(to bottom, #ffffff 0%, #fafbfc 100%);
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.nav-list {
    display: flex;
    height: 50px;
}

.nav-list li {
    flex: 1;
    text-align: center;
}

.nav-list a {
    display: block;
    height: 50px;
    line-height: 50px;
    color: #333;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s;
    position: relative;
}

.nav-list a:hover,
.nav-list a.active {
    background: linear-gradient(to bottom, #0099dd 0%, #0077bb 100%);
    color: #fff;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.wrap {
    overflow: hidden;
    background: #f6f6f6;
    padding-top: 230px;
}

/* 面包屑导航 */
.breadcrumb {
    background: #fff;
    padding: 15px 0;
    border-bottom: 1px solid #e5e5e5;
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #666;
}

.breadcrumb-item::after {
    content: ">";
    margin-left: 10px;
    color: #999;
}

.breadcrumb-item:last-child::after {
    content: "";
}

.breadcrumb-item a {
    color: #666;
    transition: color 0.3s;
}

.breadcrumb-item a:hover {
    color: #0088cc;
}

.breadcrumb-item.active {
    color: #0088cc;
}

/* 主内容区 */
.main-wrapper {
    padding: 30px 0;
}

/* 页面标题 */
.page-header {
    background: #fff;
    padding: 30px 40px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.page-title {
    font-size: 32px;
    color: #333;
    font-weight: bold;
    margin-bottom: 15px;
}

.page-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.8;
}

/* 筛选区域 */
.filter-section {
    background: #fff;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.filter-tabs {
    display: flex;
    gap: 10px;
}

.filter-tab {
    padding: 8px 20px;
    background: #f5f5f5;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
    color: #666;
}

.filter-tab:hover,
.filter-tab.active {
    background: #0088cc;
    color: #fff;
}

.submit-btn {
    padding: 10px 30px;
    background: linear-gradient(to bottom, #0099dd 0%, #0077bb 100%);
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
    box-shadow: 0 2px 4px rgba(0,136,204,0.2);
}

.submit-btn:hover {
    background: linear-gradient(to bottom, #0088cc 0%, #0066aa 100%);
    box-shadow: 0 3px 6px rgba(0,136,204,0.3);
}

/* 问政列表 */
.question-list {
    background: #fff;
    padding: 20px;
    border-radius: 4px;
}

/* 加载状态 */
.loading-state {
    text-align: center;
    padding: 60px 0;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    margin: 0 auto 20px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #0088cc;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-state p {
    font-size: 16px;
    color: #999;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 80px 0;
}

.empty-state p {
    font-size: 16px;
    color: #999;
}

/* 问政列表容器 */
#questionListContainer {
    min-height: 400px;
}

.question-item {
    padding: 25px 0;
    border-bottom: 1px solid #e8e8e8;
    transition: all 0.3s;
}

.question-item:hover {
    background: #fafafa;
    padding-left: 15px;
    padding-right: 15px;
    margin-left: -15px;
    margin-right: -15px;
}

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

.question-header {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.question-status {
    padding: 4px 12px;
    border-radius: 3px;
    font-size: 12px;
    margin-right: 12px;
}

.status-replied {
    background: #e8f5e9;
    color: #2e7d32;
}

.status-pending {
    background: #fff3e0;
    color: #ef6c00;
}

.question-category {
    padding: 4px 12px;
    background: #e3f2fd;
    color: #1976d2;
    border-radius: 3px;
    font-size: 12px;
}

.question-title {
    font-size: 18px;
    color: #333;
    font-weight: bold;
    margin-bottom: 10px;
}

.question-title a {
    color: #333;
    transition: color 0.3s;
}

.question-title a:hover {
    color: #0088cc;
}

.question-content {
    font-size: 14px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.question-meta {
    display: flex;
    align-items: center;
    font-size: 13px;
    color: #999;
    gap: 20px;
}

.question-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 30px;
}

.page-btn {
    padding: 8px 15px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
    color: #666;
}

.page-btn:hover:not(:disabled) {
    background: #0088cc;
    color: #fff;
    border-color: #0088cc;
}

.page-btn.active {
    background: #0088cc;
    color: #fff;
    border-color: #0088cc;
}

.page-btn:disabled {
    background: #f5f5f5;
    color: #ccc;
    cursor: not-allowed;
}

.page-dots {
    padding: 8px 10px;
    color: #999;
    font-size: 14px;
}

/* 底部 */
.footer {
    background: linear-gradient(to bottom, #0077cc 0%, #005599 100%);
    color: #fff;
    padding: 30px 0;
    margin-top: 40px;
    text-align: center;
    box-shadow: 0 -3px 10px rgba(0,0,0,0.1);
}

.footer-links {
    margin-bottom: 15px;
}

.footer-links a {
    color: #fff;
    margin: 0 15px;
    opacity: 0.9;
    transition: opacity 0.3s;
}

.footer-links a:hover {
    opacity: 1;
}

.footer-info {
    font-size: 13px;
    line-height: 1.8;
    opacity: 0.9;
}

/* 表单容器 */
.form-container {
    background: #fff;
    padding: 40px;
    border-radius: 4px;
}

.form-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e5e5e5;
}

.form-title {
    font-size: 28px;
    color: #333;
    font-weight: bold;
    margin-bottom: 10px;
}

.form-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.8;
}

/* 提示信息 */
.form-notice {
    background: #e3f2fd;
    padding: 20px;
    border-left: 4px solid #0088cc;
    border-radius: 4px;
    margin-bottom: 30px;
}

.form-notice-title {
    font-size: 16px;
    color: #0088cc;
    font-weight: bold;
    margin-bottom: 10px;
}

.form-notice-list {
    font-size: 14px;
    color: #666;
    line-height: 2;
}

.form-notice-list li {
    padding-left: 15px;
    position: relative;
}

.form-notice-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #0088cc;
}

/* 表单项 */
.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: block;
    font-size: 15px;
    color: #333;
    font-weight: bold;
    margin-bottom: 10px;
}

.form-label .required {
    color: #f44336;
    margin-left: 3px;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    color: #333;
    transition: all 0.3s;
    outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: #0088cc;
    box-shadow: 0 0 0 3px rgba(0,136,204,0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 150px;
    line-height: 1.6;
}

.form-hint {
    font-size: 13px;
    color: #999;
    margin-top: 8px;
}

/* 单选框组 */
.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.radio-inline {
    gap: 30px;
}

.radio-item {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: all 0.3s;
    background: #fff;
}

.radio-item:hover {
    border-color: #0088cc;
    background: #f0f8fc;
}

.radio-item input[type="radio"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    margin: 0;
}

.radio-item input[type="radio"]:checked + span {
    color: #0088cc;
    font-weight: bold;
}

.radio-item:has(input[type="radio"]:checked) {
    border-color: #0088cc;
    background: #e3f2fd;
}

/* 验证码 */
.captcha-group {
    display: flex;
    gap: 15px;
    align-items: center;
}

.captcha-input {
    flex: 1;
}

.captcha-img {
    width: 120px;
    height: 46px;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    font-size: 20px;
    letter-spacing: 3px;
    color: #666;
    user-select: none;
}

/* 协议 */
.form-agreement {
    margin: 30px 0;
    padding: 20px;
    background: #fafafa;
    border-radius: 4px;
}

.agreement-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
}

.agreement-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.agreement-checkbox label {
    font-size: 14px;
    color: #666;
    cursor: pointer;
}

.agreement-checkbox a {
    color: #0088cc;
    text-decoration: underline;
}

.agreement-checkbox a:hover {
    color: #0066aa;
}

/* 按钮组 */
.form-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
}

.btn {
    padding: 14px 50px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background: linear-gradient(to bottom, #0099dd 0%, #0077bb 100%);
    color: #fff;
    box-shadow: 0 2px 4px rgba(0,136,204,0.2);
}

.btn-primary:hover {
    background: linear-gradient(to bottom, #0088cc 0%, #0066aa 100%);
    box-shadow: 0 3px 6px rgba(0,136,204,0.3);
}

.btn-secondary {
    background: #f5f5f5;
    color: #666;
}

.btn-secondary:hover {
    background: #e0e0e0;
}

/* 问政详情 */
.question-detail {
    background: #fff;
    padding: 40px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.detail-header {
    border-bottom: 2px solid #e5e5e5;
    padding-bottom: 25px;
    margin-bottom: 25px;
}

.detail-tags {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.detail-status {
    padding: 6px 15px;
    border-radius: 3px;
    font-size: 13px;
    font-weight: bold;
}

.status-replied {
    background: #e8f5e9;
    color: #2e7d32;
}

.status-pending {
    background: #fff3e0;
    color: #ef6c00;
}

.detail-category {
    padding: 6px 15px;
    background: #e3f2fd;
    color: #1976d2;
    border-radius: 3px;
    font-size: 13px;
}

.detail-title {
    font-size: 28px;
    color: #333;
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.4;
}

.detail-meta {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #999;
    gap: 25px;
}

.detail-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.detail-content {
    font-size: 16px;
    color: #333;
    line-height: 1.8;
    padding: 30px 0;
    border-bottom: 2px solid #e5e5e5;
}

.detail-content p {
    margin-bottom: 15px;
}

/* 官方回复 */
.reply-section {
    margin-top: 30px;
}

.reply-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.reply-icon {
    width: 24px;
    height: 24px;
    background: #4caf50;
    border-radius: 3px;
}

.reply-title {
    font-size: 20px;
    color: #333;
    font-weight: bold;
}

.reply-box {
    background: #f9fafb;
    padding: 25px;
    border-left: 4px solid #4caf50;
    border-radius: 4px;
}

.reply-dept {
    font-size: 14px;
    color: #0088cc;
    font-weight: bold;
    margin-bottom: 10px;
}

.reply-content {
    font-size: 15px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 15px;
}

.reply-time {
    font-size: 13px;
    color: #999;
}

/* 网友评论区 */
.comments-section {
    background: #fff;
    padding: 30px 40px;
    border-radius: 4px;
    margin-bottom: 20px;
}

/* 评论加载状态 */
.comment-loading {
    text-align: center;
    padding: 40px 0;
}

.comment-loading .loading-spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto 15px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #0088cc;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.comment-loading p {
    font-size: 14px;
    color: #999;
}

/* 评论空状态 */
.comment-empty {
    text-align: center;
    padding: 60px 0;
}

.comment-empty p {
    font-size: 15px;
    color: #999;
}

.comments-list {
    margin-bottom: 40px;
}

/* 加载更多按钮 */
.load-more-section {
    text-align: center;
    padding: 20px 0 30px;
}

.load-more-btn {
    padding: 12px 40px;
    background: #fff;
    border: 2px solid #0088cc;
    border-radius: 4px;
    color: #0088cc;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s;
}

.load-more-btn:hover:not(:disabled) {
    background: #0088cc;
    color: #fff;
}

.load-more-btn:disabled {
    background: #f5f5f5;
    border-color: #ddd;
    color: #999;
    cursor: not-allowed;
}

.comment-item {
    display: flex;
    gap: 15px;
    padding: 25px 0;
    border-bottom: 1px solid #e8e8e8;
}

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

.comment-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #0099dd 0%, #0077bb 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    flex-shrink: 0;
}

.comment-content {
    flex: 1;
}

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

.comment-author {
    font-size: 15px;
    color: #333;
    font-weight: bold;
}

.comment-time {
    font-size: 13px;
    color: #999;
}

.comment-text {
    font-size: 15px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 12px;
}

.comment-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 13px;
}

.comment-floor {
    color: #999;
}

.comment-reply {
    color: #0088cc;
    cursor: pointer;
    transition: color 0.3s;
}

.comment-reply:hover {
    color: #0066aa;
}

/* 发表评论 */
.comment-form-section {
    background: #f9fafb;
    padding: 30px;
    border-radius: 4px;
    border: 1px solid #e5e5e5;
}

.comment-form-header {
    margin-bottom: 20px;
}

.comment-form-title {
    font-size: 20px;
    color: #333;
    font-weight: bold;
    margin-bottom: 5px;
}

.comment-form-desc {
    font-size: 13px;
    color: #999;
}

.comment-form-group {
    position: relative;
    margin-bottom: 15px;
}

.comment-textarea {
    width: 100%;
    min-height: 120px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    color: #333;
    line-height: 1.6;
    resize: vertical;
    outline: none;
    transition: all 0.3s;
    font-family: inherit;
}

.comment-textarea:focus {
    border-color: #0088cc;
    box-shadow: 0 0 0 3px rgba(0,136,204,0.1);
}

.comment-char-count {
    position: absolute;
    bottom: 10px;
    right: 15px;
    font-size: 12px;
    color: #999;
}

.comment-form-info {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.comment-info-group {
    flex: 1;
    display: flex;
    gap: 10px;
    align-items: center;
}

.comment-input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    color: #333;
    outline: none;
    transition: all 0.3s;
}

.comment-input:focus {
    border-color: #0088cc;
    box-shadow: 0 0 0 3px rgba(0,136,204,0.1);
}

.comment-captcha {
    width: 100px;
    height: 44px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    letter-spacing: 3px;
    color: #666;
    cursor: pointer;
    user-select: none;
    font-weight: bold;
}

.comment-captcha:hover {
    border-color: #0088cc;
}

.comment-form-actions {
    text-align: right;
}

.comment-submit-btn {
    padding: 12px 40px;
    background: linear-gradient(to bottom, #0099dd 0%, #0077bb 100%);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 4px rgba(0,136,204,0.2);
}

.comment-submit-btn:hover {
    background: linear-gradient(to bottom, #0088cc 0%, #0066aa 100%);
    box-shadow: 0 3px 6px rgba(0,136,204,0.3);
}

.section-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 3px solid #0088cc;
}

.section-icon {
    width: 24px;
    height: 24px;
    background: #0088cc;
    border-radius: 3px;
    margin-right: 10px;
}

.section-title {
    font-size: 22px;
    color: #333;
    font-weight: bold;
}