/*
Theme Name: Rifeng Weifang
Theme URI: https://www.rifengwf.com
Author: Rifeng Weifang
Author URI: https://www.rifengwf.com
Description: 日丰潍坊总代理官方网站主题，参考日丰集团官网设计风格，专业、简洁、企业级。
Version: 1.0.0
Requires at least: 5.0
Tested up to: 6.9
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rifeng-weifang
Tags: business, corporate, custom-menu, custom-logo, featured-images, translation-ready
*/

/* ============================================
   CSS Reset & Base
   ============================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --rf-blue: #0281cc;
    --rf-blue-dark: #0066b3;
    --rf-blue-light: #52b9fb;
    --rf-blue-bg: #e8f4fd;
    --rf-white: #ffffff;
    --rf-gray-light: #f5f7fa;
    --rf-gray: #e5e7eb;
    --rf-text: #333333;
    --rf-text-light: #666666;
    --rf-text-muted: #999999;
    --rf-shadow: 0 2px 12px rgba(0,0,0,0.08);
    --rf-shadow-hover: 0 6px 24px rgba(0,0,0,0.12);
    --rf-radius: 8px;
    --rf-transition: all 0.3s ease;
    --rf-max-width: 1200px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--rf-text);
    background: var(--rf-white);
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--rf-transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

.container {
    max-width: var(--rf-max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   Header & Navigation
   ============================================ */

/* Top Bar - 联系方式 */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    background: linear-gradient(135deg, #0281cc 0%, #0066b3 100%);
    color: var(--rf-white);
    height: 40px;
    display: flex;
    align-items: center;
    font-size: 14px;
}

.top-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: var(--rf-max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.top-bar-left .welcome-text {
    font-size: 13px;
    opacity: 0.9;
}

.top-bar-right .top-bar-phone {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--rf-white);
    text-decoration: none;
    font-weight: 500;
    transition: var(--rf-transition);
}

.top-bar-right .top-bar-phone:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.top-bar-right .phone-icon {
    font-size: 16px;
}

.top-bar-right .phone-text {
    font-size: 14px;
}

.top-bar-right .call-btn {
    background: var(--rf-white);
    color: var(--rf-blue);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    transition: var(--rf-transition);
}

.top-bar-right .top-bar-phone:hover .call-btn {
    background: #f0f0f0;
}

.site-header {
    position: fixed;
    top: 40px;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--rf-white);
    box-shadow: 0 1px 8px rgba(0,0,0,0.06);
    transition: var(--rf-transition);
}

.site-header.scrolled {
    box-shadow: 0 2px 16px rgba(0,0,0,0.1);
}

/* 登录状态下调整顶部栏和头部位置 */
.admin-bar .top-bar {
    top: 32px;
}

.admin-bar .site-header {
    top: 72px;
}

.admin-bar .hero-banner {
    margin-top: 152px;
}

.admin-bar .page-header {
    margin-top: 152px;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    max-width: var(--rf-max-width);
    margin: 0 auto;
    padding: 0 20px;
}

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

.site-logo img {
    height: 50px;
    width: auto;
}

.site-logo .logo-text {
    display: flex;
    flex-direction: column;
}

.site-logo .logo-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--rf-blue);
    line-height: 1.2;
}

.site-logo .logo-subtitle {
    font-size: 12px;
    color: var(--rf-text-muted);
    line-height: 1.2;
}

/* Navigation */
.main-nav {
    display: flex;
    align-items: center;
}

.main-nav ul {
    display: flex;
    gap: 0;
}

.main-nav > ul > li {
    position: relative;
}

.main-nav > ul > li > a {
    display: block;
    padding: 28px 20px;
    font-size: 15px;
    font-weight: 500;
    color: var(--rf-text);
    position: relative;
}

.main-nav > ul > li > a::after {
    content: '';
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    height: 2px;
    background: var(--rf-blue);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.main-nav > ul > li:hover > a,
.main-nav > ul > li.current-menu-item > a {
    color: var(--rf-blue);
}

.main-nav > ul > li:hover > a::after,
.main-nav > ul > li.current-menu-item > a::after {
    transform: scaleX(1);
}

/* Dropdown */
.main-nav .sub-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    min-width: 180px;
    background: var(--rf-white);
    border-radius: var(--rf-radius);
    box-shadow: var(--rf-shadow-hover);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 8px 0;
}

.main-nav > ul > li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.main-nav .sub-menu li a {
    display: block;
    padding: 10px 24px;
    font-size: 14px;
    color: var(--rf-text-light);
    white-space: nowrap;
}

.main-nav .sub-menu li a:hover {
    background: var(--rf-blue-bg);
    color: var(--rf-blue);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
    background: none;
    border: none;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--rf-text);
    transition: var(--rf-transition);
}

/* ============================================
   Hero Banner
   ============================================ */
.hero-banner {
    margin-top: 120px;
    position: relative;
    overflow: hidden;
    height: 500px;
    background: linear-gradient(135deg, var(--rf-blue) 0%, var(--rf-blue-dark) 100%);
}

.hero-slider {
    position: relative;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--rf-white);
    background: linear-gradient(135deg, rgba(2,129,204,0.7) 0%, rgba(0,102,179,0.5) 100%);
}

.hero-content h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 16px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.hero-content p {
    font-size: 20px;
    opacity: 0.9;
    margin-bottom: 32px;
}

.hero-btn {
    display: inline-block;
    padding: 14px 40px;
    background: var(--rf-white);
    color: var(--rf-blue);
    font-size: 16px;
    font-weight: 600;
    border-radius: 50px;
    transition: var(--rf-transition);
}

.hero-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

/* Banner Pagination */
.banner-pagination {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.banner-pagination span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: var(--rf-transition);
}

.banner-pagination span.active {
    background: var(--rf-white);
    transform: scale(1.2);
}

/* ============================================
   Section Common Styles
   ============================================ */
.section {
    padding: 80px 0;
}

.section-gray {
    background: var(--rf-gray-light);
}

.section-blue {
    background: linear-gradient(135deg, var(--rf-blue) 0%, var(--rf-blue-dark) 100%);
    color: var(--rf-white);
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 36px;
    font-weight: 700;
    color: var(--rf-text);
    margin-bottom: 8px;
}

.section-blue .section-header h2 {
    color: var(--rf-white);
}

.section-header .en-title {
    font-size: 14px;
    color: var(--rf-text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.section-blue .section-header .en-title {
    color: rgba(255,255,255,0.7);
}

.section-header .divider {
    width: 60px;
    height: 3px;
    background: var(--rf-blue);
    margin: 16px auto;
    border-radius: 2px;
}

.section-blue .section-header .divider {
    background: var(--rf-white);
}

.section-header p {
    font-size: 16px;
    color: var(--rf-text-light);
    max-width: 600px;
    margin: 0 auto;
}

.section-blue .section-header p {
    color: rgba(255,255,255,0.8);
}

/* ============================================
   Products Section
   ============================================ */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.product-card {
    background: var(--rf-white);
    border-radius: var(--rf-radius);
    overflow: hidden;
    box-shadow: var(--rf-shadow);
    transition: var(--rf-transition);
    text-align: center;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--rf-shadow-hover);
}

.product-card .card-image {
    height: 200px;
    overflow: hidden;
    background: var(--rf-gray-light);
}

.product-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .card-image img {
    transform: scale(1.08);
}

.product-card .card-body {
    padding: 24px 16px;
}

.product-card .card-body h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--rf-text);
    margin-bottom: 8px;
}

.product-card .card-body p {
    font-size: 14px;
    color: var(--rf-text-muted);
    margin-bottom: 16px;
}

.product-card .card-link {
    display: inline-block;
    padding: 8px 24px;
    border: 1px solid var(--rf-blue);
    color: var(--rf-blue);
    border-radius: 50px;
    font-size: 14px;
    transition: var(--rf-transition);
}

.product-card .card-link:hover {
    background: var(--rf-blue);
    color: var(--rf-white);
}

/* ============================================
   Solutions Section
   ============================================ */
.solutions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.solution-card {
    position: relative;
    height: 240px;
    border-radius: var(--rf-radius);
    overflow: hidden;
    cursor: pointer;
}

.solution-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.solution-card:hover img {
    transform: scale(1.1);
}

.solution-card .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(2,129,204,0.9) 0%, rgba(2,129,204,0.2) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--rf-white);
    transition: var(--rf-transition);
}

.solution-card:hover .overlay {
    background: linear-gradient(to top, rgba(2,129,204,0.95) 0%, rgba(2,129,204,0.4) 100%);
}

.solution-card .overlay h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

.solution-card .overlay p {
    font-size: 14px;
    opacity: 0.8;
}

/* ============================================
   Service / Safety Section
   ============================================ */
.service-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 50px;
}

.feature-item {
    text-align: center;
    padding: 40px 24px;
    background: rgba(255,255,255,0.1);
    border-radius: var(--rf-radius);
    transition: var(--rf-transition);
}

.feature-item:hover {
    background: rgba(255,255,255,0.15);
    transform: translateY(-4px);
}

.feature-item .icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.feature-item h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
}

.feature-item p {
    font-size: 14px;
    opacity: 0.8;
    line-height: 1.8;
}

/* ============================================
   News Section
   ============================================ */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.news-card {
    background: var(--rf-white);
    border-radius: var(--rf-radius);
    overflow: hidden;
    box-shadow: var(--rf-shadow);
    transition: var(--rf-transition);
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--rf-shadow-hover);
}

.news-card .card-image {
    height: 200px;
    overflow: hidden;
}

.news-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .card-image img {
    transform: scale(1.05);
}

.news-card .card-body {
    padding: 24px;
}

.news-card .card-date {
    font-size: 13px;
    color: var(--rf-text-muted);
    margin-bottom: 8px;
}

.news-card .card-body h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--rf-text);
    margin-bottom: 12px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card .card-body p {
    font-size: 14px;
    color: var(--rf-text-light);
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card .read-more {
    display: inline-block;
    margin-top: 16px;
    color: var(--rf-blue);
    font-size: 14px;
    font-weight: 500;
}

.news-card .read-more:hover {
    color: var(--rf-blue-dark);
}

/* ============================================
    About / Stats Section
    ============================================ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.stat-item {
    text-align: center;
    padding: 40px 20px;
    background: var(--rf-white);
    border-radius: var(--rf-radius);
    box-shadow: var(--rf-shadow);
}

.stat-item .stat-number {
    font-size: 42px;
    font-weight: 700;
    color: var(--rf-blue);
    margin-bottom: 8px;
}

.stat-item .stat-label {
    font-size: 14px;
    color: var(--rf-text-light);
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h3 {
    font-size: 24px;
    font-weight: 600;
    color: var(--rf-text);
    margin-bottom: 20px;
}

.about-text p {
    font-size: 15px;
    color: var(--rf-text-light);
    line-height: 1.8;
    margin-bottom: 16px;
}

.about-features {
    margin: 24px 0;
    padding: 0;
    list-style: none;
}

.about-features li {
    font-size: 15px;
    color: var(--rf-text);
    margin-bottom: 12px;
    padding-left: 8px;
}

.about-image-placeholder {
    background: linear-gradient(135deg, var(--rf-blue-bg) 0%, #d0ebfa 100%);
    border-radius: var(--rf-radius);
    height: 360px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.about-image-placeholder span {
    font-size: 80px;
    margin-bottom: 16px;
}

.about-image-placeholder p {
    font-size: 16px;
    color: var(--rf-text-light);
}

/* Video Section */
.video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.video-card {
    border-radius: var(--rf-radius);
    overflow: hidden;
    box-shadow: var(--rf-shadow);
    transition: var(--rf-transition);
}

.video-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--rf-shadow-hover);
}

.video-placeholder {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    height: 240px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--rf-white);
    text-align: center;
    position: relative;
}

.video-placeholder .play-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 16px;
    transition: var(--rf-transition);
}

.video-card:hover .play-icon {
    background: var(--rf-blue);
    transform: scale(1.1);
}

.video-placeholder p {
    font-size: 15px;
    opacity: 0.9;
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
    background: #1a1a2e;
    color: rgba(255,255,255,0.7);
    padding: 60px 0 0;
}

.footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand .footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.footer-brand .footer-logo img {
    height: 40px;
}

.footer-brand .footer-logo span {
    font-size: 18px;
    font-weight: 700;
    color: var(--rf-white);
}

.footer-brand p {
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.footer-brand .contact-info {
    font-size: 14px;
}

.footer-brand .contact-info .phone {
    font-size: 24px;
    font-weight: 700;
    color: var(--rf-blue-light);
    margin: 8px 0;
}

.footer-col h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--rf-white);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 12px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--rf-blue);
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
    transition: var(--rf-transition);
}

.footer-col ul li a:hover {
    color: var(--rf-blue-light);
    padding-left: 4px;
}

.footer-bottom {
    padding: 20px 0;
    text-align: center;
    font-size: 13px;
    color: rgba(255,255,255,0.4);
}

.footer-bottom a {
    color: rgba(255,255,255,0.5);
}

.footer-bottom a:hover {
    color: var(--rf-blue-light);
}

/* ============================================
   Page / Single Post Styles
   ============================================ */
.page-header {
    margin-top: 80px;
    padding: 60px 0;
    background: linear-gradient(135deg, var(--rf-blue) 0%, var(--rf-blue-dark) 100%);
    color: var(--rf-white);
    text-align: center;
}

.page-header h1 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 8px;
}

.page-header .breadcrumb {
    font-size: 14px;
    opacity: 0.8;
}

.page-header .breadcrumb a {
    color: rgba(255,255,255,0.8);
}

.page-header .breadcrumb a:hover {
    color: var(--rf-white);
}

.page-content {
    padding: 60px 0;
}

.page-content .entry-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 16px;
    line-height: 1.8;
}

.entry-content h2 {
    font-size: 24px;
    font-weight: 600;
    margin: 32px 0 16px;
    color: var(--rf-text);
}

.entry-content h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 24px 0 12px;
}

.entry-content p {
    margin-bottom: 16px;
}

.entry-content img {
    border-radius: var(--rf-radius);
    margin: 20px 0;
}

.entry-content ul, .entry-content ol {
    margin: 16px 0;
    padding-left: 24px;
}

.entry-content ul {
    list-style: disc;
}

.entry-content ol {
    list-style: decimal;
}

.entry-content li {
    margin-bottom: 8px;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-block;
    padding: 12px 32px;
    font-size: 15px;
    font-weight: 500;
    border-radius: 50px;
    transition: var(--rf-transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--rf-blue);
    color: var(--rf-white);
}

.btn-primary:hover {
    background: var(--rf-blue-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(2,129,204,0.3);
}

.btn-outline {
    background: transparent;
    color: var(--rf-blue);
    border: 1px solid var(--rf-blue);
}

.btn-outline:hover {
    background: var(--rf-blue);
    color: var(--rf-white);
}

.btn-white {
    background: var(--rf-white);
    color: var(--rf-blue);
}

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .solutions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-main {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .top-bar {
        height: auto;
        min-height: 36px;
        padding: 6px 0;
    }
    
    .top-bar-inner {
        flex-direction: row;
        height: auto;
        padding: 0 16px;
        gap: 8px;
        flex-wrap: wrap;
    }
    
    .top-bar-left {
        flex: 1;
        min-width: 0;
    }
    
    .top-bar-left .welcome-text {
        font-size: 12px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        display: block;
    }
    
    .top-bar-right {
        flex-shrink: 0;
    }
    
    .top-bar-right .top-bar-phone {
        font-size: 13px;
        white-space: nowrap;
    }
    
    .top-bar-right .call-btn {
        display: none;
    }
    
    .header-inner {
        height: 60px;
    }
    
    .site-header {
        top: 48px;
    }
    
    .admin-bar .top-bar {
        top: 46px;
    }
    
    .admin-bar .site-header {
        top: 94px;
    }
    
    .hero-banner {
        margin-top: 108px;
    }
    
    .admin-bar .hero-banner {
        margin-top: 154px;
    }
    
    .hero-content h1 {
        font-size: 28px;
    }
    
    .hero-content p {
        font-size: 16px;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .main-nav {
        position: fixed;
        top: 108px;
        left: 0;
        right: 0;
        background: var(--rf-white);
        box-shadow: var(--rf-shadow);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    .admin-bar .main-nav {
        top: 154px;
    }
    
    .main-nav.active {
        max-height: calc(100vh - 108px);
        overflow-y: auto;
    }
    
    .main-nav ul {
        flex-direction: column;
    }
    
    .main-nav > ul > li > a {
        padding: 16px 20px;
    }
    
    .main-nav .sub-menu {
        position: static;
        transform: none;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        display: none;
        background: var(--rf-gray-light);
    }
    
    .main-nav > ul > li:hover > .sub-menu {
        display: block;
    }
    
    .section {
        padding: 50px 0;
    }
    
    .section-header h2 {
        font-size: 28px;
    }
    
    .products-grid,
    .solutions-grid,
    .news-grid,
    .video-grid {
        grid-template-columns: 1fr;
    }
    
    .service-features {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .about-image-placeholder {
        height: 240px;
    }
    
    .footer-main {
        grid-template-columns: 1fr;
    }
    
    .page-header {
        margin-top: 108px;
        padding: 40px 0;
    }
    
    .admin-bar .page-header {
        margin-top: 154px;
    }
    
    .page-header h1 {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .top-bar {
        height: auto;
        min-height: 32px;
        padding: 5px 0;
    }
    
    .top-bar-inner {
        padding: 0 12px;
        gap: 6px;
    }
    
    .top-bar-left .welcome-text {
        font-size: 11px;
    }
    
    .top-bar-right .top-bar-phone {
        font-size: 12px;
    }
    
    .top-bar-right .phone-text {
        display: none;
    }
    
    .site-header {
        top: 42px;
    }
    
    .admin-bar .top-bar {
        top: 46px;
    }
    
    .admin-bar .site-header {
        top: 88px;
    }
    
    .hero-banner {
        margin-top: 102px;
        height: 250px;
    }
    
    .admin-bar .hero-banner {
        margin-top: 148px;
    }
    
    .hero-content h1 {
        font-size: 24px;
    }
    
    .stat-item .stat-number {
        font-size: 32px;
    }
}
