/* ========================================
   企业官网样式
   ======================================== */
:root {
    --ws-primary: #2563eb;
    --ws-primary-dark: #1d4ed8;
    --ws-dark: #0f172a;
    --ws-text: #334155;
    --ws-text-light: #64748b;
    --ws-bg: #ffffff;
    --ws-bg-alt: #f8fafc;
    --ws-border: #e2e8f0;
    --ws-accent: #f59e0b;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: -apple-system, "Microsoft YaHei", "PingFang SC", sans-serif;
    color: var(--ws-text);
    line-height: 1.6;
    background: var(--ws-bg);
}

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

/* 导航栏 */
.ws-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--ws-border);
    transition: box-shadow 0.3s;
}

.ws-navbar.scrolled {
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

.ws-nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.ws-nav-brand {
    font-size: 20px;
    font-weight: 700;
    color: var(--ws-dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.ws-nav-brand .brand-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--ws-primary);
}

.ws-nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
}

.ws-nav-links a {
    color: var(--ws-text);
    font-size: 15px;
    font-weight: 500;
    transition: color 0.2s;
    position: relative;
}

.ws-nav-links a:hover,
.ws-nav-links a.active {
    color: var(--ws-primary);
}

.ws-nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--ws-primary);
    border-radius: 1px;
}

.ws-nav-cta {
    background: var(--ws-primary);
    color: #fff;
    padding: 8px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s;
}

.ws-nav-cta:hover {
    background: var(--ws-primary-dark);
    color: #fff;
}

/* Hero 区域 */
.ws-hero {
    padding: 120px 24px 80px;
    background: linear-gradient(135deg, #f0f4ff 0%, #e0e7ff 50%, #f0f9ff 100%);
    text-align: center;
}

.ws-hero h1 {
    font-size: 42px;
    font-weight: 800;
    color: var(--ws-dark);
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.ws-hero .hero-slogan {
    font-size: 18px;
    color: var(--ws-text-light);
    max-width: 600px;
    margin: 0 auto 32px;
}

.ws-hero .hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.ws-hero .hero-actions .btn-primary {
    background: var(--ws-primary);
    color: #fff;
    padding: 12px 32px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.2s;
}

.ws-hero .hero-actions .btn-primary:hover {
    background: var(--ws-primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37,99,235,0.3);
}

.ws-hero .hero-actions .btn-outline {
    border: 2px solid var(--ws-primary);
    color: var(--ws-primary);
    padding: 10px 32px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.2s;
}

.ws-hero .hero-actions .btn-outline:hover {
    background: var(--ws-primary);
    color: #fff;
}

/* 统计区 */
.ws-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    padding: 40px 24px;
    background: var(--ws-dark);
    color: #fff;
}

.ws-stat-item {
    text-align: center;
}

.ws-stat-item .num {
    font-size: 36px;
    font-weight: 800;
    color: var(--ws-accent);
}

.ws-stat-item .label {
    font-size: 14px;
    color: #94a3b8;
}

/* 通用区块 */
.ws-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 24px;
}

.ws-section-alt {
    background: var(--ws-bg-alt);
}

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

.ws-section-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--ws-dark);
    margin-bottom: 12px;
}

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

/* 产品卡片 */
.ws-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.ws-product-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    transition: all 0.3s;
    border: 1px solid var(--ws-border);
}

.ws-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

.ws-product-card .product-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #e0e7ff, #f0f9ff);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.ws-product-card .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ws-product-card .product-image .placeholder {
    font-size: 48px;
    color: var(--ws-primary);
    opacity: 0.3;
}

.ws-product-card .product-info {
    padding: 20px;
}

.ws-product-card .product-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--ws-dark);
    margin-bottom: 4px;
}

.ws-product-card .product-model {
    font-size: 13px;
    color: var(--ws-text-light);
    margin-bottom: 8px;
}

.ws-product-card .product-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--ws-primary);
}

.ws-product-card .product-price small {
    font-size: 13px;
    color: var(--ws-text-light);
    font-weight: 400;
}

.ws-product-card .product-points {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.ws-product-card .product-points .point-tag {
    background: #eff6ff;
    color: var(--ws-primary);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
}

.ws-product-card .product-actions {
    padding: 0 20px 20px;
    display: flex;
    gap: 8px;
}

.ws-product-card .btn-detail {
    flex: 1;
    text-align: center;
    padding: 8px;
    border: 1px solid var(--ws-border);
    border-radius: 8px;
    font-size: 13px;
    color: var(--ws-text);
    transition: all 0.2s;
}

.ws-product-card .btn-detail:hover {
    border-color: var(--ws-primary);
    color: var(--ws-primary);
}

.ws-product-card .btn-inquiry {
    flex: 1;
    text-align: center;
    padding: 8px;
    background: var(--ws-primary);
    color: #fff;
    border-radius: 8px;
    font-size: 13px;
    transition: background 0.2s;
}

.ws-product-card .btn-inquiry:hover {
    background: var(--ws-primary-dark);
}

/* 产品详情 */
.ws-product-detail {
    padding-top: 100px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 24px 80px;
}

.ws-product-detail .detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.ws-product-detail .detail-image {
    border-radius: 16px;
    overflow: hidden;
    background: var(--ws-bg-alt);
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ws-product-detail .detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ws-product-detail .detail-info h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--ws-dark);
    margin-bottom: 8px;
}

.ws-product-detail .detail-info .model-tag {
    display: inline-block;
    background: #eff6ff;
    color: var(--ws-primary);
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 16px;
}

.ws-product-detail .detail-info .price {
    font-size: 32px;
    font-weight: 800;
    color: var(--ws-primary);
    margin-bottom: 20px;
}

.ws-product-detail .detail-info .spec-table {
    width: 100%;
    margin-bottom: 20px;
}

.ws-product-detail .detail-info .spec-table td {
    padding: 8px 0;
    border-bottom: 1px solid var(--ws-border);
    font-size: 14px;
}

.ws-product-detail .detail-info .spec-table td:first-child {
    color: var(--ws-text-light);
    width: 100px;
}

.ws-selling-points {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
}

.ws-selling-points h4 {
    font-size: 16px;
    color: var(--ws-accent);
    margin-bottom: 12px;
}

.ws-selling-points ul {
    list-style: none;
    padding: 0;
}

.ws-selling-points li {
    padding: 6px 0;
    font-size: 14px;
    color: var(--ws-text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.ws-selling-points li::before {
    content: '✓';
    color: var(--ws-accent);
    font-weight: 700;
}

.ws-product-actions-bar {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.ws-product-actions-bar .btn-wechat {
    background: #07c160;
    color: #fff;
    padding: 12px 28px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}

.ws-product-actions-bar .btn-wechat:hover {
    background: #06a04d;
}

.ws-product-actions-bar .btn-inquiry-big {
    background: var(--ws-primary);
    color: #fff;
    padding: 12px 28px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}

.ws-product-actions-bar .btn-inquiry-big:hover {
    background: var(--ws-primary-dark);
}

/* 微信二维码弹窗 */
.wechat-modal {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.wechat-modal.show {
    display: flex;
}

.wechat-modal .modal-box {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    max-width: 320px;
}

.wechat-modal .modal-box h4 {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--ws-dark);
}

.wechat-modal .qr-placeholder {
    width: 200px;
    height: 200px;
    background: #f1f5f9;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    color: var(--ws-text-light);
    font-size: 14px;
}

.wechat-modal .qr-placeholder img {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    object-fit: cover;
}

.wechat-modal .modal-box p {
    font-size: 14px;
    color: var(--ws-text-light);
}

.wechat-modal .close-btn {
    margin-top: 15px;
    padding: 8px 24px;
    background: #f1f5f9;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
}

/* 询价表单 */
.inquiry-form {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.inquiry-form .form-group {
    margin-bottom: 16px;
}

.inquiry-form label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
    color: var(--ws-dark);
}

.inquiry-form input,
.inquiry-form textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--ws-border);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
}

.inquiry-form input:focus,
.inquiry-form textarea:focus {
    outline: none;
    border-color: var(--ws-primary);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

.inquiry-form .btn-submit {
    width: 100%;
    background: var(--ws-primary);
    color: #fff;
    padding: 12px;
    border-radius: 8px;
    border: none;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.inquiry-form .btn-submit:hover {
    background: var(--ws-primary-dark);
}

/* 页脚 */
.ws-footer {
    background: var(--ws-dark);
    color: #94a3b8;
    padding: 50px 24px 30px;
}

.ws-footer .footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
}

.ws-footer h5 {
    color: #fff;
    font-size: 16px;
    margin-bottom: 16px;
}

.ws-footer p, .ws-footer a {
    font-size: 14px;
    color: #94a3b8;
    display: block;
    margin-bottom: 8px;
}

.ws-footer a:hover {
    color: #fff;
}

.ws-footer .footer-bottom {
    max-width: 1200px;
    margin: 30px auto 0;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    font-size: 13px;
}

/* 关于我们 */
.about-hero {
    padding: 120px 24px 60px;
    background: linear-gradient(135deg, #f0f4ff 0%, #e0e7ff 100%);
    text-align: center;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 24px;
    font-size: 16px;
    line-height: 1.8;
    color: var(--ws-text);
}

.about-content p {
    margin-bottom: 20px;
}

/* 响应式 */
@media (max-width: 768px) {
    .ws-nav-links { display: none; }
    .ws-hero h1 { font-size: 28px; }
    .ws-stats { gap: 30px; flex-wrap: wrap; }
    .ws-product-detail .detail-grid { grid-template-columns: 1fr; }
    .ws-footer .footer-container { grid-template-columns: 1fr; }
}

/* ===== 企业宣传视频 ===== */
.ws-video-wrap {
    max-width: 900px;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.15);
    background: #0f172a;
}

.ws-video {
    display: block;
    width: 100%;
    height: auto;
    max-height: 520px;
    background: #0f172a;
}

@media (max-width: 768px) {
    .ws-video-wrap { border-radius: 10px; }
    .ws-video { max-height: 240px; }
}
