/* ============================================
   石生动地（福建）技术有限公司 官方网站
   静态样式表
   ============================================ */

/* ---- 基础重置 ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --primary: #0c4a6e;
    --primary-dark: #082f49;
    --secondary: #0891b2;
    --secondary-light: #06b6d4;
    --accent: #f59e0b;
    --bg: #f8fafc;
    --bg-alt: #f1f5f9;
    --white: #ffffff;
    --text: #0f172a;
    --text-muted: #475569;
    --text-light: #94a3b8;
    --border: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 4px 16px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 10px 40px rgba(15, 23, 42, 0.12);
    --radius: 8px;
    --radius-lg: 16px;
    --transition: all 0.3s ease;
}

html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
                 "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text);
    background: var(--bg);
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: var(--transition); }
ul { list-style: none; }

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

/* ---- 顶部导航 ---- */
.header {
    position: fixed;
    top: 0; left: 0; right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 100;
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid var(--border);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
}

.logo-icon {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: -1px;
}

.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-text strong { font-size: 16px; color: var(--primary); }
.logo-text small { font-size: 11px; color: var(--text-muted); font-weight: 400; }

.nav-menu {
    display: flex;
    gap: 4px;
}

.nav-menu a {
    padding: 8px 18px;
    border-radius: 6px;
    color: var(--text);
    font-weight: 500;
    font-size: 15px;
    transition: var(--transition);
}

.nav-menu a:hover { background: var(--bg-alt); color: var(--primary); }
.nav-menu a.active { background: var(--primary); color: #fff; }

.nav-toggle {
    display: none;
    background: transparent;
    border: 0;
    font-size: 24px;
    color: var(--primary);
    cursor: pointer;
    padding: 6px 10px;
}

/* ---- 主区 ---- */
main { padding-top: 70px; }

/* ---- 首页 Hero ---- */
.hero {
    position: relative;
    min-height: calc(100vh - 70px);
    display: flex;
    align-items: center;
    color: #fff;
    background: linear-gradient(135deg, rgba(8, 47, 73, 0.85), rgba(8, 145, 178, 0.75)),
                url('../images/waiguan.jpg') center/cover no-repeat;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.35));
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 1;
    max-width: 760px;
    padding: 60px 0;
}

.hero-tag {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 999px;
    font-size: 13px;
    letter-spacing: 1px;
    margin-bottom: 24px;
    backdrop-filter: blur(6px);
}

.hero h1 {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.hero h1 span {
    background: linear-gradient(90deg, #fbbf24, #f59e0b);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero p.lead {
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 36px;
    opacity: 0.95;
}

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

/* ---- 按钮 ---- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 15px;
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.4);
}
.btn-primary:hover { background: #d97706; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(245, 158, 11, 0.5); }

.btn-outline {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,0.5);
}
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: #fff; }

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

/* ---- 通用 section ---- */
.section {
    padding: 80px 0;
}

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

.section-head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 56px;
}

.section-head .eyebrow {
    display: inline-block;
    padding: 4px 14px;
    background: rgba(8, 145, 178, 0.1);
    color: var(--secondary);
    font-size: 13px;
    font-weight: 600;
    border-radius: 999px;
    margin-bottom: 14px;
    letter-spacing: 1px;
}

.section-head h2 {
    font-size: clamp(28px, 4vw, 38px);
    font-weight: 700;
    margin-bottom: 14px;
    color: var(--text);
    letter-spacing: -0.5px;
}

.section-head p {
    color: var(--text-muted);
    font-size: 16px;
}

/* ---- 卡片网格 ---- */
.grid {
    display: grid;
    gap: 24px;
}

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

@media (max-width: 900px) {
    .grid-3, .grid-2, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; }
}

.card {
    background: var(--white);
    padding: 32px 28px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.card-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 26px;
    margin-bottom: 20px;
}

.card h3 {
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text);
}

.card p {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.65;
}

/* ---- 关于我们 ---- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

@media (max-width: 900px) {
    .about-grid { grid-template-columns: 1fr; gap: 40px; }
}

.about-text h2 {
    font-size: 32px;
    margin-bottom: 20px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.about-text p {
    color: var(--text-muted);
    margin-bottom: 16px;
    line-height: 1.8;
}

.about-text strong { color: var(--primary); }

.about-img {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-img img { width: 100%; height: 100%; object-fit: cover; min-height: 380px; }

.about-img::before {
    content: '';
    position: absolute;
    top: -20px; right: -20px;
    width: 120px; height: 120px;
    background: var(--accent);
    border-radius: 50%;
    z-index: -1;
    opacity: 0.4;
}

/* ---- 数据指标 ---- */
.stats {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    padding: 60px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

@media (max-width: 700px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

.stat-item .num {
    font-size: 40px;
    font-weight: 800;
    background: linear-gradient(90deg, #fbbf24, #f59e0b);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 6px;
}

.stat-item .label {
    font-size: 14px;
    color: rgba(255,255,255,0.85);
    letter-spacing: 1px;
}

/* ---- 服务列表（详细页） ---- */
.service-detail {
    background: var(--white);
    padding: 36px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    transition: var(--transition);
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.service-detail:hover {
    border-color: var(--secondary);
    box-shadow: var(--shadow-md);
}

.service-detail .num {
    flex-shrink: 0;
    width: 50px; height: 50px;
    background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
    color: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
}

.service-detail h3 { font-size: 20px; margin-bottom: 10px; }
.service-detail p { color: var(--text-muted); }

/* ---- 行业领域 ---- */
.industry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

.industry-tag {
    background: var(--white);
    padding: 18px 20px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    text-align: center;
    font-weight: 600;
    color: var(--text);
    transition: var(--transition);
}

.industry-tag:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    transform: translateY(-3px);
}

/* ---- 流程时间线 ---- */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0; bottom: 0;
    width: 2px;
    background: var(--border);
}

.timeline-item {
    position: relative;
    padding-left: 80px;
    padding-bottom: 36px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 22px;
    top: 8px;
    width: 18px; height: 18px;
    background: var(--white);
    border: 4px solid var(--secondary);
    border-radius: 50%;
}

.timeline-item h4 {
    font-size: 17px;
    margin-bottom: 6px;
    color: var(--primary);
}

.timeline-item p { color: var(--text-muted); font-size: 15px; }

/* ---- 联系页 ---- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
}

@media (max-width: 900px) {
    .contact-grid { grid-template-columns: 1fr; }
}

.contact-info {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    padding: 40px;
    border-radius: var(--radius-lg);
}

.contact-info h3 {
    font-size: 22px;
    margin-bottom: 24px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 18px 0;
    border-bottom: 1px solid rgba(255,255,255,0.15);
}

.contact-item:last-child { border-bottom: 0; }

.contact-item .icon {
    width: 42px; height: 42px;
    background: rgba(255,255,255,0.15);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 18px;
}

.contact-item .label {
    font-size: 12px;
    color: rgba(255,255,255,0.7);
    margin-bottom: 4px;
    letter-spacing: 1px;
}

.contact-item .value {
    font-size: 16px;
    font-weight: 600;
}

.contact-item a:hover { color: var(--accent); }

/* ---- 表单 ---- */
.form {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}

.form h3 {
    font-size: 22px;
    margin-bottom: 8px;
}

.form .sub {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 24px;
}

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

@media (max-width: 600px) {
    .form-row { grid-template-columns: 1fr; }
}

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

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 15px;
    transition: var(--transition);
    background: var(--bg);
}

.form-control:focus {
    outline: 0;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.15);
    background: #fff;
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.form .btn { width: 100%; justify-content: center; }

/* ---- 页头（内页） ---- */
.page-header {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    padding: 70px 0 60px;
    text-align: center;
}

.page-header h1 {
    font-size: clamp(30px, 4vw, 42px);
    font-weight: 800;
    margin-bottom: 12px;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    opacity: 0.9;
}

.breadcrumb a:hover { color: var(--accent); }

/* ---- CTA ---- */
.cta {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    padding: 60px 0;
    text-align: center;
}

.cta h2 {
    font-size: 32px;
    margin-bottom: 14px;
    font-weight: 700;
}

.cta p {
    margin-bottom: 28px;
    opacity: 0.95;
}

/* ---- 页脚 ---- */
.footer {
    background: #0a1628;
    color: rgba(255,255,255,0.7);
    padding: 50px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

@media (max-width: 800px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 500px) {
    .footer-grid { grid-template-columns: 1fr; }
}

.footer h4 {
    color: #fff;
    font-size: 15px;
    margin-bottom: 18px;
    font-weight: 600;
}

.footer-about p {
    font-size: 14px;
    line-height: 1.7;
    margin: 16px 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    font-size: 14px;
    transition: var(--transition);
}

.footer-links a:hover { color: var(--accent); padding-left: 4px; }

.footer-contact {
    font-size: 14px;
    line-height: 2;
}

.footer-contact strong {
    color: #fff;
    display: block;
    margin-bottom: 2px;
}

.footer-bottom {
    padding: 20px 0;
    text-align: center;
    font-size: 13px;
}

.footer-bottom a {
    color: rgba(255,255,255,0.7);
    transition: var(--transition);
}

.footer-bottom a:hover { color: var(--accent); }

.beian {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0 8px;
}

.beian img {
    width: 14px;
    height: 14px;
    display: inline-block;
    vertical-align: middle;
}

/* ---- 动画 ---- */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-up { animation: fadeUp 0.7s ease both; }

/* ---- 移动端 ---- */
@media (max-width: 800px) {
    .nav-toggle { display: block; }
    .nav-menu {
        position: absolute;
        top: 100%; left: 0; right: 0;
        flex-direction: column;
        background: #fff;
        padding: 16px;
        box-shadow: var(--shadow-md);
        gap: 4px;
        transform: translateY(-10px);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }
    .nav-menu.open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    .nav-menu a { width: 100%; }
    .hero h1 { font-size: 34px; }
    .hero-inner { padding: 40px 0; }
    .section { padding: 56px 0; }
    .section-head { margin-bottom: 36px; }
}
