/*
Theme Name: HDDMaster
Theme URI: https://hddmaster.xyz
Author: HDDMaster
Author URI: https://hddmaster.xyz
Description: Custom multilingual corporate theme for HDDMaster.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: hddmaster
*/

/* ==========================================================================
   common.css — reset + layout-light + responsive
   ========================================================================== */

/* --- from reset.css --- */
/* --- Reset & Base Styles (与ABOUT、SERVICE、CASES、PRODUCTS保持绝对一致) --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
body {
    background-color: #fff;
    color: #333;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
a {
    text-decoration: none;
    color: inherit;
}
ul {
    list-style: none;
}
.container {
    max-width: 1400px;
    margin: 0 auto;
    /* padding: 0 20px; */
    width: 100%;
}
img {
    max-width: 100%;
    display: block;
}
html, body {
    overflow-x: hidden;
    max-width: 100%;
}

/* --- from layout-light.css --- */
/* --- Helper Classes (通用类名复用) --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px 68px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}
.btn-primary {
    background-color: #f3a633;
    color: #111;
    border: 1px solid #f3a633;
}
.btn-primary:hover {
    background-color: #e29522;
}
.btn-outline {
    background-color: transparent;
    color: #fff;
    border: 1px solid #fff;
}
.btn-outline:hover {
    background-color: #fff;
    color: #111;
}

/* Small buttons (product/quote pages) */
.btn-gold-sm {
    background-color: #f3a633;
    color: #111;
    padding: 12px 20px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s;
}
.btn-gold-sm:hover { background-color: #e29522; }
.btn-outline-sm {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 11px 25px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 13.5px;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-outline-sm:hover {
    border-color: #f3a633;
    color: #f3a633;
}
.btn-inquiry-white {
    flex: 1;
    max-width: 200px;
    background-color: #fff;
    color: #4a5568;
    text-align: center;
    padding: 12px;
    border-radius: 4px;
    font-weight: 700;
    border: 1px solid #cbd5e1;
    cursor: pointer;
}

/* --- Header & Top Bar (通用) --- */
header {
    background-color: #111625;
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.top-bar {
    background-color: #0b0e17;
    font-size: 12px;
    color: #aaa;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.top-bar .container {
    display: flex;
    justify-content: flex-end;
    gap: 20px;
    flex-wrap: wrap;
}
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    gap: 20px;
}
.logo {
    font-size: 22px;
    font-weight: bold;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
}
.logo span { color: #f3a633; }
.nav-menu {
    display: flex;
    gap: 20px;
    font-size: 14px;
    flex-wrap: wrap;
}
.nav-menu a:hover, .nav-menu a.active {
    color: #f3a633;
}
.search-box {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 6px 12px;
    border-radius: 20px;
    color: #fff;
    font-size: 12px;
    max-width: 150px;
}

/* --- Hero Section --- */
.hero {
    /* background set per page */
    background-size: cover;
    background-position: center;
    color: #fff;
    text-align: center;
    padding: 90px 0;
}
.hero h1 {
    font-size: 42px;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 15px;
    line-height: 1.3;
}
.hero p {
    color: #f3a633;
    max-width: 850px;
    margin: 0 auto 30px auto;
    font-size: 18px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-weight: 600;
}
.hero-btns {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}
.hero-btns .icon{
    width: 24px;
    height: 24px;
}

/* --- Placeholder Image --- */
.placeholder-img {
    /* background-color: #e9ecef; */
    display: flex;
    align-items: center;
    justify-content: center;
    color: #adb5bd;
    font-size: 13px;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    width: 100%;
}

/* --- Tag Pill (通用胶囊标签) --- */
.tag-pill,
.tag {
    font-size: 14px;
    background: #FFF6E9;
    color: #F5B043;
    padding: 4px 20px;
    border-radius: 20px;
    border: 1px solid rgba(245, 176, 67, .5);
}

/* --- CTA Block --- */
.cta-wrapper {
    background-color: #0b0e17;
    padding-top: 10px;
}
.cta-section {
    background: #0b0e17;
    color: #fff;
    padding: 50px 30px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: -50px;
    position: relative;
    z-index: 10;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}
.cta-section h2 {
    font-size: clamp(20px, 3vw, 26px);
    margin-bottom: 15px;
}
.cta-section p {
    color: #aaa;
    font-size: 13px;
    margin-bottom: 25px;
}
.cta-btns {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}
.cta-btns .icon {
    width: 26px;
    height: 26px;
}

/* --- Features Row --- */
.features-row {
    background: #fff;
    padding: 100px 0 50px 0;
    border-bottom: 1px solid #eee;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    text-align: center;
}
.feature-item h4 {
    font-size: 14px;
    margin: 10px 0;
}
.feature-item p {
    color: #777;
    font-size: 12px;
}
.feature-row-icon {
    color: #f3a633;
    font-size: 20px;
}
.feature-row-icon .icon {
    width: 40px;
    height: 40px;
}

/* --- Pagination --- */
.pagination-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 25px;
    color: #777;
    font-size: 12px;
    flex-wrap: wrap;
    gap: 15px;
}
.pagination-list {
    display: flex;
    align-items: center;
    gap: 8px;
}
.page-btn {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    color: #555;
    font-weight: 600;
    background: #fff;
    transition: all 0.2s;
}
.page-btn:hover,
.page-btn.active {
    background-color: #f3a633;
    color: #111;
    border-color: #f3a633;
}
.page-arrow {
    font-size: 10px;
}

/* --- CTA Box variant (product detail page) --- */
.cta-container-wrapper {
    background-color: #0b0e17;
    padding-top: 20px;
    margin-top: 60px;
}
.cta-box {
    background: #0b0e17;
    color: #fff;
    padding: 50px 30px;
    text-align: center;
    margin-bottom: -50px;
    position: relative;
    z-index: 10;
    border: 1px solid rgba(255, 255, 255, 0.03);
}
.cta-box h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
}
.cta-box p {
    color: #a0aec0;
    font-size: 13.5px;
    margin-bottom: 25px;
}
.cta-button-group {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* --- Footer --- */
footer {
    background: #0b0e17;
    color: #aaa;
    padding: 80px 0 40px 0;
    font-size: 12px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(2, 1fr);
    gap: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 40px;
    margin-bottom: 30px;
}
.footer-logo {
    color: #fff;
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 20px;
}
.footer-logo span { color: #f3a633; }
.footer-info p {
    margin-bottom: 10px;
}
.footer-info .icon {
    width: 24px;
    height: 24px;
    color: #f3a633;
}
.footer-links h4 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 13px;
}
.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.footer-bottom {
    display: flex;
    justify-content: space-between;
    color: #555;
    font-size: 11px;
    flex-wrap: wrap;
    gap: 15px;
}
.footer-bottom-bar {
    display: flex;
    justify-content: space-between;
    color: #4a5568;
    font-size: 12px;
    flex-wrap: wrap;
    gap: 15px;
}
.footer-main-grid {
    display: grid;
    grid-template-columns: 1.3fr repeat(2, 1fr);
    gap: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 40px;
    margin-bottom: 25px;
}
.footer-brand h3 {
    color: #fff;
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 15px;
}
.footer-brand h3 span { color: #f3a633; }
.footer-contact-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.footer-links-column h4 {
    color: #fff;
    margin-bottom: 18px;
    font-size: 13.5px;
    font-weight: 700;
}
.footer-links-column ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 4px;
    cursor: pointer;
    padding: 6px;
    flex-shrink: 0;
}
.nav-toggle span {
    display: block;
    height: 2px;
    background: #fff;
    border-radius: 1px;
    transition: all 0.3s;
}

/* --- from responsive.css --- */
/* ==========================================================================
   Common Responsive (1024 / 768 / 480)
   ========================================================================== */

@media (max-width: 1024px) {
    .nav-container {
        flex-direction: column;
        padding: 15px 0;
    }
    .nav-menu {
        justify-content: center;
    }
    .search-box {
        max-width: 100%;
        width: 200px;
    }
    .container {
        padding: 0 20px;
    }
    .list-grid {
        grid-template-columns: 1fr;
    }
    .contact-grid,
    .details-grid {
        grid-template-columns: 1fr;
    }
    .contact-grid {
        gap: 40px;
    }
    .details-grid {
        gap: 50px;
    }
    .machinery-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .footer-links{display: none;}
    .hero h1 {
        font-size: 28px;
    }
    .hero p {
        font-size: 15px;
    }
    .hero {
        padding: 60px 0;
    }
    .btn {
        padding: 12px 32px;
        font-size: 16px;
    }
    .features-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .top-bar .container {
        justify-content: center;
        text-align: center;
        gap: 10px;
    }
    .cta-section h2 {
        font-size: 28px;
    }
    .cta-section p {
        font-size: 16px;
    }
    .nav-toggle {
        display: flex;
    }
    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        text-align: center;
        padding: 10px 0;
        gap: 12px;
    }
    .nav-menu.is-open {
        display: flex;
    }
    .contact-grid,
    .details-grid {
        grid-template-columns: 1fr;
    }
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .excellence-grid,
    .solutions-grid {
        grid-template-columns: 1fr;
    }
    .ecosystem-grid {
        grid-template-columns: 1fr;
    }
    .footprint-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .news-tabs {
        flex-wrap: wrap;
        gap: 12px;
    }
    .pagination-container {
        flex-direction: column;
        text-align: center;
    }
    .cta-button-group {
        flex-direction: column;
        align-items: center;
    }
    .footer-main-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 24px;
    }
    .nav-menu {
        gap: 10px;
        font-size: 12px;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    .footer-bottom-bar {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    .btn {
        padding: 10px 24px;
        font-size: 14px;
        width: 100%;
        max-width: 280px;
    }
    .hero-btns {
        flex-direction: column;
        align-items: center;
    }
    .products-grid {
        grid-template-columns: 1fr;
    }
    .excellence-counter-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .machinery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .product-essential {
        grid-template-columns: 1fr;
    }
    .form-group-row,
    .form-row-twin {
        grid-template-columns: 1fr;
    }
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}
