/* ================= Home 页专用样式 ================= */

/* Hero */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(90deg, #071120 25%, rgba(7, 17, 32, 0.75) 50%, rgba(7, 17, 32, 0.1) 100%),
                url('https://images.unsplash.com/photo-1522069169874-c58ec4b76be5?auto=format&fit=crop&w=1920&q=80') no-repeat center right/cover;
    padding: 120px 24px 80px 24px;
    border-bottom: 1px solid var(--border-color);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(7, 17, 32, 0.3);
    pointer-events: none;
}

.hero-container {
    max-width: 1280px;
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-text {
    z-index: 2;
}

.badge-factory {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--primary-text);
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 28px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-factory::before {
    content: '';
    width: 6px;
    height: 6px;
    background-color: var(--accent);
    border-radius: 50%;
}

.hero h1 {
    font-size: 62px;
    font-weight: 800;
    line-height: 1.15;
    color: var(--primary-text);
    margin-bottom: 24px;
    letter-spacing: -1.5px;
}

.hero h1 span {
    color: var(--accent);
    background: linear-gradient(120deg, var(--accent) 0%, #FFAE19 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 18px;
    color: var(--secondary-text);
    font-weight: 400;
    max-width: 620px;
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
}

.btn-main {
    background-color: var(--accent);
    color: var(--bg-dark);
    padding: 16px 36px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 16px;
    transition: var(--transition);
    box-shadow: 0 10px 25px rgba(245, 166, 35, 0.15);
}

.btn-main:hover {
    background-color: var(--primary-text);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.btn-sub {
    border: 2px solid var(--border-color);
    color: var(--primary-text);
    padding: 14px 34px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 16px;
    transition: var(--transition);
}

.btn-sub:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: var(--primary-text);
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: flex-end;
}

.visual-card {
    background-color: rgba(15, 30, 51, 0.85);
    backdrop-filter: blur(10px);
    color: var(--primary-text);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 320px;
}

.visual-card h4 {
    font-size: 26px;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 8px;
    line-height: 1.2;
}

.visual-card p {
    font-size: 13px;
    color: var(--secondary-text);
    line-height: 1.5;
    margin-bottom: 0;
}

.visual-divider {
    height: 1px;
    background-color: rgba(255, 255, 255, 0.1);
    margin: 20px 0;
}

/* Section 通用 */
.section {
    padding: 100px 24px;
    background-color: #0B1625;
    border-bottom: 1px solid var(--border-color);
}

.container {
    max-width: 1280px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 40px;
    font-weight: 800;
    color: var(--primary-text);
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.section-title p {
    color: var(--secondary-text);
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto;
}

/* Products 网格 */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

.product-card {
    background-color: var(--bg-card);
    border-radius: 20px;
    padding: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 45px rgba(245, 166, 35, 0.1);
    border-color: var(--accent);
}

.product-img-placeholder,
.product-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;
    min-height: 160px;
    background-color: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    border: 2px dashed rgba(255, 255, 255, 0.1);
    color: var(--secondary-text);
    transition: var(--transition);
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

.product-img-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.product-img {
    border-style: solid;
    border-color: rgba(255, 255, 255, 0.06);
    padding: 0;
}

.product-img img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: var(--transition);
}

.product-card:hover .product-img-placeholder,
.product-card:hover .product-img {
    border-color: var(--accent);
    background-color: rgba(245, 166, 35, 0.02);
    color: var(--accent);
}

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

.placeholder-icon {
    font-size: 32px;
    margin-bottom: 8px;
    opacity: 0.8;
}

.placeholder-text {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.product-info {
    padding: 20px 4px 4px 4px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-text);
    margin-bottom: 8px;
    line-height: 1.4;
}

.product-desc {
    font-size: 13px;
    color: var(--secondary-text);
    margin-bottom: 20px;
    flex-grow: 1;
}

.btn-card-inquiry {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.04);
    color: var(--primary-text);
    border: 1px solid var(--border-color);
    font-size: 13px;
    font-weight: 700;
    padding: 12px;
    border-radius: 10px;
    transition: var(--transition);
}

.product-card:hover .btn-card-inquiry {
    background-color: var(--accent);
    color: var(--bg-dark);
    border-color: var(--accent);
}

/* Solutions */
.solutions-section {
    background-color: var(--bg-dark);
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.sol-card {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 40px;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
}

.sol-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(245, 166, 35, 0.05);
    border-color: var(--accent);
}

.sol-num {
    font-size: 14px;
    font-weight: 800;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
    display: block;
}

.sol-card h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-text);
    margin-bottom: 16px;
}

.sol-card p {
    font-size: 14px;
    color: var(--secondary-text);
}

/* About */
.about-section {
    background-color: #0B1625;
    border-bottom: 1px solid var(--border-color);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h3 {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary-text);
    margin-bottom: 24px;
    letter-spacing: -0.5px;
}

.about-text p {
    color: var(--secondary-text);
    font-size: 15px;
    margin-bottom: 20px;
}

.advantages-list {
    list-style: none;
    margin-top: 30px;
}

.adv-item {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}

.adv-dot {
    width: 24px;
    height: 24px;
    background-color: rgba(245, 166, 35, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}

.adv-info h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-text);
    margin-bottom: 4px;
}

.adv-info p {
    font-size: 13px;
    color: var(--secondary-text);
}

.custom-banner {
    background: linear-gradient(135deg, #0F223F 0%, #17325C 100%);
    border-radius: 30px;
    padding: 60px 80px;
    color: var(--primary-text);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 60px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-color);
}

.banner-text h3 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.banner-text p {
    color: var(--secondary-text);
    font-size: 15px;
    max-width: 600px;
}

.btn-banner {
    background-color: var(--accent);
    color: var(--bg-dark);
    padding: 16px 36px;
    border-radius: 50px;
    font-weight: 700;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-banner:hover {
    background-color: var(--primary-text);
    transform: scale(1.03);
}

/* Contact */
.contact-section {
    background-color: var(--bg-dark);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: start;
}

.contact-form-container {
    background-color: var(--bg-card);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

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

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--primary-text);
    margin-bottom: 8px;
    text-transform: uppercase;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background-color: var(--bg-input);
    border: 1px solid var(--border-color);
    padding: 14px 18px;
    border-radius: 10px;
    font-size: 14px;
    color: var(--primary-text);
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 10px rgba(245, 166, 35, 0.15);
}

.btn-form-submit {
    background-color: var(--accent);
    color: var(--bg-dark);
    width: 100%;
    border: none;
    padding: 16px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-form-submit:hover {
    background-color: var(--primary-text);
}

.contact-info-block {
    padding-left: 20px;
}

.info-header {
    margin-bottom: 30px;
}

.info-header h3 {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary-text);
    margin-bottom: 12px;
}

.info-header p {
    color: var(--secondary-text);
    font-size: 14px;
}

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

.info-icon {
    width: 48px;
    height: 48px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    flex-shrink: 0;
    font-weight: 700;
    border: 1px solid var(--border-color);
}

.info-text h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary-text);
    margin-bottom: 4px;
}

.info-text p {
    font-size: 14px;
    color: var(--secondary-text);
}

@media (max-width: 1024px) {
    .hero h1 { font-size: 46px; }
    .products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .solutions-grid { grid-template-columns: 1fr; }
    .about-grid { grid-template-columns: 1fr; gap: 40px; }
    .custom-banner { flex-direction: column; text-align: center; gap: 30px; padding: 40px; }
    .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 768px) {
    .hero-container { grid-template-columns: 1fr; text-align: center; }
    .hero-buttons { justify-content: center; }
    .hero-visual { display: none; }
    .products-grid { grid-template-columns: 1fr; }
}
