/* ========================================
   ROBOX 企业网站样式 - 优化版
   现代简洁企业风格
======================================== */

/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #0066cc;
    --primary-light: #0088ff;
    --secondary-color: #ff6b35;
    --accent-color: #00c853;
    --dark-bg: #0f1419;
    --light-bg: #1a1a2e;
    --card-bg: #16213e;
    --white: #ffffff;
    --text-color: #333333;
    --text-light: #666666;
    --text-muted: #999999;
    --border-color: #e0e0e0;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background-color: #f5f7fa;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ========================================
   导航栏
======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    height: 72px;
    display: flex;
    align-items: center;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-img {
    height: 48px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-text h1 {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.2;
}

.logo-text .tagline {
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 8px;
    align-items: center;
}

.nav-menu a {
    display: block;
    padding: 10px 18px;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    border-radius: var(--radius-sm);
    transition: all 0.25s;
}

.nav-menu a:hover {
    color: var(--primary-color);
    background: rgba(0, 102, 204, 0.08);
}

/* ========================================
   首页横幅区域
======================================== */
.hero {
    position: relative;
    padding-top: 72px;
    min-height: auto;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    overflow: hidden;
}

.hero-bg {
    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 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
}

/* 轮播图网格 - 优化尺寸 */
.banner-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 40px 0;
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
}

.banner-item {
    position: relative;
    aspect-ratio: 16 / 10;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: var(--white);
}

.banner-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.banner-item:hover img {
    transform: scale(1.05);
}

.banner-item .banner-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: var(--white);
}

.banner-item h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.banner-item p {
    font-size: 13px;
    opacity: 0.85;
}

/* 英雄内容区域 */
.hero .container {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 60px 24px;
    gap: 40px;
}

.hero-content {
    flex: 1;
    max-width: 580px;
}

.hero-title {
    font-size: 42px;
    font-weight: 800;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 16px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.hero-subtitle {
    font-size: 20px;
    color: rgba(255,255,255,0.95);
    margin-bottom: 20px;
    font-weight: 500;
}

.hero-description {
    font-size: 16px;
    color: rgba(255,255,255,0.85);
    margin-bottom: 30px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 16px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--white);
    color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.5);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.15);
    border-color: var(--white);
}

/* 设备展示卡片 */
.hero-visual {
    flex: 0 0 320px;
}

.device-showcase {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.device-card {
    background: rgba(255,255,255,0.95);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s;
}

.device-card:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow-lg);
}

.device-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.device-card h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-color);
}

/* ========================================
   通用区块样式
======================================== */
section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 12px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 16px;
    color: var(--text-light);
    margin-top: 16px;
}

/* ========================================
   产品系列
======================================== */
.products {
    background: var(--white);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    align-items: stretch;
}

.product-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.product-card.featured {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.15);
}

.product-image {
    background: linear-gradient(135deg, #f0f2f5 0%, #e8eaed 100%);
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-img {
    transform: scale(1.08);
}

.product-info {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-badge {
    display: inline-block;
    padding: 4px 12px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 12px;
}

.product-badge.hot {
    background: var(--secondary-color);
}

.product-badge.pro {
    background: linear-gradient(135deg, #ff6b35 0%, #ffa502 100%);
}

.product-name {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-color);
}

.product-desc {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 16px;
}

.product-features {
    list-style: none;
    margin-bottom: 16px;
}

.product-features li {
    padding: 8px 0;
    font-size: 14px;
    color: var(--text-light);
    border-bottom: 1px dashed var(--border-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.product-features li::before {
    content: '✓';
    color: var(--accent-color);
    font-weight: bold;
}

.product-specs {
    margin-bottom: 20px;
    background: #f8f9fa;
    border-radius: var(--radius-sm);
    padding: 12px;
    flex: 1;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 13px;
}

.spec-label {
    color: var(--text-muted);
}

.spec-value {
    font-weight: 600;
    color: var(--text-color);
}

.btn-product {
    display: block;
    width: 100%;
    text-align: center;
    padding: 12px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
}

.btn-product:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
}

/* ========================================
   技术优势
======================================== */
.features {
    background: #f5f7fa;
}

.features-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
    align-items: center;
}

.features-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.feature-img {
    width: 100%;
    height: auto;
    display: block;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.feature-item {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
    border: 1px solid var(--border-color);
}

.feature-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.feature-icon {
    font-size: 36px;
    margin-bottom: 12px;
}

.feature-item h3 {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-color);
}

.feature-item p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
}

/* ========================================
   技术参数对比
======================================== */
.specs {
    background: var(--white);
}

.specs-table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
}

.specs-table thead {
    background: var(--primary-color);
    color: var(--white);
}

.specs-table th {
    padding: 16px 20px;
    text-align: left;
    font-weight: 600;
    font-size: 15px;
}

.specs-table td {
    padding: 14px 20px;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
}

.specs-table tbody tr:hover {
    background: #f8f9fa;
}

.specs-table tbody tr:last-child td {
    border-bottom: none;
}

/* ========================================
   应用场景
======================================== */
.applications {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 80px 0;
}

.applications .section-title {
    color: var(--white);
}

.applications .section-title::after {
    background: var(--white);
}

.applications .section-subtitle {
    color: rgba(255,255,255,0.85);
}

.applications-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

.app-item {
    background: rgba(255,255,255,0.95);
    border-radius: var(--radius-md);
    padding: 28px 16px;
    text-align: center;
    transition: all 0.3s;
    box-shadow: var(--shadow-md);
}

.app-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.app-icon {
    font-size: 40px;
    margin-bottom: 12px;
}

.app-item h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 8px;
}

.app-item p {
    font-size: 12px;
    color: var(--text-light);
    line-height: 1.5;
}

/* ========================================
   联系我们
======================================== */
.contact {
    background: #f5f7fa;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: var(--white);
    padding: 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: rgba(0, 102, 204, 0.1);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.contact-details h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-details p {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-color);
    line-height: 1.5;
}

.contact-details .mobile {
    color: var(--primary-color);
    font-weight: 600;
}

.contact-form {
    background: var(--white);
    padding: 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s;
    background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form .btn-primary {
    width: 100%;
    padding: 16px;
    font-size: 16px;
}

.form-success {
    text-align: center;
    padding: 40px 20px;
    color: var(--accent-color);
    font-size: 16px;
}

/* ========================================
   页脚
======================================== */
.footer {
    background: #1a1a2e;
    color: var(--white);
    padding: 60px 0 24px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    height: 50px;
    width: auto;
    margin-bottom: 16px;
    display: block;
}

.footer-brand h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--white);
}

.footer-brand p {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    margin-bottom: 4px;
}

.footer-slogan {
    color: var(--primary-light) !important;
    font-weight: 500;
    margin-top: 8px !important;
}

.footer-links h4,
.footer-contact h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--white);
    position: relative;
    padding-bottom: 12px;
}

.footer-links h4::after,
.footer-contact h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary-color);
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul li a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
    display: inline-block;
}

.footer-links ul li a:hover {
    color: var(--primary-light);
    transform: translateX(4px);
}

.footer-contact p {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom p {
    color: rgba(255,255,255,0.5);
    font-size: 13px;
}

/* ========================================
   动画
======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-content {
    animation: fadeInUp 0.8s ease;
}

.hero-visual {
    animation: fadeInRight 0.8s ease;
}

/* ========================================
   图片设置面板
======================================== */
.image-settings-panel {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 320px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    z-index: 999;
    display: none;
}

.image-settings-panel.active {
    display: block;
}

.settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
}

.settings-header h3 {
    font-size: 15px;
    font-weight: 600;
}

.settings-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--text-light);
}

.settings-content {
    padding: 20px;
}

.setting-group {
    margin-bottom: 16px;
}

.setting-label {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    margin-bottom: 8px;
    color: var(--text-color);
}

.settings-slider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    appearance: none;
    background: #e0e0e0;
    outline: none;
}

.settings-slider::-webkit-slider-thumb {
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
}

.settings-toggle {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
}

.settings-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #ccc;
    border-radius: 26px;
    transition: 0.4s;
}

.toggle-slider::before {
    position: absolute;
    content: '';
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: 0.4s;
}

.settings-toggle input:checked + .toggle-slider {
    background: var(--primary-color);
}

.settings-toggle input:checked + .toggle-slider::before {
    transform: translateX(22px);
}

.preset-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 16px;
}

.btn-preset {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    background: var(--white);
    border-radius: var(--radius-sm);
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-preset:hover,
.btn-preset.active {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(0, 102, 204, 0.05);
}

.settings-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--border-color);
}

.settings-actions {
    display: flex;
    gap: 8px;
}

.btn-settings {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-settings#resetSettings {
    background: #f0f0f0;
    color: var(--text-color);
}

.btn-settings#saveSettings {
    background: var(--primary-color);
    color: var(--white);
}

.btn-settings#toggleSettings {
    background: var(--text-light);
    color: var(--white);
}

.settings-trigger {
    position: fixed;
    bottom: 24px;
    right: 24px;
    padding: 12px 20px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 998;
    transition: all 0.3s;
}

.settings-trigger:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.trigger-icon {
    font-size: 18px;
}

/* ========================================
   响应式设计
======================================== */
@media (max-width: 1024px) {
    .hero .container {
        flex-direction: column;
        text-align: center;
        padding: 40px 24px;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-visual {
        flex: 0 0 auto;
        width: 100%;
        max-width: 400px;
    }

    .features-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .features-image {
        max-width: 500px;
        margin: 0 auto;
    }

    .applications-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .navbar {
        height: 64px;
    }

    .logo-img {
        height: 40px;
    }

    .logo-text h1 {
        font-size: 18px;
    }

    .nav-menu {
        display: none;
    }

    .hero {
        padding-top: 64px;
    }

    .hero-title {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .banner-gallery-grid {
        grid-template-columns: 1fr;
        padding: 24px;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .applications-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-links h4::after,
    .footer-contact h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 28px;
    }

    .image-settings-panel {
        width: calc(100% - 48px);
        left: 24px;
    }
}

/* 移动端菜单按钮 */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-color);
    border-radius: 2px;
    transition: all 0.3s;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
}
