/* ===== Hero ===== */
.hero { position: relative; min-height: 640px; display: flex; align-items: center; overflow: hidden; }

/* ===== Hero Slider ===== */
.hero-slider .hero-slides { position: absolute; inset: 0; }
.hero-slider .hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .8s ease-in-out; }
.hero-slider .hero-slide.active { opacity: 1; z-index: 1; }
.hero-slider .hero-bg img.hero-slide-bg-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero-slider .hero-slide-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(15,23,42,.75) 0%, rgba(15,23,42,.4) 100%); z-index: 1; }
.hero-slider .hero-content { z-index: 2; }
.hero-dots { position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%); z-index: 10; display: flex; gap: 12px; }
.hero-dot { width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,.4); cursor: pointer; transition: all .3s; border: 2px solid transparent; }
.hero-dot.active { background: #fff; border-color: rgba(255,255,255,.3); transform: scale(1.25); }
.hero-bg { position: absolute; inset: 0; background: var(--gradient-hero); }
.hero-bg::before { content: ''; position: absolute; inset: 0; background: url('/templates/hardware_tech/assets/images/tech/hero-pattern.svg') repeat; opacity: .04; }
.hero-bg::after { content: ''; position: absolute; top: -50%; right: -15%; width: 800px; height: 800px; background: radial-gradient(circle, rgba(59,130,246,.15) 0%, transparent 70%); }
.hero-content { position: relative; z-index: 1; color: #fff; max-width: 640px; padding: 40px 0; animation: fadeUp .8s ease-out; }
.hero h1 { font-size: 54px; font-weight: 800; line-height: 1.12; margin-bottom: 20px; letter-spacing: -1.5px; }
.hero h1 .highlight { background: linear-gradient(135deg, #60a5fa, #22d3ee); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero p { font-size: 17px; color: #94a3b8; margin-bottom: 36px; line-height: 1.8; max-width: 520px; }
.hero-actions { display: flex; gap: 16px; }
.hero-image { position: absolute; right: -60px; top: 50%; transform: translateY(-50%); width: 540px; opacity: .3; }
@media (min-width: 1200px) { .hero-image { opacity: .85; } }

/* ===== Features ===== */
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.feature-card { text-align: center; padding: 44px 28px 40px; position: relative; overflow: hidden; }
.feature-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--gradient-main-alt); opacity: 0; transition: opacity .4s; }
.feature-card:hover::before { opacity: 1; }
.feature-icon { width: 64px; height: 64px; margin: 0 auto 20px; background: linear-gradient(135deg, var(--primary-lighter) 0%, #eff6ff 100%); border-radius: 18px; display: flex; align-items: center; justify-content: center; font-size: 28px; color: var(--primary); transition: all .4s cubic-bezier(.34,1.56,.64,1); box-shadow: 0 4px 12px rgba(37,99,235,.1); }
.feature-card:hover .feature-icon { transform: scale(1.12) rotate(-6deg); box-shadow: 0 8px 28px rgba(37,99,235,.2); }
.feature-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 10px; }
.feature-card p { color: var(--text-secondary); font-size: 14px; line-height: 1.7; }

/* ===== Products ===== */
.products-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.product-card { position: relative; }
.product-card .card-img { height: 220px; background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%); display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.product-card .card-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(238,242,255,.8)); pointer-events: none; }
.product-card .card-img img { width: 100%; height: 100%; object-fit: contain; padding: 20px; transition: transform .5s cubic-bezier(.34,1.56,.64,1); }
.product-card:hover .card-img img { transform: scale(1.1); }
.product-card .card-body { padding: 20px; min-height: 80px; }
.product-card h3 { font-size: 16px; font-weight: 600; margin-bottom: 10px; color: var(--text-primary); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-card .params { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.product-card .param { font-size: 12px; color: var(--text-muted); background: var(--bg-section); padding: 3px 10px; border-radius: 4px; }
.product-card .price { font-size: 18px; font-weight: 700; color: var(--primary); }
.product-card .card-footer { padding: 14px 20px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; background: linear-gradient(180deg, #fff, var(--bg-section)); }
.product-card .card-actions { display: flex; align-items: center; gap: 8px; }
.product-card .btn-cart { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 8px; border: 1px solid var(--border); color: var(--text-secondary); background: #fff; transition: all .25s; text-decoration: none; }
.product-card .btn-cart:hover { color: #fff; background: #ff6a00; border-color: #ff6a00; }

/* ===== Product section alt ===== */
.section-product { background: var(--gradient-section); padding: 96px 0; }
.section-product .section-subtitle { margin-bottom: 48px; }

/* ===== News ===== */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news-card .card-img { height: 200px; background: linear-gradient(135deg, #f8fafc, #eef2ff); overflow: hidden; position: relative; }
.news-card .card-img img { width: 100%; height: 100%; object-fit: contain; transition: transform .5s cubic-bezier(.34,1.56,.64,1); }
.news-card:hover .card-img img { transform: scale(1.06); }
.news-card .card-body { padding: 24px; }
.news-card .meta { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.news-card .date { font-size: 13px; color: var(--text-muted); }
.news-card h3 { font-size: 17px; font-weight: 600; margin-bottom: 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.5; }
.news-card p { font-size: 14px; color: var(--text-secondary); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 16px; line-height: 1.6; }
.news-card .read-more { font-size: 14px; font-weight: 500; display: inline-flex; align-items: center; gap: 4px; color: var(--primary); transition: gap .3s; }
.news-card .read-more:hover { gap: 10px; }

/* ===== CTA ===== */
.cta-section { background: var(--gradient-cta); color: #fff; text-align: center; padding: 88px 0; position: relative; overflow: hidden; }
.cta-section::before { content: ''; position: absolute; inset: 0; background: url('/templates/hardware_tech/assets/images/tech/hero-pattern.svg') repeat; opacity: .04; }
.cta-section::after { content: ''; position: absolute; top: -60%; right: -10%; width: 600px; height: 600px; background: radial-gradient(circle, rgba(255,255,255,.06) 0%, transparent 70%); }
.cta-section h2 { font-size: 36px; font-weight: 800; margin-bottom: 14px; position: relative; letter-spacing: -.5px; }
.cta-section p { opacity: .9; font-size: 17px; margin-bottom: 36px; position: relative; }

/* ===== Product List ===== */
.product-filter { margin-bottom: 36px; display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.product-filter .filter-btn { padding: 9px 24px; border: 1px solid var(--border); border-radius: 24px; cursor: pointer; font-size: 14px; transition: all .3s; background: #fff; color: var(--text-secondary); font-weight: 500; }
.product-filter .filter-btn:hover { background: var(--primary-lighter); color: var(--primary); border-color: var(--primary-light); transform: translateY(-1px); }
.product-filter .filter-btn.active { background: var(--gradient-main-alt); color: #fff; border-color: transparent; box-shadow: 0 4px 16px rgba(37,99,235,.25); }

/* ===== Product Detail ===== */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; padding: 40px 0; }
.product-gallery .main-image { width: 100%; height: 420px; background: linear-gradient(135deg, #f8fafc, #eef2ff); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); }
.product-gallery .main-image img { width: 100%; height: 100%; object-fit: contain; padding: 32px; }
.product-info h1 { font-size: 30px; font-weight: 800; margin-bottom: 24px; letter-spacing: -.5px; line-height: 1.3; }
.product-info .params { margin-bottom: 24px; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.product-info .param-row { display: flex; padding: 14px 20px; border-bottom: 1px solid var(--border); }
.product-info .param-row:last-child { border-bottom: none; }
.product-info .param-row:nth-child(even) { background: var(--bg-section); }
.product-info .param-label { width: 120px; color: var(--text-muted); flex-shrink: 0; font-size: 14px; }
.product-info .param-value { color: var(--text-primary); font-weight: 500; }
.product-info .price-box { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; padding: 20px 24px; background: linear-gradient(135deg, var(--primary-lighter), #eef2ff); border-radius: var(--radius); border: 1px solid var(--primary-light); }
.product-info .price-box .price { font-size: 32px; font-weight: 800; color: var(--primary); }
.product-info .product-desc { line-height: 1.8; color: var(--text-secondary); }
.product-info .product-desc h3 { font-size: 18px; color: var(--text-primary); margin-bottom: 12px; margin-top: 24px; }
.product-info .features-list { list-style: none; padding: 0; color: var(--text-secondary); line-height: 2; }
.product-info .features-list li { padding: 10px 0 10px 28px; position: relative; border-bottom: 1px solid var(--border-light); }
.product-info .features-list li::before { content: '✓'; position: absolute; left: 0; color: var(--primary); font-weight: 700; }

/* ===== Docs ===== */
.doc-list { display: grid; gap: 12px; }
.doc-item { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; background: #fff; border-radius: var(--radius-sm); box-shadow: var(--shadow); border: 1px solid var(--border); transition: all .3s; }
.doc-item:hover { border-color: var(--primary); box-shadow: var(--shadow-md); transform: translateX(6px); }
.doc-item .doc-info { display: flex; align-items: center; gap: 16px; }
.doc-item .doc-icon { width: 44px; height: 44px; background: linear-gradient(135deg, var(--primary-lighter), #eef2ff); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 20px; color: var(--primary); flex-shrink: 0; }
.doc-item h4 { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.doc-item .doc-meta { font-size: 13px; color: var(--text-muted); }

/* ===== Solutions & Cases ===== */
.solutions-grid, .cases-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.solution-card .card-img, .case-card .card-img { height: 200px; background: linear-gradient(135deg, #f8fafc, #eef2ff); overflow: hidden; }
.solution-card .card-img img, .case-card .card-img img { width: 100%; height: 100%; object-fit: contain; transition: transform .5s cubic-bezier(.34,1.56,.64,1); }
.solution-card:hover .card-img img, .case-card:hover .card-img img { transform: scale(1.06); }
.solution-card .card-body, .case-card .card-body { padding: 24px; }
.solution-card .card-body h3, .case-card .card-body h3 { font-size: 18px; font-weight: 600; margin-bottom: 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.solution-card .card-body p, .case-card .card-body p { color: var(--text-secondary); font-size: 14px; line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ===== About ===== */
.about-content { max-width: 1000px; margin: 0 auto; }
.about-content > p { line-height: 2; color: var(--text-secondary); font-size: 16px; margin-bottom: 16px; }
.about-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 56px; }
.about-stat { text-align: center; padding: 40px 24px; background: linear-gradient(180deg, #fff, var(--bg-section)); border-radius: var(--radius); box-shadow: var(--shadow-card); border: 1px solid var(--border); transition: all .3s; }
.about-stat:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.about-stat .num { font-size: 38px; font-weight: 800; background: var(--gradient-main-alt); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; margin-bottom: 8px; }
.about-stat .label { color: var(--text-secondary); font-size: 14px; font-weight: 500; }

/* ===== Solution Detail ===== */
.solution-detail { padding: 40px 0; }
.solution-detail .cover-image { width: 100%; height: 360px; border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 32px; background: linear-gradient(135deg, #f8fafc, #eef2ff); }
.solution-detail .cover-image img { width: 100%; height: 100%; object-fit: contain; }
.solution-detail .detail-content { max-width: 800px; margin: 0 auto; }
.solution-detail .detail-content h1 { font-size: 28px; font-weight: 700; margin-bottom: 16px; }
.solution-detail .detail-content .category { margin-bottom: 20px; }
.solution-detail .detail-content .body-text { line-height: 2; color: var(--text-secondary); font-size: 15px; }
.solution-detail .detail-content .body-text p { margin-bottom: 16px; }

/* ===== Case Detail ===== */
.case-detail { padding: 40px 0; }
.case-detail .cover-image { width: 100%; height: 360px; border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 32px; background: linear-gradient(135deg, #f8fafc, #eef2ff); }
.case-detail .cover-image img { width: 100%; height: 100%; object-fit: contain; }
.case-detail .detail-content { max-width: 800px; margin: 0 auto; }
.case-detail .detail-content h1 { font-size: 28px; font-weight: 700; margin-bottom: 16px; }
.case-detail .detail-content .meta { display: flex; gap: 24px; color: var(--text-muted); font-size: 14px; margin-bottom: 24px; }
.case-detail .detail-content .body-text { line-height: 2; color: var(--text-secondary); font-size: 15px; }
.case-detail .detail-content .body-text p { margin-bottom: 16px; }
.case-detail .result-box { margin-top: 32px; padding: 28px 32px; background: linear-gradient(135deg, var(--primary-lighter), #eef2ff); border-radius: var(--radius); border: 1px solid var(--primary-light); }
.case-detail .result-box h3 { font-size: 16px; color: var(--primary-dark); margin-bottom: 12px; }
.case-detail .result-box p { color: var(--text-secondary); font-size: 14px; line-height: 2; }

/* ===== Contact ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; padding: 40px 0; }
.contact-info h3 { font-size: 22px; margin-bottom: 28px; font-weight: 700; }
.contact-item { display: flex; align-items: center; gap: 16px; margin-bottom: 28px; }
.contact-item .icon { width: 50px; height: 50px; background: linear-gradient(135deg, var(--primary-lighter), #eef2ff); border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 22px; color: var(--primary); flex-shrink: 0; }
.contact-item .label { font-size: 13px; color: var(--text-muted); margin-bottom: 2px; }
.contact-item .value { font-size: 15px; color: var(--text-primary); font-weight: 500; }

/* ===== Recruit ===== */
.recruit-list { display: grid; gap: 20px; }
.recruit-item { padding: 32px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-card); border: 1px solid var(--border); transition: all .35s; position: relative; overflow: hidden; }
.recruit-item::before { content: ''; position: absolute; top: 0; left: 0; width: 3px; height: 100%; background: var(--gradient-main-alt); opacity: 0; transition: opacity .35s; }
.recruit-item:hover { border-color: var(--primary); box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.recruit-item:hover::before { opacity: 1; }
.recruit-item h3 { font-size: 18px; font-weight: 700; margin-bottom: 12px; color: var(--text-primary); }
.recruit-item .meta { display: flex; gap: 24px; flex-wrap: wrap; margin-bottom: 16px; }
.recruit-item .meta span { font-size: 13px; color: var(--text-muted); display: flex; align-items: center; gap: 6px; }
.recruit-item .desc { color: var(--text-secondary); font-size: 14px; margin-bottom: 16px; line-height: 1.7; }
.recruit-item .requirements { font-size: 14px; color: var(--text-secondary); line-height: 1.8; padding: 16px 20px; background: linear-gradient(135deg, var(--bg-section), #fff); border-radius: var(--radius-sm); white-space: pre-line; border: 1px solid var(--border-light); }

/* ===== Search ===== */
.search-section { padding: 40px 0; }
.search-box { max-width: 600px; margin: 0 auto 40px; display: flex; gap: 0; }
.search-box input { flex: 1; padding: 14px 20px; border: 2px solid var(--border); border-right: none; border-radius: var(--radius-sm) 0 0 var(--radius-sm); font-size: 16px; outline: none; transition: border-color .3s; }
.search-box input:focus { border-color: var(--primary); }
.search-box button { padding: 14px 32px; background: var(--gradient-main-alt); color: #fff; border: none; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; cursor: pointer; font-size: 16px; font-weight: 500; transition: all .3s; }
.search-box button:hover { box-shadow: 0 4px 16px rgba(37,99,235,.35); }

/* ===== Doc Detail ===== */
.doc-detail { max-width: 800px; margin: 0 auto; padding: 40px 0; }
.doc-detail h1 { font-size: 28px; font-weight: 700; margin-bottom: 16px; }
.doc-detail .meta { color: var(--text-muted); font-size: 14px; margin-bottom: 32px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.doc-detail .body-text { line-height: 2; color: var(--text-secondary); font-size: 15px; }
.doc-detail .body-text p { margin-bottom: 16px; }