/* mirror_flow:p6_ai_generated */
/* ===== CSS Variables ===== */
:root {
    /* Color Palette - 建材行业稳重配色 */
    --color-primary: #5c4033;
    --color-primary-light: #8b6914;
    --color-primary-dark: #3e2c23;
    --color-accent: #c8956c;
    --color-accent-hover: #b07d52;
    --color-bg: #faf7f2;
    --color-bg-alt: #f0ebe0;
    --color-surface: #ffffff;
    --color-text: #2c2420;
    --color-text-secondary: #5c5348;
    --color-text-muted: #8a8076;
    --color-border: #d9d0c1;
    --color-border-light: #e8e2d4;
    --color-success: #4a7c59;
    --color-warning: #b8860b;
    --color-error: #a94442;

    /* Typography */
    --font-family-base: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 2rem;
    --font-size-4xl: 2.5rem;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-bold: 700;
    --line-height-tight: 1.25;
    --line-height-normal: 1.6;
    --line-height-relaxed: 1.8;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.1), 0 4px 8px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.12), 0 8px 16px rgba(0, 0, 0, 0.06);

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.25s ease;
    --transition-slow: 0.4s ease;

    /* Container */
    --container-max: 1200px;
    --container-padding: 1rem;
}

/* ===== Breakpoints (参考) ===== */
/* 使用媒体查询时:
   --bp-sm: 640px;
   --bp-md: 768px;
   --bp-lg: 1024px;
   --bp-xl: 1280px;
*/

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-family-base);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-normal);
    line-height: var(--line-height-normal);
    color: var(--color-text);
    background-color: var(--color-bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-primary-light);
}

ul, ol {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    line-height: var(--line-height-tight);
    font-weight: var(--font-weight-bold);
    color: var(--color-text);
}

h1 {
    font-size: var(--font-size-4xl);
}

h2 {
    font-size: var(--font-size-3xl);
}

h3 {
    font-size: var(--font-size-2xl);
}

h4 {
    font-size: var(--font-size-xl);
}

h5 {
    font-size: var(--font-size-lg);
}

h6 {
    font-size: var(--font-size-base);
}

/* ===== Container ===== */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
}

.container--narrow {
    max-width: 960px;
}

.container--wide {
    max-width: 1400px;
}

/* ===== Header / Navigation ===== */
.site-header {
    background-color: var(--color-surface);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--color-border-light);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: var(--space-md);
    padding-bottom: var(--space-md);
    gap: var(--space-lg);
    min-height: 64px;
}

.site-header__logo {
    flex-shrink: 0;
}

.site-header__logo img {
    height: 48px;
    width: auto;
}

.site-header__logo a {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-primary);
    white-space: nowrap;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.site-nav__list {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.site-nav__item {
    position: relative;
}

.site-nav__link {
    display: inline-block;
    padding: var(--space-sm) var(--space-md);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    color: var(--color-text-secondary);
    border-radius: var(--radius-sm);
    transition: color var(--transition-fast), background-color var(--transition-fast);
}

.site-nav__link:hover,
.site-nav__link--active {
    color: var(--color-primary);
    background-color: var(--color-bg-alt);
}

/* Mobile Nav Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: var(--space-xs);
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--color-text);
    border-radius: 2px;
    transition: transform var(--transition-base), opacity var(--transition-base);
}

/* ===== Hero Section ===== */
.hero {
    position: relative;
    background-color: var(--color-primary-dark);
    color: #ffffff;
    padding: var(--space-4xl) 0;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(92, 64, 51, 0.92) 0%, rgba(62, 44, 35, 0.85) 100%);
    z-index: 1;
}

.hero__bg {
    position: absolute;
    inset: 0;
    object-fit: cover;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
}

.hero__title {
    font-size: var(--font-size-4xl);
    font-weight: var(--font-weight-bold);
    color: #ffffff;
    margin-bottom: var(--space-md);
}

.hero__subtitle {
    font-size: var(--font-size-lg);
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: var(--space-xl);
    line-height: var(--line-height-relaxed);
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    justify-content: center;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    font-family: var(--font-family-base);
    line-height: 1.4;
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-base);
    text-align: center;
    white-space: nowrap;
    user-select: none;
}

.btn:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

.btn--primary {
    background-color: var(--color-accent);
    color: #ffffff;
    border-color: var(--color-accent);
}

.btn--primary:hover {
    background-color: var(--color-accent-hover);
    border-color: var(--color-accent-hover);
    color: #ffffff;
}

.btn--outline {
    background-color: transparent;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.6);
}

.btn--outline:hover {
    background-color: #ffffff;
    color: var(--color-primary-dark);
    border-color: #ffffff;
}

.btn--secondary {
    background-color: var(--color-surface);
    color: var(--color-primary);
    border-color: var(--color-border);
}

.btn--secondary:hover {
    background-color: var(--color-bg-alt);
    border-color: var(--color-primary);
}

.btn--lg {
    padding: var(--space-lg) var(--space-2xl);
    font-size: var(--font-size-base);
    border-radius: var(--radius-lg);
}

.btn--sm {
    padding: var(--space-sm) var(--space-md);
    font-size: var(--font-size-xs);
    border-radius: var(--radius-sm);
}

/* ===== Section Styles ===== */
.section {
    padding: var(--space-4xl) 0;
}

.section--alt {
    background-color: var(--color-bg-alt);
}

.section__header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.section__title {
    font-size: var(--font-size-3xl);
    color: var(--color-text);
    margin-bottom: var(--space-sm);
}

.section__title span {
    color: var(--color-accent);
}

.section__desc {
    font-size: var(--font-size-base);
    color: var(--color-text-muted);
    max-width: 560px;
    margin: 0 auto;
}

/* ===== Product Grid ===== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-xl);
}

.product-card {
    background-color: var(--color-surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border-light);
    transition: box-shadow var(--transition-base), transform var(--transition-base);
}

.product-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.product-card__image {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background-color: var(--color-bg-alt);
}

.product-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

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

.product-card__badge {
    position: absolute;
    top: var(--space-md);
    left: var(--space-md);
    padding: var(--space-xs) var(--space-sm);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-bold);
    background-color: var(--color-accent);
    color: #ffffff;
    border-radius: var(--radius-sm);
}

.product-card__body {
    padding: var(--space-lg);
}

.product-card__category {
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-xs);
}

.product-card__title {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--space-sm);
    color: var(--color-text);
}

.product-card__title a {
    color: inherit;
}

.product-card__title a:hover {
    color: var(--color-primary);
}

.product-card__desc {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    line-height: var(--line-height-normal);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md) var(--space-lg);
    border-top: 1px solid var(--color-border-light);
}

.product-card__price {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-bold);
    color: var(--color-accent);
}

/* ===== Features / Services Grid ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: var(--space-xl);
}

.feature-card {
    text-align: center;
    padding: var(--space-xl);
    background-color: var(--color-surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border-light);
    transition: box-shadow var(--transition-base);
}

.feature-card:hover {
    box-shadow: var(--shadow-md);
}

.feature-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: var(--radius-full);
    background-color: var(--color-bg-alt);
    margin-bottom: var(--space-md);
    font-size: 28px;
    color: var(--color-accent);
}

.feature-card__title {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--space-sm);
}

.feature-card__desc {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
}

/* ===== About Section ===== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

.about__image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4 / 3;
}

.about__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about__content h3 {
    margin-bottom: var(--space-md);
}

.about__content p {
    color: var(--color-text-secondary);
    margin-bottom: var(--space-md);
    line-height: var(--line-height-relaxed);
}

.about__stats {
    display: flex;
    gap: var(--space-xl);
    margin-top: var(--space-lg);
}

.about__stat {
    text-align: center;
}

.about__stat-number {
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-accent);
}

.about__stat-label {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
}

/* ===== Contact Section ===== */
.contact-grid {
    display: grid;
