/* ==================== FONTS ==================== */
@font-face{
  font-family:'Vazirmatn';
  src:url('fonts/Vazirmatn-Variable.woff2') format('woff2-variations'),url('fonts/Vazirmatn-Variable.woff2') format('woff2');
  font-weight:100 900;
  font-display:swap;
  font-style:normal;
}

/* ==================== RESET & BASE ==================== */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
:root{
  --c-primary:#0e4d7b;
  --c-primary-light:#2a7ab5;
  --c-primary-dark:#093a5e;
  --c-accent:#e8792e;
  --c-accent-light:#f5a15c;
  --c-green:#2d8f6a;
  --c-dark:#0a1f33;
  --c-gray:#6b7785;
  --c-gray-light:#e8ecf0;
  --c-bg:#f5f7fa;
  --c-white:#ffffff;
  --c-border:#d8dee5;
  --shadow-sm:0 2px 8px rgba(0,0,0,.06);
  --shadow-md:0 4px 20px rgba(0,0,0,.08);
  --shadow-lg:0 8px 40px rgba(0,0,0,.12);
  --radius:8px;
  --radius-lg:16px;
  --max-width:1200px;
  --header-h:120px;
  --font-en:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Helvetica,Arial,sans-serif;
  --font-fa:'Vazirmatn','Tahoma','IranSans','Arial',sans-serif;
}
html{scroll-behavior:smooth;font-size:16px}
body{font-family:var(--font-en);color:var(--c-dark);background:var(--c-white);line-height:1.6;overflow-x:hidden}
html[dir="rtl"] body{font-family:var(--font-fa);direction:rtl}
html[dir="rtl"] body *{font-family:var(--font-fa)}
img,svg{max-width:100%;display:block}
a{text-decoration:none;color:inherit}
ul{list-style:none}
button{cursor:pointer;font-family:inherit;border:none;background:none}
input,textarea,select{font-family:inherit;font-size:1rem}

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

/* ==================== HEADER ==================== */
#header{position:sticky;top:0;z-index:1000;background:var(--c-white);box-shadow:var(--shadow-sm)}
.header-top{background:var(--c-dark);color:#aab4c0;font-size:.8rem;padding:6px 0}
.header-top-inner{display:flex;justify-content:space-between;align-items:center}
.header-contact{display:flex;gap:24px}
.header-contact-item{white-space:nowrap}
.lang-switch{display:flex;align-items:center;gap:4px}
.lang-btn{color:#aab4c0;padding:2px 8px;border-radius:4px;font-size:.8rem;transition:all .2s}
.lang-btn.active{background:var(--c-primary);color:#fff}
.lang-btn:hover{color:#fff}
.lang-divider{color:#4a5563}

.header-main{border-bottom:1px solid var(--c-border)}
.header-main-inner{display:flex;align-items:center;justify-content:space-between;height:64px}
.logo{display:flex;align-items:center;gap:10px}
.logo-icon{display:flex;align-items:center;flex-shrink:0}
.logo-icon img{width:40px;height:40px;border-radius:50%;display:block;object-fit:cover;box-shadow:0 2px 8px rgba(10,31,51,.14)}
footer .logo-icon img{width:32px;height:32px;box-shadow:none}
.logo-text{display:flex;flex-direction:column}
.logo-name{font-size:1.1rem;font-weight:800;color:var(--c-primary);letter-spacing:.5px}
.logo-sub{font-size:.7rem;color:var(--c-gray);letter-spacing:.3px}
.main-nav{display:flex;gap:32px}
.nav-link{font-size:.95rem;font-weight:500;color:var(--c-dark);padding:8px 0;position:relative;transition:color .2s}
.nav-link::after{content:'';position:absolute;bottom:0;left:0;width:0;height:2px;background:var(--c-primary);transition:width .25s}
.nav-link:hover,.nav-link.active{color:var(--c-primary)}
.nav-link.active::after,.nav-link:hover::after{width:100%}
.mobile-toggle{display:none;flex-direction:column;gap:4px;padding:8px}
.mobile-toggle span{width:22px;height:2px;background:var(--c-dark);border-radius:2px;transition:all .3s}

/* ==================== PAGES ==================== */
.page{min-height:60vh}
.page.active{display:block}

/* ==================== HERO ==================== */
.hero{position:relative;padding:80px 0 70px;overflow:hidden}
.hero-bg{position:absolute;inset:0;background:linear-gradient(135deg,rgba(7,30,51,.55) 0%,rgba(14,77,123,.45) 100%),url('images/hero-oilfield.jpg') center/cover no-repeat}
.hero-bg::before{content:'';position:absolute;inset:0;background-image:radial-gradient(circle at 80% 20%,rgba(255,255,255,.08) 0%,transparent 50%),radial-gradient(circle at 20% 80%,rgba(255,255,255,.05) 0%,transparent 50%)}
.hero-content{position:relative;text-align:center;color:#fff;max-width:800px;margin:0 auto}
.hero-title{font-size:2.8rem;font-weight:800;margin-bottom:16px;letter-spacing:-.5px}
.hero-subtitle{font-size:1.15rem;font-weight:300;opacity:.9;margin-bottom:32px;line-height:1.7}
.hero-actions{display:flex;gap:16px;justify-content:center;margin-bottom:48px;flex-wrap:wrap}
.hero-badges{display:flex;gap:40px;justify-content:center;flex-wrap:wrap}
.hero-badge{text-align:center}
.hero-badge-num{font-size:1.3rem;font-weight:700;color:#f7b267}
.hero-badge-label{font-size:.8rem;opacity:.7;margin-top:2px}

/* ==================== BUTTONS ==================== */
.btn{display:inline-block;padding:12px 32px;font-size:.95rem;font-weight:600;border-radius:var(--radius);transition:all .25s;cursor:pointer;text-align:center}
.btn-primary{background:var(--c-primary);color:#fff;box-shadow:0 4px 14px rgba(14,77,123,.35)}
.btn-primary:hover{background:var(--c-primary-dark);transform:translateY(-1px);box-shadow:0 6px 20px rgba(14,77,123,.45)}
.btn-outline{background:transparent;color:#fff;border:2px solid rgba(255,255,255,.5)}
.btn-outline:hover{background:rgba(255,255,255,.1);border-color:#fff}
.btn-full{width:100%}

/* ==================== SECTIONS ==================== */
.section{padding:70px 0}
.section-products{background:var(--c-bg)}
.section-why{background:var(--c-white)}
.section-stats{background:var(--c-dark);padding:50px 0}
.section-cta{background:var(--c-bg);padding:60px 0}
.section-header{text-align:center;margin-bottom:50px}
.section-title{font-size:2rem;font-weight:700;color:var(--c-dark);margin-bottom:12px}
.section-desc{font-size:1.05rem;color:var(--c-gray);max-width:600px;margin:0 auto}

/* ==================== PRODUCT GRID ==================== */
.product-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:28px}
.product-card{background:var(--c-white);border-radius:var(--radius-lg);overflow:hidden;box-shadow:var(--shadow-sm);transition:all .3s;cursor:pointer;border:1px solid var(--c-border)}
.product-card:hover{box-shadow:var(--shadow-lg);transform:translateY(-4px);border-color:var(--c-primary-light)}
.product-card-img{height:200px;overflow:hidden;background:var(--c-bg);position:relative}
.product-card-img img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .5s ease}
.product-card:hover .product-card-img img{transform:scale(1.08)}
.product-card-body{padding:24px}
.product-card-body h3{font-size:1.2rem;font-weight:700;color:var(--c-dark);margin-bottom:10px}
.product-card-body p{font-size:.9rem;color:var(--c-gray);line-height:1.6;margin-bottom:14px}
.product-card-tags{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:14px}
.tag{background:var(--c-bg);color:var(--c-primary);font-size:.75rem;font-weight:600;padding:3px 10px;border-radius:20px}
.product-card-link{font-size:.9rem;font-weight:600;color:var(--c-primary);transition:gap .2s}
.product-card:hover .product-card-link{color:var(--c-primary-dark)}

/* ==================== WHY CHOOSE ==================== */
.why-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:24px}
.why-card{text-align:center;padding:28px 20px;border-radius:var(--radius-lg);background:var(--c-bg);transition:all .3s}
.why-card:hover{background:var(--c-white);box-shadow:var(--shadow-md)}
.why-icon{margin-bottom:16px;display:flex;justify-content:center}
.why-card h3{font-size:1.05rem;font-weight:700;margin-bottom:10px;color:var(--c-dark)}
.why-card p{font-size:.85rem;color:var(--c-gray);line-height:1.6}

/* ==================== STATS ==================== */
.stats-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:32px;text-align:center}
.stat-num{font-size:2.5rem;font-weight:800;color:var(--c-primary-light);margin-bottom:4px}
.stat-unit{font-size:1rem;font-weight:400;margin-left:4px}
.stat-label{font-size:.85rem;color:#aab4c0}

/* ==================== CTA ==================== */
.cta-box{text-align:center;padding:50px 40px;background:var(--c-white);border-radius:var(--radius-lg);box-shadow:var(--shadow-md)}
.cta-box h2{font-size:1.8rem;font-weight:700;margin-bottom:12px;color:var(--c-dark)}
.cta-box p{font-size:1rem;color:var(--c-gray);margin-bottom:24px}
.cta-box .btn{background:var(--c-primary);color:#fff}

/* ==================== PAGE BANNER ==================== */
.page-banner{position:relative;padding:80px 0 50px;color:#fff;background-size:cover;background-position:center;background-repeat:no-repeat;background-color:#071e33}
.page-banner::before{content:'';position:absolute;inset:0;background:linear-gradient(135deg,rgba(7,30,51,.72) 0%,rgba(14,77,123,.55) 100%)}
.page-banner>.container{position:relative}
.page-banner h1{font-size:2.4rem;font-weight:700;margin-bottom:8px}
.breadcrumb{font-size:.85rem;opacity:.85}
.breadcrumb a:hover{text-decoration:underline}
.banner-products   {background-image:url('images/banner-products.jpg')}
.banner-octg       {background-image:url('images/banner-octg.jpg')}
.banner-valves     {background-image:url('images/banner-valves.jpg')}
.banner-equipment  {background-image:url('images/banner-equipment.jpg')}
.banner-chemicals  {background-image:url('images/banner-chemicals.jpg')}
.banner-about      {background-image:url('images/banner-about.jpg')}
.banner-contact    {background-image:url('images/banner-contact.jpg')}

/* ==================== PRODUCT LIST ==================== */
.product-list{display:flex;flex-direction:column;gap:16px}
.product-list-item{display:flex;align-items:center;gap:24px;padding:20px;background:var(--c-white);border:1px solid var(--c-border);border-radius:var(--radius);cursor:pointer;transition:all .25s}
.product-list-item:hover{box-shadow:var(--shadow-md);border-color:var(--c-primary-light);transform:translateX(4px)}
.product-list-img{width:120px;height:80px;flex-shrink:0;background:var(--c-bg);border-radius:var(--radius);overflow:hidden}
.product-list-img svg{width:100%;height:100%}
.product-list-img img{width:100%;height:100%;object-fit:cover;display:block}
.product-list-info{flex:1}
.product-list-info h3{font-size:1.15rem;font-weight:700;margin-bottom:6px;color:var(--c-dark)}
.product-list-info p{font-size:.88rem;color:var(--c-gray);line-height:1.5}
.product-list-arrow{font-size:1.5rem;color:var(--c-primary);flex-shrink:0;transition:transform .2s}
.product-list-item:hover .product-list-arrow{transform:translateX(4px)}

/* ==================== PRODUCT DETAIL ==================== */
.product-detail-hero{display:grid;grid-template-columns:1fr 1fr;gap:40px;margin-bottom:50px;align-items:center}
.product-detail-img{background:var(--c-bg);border-radius:var(--radius-lg);padding:20px;overflow:hidden}
.product-detail-img img{width:100%;height:auto;display:block;border-radius:var(--radius)}
.product-detail-summary h2{font-size:1.6rem;font-weight:700;color:var(--c-dark);margin-bottom:16px}
.product-detail-desc{font-size:.95rem;color:var(--c-gray);line-height:1.8;margin-bottom:24px}

.spec-section{margin-bottom:44px}
.spec-section h3{font-size:1.25rem;font-weight:700;color:var(--c-dark);margin-bottom:20px;padding-bottom:10px;border-bottom:2px solid var(--c-primary)}

.spec-table{width:100%;border-collapse:collapse;font-size:.9rem}
.spec-table th{background:var(--c-primary);color:#fff;padding:12px 16px;text-align:left;font-weight:600;font-size:.85rem}
.spec-table td{padding:10px 16px;border-bottom:1px solid var(--c-gray-light)}
.spec-table tbody tr:nth-child(even){background:var(--c-bg)}
.spec-table tbody tr:hover{background:#e2ebf3}
.spec-note{font-size:.82rem;color:var(--c-gray);margin-top:10px;font-style:italic}

.features-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}
.feature-item{display:flex;gap:14px;padding:18px;background:var(--c-bg);border-radius:var(--radius)}
.feature-icon{width:28px;height:28px;background:var(--c-primary);color:#fff;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:.85rem;font-weight:700;flex-shrink:0}
.feature-item h4{font-size:.95rem;font-weight:600;margin-bottom:6px;color:var(--c-dark)}
.feature-item p{font-size:.83rem;color:var(--c-gray);line-height:1.5}

.scenario-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.scenario-card{padding:22px;background:var(--c-bg);border-radius:var(--radius);border-left:3px solid var(--c-accent)}
.scenario-card h4{font-size:1rem;font-weight:600;margin-bottom:8px;color:var(--c-dark)}
.scenario-card p{font-size:.83rem;color:var(--c-gray);line-height:1.6}

.howitworks{display:flex;flex-direction:column;gap:20px}
.howitworks-step{display:flex;gap:16px;align-items:flex-start}
.step-num{width:36px;height:36px;background:var(--c-green);color:#fff;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:1rem;font-weight:700;flex-shrink:0}
.step-tag{min-width:64px;height:32px;padding:0 12px;background:#7b5ea7;color:#fff;border-radius:16px;display:flex;align-items:center;justify-content:center;font-size:.8rem;font-weight:700;flex-shrink:0;letter-spacing:.3px}
.howitworks-step h4{font-size:1rem;font-weight:600;margin-bottom:4px;color:var(--c-dark)}
.howitworks-step p{font-size:.85rem;color:var(--c-gray);line-height:1.5}

/* ==================== ABOUT ==================== */
.about-content{max-width:900px;margin:0 auto}
.about-intro{margin-bottom:50px}
.about-intro h2{font-size:1.8rem;font-weight:700;color:var(--c-dark);margin-bottom:20px}
.about-intro p{font-size:1rem;color:var(--c-gray);line-height:1.8;margin-bottom:16px}
.about-values{display:grid;grid-template-columns:repeat(2,1fr);gap:24px;margin-bottom:50px}
.value-card{padding:28px;background:var(--c-bg);border-radius:var(--radius-lg);text-align:center}
.value-icon{font-size:2rem;margin-bottom:12px}
.value-card h3{font-size:1.1rem;font-weight:700;margin-bottom:10px;color:var(--c-dark)}
.value-card p{font-size:.88rem;color:var(--c-gray);line-height:1.6}
.about-markets h3{font-size:1.3rem;font-weight:700;margin-bottom:20px;color:var(--c-dark)}
.market-tags{display:flex;flex-wrap:wrap;gap:10px}
.market-tag{background:var(--c-bg);border:1px solid var(--c-border);padding:8px 18px;border-radius:24px;font-size:.88rem;color:var(--c-dark);transition:all .2s}
.market-tag:hover{background:var(--c-primary);color:#fff;border-color:var(--c-primary)}

/* ==================== CONTACT ==================== */
.contact-layout{display:grid;grid-template-columns:1fr 1.2fr;gap:40px}
.contact-info h2{font-size:1.5rem;font-weight:700;margin-bottom:12px;color:var(--c-dark)}
.contact-info > p{font-size:.92rem;color:var(--c-gray);line-height:1.7;margin-bottom:28px}
.contact-item{display:flex;gap:14px;margin-bottom:20px;align-items:flex-start}
.contact-icon{font-size:1.3rem;flex-shrink:0;width:40px;height:40px;background:var(--c-bg);border-radius:50%;display:flex;align-items:center;justify-content:center}
.contact-item h4{font-size:.9rem;font-weight:600;color:var(--c-dark);margin-bottom:2px}
.contact-item p{font-size:.88rem;color:var(--c-gray)}

.contact-form-wrap{background:var(--c-bg);border-radius:var(--radius-lg);padding:32px}
.contact-form-wrap h2{font-size:1.4rem;font-weight:700;margin-bottom:24px;color:var(--c-dark)}
.form-row{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:16px}
.form-group{margin-bottom:16px}
.form-group label{display:block;font-size:.85rem;font-weight:600;color:var(--c-dark);margin-bottom:6px}
.form-group input,.form-group select,.form-group textarea{width:100%;padding:10px 14px;border:1px solid var(--c-border);border-radius:var(--radius);background:var(--c-white);transition:border-color .2s}
.form-group input:focus,.form-group select:focus,.form-group textarea:focus{outline:none;border-color:var(--c-primary);box-shadow:0 0 0 3px rgba(14,77,123,.1)}
.form-group textarea{resize:vertical}
.form-note{font-size:.8rem;color:var(--c-gray);text-align:center;margin-top:12px}
.form-success{text-align:center;padding:40px 20px}
.form-success h3{font-size:1.3rem;color:var(--c-green);margin-bottom:10px}
.form-success p{color:var(--c-gray)}

/* ==================== FOOTER ==================== */
footer{background:var(--c-dark);color:#aab4c0;padding:50px 0 20px}
.footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr 1.5fr;gap:32px;margin-bottom:32px}
.footer-logo{display:flex;align-items:center;gap:10px;margin-bottom:14px}
.footer-logo-name{font-size:1rem;font-weight:700;color:#fff}
.footer-logo-sub{font-size:.7rem;color:#7a8694}
.footer-desc{font-size:.82rem;line-height:1.6;color:#7a8694}
.footer-col h4{color:#fff;font-size:.9rem;font-weight:600;margin-bottom:14px}
.footer-col ul li{margin-bottom:8px}
.footer-col ul li a{font-size:.85rem;color:#aab4c0;transition:color .2s}
.footer-col ul li a:hover{color:var(--c-primary-light)}
.footer-col p{font-size:.85rem;color:#aab4c0;margin-bottom:6px}
.footer-bottom{border-top:1px solid #2a3548;padding-top:20px;text-align:center}
.footer-bottom p{font-size:.8rem;color:#5a6678}

/* ==================== RTL (Persian / Arabic) ==================== */
html[dir="rtl"] .product-card-body{text-align:right}
html[dir="rtl"] .spec-table th,html[dir="rtl"] .spec-table td{text-align:right}
html[dir="rtl"] .feature-item{flex-direction:row-reverse}
html[dir="rtl"] .contact-item{flex-direction:row-reverse}
html[dir="rtl"] .product-list-arrow{transform:scaleX(-1)}
html[dir="rtl"] .nav-link::after{left:auto;right:0}
html[dir="rtl"] .breadcrumb a:hover{text-decoration:underline}

/* ==================== RESPONSIVE ==================== */
@media(max-width:968px){
  .product-grid{grid-template-columns:1fr;max-width:480px;margin:0 auto}
  .why-grid{grid-template-columns:repeat(2,1fr)}
  .stats-grid{grid-template-columns:repeat(2,1fr)}
  .product-detail-hero{grid-template-columns:1fr}
  .features-grid{grid-template-columns:1fr}
  .scenario-grid{grid-template-columns:1fr}
  .contact-layout{grid-template-columns:1fr}
  .footer-grid{grid-template-columns:1fr 1fr}
  .hero-title{font-size:2rem}
  .hero-subtitle{font-size:1rem}
}
@media(max-width:680px){
  .header-top{display:none}
  .main-nav{display:none;position:fixed;top:64px;left:0;right:0;background:#fff;flex-direction:column;padding:20px;box-shadow:var(--shadow-md);gap:0}
  .main-nav.open{display:flex}
  .main-nav .nav-link{padding:14px 0;border-bottom:1px solid var(--c-gray-light)}
  .mobile-toggle{display:flex}
  .container{padding:0 16px}
  .why-grid{grid-template-columns:1fr}
  .stats-grid{grid-template-columns:1fr 1fr}
  .form-row{grid-template-columns:1fr}
  .footer-grid{grid-template-columns:1fr}
  .hero{padding:50px 0 40px}
  .hero-title{font-size:1.6rem}
  .hero-badges{gap:20px}
  .section{padding:50px 0}
  .section-title{font-size:1.5rem}
}
/* ==================== FAQ ==================== */
.section-faq{background:#f6f9fd}
.faq-list{max-width:820px;margin:0 auto;display:flex;flex-direction:column;gap:14px}
.faq-item{background:#fff;border:1px solid #e3ecf5;border-radius:10px;padding:18px 22px;box-shadow:0 1px 4px rgba(14,77,123,.06)}
.faq-item h3{font-size:1.05rem;color:var(--c-dark);margin-bottom:8px;font-weight:600}
.faq-item p{font-size:.92rem;color:var(--c-gray);line-height:1.7;margin:0}
html[dir="rtl"] .faq-item h3{font-family:'Vazirmatn',sans-serif}
html[dir="rtl"] .faq-item p{font-family:'Vazirmatn',sans-serif}

/* ==================== LANGUAGE SUPPORT (5-lang) ==================== */
.lang-select{background:rgba(255,255,255,.06);color:#c8d2dc;border:1px solid rgba(255,255,255,.22);border-radius:4px;padding:2px 8px;font-size:.78rem;font-family:inherit;cursor:pointer;outline:none;max-width:170px}
.lang-select:hover{color:#fff;border-color:rgba(255,255,255,.45)}
.lang-select option{color:#0a1f33;background:#fff}
html[lang="zh-CN"] body{font-family:'Inter','Microsoft YaHei','PingFang SC','Hiragino Sans GB','Noto Sans SC','Source Han Sans SC',sans-serif}
html[lang="zh-CN"] input,html[lang="zh-CN"] textarea,html[lang="zh-CN"] select,html[lang="zh-CN"] button{font-family:inherit}
/* 阿拉伯语与波斯语共用 Vazirmatn（html[dir="rtl"] 规则已覆盖 ar/fa） */
