/*
Theme Name: Safety Training Center Theme
Theme URI: https://www.example.com/
Author: ChenXing Tech
Author URI: https://www.example.com/
Description: WordPress theme for Safety Training Center
Version: 1.0.0
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: safety-training
Tags: training, safety, education, government, custom-colors, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* Reset Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
}

/* Mobile Browser Compatibility Reset */
html {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
    background: #f5f5f5;
    color: #333;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 统一输入框在各个移动浏览器的外观 */
input,
textarea,
select,
button {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border-radius: 0;
    font-family: inherit;
}

input[type="text"],
input[type="tel"],
input[type="email"],
input[type="date"],
input[type="number"],
textarea,
select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-clip: padding-box;
}

/* 移除iOS输入框内阴影 */
input[type="text"],
input[type="tel"],
input[type="email"],
input[type="date"],
input[type="number"],
textarea {
    -webkit-box-shadow: none;
    box-shadow: none;
}

/* 禁止iOS Safari自动缩放 */
input:focus,
textarea:focus,
select:focus {
    font-size: 16px;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    -webkit-tap-highlight-color: transparent;
}

/* ===================================
   移动浏览器特定修复
   =================================== */

/* 微信浏览器兼容性 */
/* WeChat WebView uses special rendering engine */
body {
    -webkit-overflow-scrolling: touch;
}

/* QQ浏览器兼容性 */
/* Fix for QQ Browser X5 kernel */
::-webkit-scrollbar {
    width: 0;
    height: 0;
    background: transparent;
}

/* 华为浏览器兼容性 */
/* Huawei Browser fixes */
select {
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23333%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px;
    padding-right: 30px;
}

/* UC浏览器兼容性 */
/* UC Browser specific fixes */
input[type="search"] {
    -webkit-appearance: textfield;
}

input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-cancel-button {
    -webkit-appearance: none;
}

/* Safari移动端兼容性 */
/* iOS Safari specific fixes */
input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator,
input[type="datetime-local"]::-webkit-calendar-picker-indicator {
    background: transparent;
    bottom: 0;
    color: transparent;
    cursor: pointer;
    height: auto;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    width: auto;
}

/* Chrome移动端兼容性 */
/* Chrome Mobile fixes */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px white inset !important;
    -webkit-text-fill-color: #333 !important;
}

/* Flexbox Browser Compatibility Mixin */
/* 为所有使用 flexbox 的元素添加浏览器前缀 */

/* Page Layout */
.wireframe {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
}

/* Header Banner */
.header-banner {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
    overflow: hidden;
    border: none !important;
    box-shadow: none !important;
}

.banner-title {
    color: #ffffff !important;
    font-size: 72px !important;
    font-weight: bold !important;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7),
                 0 0 20px rgba(0, 0, 0, 0.5),
                 0 0 40px rgba(0, 0, 0, 0.3);
    margin: 0;
    padding: 15px 30px;
    letter-spacing: 3px;
    background: transparent !important;
    border-radius: 0 !important;
    backdrop-filter: none !important;
    box-shadow: none !important;
    border: none !important;
}

/* Header with Logo */
.header-logo-only {
    background: transparent;
    color: #333;
    padding: 15px 20px;
}

.header-logo-only .site-title a {
    color: #333;
    text-decoration: none;
}

.header-logo-only .site-description {
    color: #666;
}

/* Header without Logo */
.site-header {
    background: linear-gradient(to right, #0066cc, #0099ff);
    color: white;
    padding: 15px 20px;
    border: none;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
}

/* Center Header Layout */
.header-center {
    text-align: center;
    padding: 10px 0;
}

.header-center .site-title {
    font-size: 36px;
    margin-bottom: 8px;
}

.header-center .site-title a {
    color: #fff;
    text-decoration: none;
}

.header-center .site-description {
    font-size: 13px;
    opacity: 0.9;
}

/* Left Logo Layout */
.header-left {
    display: flex;
    align-items: center;
    gap: 25px;
}

.header-left .site-logo {
    flex-shrink: 0;
}

.header-left .site-logo img {
    height: 80px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
}

.header-left .site-info {
    flex: 1;
    text-align: left;
}

.header-left .site-title {
    font-size: 26px;
    margin-bottom: 5px;
}

.header-logo-only .header-left .site-title a {
    color: #333;
    text-decoration: none;
}

.header-logo-only .header-left .site-description {
    font-size: 13px;
    color: #666;
    margin: 0;
}

.site-header .header-left .site-title a {
    color: #fff;
    text-decoration: none;
}

.site-header .header-left .site-description {
    font-size: 13px;
    opacity: 0.9;
    margin: 0;
    color: #fff;
}

/* Center Logo Layout */
.header-center .site-logo {
    margin-bottom: 15px;
}

.header-center .site-logo img {
    height: 100px;
    width: auto;
    max-width: 300px;
    object-fit: contain;
}

.header-center .site-title {
    font-size: 26px;
    margin-bottom: 8px;
}

.header-logo-only .header-center .site-title a {
    color: #333;
    text-decoration: none;
}

.header-logo-only .header-center .site-description {
    font-size: 13px;
    color: #666;
}

.site-header .header-center .site-title a {
    color: #fff;
    text-decoration: none;
}

.site-header .header-center .site-description {
    font-size: 13px;
    opacity: 0.9;
    color: #fff;
}

/* Common Styles */
.site-title {
    margin: 0;
    font-weight: bold;
}

.site-description {
    margin: 0;
    line-height: 1.5;
}

/* Navigation Bar */
.main-navigation {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 40%, #d35400 100%);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding-right: 20px;
}

.nav-menu {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 0;
    margin: 0;
    padding: 0;
    flex: 1;
}

.nav-menu li {
    position: relative;
}

.nav-menu li a {
    display: block;
    color: white;
    padding: 15px 20px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-menu li:first-child a {
    border-left: none;
}

.nav-menu li a:hover {
    background: linear-gradient(135deg, #2a5298 0%, #3d6ab8 100%);
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* User Actions */
.user-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: 30px;
}

.login-btn,
.user-link,
.logout-btn {
    padding: 8px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s;
    white-space: nowrap;
}

.login-btn {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.login-btn:hover {
    background: #fff;
    color: #2a5298;
    border-color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

.user-link {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    gap: 6px;
}

.user-link:hover {
    background: rgba(255, 255, 255, 0.25);
}

.user-icon {
    font-size: 16px;
}

.logout-btn {
    background: rgba(231, 76, 60, 0.9);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.logout-btn:hover {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.4);
}

/* Main Content Area */
.site-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 5px;
    display: flex;
    flex-direction: row;
    gap: 5px;
    min-height: 600px;
}

/* Sidebars */
.sidebar-left {
    flex: 0 0 190px;
    width: 190px;
    min-width: 190px;
}

.sidebar-right {
    flex: 0 0 220px;
    width: 220px;
    min-width: 220px;
}

.main-content {
    flex: 1;
    min-width: 0;
}

/* Widget Styles */
.widget {
    background: white;
    border: 2px solid #2a5298;
    margin-bottom: 8px;
    border-radius: 6px;
    overflow: hidden;
    word-wrap: break-word;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
}

.widget:hover {
    box-shadow: 0 4px 12px rgba(42, 82, 152, 0.2);
    transform: translateY(-2px);
}

.widget-title {
    background: linear-gradient(135deg, #16a085 0%, #27ae60 100%);
    color: white;
    padding: 8px 10px;
    font-weight: bold;
    font-size: 14px;
    margin: 0;
}

.sidebar-left .widget-title {
    background: linear-gradient(135deg, #16a085 0%, #27ae60 100%);
}

.sidebar-right .widget-title {
    background: linear-gradient(135deg, #e67e22 0%, #d35400 100%);
}

.widget-content {
    padding: 10px;
}

/* Content Box */
.content-box {
    background: white;
    border: 2px solid #2a5298;
    margin-bottom: 3px;
    border-radius: 6px;
    overflow: hidden;
    word-wrap: break-word;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
}

.content-box:hover {
    box-shadow: 0 4px 12px rgba(42, 82, 152, 0.2);
    transform: translateY(-2px);
}

.content-box-header {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    padding: 10px 12px;
    font-weight: bold;
    font-size: 16px;
}

.main-content .content-box {
    background: #fff;
    border: 2px solid #ddd;
}

.main-content .content-box-header {
    background: #fff;
    color: #ff6600;
    font-size: 17px;
    border-bottom: 1px solid #f5f5f5;
    padding-bottom: 10px;
}

.content-box-body {
    padding: 10px;
    background: #fff;
}

/* Two Column Layout */
.two-columns {
    display: flex;
    gap: 3px;
    margin-bottom: 3px;
}

.column {
    flex: 1;
}

/* List Styles */
.item-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.item-list li {
    padding: 5px 0;
    border-bottom: 1px dotted #ddd;
    position: relative;
    padding-left: 15px;
}

.item-list li:before {
    content: "\2022";
    color: #2a5298;
    position: absolute;
    left: 0;
    font-weight: bold;
}

.item-list li:last-child {
    border-bottom: none;
}

.item-list a {
    color: #000;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s;
}

.item-list a:hover {
    color: #e67e22;
    padding-left: 5px;
}

/* Quick Navigation Menu */
.quick-nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.quick-nav-menu li {
    border-bottom: 1px solid #eee;
}

.quick-nav-menu li:last-child {
    border-bottom: none;
}

.quick-nav-menu li a {
    display: flex;
    align-items: center;
    padding: 10px;
    color: #333;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.3s;
}

.quick-nav-menu li a:before {
    content: "\25B6";
    color: #16a085;
    font-size: 10px;
    margin-right: 8px;
}

.quick-nav-menu li a:hover {
    background: linear-gradient(90deg, #d5f4e6 0%, transparent 100%);
    color: #16a085;
    padding-left: 15px;
}

/* Contact Info */
.contact-item {
    padding: 6px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.contact-icon {
    font-size: 18px;
    line-height: 1;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-placeholder {
    margin-top: 15px;
    background: #e0e0e0;
    height: 100px;
    border: 2px dashed #999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    border-radius: 3px;
    color: #666;
}

/* Footer */
.site-footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 20px;
    text-align: center;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
}

.footer-selects {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.footer-selects select {
    padding: 8px 15px;
    border-radius: 4px;
    border: 1px solid #666;
    background: #444;
    color: #fff;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s;
    min-width: 150px;
}

.footer-selects select:hover {
    background: #555;
    border-color: #888;
}

.footer-selects select option {
    background: #333;
    color: #fff;
    padding: 5px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 15px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.footer-links a {
    display: block;
    padding: 10px 15px;
    border-radius: 4px;
    border: 1px solid #666;
    background: #444;
    color: #fff;
    font-size: 13px;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s;
}

.footer-links a:hover {
    background: #555;
    border-color: #888;
    transform: translateY(-2px);
}

/* 移动端友情链接分类显示 - 默认隐藏 */
.footer-links-mobile {
    display: none;
}

.footer-info {
    font-size: 13px;
    line-height: 1.8;
}

.footer-info p {
    margin: 8px 0;
}

/* Floating QQ Customer Service */
.qq-float {
    position: fixed;
    right: 30px;
    bottom: 120px;
    background: white;
    border: 2px solid #0066cc;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 999;
    min-width: 120px;
}

.qq-float-title {
    text-align: center;
    font-weight: bold;
    margin-bottom: 15px;
    color: #0066cc;
    font-size: 14px;
}

.qq-item {
    margin: 12px 0;
    text-align: center;
}

.qq-item a {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.3s;
}

.qq-item a:hover {
    transform: scale(1.05);
}

.qq-icon {
    width: 45px;
    height: 45px;
    background: #0066cc;
    border-radius: 50%;
    margin: 0 auto 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 18px;
}

.qq-number {
    font-size: 12px;
    color: #666;
}

/* Institution Introduction - Left/Right Layout */
.intro-layout {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.intro-slider {
    flex: 0 0 40%;
    max-width: 400px;
    min-width: 280px;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 300px;
    background: #e0e0e0;
    border-radius: 5px;
    overflow: hidden;
}

.slide {
    display: none;
    width: 100%;
    height: 100%;
}

.slide.active {
    display: block;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-placeholder {
    width: 100%;
    height: 300px;
    background: #e0e0e0;
    border: 2px dashed #999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    color: #666;
    text-align: center;
}

.slider-prev,
.slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    cursor: pointer;
    transition: background 0.3s;
    z-index: 10;
    border-radius: 50%;
    user-select: none;
    line-height: 1;
}

.slider-prev {
    left: 10px;
}

.slider-next {
    right: 10px;
}

.slider-prev:hover,
.slider-next:hover {
    background: rgba(0, 0, 0, 0.8);
}

.slider-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.slider-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
}

.slider-dots .dot:hover,
.slider-dots .dot.active {
    background: #fff;
    transform: scale(1.2);
}

.intro-text {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.intro-title {
    font-size: 18px;
    color: #1e3c72;
    margin-bottom: 10px;
    font-weight: bold;
}

.intro-content {
    flex: 1;
    line-height: 1.6;
    color: #666;
    margin-bottom: 10px;
}

.intro-content p {
    margin-bottom: 8px;
    text-indent: 2em;
}

.read-more-btn {
    display: inline-block;
    padding: 8px 20px;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: #fff !important;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s;
    align-self: flex-start;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.read-more-btn:hover {
    background: linear-gradient(135deg, #c0392b 0%, #e74c3c 100%);
    color: #fff !important;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

/* Photo News - Horizontal Scroll */
.photo-scroll-container {
    position: relative;
    width: 100%;
    padding: 5px 0;
    overflow: hidden;
}

.photo-scroll-wrapper {
    display: flex;
    gap: 12px;
    position: relative;
}

.photo-scroll-item {
    background: white;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
    border: 1px solid #e8e8e8;
    flex-shrink: 0;
    width: 200px;
}

.photo-scroll-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.25);
    border-color: #3498db;
}

.photo-scroll-item a {
    display: block;
    text-decoration: none;
    color: inherit;
}

.photo-scroll-item img {
    width: 200px;
    height: 150px;
    object-fit: cover;
    display: block;
}

.photo-placeholder {
    width: 200px;
    height: 150px;
    background: #e0e0e0;
    border: 2px dashed #999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 12px;
    text-align: center;
    gap: 8px;
}

.photo-placeholder span:first-child {
    font-size: 32px;
}

.photo-caption {
    padding: 10px;
    font-size: 13px;
    color: #333;
    text-align: center;
    background: #fff;
    min-height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.4;
}

/* Banner Ad */
.banner-ad {
    margin: 3px 0;
    border-radius: 5px;
    overflow: hidden;
}

.banner-ad img {
    display: block;
    width: 100%;
    height: auto;
}

/* Full Width Section */
.full-width-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5px 5px 5px;
}

.full-width-section .photo-scroll-wrapper {
    grid-template-columns: repeat(8, 1fr);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    right: 30px;
    bottom: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 998;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: linear-gradient(135deg, #2980b9 0%, #3498db 100%);
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.5);
}

/* Scroll Container */
.scroll-container {
    height: 300px;
    overflow: hidden;
    position: relative;
}

.scroll-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* More Link */
.more-link {
    float: right;
    font-size: 12px;
    font-weight: normal;
}

.more-link a {
    color: #fff;
    text-decoration: none;
    transition: opacity 0.3s;
}

.more-link a:hover {
    opacity: 0.8;
}

/* Registration Form */
.registration-form {
    max-width: 800px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
    font-size: 14px;
}

.required {
    color: #ff0000;
    font-weight: bold;
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="email"],
.form-group input[type="file"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0066cc;
    box-shadow: 0 0 5px rgba(0, 102, 204, 0.2);
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
    font-family: inherit;
}

.form-group small {
    display: block;
    margin-top: 5px;
    font-size: 12px;
}

.submit-button {
    padding: 12px 40px;
    background: #0066cc;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.submit-button:hover {
    background: #0099ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 102, 204, 0.3);
}

.submit-button:active {
    transform: translateY(0);
}

.form-message {
    padding: 15px 20px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.6;
}

.form-message.success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.form-message.error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.form-message strong {
    display: block;
    margin-bottom: 5px;
    font-size: 15px;
}

/* File Upload */
.file-upload-box {
    margin-top: 10px;
}

.file-input {
    display: none;
}

.file-upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 150px;
    border: 2px dashed #0066cc;
    border-radius: 8px;
    background: #f9f9f9;
    cursor: pointer;
    transition: all 0.3s;
    padding: 20px;
}

.file-upload-label:hover {
    border-color: #ff6600;
    background: #fff5f0;
}

.upload-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.upload-text {
    color: #666;
    font-size: 14px;
    text-align: center;
}

.file-name {
    margin-top: 10px;
    color: #0066cc;
    font-weight: 600;
    font-size: 13px;
}

/* Archive/List Page */
.archive-title {
    width: 120px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    background: #2a5298;
    margin-bottom: 0;
    padding: 0 10px;
    border: 2px solid #2a5298;
    border-radius: 4px;
}

.content-box-body {
    border-top: 1px solid #e0e0e0;
    margin-top: 10px;
}

.archive-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.archive-list li {
    border-bottom: 1px solid #eee;
}

.archive-list li:last-child {
    border-bottom: none;
}

.archive-list li a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s;
}

.archive-list li a:hover {
    background: #f9f9f9;
    color: #ff6600;
    padding-left: 25px;
}

.archive-dot {
    color: #ff6600;
    margin-right: 10px;
    font-size: 14px;
    flex-shrink: 0;
}

.archive-title-text {
    flex: 1;
    font-size: 14px;
    line-height: 1.5;
}

.archive-date {
    color: #999;
    font-size: 12px;
    margin-left: 15px;
    flex-shrink: 0;
}

/* Pagination */
.pagination {
    padding: 20px;
    text-align: center;
}

.pagination ul {
    list-style: none;
    display: inline-flex;
    gap: 5px;
    margin: 0;
    padding: 0;
}

.pagination li {
    display: inline-block;
}

.pagination a,
.pagination .current {
    display: block;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 3px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s;
}

.pagination a:hover {
    background: #ff6600;
    color: #fff;
    border-color: #ff6600;
}

.pagination .current {
    background: #ff6600;
    color: #fff;
    border-color: #ff6600;
}

/* Post Navigation */
.post-navigation {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin: 20px 0;
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
    flex: 0 0 48%;
    max-width: 48%;
}

.post-navigation a {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    background: #fff;
    border: 2px solid #ddd;
    border-radius: 6px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s;
    min-height: 80px;
}

.post-navigation a:hover {
    border-color: #ff6600;
    background: #fff5f0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 102, 0, 0.15);
}

.post-navigation .nav-previous a {
    flex-direction: row;
}

.post-navigation .nav-next a {
    flex-direction: row-reverse;
    text-align: right;
}

.post-navigation .nav-arrow {
    font-size: 24px;
    color: #ff6600;
    font-weight: bold;
    flex-shrink: 0;
    margin: 0 10px;
}

.post-navigation .nav-label {
    display: block;
    font-size: 12px;
    color: #999;
    margin-bottom: 5px;
    flex-shrink: 0;
}

.post-navigation .nav-title {
    display: block;
    font-size: 14px;
    color: #333;
    font-weight: 500;
    line-height: 1.5;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.post-navigation a:hover .nav-title {
    color: #ff6600;
}

/* ========================================
   MOBILE RESPONSIVE STYLES
   ======================================== */

/* Hamburger menu and overlay hidden on desktop */
.mobile-menu-toggle,
.mobile-menu-overlay,
.mobile-sidebar-menu {
    display: none;
}

/* Prevent page scroll when menu is open */
body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

/* Desktop layout protection (>768px) */
@media screen and (min-width: 769px) {
    .wireframe {
        max-width: 1200px;
        margin: 0 auto;
    }

    .site-content {
        max-width: 1200px;
        margin: 0 auto;
        display: flex !important;
        flex-direction: row !important;
    }

    .sidebar-left {
        flex: 0 0 190px !important;
        width: 190px !important;
        order: 0 !important;
        position: static !important;
    }

    .main-content {
        flex: 1 !important;
        order: 0 !important;
    }

    .sidebar-right {
        flex: 0 0 220px !important;
        width: 220px !important;
        order: 0 !important;
    }

    .mobile-menu-toggle {
        display: none !important;
    }

    .mobile-menu-overlay {
        display: none !important;
    }

    .mobile-sidebar-menu {
        display: none !important;
    }
}

/* Mobile Styles (<=768px) */
@media screen and (max-width: 768px) {
    /* Force mobile base reset */
    * {
        box-sizing: border-box !important;
        -webkit-box-sizing: border-box !important;
        -moz-box-sizing: border-box !important;
    }

    /* Mobile browser compatibility fixes */
    html {
        -webkit-text-size-adjust: 100% !important;
        -ms-text-size-adjust: 100% !important;
        text-size-adjust: 100% !important;
    }

    body {
        -webkit-font-smoothing: antialiased !important;
        -moz-osx-font-smoothing: grayscale !important;
    }

    /* 统一移动端输入框样式 */
    input,
    textarea,
    select {
        -webkit-appearance: none !important;
        -moz-appearance: none !important;
        appearance: none !important;
        border-radius: 4px !important;
        font-size: 16px !important; /* 防止iOS自动缩放 */
    }

    /* 移除iOS点击高亮 */
    a,
    button,
    input,
    textarea,
    select {
        -webkit-tap-highlight-color: transparent !important;
    }

    /* Flexbox 移动端兼容性 */
    .site-content,
    .nav-wrapper,
    .nav-menu,
    .user-actions,
    .two-columns,
    .intro-layout,
    .footer-selects,
    .post-navigation {
        display: -webkit-box !important;
        display: -webkit-flex !important;
        display: -ms-flexbox !important;
        display: flex !important;
    }

    /* 确保flex属性正常工作 */
    [style*="display: flex"],
    [style*="display:flex"] {
        display: -webkit-box !important;
        display: -webkit-flex !important;
        display: -ms-flexbox !important;
        display: flex !important;
    }

    /* Container adaptation */
    .wireframe {
        max-width: 100% !important;
        width: 100% !important;
    }

    /* Header banner adaptation */
    .header-banner {
        height: 150px;
    }

    .banner-title {
        font-size: 28px !important;
        padding: 10px 15px;
        letter-spacing: 1px;
        line-height: 1.2;
    }

    /* Header logo adaptation */
    .header-left {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .header-left .site-logo img {
        height: 60px;
        max-width: 150px;
    }

    .header-left .site-info {
        text-align: center;
    }

    .header-left .site-title {
        font-size: 20px;
    }

    .header-center .site-logo img {
        height: 70px;
        max-width: 200px;
    }

    .header-center .site-title {
        font-size: 22px;
    }

    /* Navigation adaptation - Hide main navigation on mobile */
    /* 主导航 - 始终显示在顶部 */
    .main-navigation {
        position: sticky !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%) !important;
        z-index: 999 !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
        padding: 0 !important;
        height: 48px !important;
        min-height: 48px !important;
        max-height: 48px !important;
    }

    /* 移动端侧边菜单 */
    .mobile-sidebar-menu {
        display: block !important;
        position: fixed !important;
        top: 0 !important;
        left: -100% !important;
        width: 280px !important;
        max-width: 80vw !important;
        height: 100% !important;
        background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%) !important;
        z-index: 1000 !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        transition: left 0.3s ease-out !important;
        box-shadow: 2px 0 12px rgba(0, 0, 0, 0.3) !important;
    }

    .mobile-sidebar-menu.active {
        left: 0 !important;
    }

    .mobile-menu-header {
        padding: 20px !important;
        background: rgba(0, 0, 0, 0.1) !important;
        color: #fff !important;
        font-size: 18px !important;
        font-weight: bold !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    }

    .mobile-menu-content {
        padding: 10px 0 !important;
    }

    .mobile-nav-menu {
        list-style: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .mobile-nav-menu li {
        width: 100% !important;
        display: block !important;
    }

    .mobile-nav-menu li a {
        display: block !important;
        padding: 14px 20px !important;
        color: #fff !important;
        text-decoration: none !important;
        font-size: 15px !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
        transition: background 0.3s !important;
    }

    .mobile-nav-menu li a:hover,
    .mobile-nav-menu li a:active {
        background: rgba(255, 255, 255, 0.1) !important;
    }

    .mobile-user-actions {
        padding: 15px 20px !important;
        border-top: 1px solid rgba(255, 255, 255, 0.2) !important;
        margin-top: 10px !important;
    }

    .mobile-login-btn,
    .mobile-user-link,
    .mobile-logout-btn {
        display: block !important;
        width: 100% !important;
        padding: 12px 15px !important;
        margin: 5px 0 !important;
        background: rgba(255, 255, 255, 0.15) !important;
        color: #fff !important;
        text-align: center !important;
        text-decoration: none !important;
        border-radius: 6px !important;
        font-size: 14px !important;
        transition: background 0.3s !important;
    }

    .mobile-login-btn:hover,
    .mobile-user-link:hover,
    .mobile-logout-btn:hover {
        background: rgba(255, 255, 255, 0.25) !important;
    }

    .nav-wrapper {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
        height: 48px !important;
        min-height: 48px !important;
        max-height: 48px !important;
        overflow-x: visible !important;
        overflow-y: hidden !important;
        align-items: center !important;
        scrollbar-width: none !important; /* Firefox */
    }

    /* 隐藏滚动条 */
    .nav-wrapper::-webkit-scrollbar {
        display: none !important; /* Chrome, Safari */
    }

    .nav-menu {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        width: auto !important;
        min-width: min-content !important;
        margin: 0 !important;
        padding: 0 !important;
        list-style: none !important;
        white-space: nowrap !important;
        gap: 0 !important;
    }

    .nav-menu li {
        flex: 0 0 auto !important;
        width: auto !important;
        display: inline-block !important;
        float: none !important;
        margin: 0 !important;
    }

    .nav-menu li a {
        display: inline-block !important;
        padding: 14px 15px !important;
        font-size: 14px !important;
        color: #fff !important;
        background: transparent !important;
        text-decoration: none !important;
        border-left: 1px solid rgba(255, 255, 255, 0.15) !important;
        border-right: none !important;
        border-top: none !important;
        border-bottom: none !important;
        min-height: 48px !important;
        height: 48px !important;
        line-height: 20px !important;
        white-space: nowrap !important;
        transition: background 0.3s !important;
        box-sizing: border-box !important;
        transform: none !important;
        box-shadow: none !important;
        vertical-align: middle !important;
    }

    .nav-menu li:first-child a {
        border-left: none !important;
    }

    .nav-menu li a:hover,
    .nav-menu li a:active {
        background: rgba(255, 255, 255, 0.15) !important;
        transform: none !important;
        box-shadow: none !important;
    }

    /* User actions adaptation */
    .user-actions {
        display: flex !important;
        flex: 0 0 auto !important;
        align-items: center !important;
        padding: 0 10px !important;
        margin: 0 !important;
        border-top: none !important;
        border-left: 1px solid rgba(255, 255, 255, 0.2) !important;
    }

    .login-btn,
    .user-link,
    .logout-btn {
        padding: 8px 12px !important;
        font-size: 13px !important;
        min-height: auto !important;
        white-space: nowrap !important;
    }

    .user-icon {
        font-size: 14px !important;
    }

    /* Three-column to single-column layout */
    .site-content {
        display: -webkit-box !important;
        display: -webkit-flex !important;
        display: -ms-flexbox !important;
        display: flex !important;
        -webkit-box-orient: vertical !important;
        -webkit-box-direction: normal !important;
        -webkit-flex-direction: column !important;
        -ms-flex-direction: column !important;
        flex-direction: column !important;
        padding: 15px 10px !important;
        gap: 15px !important;
        min-height: auto !important;
        max-width: 100% !important;
    }

    /* Content priority: Main > Right > Left */
    .main-content {
        -webkit-box-ordinal-group: 2 !important;
        -webkit-order: 1 !important;
        -ms-flex-order: 1 !important;
        order: 1 !important;
        -webkit-box-flex: 0 !important;
        -webkit-flex: none !important;
        -ms-flex: none !important;
        flex: none !important;
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        position: relative !important;
    }

    .sidebar-right {
        -webkit-box-ordinal-group: 3 !important;
        -webkit-order: 2 !important;
        -ms-flex-order: 2 !important;
        order: 2 !important;
        -webkit-box-flex: 0 !important;
        -webkit-flex: none !important;
        -ms-flex: none !important;
        flex: none !important;
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        position: relative !important;
    }

    /* Left sidebar - Display at bottom on mobile */
    .sidebar-left {
        -webkit-box-ordinal-group: 4 !important;
        -webkit-order: 3 !important;
        -ms-flex-order: 3 !important;
        order: 3 !important;
        -webkit-box-flex: 0 !important;
        -webkit-flex: none !important;
        -ms-flex: none !important;
        flex: none !important;
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        position: relative !important;
    }

    /* Hamburger menu button */
    .mobile-menu-toggle {
        display: block !important;
        position: fixed;
        top: 60px;
        left: 15px;
        z-index: 1001;
        background: linear-gradient(135deg, #16a085 0%, #27ae60 100%);
        width: 50px;
        height: 50px;
        border-radius: 8px;
        border: none;
        cursor: pointer;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
        transition: all 0.3s;
    }

    .mobile-menu-toggle:hover {
        transform: scale(1.05);
        box-shadow: 0 6px 16px rgba(22, 160, 133, 0.3);
    }

    .mobile-menu-toggle:active {
        transform: scale(0.95);
    }

    /* Hamburger icon */
    .hamburger {
        display: block;
        position: relative;
        width: 24px;
        height: 18px;
        margin: 0 auto;
    }

    .hamburger span {
        display: block;
        position: absolute;
        height: 3px;
        width: 100%;
        background: #fff;
        border-radius: 2px;
        opacity: 1;
        left: 0;
        -webkit-transform: rotate(0deg);
        -ms-transform: rotate(0deg);
        transform: rotate(0deg);
        -webkit-transition: all 0.3s ease;
        -o-transition: all 0.3s ease;
        transition: all 0.3s ease;
    }

    .hamburger span:nth-child(1) {
        top: 0px;
    }

    .hamburger span:nth-child(2) {
        top: 7.5px;
    }

    .hamburger span:nth-child(3) {
        top: 15px;
    }

    /* Hamburger icon animation when menu is open */
    .mobile-menu-toggle.active .hamburger span:nth-child(1) {
        top: 7.5px;
        -webkit-transform: rotate(135deg);
        -ms-transform: rotate(135deg);
        transform: rotate(135deg);
    }

    .mobile-menu-toggle.active .hamburger span:nth-child(2) {
        opacity: 0;
        left: -60px;
    }

    .mobile-menu-toggle.active .hamburger span:nth-child(3) {
        top: 7.5px;
        -webkit-transform: rotate(-135deg);
        -ms-transform: rotate(-135deg);
        transform: rotate(-135deg);
    }

    /* Overlay */
    .mobile-menu-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        opacity: 0;
        transition: opacity 0.3s;
    }

    .mobile-menu-overlay.active {
        display: block;
        opacity: 1;
    }

    /* Left sidebar widget optimization - Normal display at bottom */
    .sidebar-left .widget {
        margin-bottom: 8px;
    }

    .sidebar-left .widget-title {
        padding: 12px 15px;
        font-size: 14px;
    }

    /* Intro layout to vertical */
    .intro-layout {
        display: -webkit-box;
        display: -webkit-flex;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -webkit-flex-direction: column;
        -ms-flex-direction: column;
        flex-direction: column;
        gap: 15px;
    }

    .intro-slider {
        max-width: 100%;
        width: 100%;
        -webkit-box-flex: 0;
        -webkit-flex: none;
        -ms-flex: none;
        flex: none;
    }

    .intro-text {
        width: 100%;
    }

    .slider-container {
        height: 250px;
    }

    .slider-placeholder {
        height: 250px;
    }

    /* Two columns to single column */
    .two-columns {
        display: -webkit-box;
        display: -webkit-flex;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -webkit-flex-direction: column;
        -ms-flex-direction: column;
        flex-direction: column;
        gap: 15px;
    }

    .two-columns .column {
        width: 100%;
    }

    /* Content box optimization */
    .content-box {
        margin-bottom: 15px;
    }

    .content-box-header {
        font-size: 16px;
        padding: 12px 15px;
    }

    .content-box-body {
        padding: 12px 15px;
    }

    /* List item optimization */
    .item-list {
        font-size: 14px;
    }

    .item-list li {
        padding: 8px 0 8px 15px;
        line-height: 1.6;
    }

    .item-list a {
        font-size: 14px;
    }

    /* Photo news scroll adaptation */
    .photo-scroll-item {
        width: 150px;
    }

    .photo-scroll-item img,
    .photo-placeholder {
        width: 150px;
        height: 120px;
    }

    /* QQ float adaptation */
    .qq-float {
        right: 10px;
        bottom: 80px;
        padding: 10px;
        min-width: 100px;
    }

    .qq-float-title {
        font-size: 13px;
        margin-bottom: 10px;
    }

    .qq-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    /* Back to top button adaptation */
    .back-to-top {
        right: 10px;
        bottom: 20px;
        width: 45px;
        height: 45px;
        font-size: 20px;
    }

    /* Footer adaptation */
    .site-footer {
        padding: 15px 10px;
    }

    .footer-selects {
        flex-direction: column;
        gap: 8px;
        padding: 0 10px;
    }

    .footer-selects select {
        width: 100%;
        min-width: auto;
        padding: 12px 15px;
        font-size: 14px;
    }

    /* PC端友情链接隐藏 */
    .footer-links {
        display: none;
    }

    /* 移动端友情链接分类显示 */
    .footer-links-mobile {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        margin-bottom: 15px;
        padding: 0 10px;
    }

    .footer-links-column {
        display: flex;
        flex-direction: column;
        gap: 5px;
    }

    .footer-links-category-row {
        display: flex;
        justify-content: space-around;
        gap: 5px;
        margin-bottom: 8px;
        padding-bottom: 8px;
        border-bottom: 2px solid #555;
    }

    .category-title {
        font-size: 12px;
        font-weight: bold;
        color: #fff;
        text-align: center;
        flex: 1;
    }

    .footer-links-mobile a {
        display: block;
        padding: 8px 10px;
        border-radius: 4px;
        border: 1px solid #666;
        background: #444;
        color: #fff;
        font-size: 11px;
        text-align: center;
        text-decoration: none;
        transition: all 0.3s;
    }

    .footer-links-mobile a:hover {
        background: #555;
        border-color: #888;
    }

    .footer-info {
        font-size: 12px;
    }

    /* Prevent horizontal scroll and layout distortion */
    body {
        overflow-x: hidden !important;
        width: 100%;
        max-width: 100%;
    }

    .wireframe {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    /* Force all images responsive */
    img {
        max-width: 100% !important;
        height: auto !important;
    }

    /* Prevent widgets from overflowing */
    .widget,
    .content-box {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
    }

    .widget-content,
    .content-box-body {
        width: 100%;
        max-width: 100%;
        overflow-wrap: break-word;
        word-wrap: break-word;
    }

    /* Responsive table handling */
    table {
        width: 100% !important;
        max-width: 100%;
        display: block;
        overflow-x: auto;
    }

    /* Banner ad adaptation */
    .banner-ad {
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }

    .banner-ad img {
        width: 100%;
        height: auto;
        max-width: 100%;
    }

    /* Scroll container adaptation */
    .photo-scroll-container {
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .photo-scroll-wrapper {
        width: max-content;
        padding: 5px;
    }

    /* Form elements adaptation */
    .form-group input,
    .form-group select,
    .form-group textarea {
        width: 100% !important;
        max-width: 100% !important;
        font-size: 16px !important;
        box-sizing: border-box;
    }

    .submit-button {
        width: 100%;
        max-width: 100%;
        min-height: 50px;
        font-size: 16px;
    }
}

/* Extra small screens (<=480px) */
@media screen and (max-width: 480px) {
    .banner-title {
        font-size: 20px !important;
        padding: 8px 10px;
    }

    .header-banner {
        height: 120px;
    }

    .nav-menu li a {
        padding: 10px 12px;
        font-size: 14px;
    }

    .photo-scroll-item {
        width: 120px;
    }

    .photo-scroll-item img,
    .photo-placeholder {
        width: 120px;
        height: 100px;
    }

    .photo-caption {
        font-size: 12px;
        min-height: 40px;
        padding: 8px;
    }
}
