/* ============================================
   河南华宏新材料技术有限公司 - 官方网站
   ============================================ */

/* === RESET & BASE === */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --color-primary: #0d2b4a;
    --color-primary-light: #1a4a72;
    --color-primary-dark: #091e33;
    --color-accent: #00897a;
    --color-accent-light: #26a69a;
    --color-accent-dark: #00695c;
    --color-text: #2c3e50;
    --color-text-light: #5a6a7a;
    --color-bg: #ffffff;
    --color-bg-alt: #f5f8fb;
    --color-bg-dark: #0d2b4a;
    --color-border: #e8edf2;
    --font-main: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
    --transition: 0.35s cubic-bezier(.4,0,.2,1);
    --shadow-sm: 0 2px 8px rgba(13,43,74,.08);
    --shadow-md: 0 8px 30px rgba(13,43,74,.12);
    --shadow-lg: 0 20px 60px rgba(13,43,74,.16);
    --radius: 12px;
    --radius-lg: 20px;
    --container: 1200px;
    --header-h: 72px;
}

html { scroll-behavior: smooth; }
body { font-family: var(--font-main); color: var(--color-text); background: var(--color-bg); line-height: 1.7; overflow-x: hidden; -webkit-font-smoothing: antialiased; }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: var(--transition); }
ul { list-style: none; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 100px 0; position: relative; }

.section__header { text-align: center; max-width: 700px; margin: 0 auto 60px; }
.section__tag { display: inline-block; font-size: .85rem; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--color-accent); background: rgba(0,137,122,.1); padding: 6px 18px; border-radius: 50px; margin-bottom: 16px; }
.section__title { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; color: var(--color-primary); line-height: 1.25; margin-bottom: 16px; }
.section__desc { font-size: 1.1rem; color: var(--color-text-light); }

.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 32px; font-size: 1rem; font-weight: 600; border-radius: 50px; border: none; cursor: pointer; transition: var(--transition); font-family: var(--font-main); }
.btn--primary { background: var(--color-accent); color: #fff; }
.btn--primary:hover { background: var(--color-accent-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,137,122,.35); }
.btn--outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.5); }
.btn--outline:hover { border-color: #fff; background: rgba(255,255,255,.1); transform: translateY(-2px); }
.btn--full { width: 100%; justify-content: center; }

/* === HEADER === */
.header { position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; transition: var(--transition); }
.header--scrolled { background: rgba(255,255,255,.97); backdrop-filter: blur(20px); box-shadow: var(--shadow-sm); }
.header--scrolled .header__logo-text { color: var(--color-primary); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.header__logo { display: flex; align-items: center; gap: 12px; }
.header__logo-img { height: 42px; width: auto; }
.header__logo-text { font-size: 1.2rem; font-weight: 700; color: #fff; transition: var(--transition); }
.header--scrolled .header__logo-text { color: var(--color-primary); }

.nav__list { display: flex; gap: 32px; }
.nav__link { font-size: .95rem; font-weight: 500; color: rgba(255,255,255,.8); position: relative; padding: 4px 0; }
.nav__link::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 2px; background: var(--color-accent); transition: var(--transition); }
.nav__link:hover, .nav__link.active { color: #fff; }
.nav__link:hover::after, .nav__link.active::after { width: 100%; }
.header--scrolled .nav__link { color: var(--color-text-light); }
.header--scrolled .nav__link:hover, .header--scrolled .nav__link.active { color: var(--color-primary); }

.header__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.header__toggle span { display: block; width: 28px; height: 2.5px; background: #fff; border-radius: 2px; transition: var(--transition); }
.header--scrolled .header__toggle span { background: var(--color-primary); }

/* === HERO === */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden; }
.hero__overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(9,30,51,.85) 0%, rgba(13,43,74,.7) 50%, rgba(0,137,122,.4) 100%); z-index: 1; }
.hero__bg { position: absolute; inset: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero__content { position: relative; z-index: 2; padding: 120px 0 60px; max-width: 800px; }
.hero__title { font-size: clamp(2.5rem, 6vw, 4rem); font-weight: 900; color: #fff; line-height: 1.15; margin-bottom: 16px; animation: fadeUp .8s ease; }
.hero__title-accent { color: var(--color-accent-light); }
.hero__subtitle { font-size: clamp(1rem, 2vw, 1.2rem); color: rgba(255,255,255,.85); font-weight: 500; margin-bottom: 12px; animation: fadeUp .8s ease .15s both; }
.hero__desc { font-size: 1.05rem; color: rgba(255,255,255,.7); line-height: 1.8; margin-bottom: 36px; max-width: 640px; animation: fadeUp .8s ease .3s both; }
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; animation: fadeUp .8s ease .45s both; }
.hero__scroll { position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%); z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 8px; color: rgba(255,255,255,.6); font-size: .8rem; letter-spacing: 2px; animation: bounce 2s infinite; }
.hero__scroll i { font-size: 1rem; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes bounce { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(8px); } }

/* === STATS === */
.stats { background: var(--color-primary); padding: 60px 0; position: relative; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.stats__item { text-align: center; position: relative; }
.stats__item:not(:last-child)::after { content: ''; position: absolute; right: -16px; top: 50%; transform: translateY(-50%); width: 1px; height: 50px; background: rgba(255,255,255,.15); }
.stats__number { font-size: clamp(2.5rem, 4vw, 3.2rem); font-weight: 900; color: var(--color-accent-light); }
.stats__suffix { font-size: 1.4rem; font-weight: 700; color: var(--color-accent-light); margin-left: 4px; }
.stats__label { color: rgba(255,255,255,.7); font-size: .95rem; margin-top: 4px; }

/* === ABOUT === */
.about { background: var(--color-bg); }
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about__image { position: relative; border-radius: var(--radius-lg); overflow: hidden; }
.about__image img { width: 100%; height: 480px; object-fit: cover; }
.about__image-badge { position: absolute; bottom: 20px; left: 20px; background: var(--color-accent); color: #fff; padding: 10px 20px; border-radius: 50px; font-weight: 600; font-size: .9rem; }
.about__text { font-size: 1.05rem; color: var(--color-text-light); line-height: 1.8; margin-bottom: 16px; }
.about__features { display: flex; flex-direction: column; gap: 20px; margin-top: 28px; }
.about__feature { display: flex; gap: 16px; align-items: flex-start; background: var(--color-bg-alt); padding: 20px; border-radius: var(--radius); transition: var(--transition); }
.about__feature:hover { transform: translateX(6px); box-shadow: var(--shadow-sm); }
.about__feature i { font-size: 1.5rem; color: var(--color-accent); flex-shrink: 0; margin-top: 2px; }
.about__feature h4 { font-size: 1rem; font-weight: 700; color: var(--color-primary); margin-bottom: 4px; }
.about__feature p { font-size: .9rem; color: var(--color-text-light); line-height: 1.6; }

/* === PRODUCTS === */
.products { background: var(--color-bg-alt); }
.products__tabs { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 48px; }
.products__tab { padding: 12px 24px; border: 2px solid var(--color-border); background: #fff; border-radius: 50px; font-size: .9rem; font-weight: 500; cursor: pointer; transition: var(--transition); font-family: var(--font-main); color: var(--color-text); }
.products__tab:hover { border-color: var(--color-accent); color: var(--color-accent); }
.products__tab.active { background: var(--color-accent); border-color: var(--color-accent); color: #fff; }

.products__panel { display: none; animation: fadeUp .5s ease; }
.products__panel.active { display: block; }
.products__panel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.products__panel-text h3 { font-size: 1.4rem; font-weight: 700; color: var(--color-primary); margin-bottom: 16px; }
.products__panel-text > p { color: var(--color-text-light); line-height: 1.8; margin-bottom: 24px; }
.products__highlights { display: flex; flex-direction: column; gap: 12px; }
.products__highlight { display: flex; align-items: center; gap: 12px; font-size: .95rem; color: var(--color-text); }
.products__highlight i { color: var(--color-accent); font-size: 1.1rem; }
.products__panel-img { border-radius: var(--radius); overflow: hidden; }
.products__panel-img img { width: 100%; height: 360px; object-fit: cover; transition: var(--transition); }
.products__panel-img:hover img { transform: scale(1.05); }
.products__cta { text-align: center; margin-top: 60px; padding: 40px; background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light)); border-radius: var(--radius-lg); }
.products__cta p { color: rgba(255,255,255,.9); font-size: 1.15rem; margin-bottom: 20px; }

/* === TECH === */
.tech { background: var(--color-bg); }
.tech__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.tech__card { background: #fff; padding: 32px 24px; border-radius: var(--radius); border: 1px solid var(--color-border); transition: var(--transition); text-align: center; }
.tech__card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.tech__card-icon { width: 64px; height: 64px; background: linear-gradient(135deg, rgba(0,137,122,.1), rgba(0,137,122,.05)); border-radius: 16px; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; }
.tech__card-icon i { font-size: 1.6rem; color: var(--color-accent); }
.tech__card h3 { font-size: 1.1rem; font-weight: 700; color: var(--color-primary); margin-bottom: 12px; }
.tech__card p { font-size: .92rem; color: var(--color-text-light); line-height: 1.7; }

.tech__gallery { margin-top: 60px; }
.tech__gallery-title { text-align: center; font-size: 1.3rem; font-weight: 700; color: var(--color-primary); margin-bottom: 28px; }
.tech__gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tech__gallery-item { border-radius: var(--radius); overflow: hidden; }
.tech__gallery-item img { width: 100%; height: 220px; object-fit: cover; transition: var(--transition); }
.tech__gallery-item:hover img { transform: scale(1.08); }

/* === CONTACT === */
.contact { background: var(--color-bg-alt); }
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.contact__info { display: flex; flex-direction: column; gap: 24px; }
.contact__info-item { display: flex; gap: 16px; background: #fff; padding: 20px 24px; border-radius: var(--radius); border: 1px solid var(--color-border); transition: var(--transition); }
.contact__info-item:hover { box-shadow: var(--shadow-sm); }
.contact__info-item i { font-size: 1.4rem; color: var(--color-accent); margin-top: 2px; flex-shrink: 0; }
.contact__info-item h4 { font-size: .85rem; font-weight: 600; color: var(--color-text-light); margin-bottom: 2px; text-transform: uppercase; letter-spacing: 1px; }
.contact__info-item p { font-size: 1rem; color: var(--color-text); font-weight: 500; }
.contact__info-item a:hover { color: var(--color-accent); }

.contact__form { background: #fff; padding: 36px; border-radius: var(--radius-lg); border: 1px solid var(--color-border); }
.contact__form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.contact__form input, .contact__form select, .contact__form textarea {
    width: 100%; padding: 14px 18px; border: 2px solid var(--color-border); border-radius: var(--radius);
    font-size: .95rem; font-family: var(--font-main); transition: var(--transition); background: var(--color-bg); color: var(--color-text);
}
.contact__form input:focus, .contact__form select:focus, .contact__form textarea:focus {
    border-color: var(--color-accent); outline: none; box-shadow: 0 0 0 4px rgba(0,137,122,.1);
}
.contact__form input::placeholder, .contact__form textarea::placeholder { color: #a0afbe; }
.contact__form select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235a6a7a' stroke-width='2' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }
.contact__form textarea { resize: vertical; margin-bottom: 16px; }
.contact__form .btn { margin-top: 8px; }

/* === FOOTER === */
.footer { background: var(--color-primary-dark); color: rgba(255,255,255,.8); padding: 60px 0 0; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer__logo { height: 40px; width: auto; margin-bottom: 16px; }
.footer__brand p { font-size: .9rem; line-height: 1.7; color: rgba(255,255,255,.6); max-width: 320px; }
.footer__links h4, .footer__contact h4 { color: #fff; font-size: 1rem; font-weight: 700; margin-bottom: 20px; }
.footer__links ul li { margin-bottom: 10px; }
.footer__links ul li a { color: rgba(255,255,255,.6); font-size: .9rem; }
.footer__links ul li a:hover { color: var(--color-accent-light); }
.footer__contact p { margin-bottom: 10px; font-size: .9rem; display: flex; align-items: center; gap: 8px; }
.footer__contact p i { width: 16px; color: var(--color-accent); }
.footer__contact a { color: rgba(255,255,255,.6); }
.footer__contact a:hover { color: var(--color-accent-light); }
.footer__bottom { text-align: center; padding: 20px 0; font-size: .85rem; color: rgba(255,255,255,.4); }

/* === SCROLL ANIMATIONS === */
.reveal { opacity: 0; transform: translateY(30px); transition: all .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .tech__grid { grid-template-columns: repeat(2, 1fr); }
    .tech__gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .header__toggle { display: flex; }
    .nav { position: fixed; top: var(--header-h); left: 0; width: 100%; background: rgba(255,255,255,.98); backdrop-filter: blur(20px); padding: 20px 24px; transform: translateY(-120%); opacity: 0; transition: var(--transition); box-shadow: var(--shadow-md); }
    .nav.open { transform: translateY(0); opacity: 1; }
    .nav__list { flex-direction: column; gap: 16px; }
    .nav__link { color: var(--color-text); font-size: 1.1rem; }
    .header--scrolled .nav__link { color: var(--color-text); }

    .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
    .stats__item:not(:last-child)::after { display: none; }

    .about__grid { grid-template-columns: 1fr; gap: 40px; }
    .about__image img { height: 320px; }

    .products__panel-grid { grid-template-columns: 1fr; gap: 32px; }
    .products__panel-img img { height: 280px; }

    .tech__grid { grid-template-columns: 1fr; }
    .tech__gallery-grid { grid-template-columns: repeat(2, 1fr); }

    .contact__grid { grid-template-columns: 1fr; }
    .contact__form-row { grid-template-columns: 1fr; }

    .footer__grid { grid-template-columns: 1fr 1fr; }
    .section { padding: 60px 0; }
}

@media (max-width: 480px) {
    .footer__grid { grid-template-columns: 1fr; }
    .tech__gallery-grid { grid-template-columns: 1fr; }
    .hero__title { font-size: 2rem; }
    .hero__actions { flex-direction: column; }
    .hero__actions .btn { width: 100%; justify-content: center; }
}
