/* KAM Sensors - PbootCMS Template Styles */
/* Version: 4.0 - 1:1 Design Restoration */

/* ========== Variables ========== */
:root {
    --primary-color: #da251c;
    --primary-dark: #b51d15;
    --primary-light: #ff3d33;
    --secondary-color: #1a1a1a;
    --text-color: #333333;
    --text-light: #666666;
    --text-white: #ffffff;
    --bg-gray: #f5f5f5;
    --bg-dark: #1a1a1a;
    --bg-darker: #0d0d0d;
    --border-color: #e5e5e5;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.15);
    --transition: all 0.3s ease;
    --#005abb-accent: #0066cc;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', 'Segoe UI', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background: #fff;
    overflow-x: hidden;
}

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

a:hover {
    color: #005abb;
}

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

ul, ol {
    list-style: none;
}

/* ========== Animations ========== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes bounce {
    0%, 20%, 53%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-20px); }
    60% { transform: translateY(-10px); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.animate-fadeIn { animation: fadeIn 0.6s ease forwards; }
.animate-fadeInUp { animation: fadeInUp 0.6s ease forwards; }
.animate-fadeInDown { animation: fadeInDown 0.6s ease forwards; }
.animate-fadeInLeft { animation: fadeInLeft 0.6s ease forwards; }
.animate-fadeInRight { animation: fadeInRight 0.6s ease forwards; }

/* ========== Container ========== */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* ========== Buttons ========== */
.btn {
    display: inline-block;
    padding: 14px 40px;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 0;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background: #005abb;
    color: var(--text-white);
    border-color: #005abb;
}

.btn-primary:hover {
    background: #0e539d;
    color: var(--text-white);
}

.btn-outline {
    background: transparent;
    border-color: var(--text-color);
    color: var(--text-color);
}

.btn-outline:hover {
    background: #005abb;
    border-color: #005abb;
    color: var(--text-white);
}

.btn-outline-white {
    background: transparent;
    border-color: var(--text-white);
    color: var(--text-white);
}

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

.btn-outline-primary {
    background: transparent;
    border-color: #005abb;
    color: #005abb;
}

.btn-outline-primary:hover {
    background: #005abb;
    color: var(--text-white);
}

.btn-sm { padding: 10px 25px; font-size: 12px; }
.btn-lg { padding: 16px 45px; font-size: 15px; }
.btn-block { display: block; width: 100%; text-align: center; }

/* ========== Header ========== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #fff;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 90px;
}

.logo {
    flex-shrink: 0;
}

.logo img {
    max-height: 50px;
}

/* Navigation */
.main-nav {
    position: relative;
    flex: 1;
    display: flex;
    justify-content: center;
}

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

.main-nav .nav-item {
    position: relative;
}

.main-nav .nav-item > a {
    display: block;
    padding: 35px 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
}

.main-nav .nav-item:hover > a,
.main-nav .nav-item.active > a {
    color: #005abb;
}

.main-nav .nav-item > a .arrow {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    margin-left: 5px;
    transition: var(--transition);
}

.main-nav .nav-item:hover > a .arrow {
    transform: rotate(-135deg);
}

/* Sub Menu Dropdown - 垂直下拉样式 */
.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: #fff;
    box-shadow: 0 5px 25px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 100;
    border-top: 2px solid #005abb;
	    display: flex !important;
    flex-direction: column !important;
}

.main-nav .nav-item:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sub-menu li {
    display: block !important;
    width: 100% !important;
    float: none !important;
    clear: both;
}

.sub-menu li a {

    padding: 14px 20px;
    font-size: 14px;
    color: var(--text-color);
    border-bottom: 1px solid #eee;
    background: #fff;
    transition: all 0.2s ease;
    white-space: nowrap;
	    display: block !important;
    width: 100% !important;
}

.sub-menu li:last-child a {
    border-bottom: none;
}

.sub-menu li a:hover {
    background: #005abb;
    color: #fff;
    padding-left: 25px;
}

/* 三级菜单 */
.sub-menu .sub-menu {
    top: 0;
    left: 100%;
    margin-top: -2px;
}

.sub-menu li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
}

/* Header Right */
.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

.header-lang {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: var(--text-light);
}

.header-lang a {
    color: var(--text-light);
    padding: 5px;
}

.header-lang a:hover,
.header-lang a.active {
    color: #005abb;
}

.header-search {
    position: relative;
}

.header-search-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-gray);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.header-search-btn:hover {
    background: #005abb;
    color: #fff;
}

.header-search-box {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 10px;
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    display: none;
    width: 300px;
}

.header-search-box.active {
    display: block;
}

.header-search-box input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 14px;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
}

.mobile-toggle span {
    width: 25px;
    height: 2px;
    background: var(--text-color);
    transition: var(--transition);
}

/* ========== Hero Banner ========== */
.hero-banner {
    margin-top: 90px;
    position: relative;
    height: 700px;
    overflow: hidden;
}

.hero-slider {
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: relative;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
}

.hero-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    padding: 0 50px;
}

.hero-content h1 {
    font-size: 56px;
    color: var(--text-white);
    margin-bottom: 25px;
    line-height: 1.2;
    font-weight: 700;
    text-transform: uppercase;
    animation: fadeInUp 0.8s ease;
}

.hero-content h1 span {
    color: #005abb;
    display: block;
}

.hero-content p {
    font-size: 18px;
    color: rgba(255,255,255,0.85);
    margin-bottom: 35px;
    line-height: 1.8;
    animation: fadeInUp 0.8s ease 0.2s backwards;
}

.hero-btns {
    display: flex;
    gap: 20px;
    animation: fadeInUp 0.8s ease 0.4s backwards;
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50px;
    color: rgba(255,255,255,0.7);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 10;
}

.hero-scroll::after {
    content: '';
    width: 1px;
    height: 40px;
    background: rgba(255,255,255,0.5);
    animation: bounce 2s infinite;
}

/* Swiper Pagination - Vertical */
.hero-pagination {
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 10;
}

.hero-pagination .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.hero-pagination .swiper-pagination-bullet-active {
    background: transparent;
    border-color: #005abb;
}

/* Swiper Navigation */
.hero-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.hero-nav:hover {
    background: #005abb;
    border-color: #005abb;
}

.hero-nav.prev { left: 20px; }
.hero-nav.next { right: 80px; }

.hero-nav svg {
    width: 20px;
    height: 20px;
    fill: #fff;
}

/* ========== Sections ========== */
.section {
    padding: 60px 0;
}

.bg-gray { background: var(--bg-gray); }
.bg-dark { background: var(--bg-dark); color: var(--text-white); }

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

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

.bg-dark .section-header h2 {
    color: var(--text-white);
}

.section-line {
    width: 60px;
    height: 3px;
    background: #005abb;
    margin: 0 auto 20px;
}

.section-line.left {
    margin: 0 0 20px;
}

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

.bg-dark .section-header p {
    color: rgba(255,255,255,0.7);
}

.section-footer {
    text-align: center;
    margin-top: 40px;
}

/* ========== Products Section ========== */
.products-section {
    background: #fff;
    position: relative;
}

.products-section .container {
    position: relative;
}

.products-wrapper {
    position: relative;
}

.products-slider {
    display: flex;
    gap: 30px;
    overflow: hidden;
}

.product-card {
    flex: 0 0 calc(33.333% - 20px);
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 0;
    overflow: hidden;
    transition: var(--transition);
}

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

.product-image {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    position: relative;
    overflow: hidden;
	    height: 300px;
    width: 100%;
}

.product-image img {
    max-height: 200px;
    object-fit: contain;
    transition: var(--transition);
}

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

.no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 14px;
    background: var(--bg-gray);
}

.product-overlay {
    position: absolute;
    inset: 0;
    background: rgba(24, 132, 232, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.product-overlay .btn {
    background: #fff;
    color: #005abb;
    border-color: #fff;
    padding: 12px 30px;
}

.product-info {
    padding: 25px;
    text-align: center;
}

.product-info h3 {
    font-size: 18px;
    margin-bottom: 10px;
    transition: var(--transition);
    color: var(--text-color);
    font-weight: 600;
}

.product-card:hover .product-info h3 {
    color: #005abb;
}

.product-info p {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.view-link {
    font-size: 13px;
    color: #005abb;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Products Navigation Arrows */
.products-nav {
    display: flex;
    gap: 10px;
    margin-top: 30px;
    justify-content: center;
}

.products-nav .nav-btn {
    width: 50px;
    height: 50px;
    border: 1px solid var(--border-color);
    background: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.products-nav .nav-btn:hover {
    background: #005abb;
    border-color: #005abb;
    color: #fff;
}

/* ========== News Section ========== */
.news-section {
    background: #fff;
}

.news-home-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: stretch;
}

.news-home-left {
    background: var(--bg-dark);
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.news-home-left::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url(/template/default/images/newbg.jpg);
    background-size: 100%;
    opacity: 0.5;
}

.news-home-left .content {
    position: relative;
    z-index: 1;
}

.news-home-left h2 {
    color: var(--text-white);
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.news-home-left p {
    color: rgba(255,255,255,0.7);
    font-size: 16px;
    line-height: 1.8;
}

.news-home-right {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.news-home-item {
    display: flex;
    gap: 25px;
    padding: 25px;
    background: var(--bg-gray);
    transition: var(--transition);
}

.news-home-item:hover {
    background: #fff;
    box-shadow: var(--shadow);
}

.news-home-item .news-image {
    width: 150px;
    height: 100px;
    flex-shrink: 0;
    background: #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.news-home-item .news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-home-item .news-content {
    flex: 1;
}

.news-home-item .news-content time {
    font-size: 13px;
    color: #005abb;
    font-weight: 500;
}

.news-home-item .news-content h3 {
    font-size: 18px;
    margin: 10px 0;
    color: var(--text-color);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-home-item:hover .news-content h3 {
    color: #005abb;
}

.news-home-item .news-content p {
    font-size: 14px;
    color: var(--text-light);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ========== About Section ========== */
.about-section {
     background: url(/template/default/images/aboutbg.jpg);
    background-size: 100%;
    position: relative;
    overflow: hidden;
}

.about-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 800 400"><ellipse cx="400" cy="200" rx="350" ry="150" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="1"/></svg>');
    background-size: cover;
    background-position: center;
}

.about-home-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.about-home-content h2 {
    color: var(--text-white);
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.about-home-content > p {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    line-height: 1.88;
    margin-bottom: 15px;
}

.about-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.stat-box {
    text-align: center;
    padding: 30px 20px;

}

.stat-box .stat-number {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    line-height: 1;
    margin-bottom: 10px;
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-box .stat-number span {
    display: inline-block;
}

.stat-box .stat-label {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-home-media {
    position: relative;
}

.about-home-media .play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: #005abb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    z-index: 2;
}

.about-home-media .play-btn:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

.about-home-media .play-btn::before {
    content: '';
    width: 0;
    height: 0;
    border-left: 25px solid #fff;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    margin-left: 5px;
}

/* ========== CTA Cards Section ========== */
.cta-cards-section {
    padding: 30px;
}

.cta-cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.cta-card {
    position: relative;
    height: 400px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.cta-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.1) 100%);
    z-index: 1;
}

.cta-card-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: var(--transition);
}

.cta-card:hover .cta-card-bg {
    transform: scale(1.05);
}

.cta-card-content {
    position: relative;
    z-index: 2;
    padding: 50px;
    color: var(--text-white);
}

.cta-card-content h3 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.cta-card-content p {
    font-size: 16px;
    color: rgba(255,255,255,0.8);
    margin-bottom: 25px;
}

.cta-card-content .btn {
    border-color: var(--text-white);
    color: var(--text-white);
}

.cta-card-content .btn:hover {
    background: var(--text-white);
    color: var(--text-color);
}

/* ========== Page Banner ========== */
.page-banner {

    background-size: cover;
    background-position: center;
    position: relative;
}

.page-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: #fff;
}

.page-banner .container {
    position: relative;
    z-index: 1;
}

.page-banner h1 {
    font-size: 48px;
    color: var(--text-white);
    margin-bottom: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.page-banner p {
    color: rgba(255,255,255,0.8);
    font-size: 18px;
}

.breadcrumb {
    margin-bottom: 20px;
}

.breadcrumb a, .breadcrumb span {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
}

.breadcrumb a:hover {
    color: var(--text-white);
}

/* ========== Footer ========== */
.footer {
    background: var(--bg-darker);
    color: var(--text-white);
    padding: 80px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr 1fr;
    gap: 40px;
}

.footer-logo img {
    max-height: 50px;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
}

.footer-desc {
    color: rgba(255,255,255,0.6);
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.8;
}

.footer-contact p {
    color: rgba(255,255,255,0.7);
    margin-bottom: 10px;
    font-size: 14px;
}

.footer-col h4 {
    font-size: 16px;
    margin-bottom: 25px;
    padding-bottom: 10px;
    color: var(--text-white);
}

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

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

.footer-col ul li a:hover {
    color: #005abb;
    padding-left: 5px;
}

.footer-qr {
    text-align: center;
}

.footer-qr img {
    width: 120px;
    height: 120px;
    background: #fff;
    padding: 10px;
    margin-bottom: 10px;
}

.footer-qr p {
    color: rgba(255,255,255,0.7);
    font-size: 13px;
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255,255,255,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.7);
    transition: var(--transition);
}

.footer-social a:hover {
    background: #005abb;
    border-color: #005abb;
    color: #fff;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 0;
    margin-top: 60px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom p {
    color: rgba(255,255,255,0.5);
    font-size: 14px;
}

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

.footer-links a {
    color: rgba(255,255,255,0.5);
    font-size: 14px;
}

.footer-links a:hover {
    color: var(--text-white);
}

/* ========== Back to Top ========== */
.back-to-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 50px;
    height: 50px;
    background: #005abb;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

.back-to-top svg {
    width: 20px;
    height: 20px;
    fill: #fff;
}

.back-to-top.show {
    display: flex;
}

/* ========== Online Service Float ========== */
.online-service {
    position: fixed;
    right: 20px;
    bottom: 90px;
    z-index: 999;
}

.service-toggle {
    width: 60px;
    height: 60px;
    background: #005abb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.service-toggle:hover {
    background: var(--primary-dark);
}

.service-list {
    display: none;
    position: absolute;
    bottom: 70px;
    right: 0;
    flex-direction: column;
    gap: 10px;
}

.service-list.active {
    display: flex;
}

.service-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: #fff;
    border-radius: 30px;
    box-shadow: var(--shadow);
    white-space: nowrap;
    color: var(--text-color);
    font-size: 14px;
    transition: var(--transition);
}

.service-item:hover {
    background: #005abb;
    color: #fff;
}

/* ========== Utilities ========== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.hidden { display: none !important; }

/* ========== Contact Info Float ========== */
.contact-float {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-drawer {
    position: relative;
    display: flex;
    align-items: center;
}

.drawer-trigger {
    width: 50px;
    height: 50px;
    background: #005abb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow);
    z-index: 2;
    flex-shrink: 0;
}

.drawer-trigger svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.contact-drawer:hover .drawer-trigger {
    background: var(--primary-dark);
    transform: scale(1.1);
}

.drawer-content {
    position: absolute;
    right: 60px;
    top: 50%;
    transform: translateY(-50%) translateX(20px);
    background: #fff;
    border-radius: 8px;
    padding: 15px 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1;
    min-width: 200px;
}

.contact-drawer:hover .drawer-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
}

.drawer-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.drawer-label {
    font-size: 12px;
    color: #005abb;
    font-weight: 600;
    text-transform: uppercase;
}

.drawer-value {
    font-size: 14px;
    color: var(--text-color);
    font-weight: 500;
    word-break: break-all;
}

.drawer-qrcode {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 10px;
}

.drawer-qrcode img {
    width: 150px;
    height: 150px;
    object-fit: contain;
    border-radius: 4px;
}

.drawer-qrcode .drawer-label {
    font-size: 12px;
    color: #005abb;
    font-weight: 600;
    text-transform: uppercase;
}

.contact-float-item {
    width: 50px;
    height: 50px;
    background: #005abb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    transition: var(--transition);
    box-shadow: var(--shadow);
    cursor: pointer;
}

.contact-float-item:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}



/* ========== Video Modal ========== */
.video-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.9);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-modal.active {
    display: flex;
    opacity: 1;
}

.video-modal-content {
    position: relative;
    width: 90%;
    max-width: 900px;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.video-modal.active .video-modal-content {
    transform: scale(1);
}

.video-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    width: 36px;
    height: 36px;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.video-modal-close:hover {
    background: #005abb;
    border-color: #005abb;
}

.video-modal-close::before,
.video-modal-close::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 2px;
    background: #fff;
}

.video-modal-close::before {
    transform: rotate(45deg);
}

.video-modal-close::after {
    transform: rotate(-45deg);
}

.video-modal-video {
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
}

.video-modal-video video,
.video-modal-video iframe {
    width: 100%;
    height: 100%;
    border: none;
}


@media (max-width: 768px) {
    .contact-float {
        right: 10px;
        gap: 10px;
    }

    .drawer-trigger {
        width: 45px;
        height: 45px;
    }

    .drawer-trigger svg {
        width: 20px;
        height: 20px;
    }

    .drawer-content {
        right: 55px;
        padding: 12px 15px;
        min-width: 160px;
    }

    .drawer-qrcode img {
        width: 120px;
        height: 120px;
    }

    .cta-cards-grid {
        grid-template-columns: 1fr;
    }

    .cta-card {
        height: 300px;
    }

    .cta-card-content {
        padding: 30px;
    }

    .cta-card-content h3 {
        font-size: 24px;
    }

    .cta-card-content p {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 20px;
    }

    .cta-card {
        height: 250px;
    }

    .cta-card-content {
        padding: 20px;
    }

    .cta-card-content h3 {
        font-size: 20px;
    }

    .cta-card-content p {
        font-size: 13px;
        margin-bottom: 20px;
    }
}