/* ==========================================
   察雅县宏顺石材有限公司 - 稳重大气风格
   配色方案：大地棕 + 石板灰 + 金色
   ========================================== */

/* 引入Google字体 - 用于英文和数字 */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700;900&family=Roboto+Condensed:wght@700&display=swap');

:root {
    --color-primary: #8B7355;
    --color-primary-light: #A38D73;
    --color-primary-dark: #6D5A42;
    --color-secondary: #36454F;
    --color-accent: #C9A961;
    --color-dark: #2A2A2A;
    --color-gray: #666;
    --color-light: #F5F5F0;
    --header-height: 70px;
    
    /* 字体系统 */
    --font-base: 'Source Han Sans CN', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    --font-heading: 'Source Han Sans CN', 'Noto Sans SC', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    --font-number: 'Roboto', 'DIN Alternate', 'Arial', sans-serif;
    --font-english: 'Roboto', 'Arial', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-base);
    color: var(--color-dark);
    line-height: 1.8;
    padding-top: var(--header-height);
    font-size: 16px;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ==========================================
   字体样式系统
   ========================================== */

/* 标题字体 */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.3;
    color: var(--color-dark);
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

h1 {
    font-size: 42px;
    font-weight: 900;
    letter-spacing: 1px;
}

h2 {
    font-size: 36px;
    font-weight: 800;
}

h3 {
    font-size: 28px;
    font-weight: 700;
}

h4 {
    font-size: 22px;
    font-weight: 700;
}

h5 {
    font-size: 18px;
    font-weight: 600;
}

h6 {
    font-size: 16px;
    font-weight: 600;
}

/* 段落和文本 */
p {
    line-height: 1.8;
    margin-bottom: 1rem;
}

/* 强调文本 */
strong, b {
    font-weight: 700;
    color: var(--color-dark);
}

/* 数字专用样式 */
.number, .data-display {
    font-family: var(--font-number);
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* 英文文本 */
.english-text {
    font-family: var(--font-english);
}

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

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--header-height);
    background: linear-gradient(135deg, var(--color-secondary) 0%, #1E2830 100%);
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    z-index: 1000;
}

.navbar-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 32px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-logo-text {
    display: flex;
    flex-direction: column;
}

.navbar-logo-main {
    font-size: 20px;
    font-weight: 800;
    color: var(--color-accent);
    font-family: var(--font-heading);
    letter-spacing: 1.5px;
}

.navbar-logo-sub {
    font-size: 12px;
    color: rgba(255,255,255,0.7);
    letter-spacing: 2px;
    font-family: var(--font-english);
    font-weight: 500;
}

.navbar-menu {
    display: flex;
    list-style: none;
    gap: 8px;
}

.navbar-item {
    position: relative;
}

.navbar-link {
    display: block;
    padding: 10px 20px;
    color: white;
    font-weight: 600;
    border-radius: 4px;
    transition: 0.3s;
    font-family: var(--font-heading);
    letter-spacing: 0.5px;
    font-size: 15px;
}

.navbar-link:hover {
    background: rgba(255,255,255,0.15);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    min-width: 180px;
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
}

.navbar-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
}

.dropdown-item {
    list-style: none;
}

.dropdown-link {
    display: block;
    padding: 10px 16px;
    color: var(--color-dark);
    border-radius: 4px;
    transition: 0.2s;
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0.3px;
}

.dropdown-link:hover {
    background: var(--color-light);
    color: var(--color-primary);
}

.navbar-toggle {
    display: none;
}

/* Hero区域 */
.hero {
    min-height: 500px;
}

/* Section */
.section {
    padding: 80px 0;
}

.bg-light,
.section:nth-child(even) {
    background: var(--color-light);
}

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

.section-title h2 {
    font-size: 40px;
    color: var(--color-primary);
    margin-bottom: 12px;
    position: relative;
    display: inline-block;
    font-family: var(--font-heading);
    font-weight: 800;
    letter-spacing: 1.5px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--color-accent);
}

.section-title p {
    font-size: 18px;
    color: var(--color-gray);
    font-weight: 400;
    letter-spacing: 0.5px;
}

/* Grid */
.grid {
    display: grid;
    gap: 32px;
}

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

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* Card */
.card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.15);
}

.card-img,
.card-image {
    width: 100%;
    height: 240px;
    object-fit: cover;
}

.card-body,
.card-content {
    padding: 28px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--color-primary-dark);
    font-family: var(--font-heading);
    letter-spacing: 0.5px;
}

.card-text,
.card-description {
    color: var(--color-gray);
    line-height: 1.8;
    margin-bottom: 20px;
    flex: 1;
    font-size: 15px;
    font-weight: 400;
    letter-spacing: 0.3px;
}

.card-link {
    color: var(--color-primary);
    font-weight: 500;
    transition: 0.2s;
}

.card-link:hover {
    color: var(--color-primary-dark);
}

/* Button */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    text-align: center;
    font-family: var(--font-heading);
    letter-spacing: 0.8px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-accent) 0%, #B89551 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(201,169,97,0.25);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(201,169,97,0.4);
}

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

.btn-secondary:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--color-accent);
    color: var(--color-accent);
}

.btn-outline:hover {
    background: var(--color-accent);
    color: white;
    transform: translateY(-2px);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #2C3E35 0%, #1C2820 100%);
    color: rgba(255,255,255,0.8);
    padding: 64px 0 24px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 48px;
    margin-bottom: 32px;
}

.footer-section h3 {
    color: var(--color-accent);
    margin-bottom: 16px;
    font-size: 18px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section a {
    color: rgba(255,255,255,0.7);
    transition: 0.2s;
    font-size: 14px;
}

.footer-section a:hover {
    color: white;
    padding-left: 4px;
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.5);
    font-size: 14px;
}

/* 响应式 */
@media (max-width: 1024px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .navbar-toggle {
        display: block;
    }
    
    .navbar-menu {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        max-height: 0;
        overflow: hidden;
        transition: 0.3s;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }
    
    .navbar-menu.active {
        max-height: 500px;
    }
    
    .navbar-link {
        color: var(--color-dark);
    }
    
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .section {
        padding: 60px 0;
    }
}
