/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏样式 */
.navbar {
    background-color: rgba(255, 255, 255, 0.95);
    transition: all 0.3s ease;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo {
    /* 文字 Logo 样式 */
    .logo-text {
        font-size: 24px;
        font-weight: bold;
        color: #2c3e50;
    }

    /* 图片 Logo 样式 */
    .logo-image {
        display: inline-block;
    }

    .logo-image img {
        height: 40px; /* 调整 logo 图片高度 */
        width: auto;
        vertical-align: middle;
    }
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    position: relative;
    padding: 5px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #007bff;
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* 首页横幅样式 */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    min-height: 600px;
    position: relative;
    background-color: transparent;
    padding: 120px 0 60px;
    text-align: center;
    color: #fff;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.8;
    z-index: -1;
    filter: brightness(0.7);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

.hero h1 {
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 30px;
    position: relative;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero p {
    position: relative;
    font-size: 24px;
    margin-bottom: 40px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.cta-button {
    display: inline-block;
    padding: 15px 40px;
    background-color: #007bff;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 20px;
    font-size: 18px;
    font-weight: 500;
    transition: transform 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-3px);
}

.cta-button i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.cta-button:hover i {
    transform: translateX(5px);
}

/* 产品区域样式 */
.products {
    padding: 80px 0;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.product-card {
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-10px);
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
    transition: transform 0.3s ease;
}

.product-card:hover img {
    transform: scale(1.1);
}

.product-card h3 {
    font-size: 24px;
    margin: 20px 0 10px;
    color: #2c3e50;
}

.product-image {
    overflow: hidden;
    border-radius: 5px;
    margin: -20px -20px 20px -20px;
}

.learn-more {
    display: inline-block;
    color: #007bff;
    text-decoration: none;
    margin-top: 15px;
    font-weight: 500;
}

.learn-more i {
    font-size: 12px;
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.learn-more:hover i {
    transform: translateX(5px);
}

/* 关于我们样式 */
.about {
    background-color: #f8f9fa;
    padding: 80px 0;
}

/* 联系方式样式 */
.contact {
    padding: 80px 0;
}

.contact-info {
    margin-top: 30px;
}

/* 页脚样式 */
.footer {
    background-color: #333;
    color: #fff;
    padding: 20px 0;
    text-align: center;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero h1 {
        font-size: 32px;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
    }
    
    .logo-image img {
        height: 32px; /* 移动端稍微缩小 logo */
    }
} 

/* 更新其他部分样式 */
section {
    padding: 100px 0;
}

h2 {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 50px;
    color: #2c3e50;
} 

/* 关于我们样式更新 */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text h3 {
    font-size: 32px;
    color: #2c3e50;
    margin-bottom: 20px;
}

.about-text p {
    margin-bottom: 30px;
    color: #666;
    line-height: 1.8;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

.stat-number {
    display: block;
    font-size: 36px;
    font-weight: 700;
    color: #007bff;
    margin-bottom: 5px;
}

.stat-label {
    color: #666;
    font-size: 14px;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* 联系我们样式更新 */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-top: 50px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}

.info-item i {
    font-size: 24px;
    color: #007bff;
    margin-right: 20px;
    margin-top: 5px;
}

.info-content h4 {
    font-size: 18px;
    margin-bottom: 5px;
    color: #2c3e50;
}

.info-content p {
    color: #666;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #007bff;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.social-link:hover {
    transform: translateY(-3px);
}

.contact-form {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group textarea {
    height: 150px;
    resize: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #007bff;
    outline: none;
}

.submit-btn {
    width: 100%;
    padding: 12px;
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
}

/* 响应式设计补充 */
@media (max-width: 768px) {
    .about-content,
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        order: -1;
    }
    
    .stats {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        text-align: center;
    }
    
    .info-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .info-item i {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .social-links {
        justify-content: center;
    }
} 

/* 表单提交状态样式 */
.form-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 5px;
    text-align: center;
}

.success-message,
.error-message {
    display: none;
    color: #155724;
    font-size: 14px;
}

.success-message i,
.error-message i {
    margin-right: 5px;
}

.success-message {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
}

.error-message {
    color: #721c24;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
}

.btn-loading {
    color: #fff;
}

.btn-loading i {
    margin-right: 5px;
}

/* 禁用状态的提交按钮 */
.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Minghao Lighting visual refinement */
:root {
    --mh-navy-950: #071b29;
    --mh-navy-900: #0b2638;
    --mh-navy-800: #12354b;
    --mh-blue-700: #1b6f9f;
    --mh-blue-100: #e7f1f7;
    --mh-ink-900: #152a3a;
    --mh-ink-700: #405667;
    --mh-ink-500: #6e7e89;
    --mh-canvas: #f3f7f9;
    --mh-surface: #ffffff;
    --mh-line: #dce6eb;
    --mh-accent: #f2b84b;
    --mh-shadow-soft: 0 18px 44px rgba(16, 46, 66, 0.09);
    --mh-shadow-card: 0 12px 30px rgba(16, 46, 66, 0.08);
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--mh-surface);
    color: var(--mh-ink-900);
    font-family: "Inter", "PingFang SC", "Microsoft YaHei", sans-serif;
    font-size: 16px;
    line-height: 1.7;
    overflow-x: hidden;
}

img {
    display: block;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 3px solid rgba(242, 184, 75, 0.7);
    outline-offset: 3px;
}

.container,
.hero .container {
    width: min(100% - 56px, 1240px);
}

section {
    padding: 112px 0;
}

h2 {
    color: var(--mh-ink-900);
    font-size: 42px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 52px;
}

h2::before {
    color: var(--mh-blue-700);
    content: "MINGHAO LIGHTING";
    display: block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2.6px;
    line-height: 1;
    margin-bottom: 18px;
}

h2::after {
    background: var(--mh-accent);
    content: "";
    display: block;
    height: 3px;
    margin: 20px auto 0;
    width: 44px;
}

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid rgba(220, 230, 235, 0.86);
    box-shadow: 0 2px 18px rgba(16, 46, 66, 0.04);
}

.navbar .container {
    min-height: 76px;
    padding: 0;
}

.logo {
    align-items: center;
    display: flex;
    gap: 12px;
}

.logo::before {
    background: var(--mh-accent);
    content: "";
    display: block;
    height: 28px;
    width: 6px;
}

.logo-text {
    color: var(--mh-navy-900);
    font-size: 20px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
}

.nav-links {
    align-items: center;
    display: flex;
    gap: 34px;
}

.nav-links li {
    margin-left: 0;
}

.nav-links a {
    color: var(--mh-ink-700);
    font-size: 15px;
    font-weight: 600;
    padding: 28px 0 24px;
    transition: color 180ms ease;
}

.nav-links a::after {
    background: var(--mh-accent);
    bottom: 17px;
    height: 2px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 180ms ease;
    width: 100%;
}

.nav-links a:hover {
    color: var(--mh-navy-900);
}

.nav-links a[aria-current="page"] {
    color: var(--mh-navy-900);
}

.nav-links a:hover::after {
    transform: scaleX(1);
}

.nav-links a[aria-current="page"]::after {
    transform: scaleX(1);
}

/* Hero */
.hero {
    align-items: center;
    min-height: 720px;
    padding: 156px 0 112px;
    text-align: left;
}

.hero-bg {
    filter: brightness(0.56) saturate(0.72);
    opacity: 1;
}

.hero::before {
    background: rgba(7, 27, 41, 0.7);
}

.hero::after {
    background: var(--mh-accent);
    bottom: 0;
    content: "";
    height: 5px;
    left: 0;
    position: absolute;
    width: 100%;
}

.hero h1 {
    font-size: 62px;
    font-weight: 800;
    line-height: 1.14;
    margin-bottom: 26px;
    max-width: 820px;
    text-shadow: 0 4px 22px rgba(0, 0, 0, 0.24);
}

.hero p {
    color: rgba(255, 255, 255, 0.86);
    font-size: 20px;
    line-height: 1.8;
    margin-bottom: 34px;
    max-width: 760px;
}

.cta-button {
    align-items: center;
    background: var(--mh-accent);
    border-radius: 4px;
    color: var(--mh-navy-950);
    display: inline-flex;
    font-size: 16px;
    font-weight: 800;
    gap: 12px;
    min-height: 52px;
    padding: 0 27px;
    transition: background 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.cta-button:hover {
    background: #ffd174;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
    transform: translateY(-2px);
}

.cta-button:hover i {
    transform: translateX(4px);
}

/* Product cards */
.products {
    background: var(--mh-canvas);
}

.product-grid {
    gap: 24px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.product-card {
    background: var(--mh-surface);
    border: 1px solid var(--mh-line);
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    min-height: 480px;
    padding: 22px;
    transition: border-color 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}

.product-card:hover {
    border-color: rgba(27, 111, 159, 0.32);
    box-shadow: var(--mh-shadow-card);
    transform: translateY(-7px);
}

.product-image {
    background: var(--mh-blue-100);
    margin: -22px -22px 24px;
}

.product-card img {
    aspect-ratio: 16 / 10;
    object-fit: cover;
    transition: transform 500ms ease, filter 500ms ease;
}

.product-card:hover img {
    filter: saturate(1.12);
    transform: scale(1.04);
}

.product-card h3 {
    color: var(--mh-navy-900);
    font-size: 22px;
    font-weight: 800;
    line-height: 1.35;
    margin: 0 0 12px;
}

.product-card p {
    color: var(--mh-ink-500);
    font-size: 15px;
    line-height: 1.8;
}

.learn-more {
    align-items: center;
    color: var(--mh-blue-700);
    display: inline-flex;
    font-size: 14px;
    font-weight: 800;
    gap: 8px;
    margin-top: auto;
    padding-top: 24px;
}

.learn-more:hover {
    color: var(--mh-navy-900);
}

.learn-more:hover i {
    transform: translateX(4px);
}

/* About */
.about {
    background: var(--mh-surface);
    overflow-x: hidden;
}

.about-content {
    gap: 76px;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
}

.about-text h3 {
    color: var(--mh-navy-900);
    font-size: 34px;
    font-weight: 800;
    line-height: 1.28;
    margin-bottom: 22px;
}

.about-text > p {
    color: var(--mh-ink-700);
    font-size: 16px;
    line-height: 1.95;
    max-width: 680px;
}

.stats {
    gap: 12px;
    margin-top: 38px;
}

.stat-item {
    background: var(--mh-canvas);
    border-left: 3px solid var(--mh-accent);
    border-radius: 0;
    box-shadow: none;
    min-height: 108px;
    padding: 18px 16px;
}

.stat-number {
    color: var(--mh-blue-700);
    font-size: 27px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 8px;
}

.stat-label {
    color: var(--mh-ink-500);
    font-size: 13px;
}

.about-image {
    position: relative;
}

.about-image::before {
    border: 1px solid var(--mh-accent);
    content: "";
    inset: 18px -18px -18px 18px;
    position: absolute;
    z-index: 0;
}

.about-image img {
    aspect-ratio: 4 / 3;
    border-radius: 4px;
    box-shadow: var(--mh-shadow-soft);
    object-fit: cover;
    position: relative;
    z-index: 1;
}

/* Contact */
.contact {
    background: var(--mh-navy-900);
    color: #ffffff;
    overflow-x: hidden;
}

.contact h2 {
    color: #ffffff;
}

.contact h2::before {
    color: var(--mh-accent);
}

.contact-wrapper {
    gap: 72px;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
}

.contact-info {
    margin-top: 0;
    padding-top: 8px;
}

.info-item {
    gap: 18px;
    margin-bottom: 28px;
}

.info-item i {
    color: var(--mh-accent);
    font-size: 20px;
    margin-right: 0;
    text-align: center;
    width: 22px;
}

.info-content h4 {
    color: #ffffff;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.4;
}

.info-content p {
    color: #c3d2db;
    font-size: 15px;
    line-height: 1.7;
}

.social-links {
    gap: 10px;
    margin-top: 38px;
}

.social-link {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.18);
    height: 44px;
    transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
    width: 44px;
}

.social-link:hover {
    background: var(--mh-accent);
    border-color: var(--mh-accent);
    color: var(--mh-navy-950);
    transform: translateY(-3px);
}

.contact-form {
    background: var(--mh-surface);
    border-radius: 6px;
    box-shadow: var(--mh-shadow-soft);
    padding: 34px;
}

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

.form-group input,
.form-group textarea {
    background: #f5f8fa;
    border: 1px solid #dbe5ea;
    border-radius: 3px;
    color: var(--mh-ink-900);
    font-size: 15px;
    min-height: 52px;
    padding: 13px 15px;
    transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #8a99a4;
}

.form-group input:focus,
.form-group textarea:focus {
    background: #ffffff;
    border-color: var(--mh-blue-700);
    box-shadow: 0 0 0 3px rgba(27, 111, 159, 0.12);
    outline: none;
}

.form-group textarea {
    min-height: 144px;
    resize: vertical;
}

.submit-btn {
    background: var(--mh-blue-700);
    border-radius: 3px;
    font-size: 15px;
    font-weight: 800;
    min-height: 52px;
    transition: background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.submit-btn:hover {
    background: var(--mh-navy-800);
    box-shadow: 0 10px 22px rgba(11, 38, 56, 0.2);
    transform: translateY(-2px);
}

.form-message {
    border-radius: 3px;
    margin-top: 16px;
    padding: 14px;
}

.success-message {
    background: #e3f4e8;
    border: 1px solid #b9e2c5;
    color: #1d6b36;
}

.error-message {
    background: #fde8e8;
    border: 1px solid #f3c0c0;
    color: #9f3030;
}

/* Footer */
.footer {
    background: var(--mh-navy-950);
    color: #a9bbc6;
    padding: 22px 0;
}

.footer p {
    font-size: 13px;
}

.footer a {
    color: inherit;
}

.footer a:hover {
    color: #ffffff;
}

@media (max-width: 980px) {
    .nav-links {
        gap: 22px;
    }

    .hero h1 {
        font-size: 54px;
    }

    .about-content {
        gap: 48px;
    }

    .contact-wrapper {
        gap: 42px;
    }
}

@media (max-width: 760px) {
    .container,
    .hero .container {
        width: min(100% - 40px, 1240px);
    }

    section {
        padding: 78px 0;
    }

    h2 {
        font-size: 34px;
        margin-bottom: 38px;
    }

    .navbar .container {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
        min-height: 68px;
        padding: 14px 0;
    }

    .logo-text {
        font-size: 18px;
    }

    .nav-links {
        display: flex;
        gap: 18px;
        max-width: 100%;
        overflow-x: auto;
        padding-bottom: 2px;
        scrollbar-width: none;
        white-space: nowrap;
    }

    .nav-links::-webkit-scrollbar {
        display: none;
    }

    .nav-links a {
        font-size: 14px;
        min-height: 44px;
        padding: 10px 0 12px;
    }

    .nav-links a::after {
        bottom: 6px;
    }

    .hero {
        min-height: 660px;
        padding: 158px 0 88px;
    }

    .hero h1 {
        font-size: 42px;
        line-height: 1.2;
    }

    .hero p {
        font-size: 17px;
        line-height: 1.8;
    }

    .product-grid,
    .about-content,
    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .product-card {
        min-height: 0;
    }

    .product-card img {
        aspect-ratio: 16 / 9;
    }

    .about-image {
        margin: 0 18px 18px 0;
        order: -1;
    }

    .about-text h3 {
        font-size: 30px;
    }

    .stats {
        grid-template-columns: 1fr;
    }

    .stat-item {
        min-height: 92px;
    }

    .contact-info {
        text-align: center;
    }

    .info-item {
        align-items: center;
        flex-direction: column;
        gap: 8px;
    }

    .info-content p {
        margin: 0 auto;
        max-width: 290px;
    }

    .social-links {
        justify-content: center;
        margin-top: 30px;
    }

    .contact-form {
        padding: 22px;
    }
}

@media (max-width: 440px) {
    .hero h1 {
        font-size: 36px;
    }

    .cta-button {
        justify-content: center;
        width: min(100%, 280px);
    }

    .about-image::before {
        inset: 12px -12px -12px 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
