/* TMISOLAR - Energy Storage System Styles */
:root {
  --primary: #00C896;
  --primary-dark: #00A87E;
  --secondary: #0D1E35;
  --accent: #6366F1;
  --bg: #F7F9FC;
  --bg-alt: #EEF2F8;
  --text: #374151;
  --text-light: #6B7280;
  --border: #D1D9E6;
  --shadow: 0 1px 4px rgba(13,30,53,0.08);
  --radius: 8px;
  --max-w: 1200px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}
a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }
/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: var(--secondary);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0,200,150,0.15);
  z-index: 1000;
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  max-width: var(--max-w);
  margin: 0 auto;
}
.logo {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.5rem;
  font-weight: 700;
  color: #fff;
}
.logo img {
  height: 65px;
  width: auto;
  display: block;
}
.logo span { color: var(--primary); }
.nav { display: flex; gap: 2rem; align-items: center; }
.nav a {
  color: #A8B8CC;
  font-weight: 500;
  padding: 0.5rem 0;
  position: relative;
}
.nav a:hover, .nav a.active { color: #FFF; }
.nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.2s;
}
.nav a:hover::after, .nav a.active::after { width: 100%; }
.lang-switch {
  display: flex;
  gap: 0.5rem;
  padding: 0.25rem;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius);
}
.lang-switch a {
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #A8B8CC;
}
.lang-switch a:hover { color: #FFF; }
.lang-switch a.active { background: var(--primary); color: #FFF; }
.mobile-menu { display: none; cursor: pointer; padding: 0.5rem; }
.mobile-menu span {
  display: block;
  width: 24px;
  height: 2px;
  background: #A8B8CC;
  margin: 5px 0;
  transition: 0.3s;
}
/* Hero Section */
.hero {
  padding: 100px 0 5rem;
  width: 100%;
  aspect-ratio: 1920 / 600;
  background: linear-gradient(135deg, rgba(232, 245, 240, 0.1) 0%, rgba(234, 242, 255, 0.1) 100%),url('../images/background.webp');
  background-size: cover; 
  background-position: center;
  background-repeat: no-repeat; 
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(circle, rgba(0, 200, 150,0.1) 0%, transparent 70%);
}

.hero-content { 
  position: relative; 
  z-index: 3; 
  text-align: left;
  background: rgba(255,255,255,0.3); 
  backdrop-filter: blur(6px); 
  border-radius: 20px; 
  padding: 1rem 0.8rem; 
  margin: 0 1rem;
  max-width: 700px;
  margin-left: 0;
  margin-right: auto;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 600;
  line-height: 1;
  margin-bottom: 1rem;
  color: #FFF;
}
.hero p {
  font-size: 1.0rem;
  color: var(--text-light);
  color: #1E3A5F;
  max-width: 600px;
  margin-bottom: 2rem;
}
.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius);
  font-weight: 600;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}
.btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0,200,150,0.35);
}
.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: #fff;
}
/* Section Styles */
.section { padding: 5rem 0; }
.section-alt { background: var(--bg-alt); }
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
}
.section-header h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 1rem;
  color: var(--secondary);
}
.section-header p { color: var(--text-light); }
/* Feature Cards */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}
.feature-card {
  background: var(--bg);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid var(--border);
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(13,30,53,0.12);
}
.feature-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 1.75rem;
}
.feature-card h3 { margin-bottom: 0.75rem; color: var(--secondary); }
.feature-card p { color: var(--text-light); font-size: 0.95rem; }
/* Product Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}
.product-card {
  background: var(--bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: transform 0.2s;
}
.product-card:hover { transform: translateY(-4px); }
.product-image {
  height: 220px;
  background: linear-gradient(135deg, #E8F5F0, #D4EEE8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  overflow: hidden;
}
.product-image img { width: 100%; height: 100%; object-fit: cover; }
.product-content { padding: 1.5rem; }
.product-content h3 { margin-bottom: 0.5rem; color: var(--secondary); }
.product-content p { color: var(--text-light); font-size: 0.9rem; margin-bottom: 1rem; }
.product-content .tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: rgba(0,200,150,0.1);
  color: var(--primary-dark);
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}
/* Process Grid */
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}
.process-item { text-align: center; }
.process-number {
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
  margin: 0 auto 1rem;
}
.process-item h4 { margin-bottom: 0.5rem; color: var(--secondary); }
.process-item p { color: var(--text-light); font-size: 0.9rem; }
/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}
.testimonial {
  background: var(--bg);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.testimonial p {
  font-style: italic;
  color: var(--text-light);
  margin-bottom: 1.5rem;
  line-height: 1.8;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.testimonial-avatar {
  width: 48px;
  height: 48px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
}
.testimonial-info h5 { color: var(--secondary); font-size: 1rem; }
.testimonial-info span { color: var(--text-light); font-size: 0.85rem; }
/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: center;
}
.stat-item h3 {
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.5rem;
}
.stat-item p { color: var(--text-light); font-weight: 500; }
/* Contact Form */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}
.contact-info h3 { margin-bottom: 1.5rem; color: var(--secondary); }
.contact-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.contact-icon {
  width: 48px;
  height: 48px;
  background: rgba(0,200,150,0.1);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.25rem;
}
.contact-item h5 { color: var(--secondary); margin-bottom: 0.25rem; font-size: 0.9rem; }
.contact-item p { color: var(--text-light); font-size: 0.9rem; }
.contact-form { background: var(--bg-alt); padding: 2rem; border-radius: var(--radius); border: 1px solid var(--border); }
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--secondary);
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: inherit;
  background: var(--bg);
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0,200,150,0.12);
}
.form-group textarea { min-height: 120px; resize: vertical; }
/* Footer */
.footer {
  background: var(--secondary);
  color: #fff;
  padding: 4rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand h4 {
  font-size: 1.5rem;
  margin-bottom: 0.1rem;
  color: #fff;
}
.footer-brand p {

  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  line-height: 1.8;
}
.footer-brand img {
  padding-top: 0;
  height: 100px;   
  width: auto;    
  display: block; 
  margin-bottom: 0.1rem; 
}
.footer-links h5 {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: #fff;
}
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--primary); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}
/* Page Header */
.page-header {
  padding: 8rem 0 4rem;
  background: linear-gradient(135deg, #E8F5F0 0%, #EAF2FF 100%);
  text-align: center;
}
.page-header h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--secondary);
  margin-bottom: 1rem;
}
.page-header p { color: var(--text-light); max-width: 600px; margin: 0 auto; }
/* Product Detail */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.product-gallery {
  background: linear-gradient(135deg, #E8F5F0, #D4EEE8);
  border-radius: var(--radius);
  padding: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  font-size: 8rem;
}
.product-info h1 { color: var(--secondary); margin-bottom: 1rem; }
.product-info .sku { color: var(--text-light); font-size: 0.9rem; margin-bottom: 1.5rem; }
.product-info h4 { color: var(--secondary); margin-bottom: 0.5rem; }
.product-info ul {
  list-style: none;
  margin-bottom: 2rem;
}
.product-info li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.product-info li::before {
  content: '✓';
  color: var(--primary);
  font-weight: bold;
}
/* Solutions */
.solution-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  padding: 3rem 0;
  border-bottom: 1px solid var(--border);
}
.solution-card:nth-child(even) { direction: rtl; }
.solution-card:nth-child(even) > * { direction: ltr; }
.solution-image {
  width: 100%;
  height: 300px;
  background: linear-gradient(135deg, #E8F5F0, #D4EEE8);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 6rem;
  overflow: hidden;
}
.solution-image img { width: 100%; height: 100%; object-fit: cover; }
.solution-content h3 { color: var(--secondary); margin-bottom: 1rem; font-size: 1.5rem; }
.solution-content p { color: var(--text-light); margin-bottom: 1.5rem; }
.solution-content ul { list-style: none; }
.solution-content li {
  padding: 0.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-light);
}
.solution-content li::before {
  content: '●';
  color: var(--primary);
  font-size: 0.5rem;
}
/* CTA Section */
.cta {
  background: linear-gradient(135deg, #008F6B, var(--primary-dark));
  color: #fff;
  padding: 5rem 0;
  text-align: center;
}
.cta h2 { margin-bottom: 1rem; font-size: 2.5rem; }
.cta p { margin-bottom: 2rem; opacity: 0.9; max-width: 600px; margin-left: auto; margin-right: auto; }
.cta .btn {
  background: #fff;
  color: var(--primary-dark);
  font-size: 1.1rem;
  padding: 1rem 2.5rem;
}
.cta .btn:hover {
  background: var(--secondary);
  color: #fff;
}
/* How It Works */
.how-it-works {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}
.work-step {
  text-align: center;
  position: relative;
}
.work-step::after {
  content: '→';
  position: absolute;
  right: -1.5rem;
  top: 2rem;
  font-size: 2rem;
  color: var(--primary);
}
.work-step:last-child::after { display: none; }
.work-step-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2rem;
  color: #fff;
}
.work-step h4 { margin-bottom: 0.5rem; color: var(--secondary); }
.work-step p { color: var(--text-light); font-size: 0.9rem; }
/* Responsive Design */
@media (max-width: 968px) {
  .nav { display: none; }
  .mobile-menu { display: block; }
  .nav.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #112240;
    padding: 1.5rem 1.5rem;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    gap: 1rem;
    border-top: 1px solid rgba(0,200,150,0.2);
  }
  .nav.active a {
    color: #A8B8CC;
    font-size: 1.1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .nav.active a:hover, .nav.active a.active {
    color: #FFFFFF;
    background: rgba(0,200,150,0.08);
  }
  .nav.active a::after { display: none; }
  .nav.active .lang-switch {
    margin-top: 0.75rem;
    background: rgba(255,255,255,0.1);
    align-self: flex-start;
    border-radius: 20px;
  }
  .nav.active .lang-switch a { color: #A8B8CC; padding: 0.5rem 1rem; border-bottom: none; }
  .nav.active .lang-switch a.active { background: var(--primary); color: #FFFFFF; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .product-detail { grid-template-columns: 1fr; }
  .solution-card { grid-template-columns: 1fr; }
  .solution-card:nth-child(even) { direction: ltr; }
  .how-it-works { grid-template-columns: 1fr 1fr; }
  .work-step::after { display: none; }
}

@media (max-width: 968px) {
    .specs-table {
        width: 100%;
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .specs-table th,
    .specs-table td {
        white-space: nowrap;
        font-size: 0.8rem;
        padding: 0.5rem;
    }
    .specs-table th {
        min-width: 120px;
    }
}

@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
  .hero { padding: 8rem 0 3rem; }
  .section { padding: 3rem 0; }
  .how-it-works { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .hero {
    padding: 60px 0 3rem;
    aspect-ratio: auto;
    height: auto;
    min-height: 400px; 
    background-position: center center;
  }

  .hero::before {
    display: none; 
  }

  .hero-content { 
    margin: 0 1rem; 
    padding: 1.5rem 1rem; 
    border-radius: 15px; 
    background: rgba(255, 255, 255, 0.5); 
  }

  .hero h1 {
    font-size: 1.5rem; 
    margin-bottom: 0.5rem;
  }

  .hero p {
    font-size: 0.6rem; 
    max-width: 100%; 
    margin-bottom: 0.8rem;
  }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeIn 0.6s ease-out forwards; }
