/* message.css - 意见反馈/联系我们页面专属样式（依赖公共变量，先加载 css/styles.css） */
.contact-container{max-width:1280px;margin:var(--space-xl) auto;padding:0}
.contact-form,.contact-info,.faq-section{border:1px solid var(--border-color)}
.contact-grid{    display: flex;
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
    flex-wrap: wrap;}
.contact-form,.contact-info{background:var(--card-bg);border-radius:var(--radius-xl);padding:var(--space-lg);box-shadow:var(--card-shadow)}
.info-card{display:flex;gap:var(--space-md);margin-bottom:var(--space-lg);padding-bottom:var(--space-lg);border-bottom:1px solid var(--border-color)}
.info-card:last-child{border-bottom:none;margin-bottom:0;padding-bottom:0}
.info-icon img{width:40px;height:40px}
.qrcode{width:120px;height:120px;margin-top:var(--space-sm);border:1px solid var(--border-color)}
.social-icons{display:flex;gap:var(--space-md)}
.social-icons img{width:32px;height:32px;transition:var(--transition)}
.social-icons img:hover{transform:scale(1.1)}
.faq-section{background:var(--card-bg);padding:var(--space-lg);border-radius:var(--radius-xl);margin-top:var(--space-lg);box-shadow:var(--card-shadow)}
.contact-form input[type="text"],.contact-form input[type="email"],.contact-form textarea{width:100%;padding:12px 15px;margin-bottom:20px;border:1px solid #e0e0e0;border-radius:6px;font-size:16px;transition:all 0.3s ease;box-sizing:border-box}
.contact-form input[type="text"]:focus,.contact-form input[type="email"]:focus,.contact-form textarea:focus{border-color:#4a90e2;outline:none}
.contact-form textarea{min-height:150px;resize:vertical}
.contact-form label{display:block;margin-bottom:8px;font-weight:500;color:#555}
/* ===== 富文本编辑器（意见反馈正文） ===== */
.rich-editor { border: 1px solid #e5e9f0; border-radius: 12px; overflow: hidden; background: #fff; margin-bottom: 16px; }
.rich-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; padding: 6px 8px; border-bottom: 1px solid #eef1f5; background: #f7f8fa; }
.rich-toolbar button { height: 30px; min-width: 30px; padding: 0 6px; display: inline-flex; align-items: center; justify-content: center; font-size: 15px; color: #5b6472; background: transparent; border: none; border-radius: 6px; cursor: pointer; transition: all .15s; vertical-align: middle; }
.rich-toolbar button i { font-size: 15px; line-height: 1; }
.rich-toolbar button:hover { background: #e8f7ef; color: #2aae67; }
.rich-toolbar select { height: 30px; padding: 0 8px; border: 1px solid #e5e9f0; border-radius: 6px; background: #fff; color: #5b6472; font-size: 13px; cursor: pointer; margin-right: 4px; }
.rich-toolbar select:hover { border-color: #2aae67; }
.rich-color-field { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 6px; cursor: pointer; color: #5b6472; }
.rich-color-field:hover { background: #e8f7ef; color: #2aae67; }
.rich-color-field .rich-color-glyph { font-size: 15px; }
.rich-color-dot { position: absolute; bottom: 3px; right: 5px; width: 7px; height: 7px; border-radius: 50%; border: 1px solid rgba(0,0,0,.2); }
.rich-color-field input[type="color"] { position: absolute; opacity: 0; width: 0; height: 0; }
.rich-content { min-height: 140px; padding: 12px 14px; outline: none; line-height: 1.7; }
@media (max-width:768px){
.contact-form,.contact-info,.faq-section{background:transparent;border-radius:0;padding:0;box-shadow:unset}
.contact-form input[type="text"],.contact-form input[type="email"],.contact-form textarea{padding:10px 12px;font-size:15px}
.contact-container{margin-top:var(--space-md);padding:20px 0}
}
@media (max-width:480px){
.contact-grid{gap:var(--space-md)}
.info-card{flex-direction:column;align-items:start;text-align:left}
}


/* ===== 暗色主题适配（data-theme="dark"） ===== */
[data-theme="dark"] .contact-grid{background:transparent}
[data-theme="dark"] .contact-form{background:#1e1e1e;border-color:#333}
[data-theme="dark"] .contact-info{background:#1e1e1e;border-color:#333}
[data-theme="dark"] .info-card{background:#1e1e1e;border-color:#333}
[data-theme="dark"] .info-card h3{color:#f0f0f0}
[data-theme="dark"] .info-card p,.info-card a{color:#c8cdd6}
[data-theme="dark"] .social-icons a{color:#8a94a6}
[data-theme="dark"] .rich-editor textarea{background:#2b2d30;color:#f0f0f0;border-color:#444}
[data-theme="dark"] .rich-toolbar{background:#2b2d30;border-color:#444}
[data-theme="dark"] .rich-content{background:#2b2d30;color:#f0f0f0;border-color:#444}
[data-theme="dark"] .faq-section h3{color:#f0f0f0}
[data-theme="dark"] .faq-section p{color:#c8cdd6}


/* ===== 暗色补充：富文本编辑器 / 输入控件 ===== */
[data-theme="dark"] .rich-editor{background:#2b2d30;border-color:#444}
[data-theme="dark"] .rich-toolbar{background:#26282d;border-color:#444}
[data-theme="dark"] .rich-toolbar button{color:#c8cdd6}
[data-theme="dark"] .rich-toolbar button:hover{background:#1f3a30;color:#4ecb9c}
[data-theme="dark"] .rich-toolbar select{background:#2b2d30;color:#c8cdd6;border-color:#444}
[data-theme="dark"] .rich-color-field{color:#c8cdd6}
[data-theme="dark"] .rich-color-field:hover{background:#1f3a30;color:#4ecb9c}
[data-theme="dark"] .rich-color-dot{border-color:rgba(255,255,255,.3)}
[data-theme="dark"] .rich-content{color:#f0f0f0}
[data-theme="dark"] .contact-form input[type="text"],[data-theme="dark"] .contact-form input[type="email"],[data-theme="dark"] .contact-form input[type="tel"],.contact-form textarea{background:#2b2d30;color:#f0f0f0;border-color:#444}

/* ===== 暗色补充2：联系页与 footer 宽度对齐（响应式，覆盖 styles.css 全局） ===== */
@media (max-width:1024px){.contact-container{padding:0 var(--space-lg)}}
@media (max-width:768px){.contact-container{margin-top:var(--space-md);padding:20px var(--space-xs)}}
