/* 云尚通展示官网 - 纯静态单页样式(无框架依赖) */ :root { --green: #2e7d32; --green-dark: #1b5e20; --green-light: #66bb6a; --cream: #faf7f0; --ink: #2b2b2b; --ink-soft: #5a5a5a; --white: #ffffff; --shadow: 0 8px 30px rgba(27, 94, 32, 0.12); } * { margin: 0; padding: 0; box-sizing: border-box; } html { scroll-behavior: smooth; } body { font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif; color: var(--ink); background: var(--cream); line-height: 1.7; } img { max-width: 100%; height: auto; display: block; } /* ===== 顶部导航 ===== */ .site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 100; display: flex; align-items: center; justify-content: space-between; padding: 14px 32px; background: rgba(250, 247, 240, 0.9); backdrop-filter: blur(8px); box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06); } .brand { display: flex; align-items: center; gap: 10px; } .brand-mark { width: 30px; height: 30px; border-radius: 8px; background: linear-gradient(135deg, var(--green), var(--green-light)); position: relative; } .brand-mark::after { content: ""; position: absolute; top: 50%; left: 50%; width: 14px; height: 9px; transform: translate(-50%, -50%); border-radius: 50% 50% 0 0 / 100% 100% 0 0; background: var(--white); opacity: 0.9; } .brand-name { font-size: 20px; font-weight: 700; letter-spacing: 2px; color: var(--green-dark); } .site-nav { display: flex; gap: 28px; } .site-nav a { color: var(--ink-soft); text-decoration: none; font-size: 15px; transition: color 0.2s; } .site-nav a:hover { color: var(--green); } /* ===== 首屏 Hero ===== */ .hero { position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden; } .hero-bg { position: absolute; inset: 0; background: url("../img/hero-farmland.jpg") center / cover no-repeat; } .hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(16, 46, 18, 0.45), rgba(16, 46, 18, 0.55)); } .hero-content { position: relative; z-index: 1; padding: 24px; max-width: 860px; color: var(--white); } .hero-eyebrow { font-size: 15px; letter-spacing: 4px; opacity: 0.92; margin-bottom: 18px; } .hero h1 { font-size: clamp(1.8rem, 4.5vw, 3.2rem); line-height: 1.35; font-weight: 700; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35); margin-bottom: 20px; } .hero-sub { font-size: clamp(1rem, 2vw, 1.2rem); opacity: 0.95; margin-bottom: 32px; } .btn { display: inline-block; padding: 13px 38px; border-radius: 999px; background: var(--green); color: var(--white); text-decoration: none; font-size: 16px; font-weight: 600; letter-spacing: 1px; box-shadow: var(--shadow); transition: background 0.2s, transform 0.2s; } .btn:hover { background: var(--green-dark); transform: translateY(-2px); } /* ===== 通用 section ===== */ .section-inner { max-width: 960px; margin: 0 auto; padding: 0 24px; } section { padding: 96px 0; } h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--green-dark); text-align: center; margin-bottom: 40px; position: relative; } h2::after { content: ""; display: block; width: 48px; height: 4px; border-radius: 2px; background: var(--green-light); margin: 14px auto 0; } /* ===== 关于 ===== */ .about { background: var(--white); } .about-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; } .about-text p { color: var(--ink-soft); font-size: 16px; margin-bottom: 16px; text-align: justify; } .about-img { border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); } /* ===== 联系 ===== */ .contact { background: var(--cream); } .contact-tip { text-align: center; color: var(--ink-soft); margin: -20px 0 32px; font-size: 14px; } .contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; } .contact-card { background: var(--white); border-radius: 14px; padding: 28px 20px; text-align: center; box-shadow: var(--shadow); } .contact-card h3 { color: var(--green); font-size: 15px; letter-spacing: 1px; margin-bottom: 8px; } .contact-card p { color: var(--ink-soft); font-size: 14px; } /* ===== 页脚 ===== */ .site-footer { padding: 32px 24px; text-align: center; background: var(--green-dark); color: rgba(255, 255, 255, 0.85); font-size: 13px; } .site-footer .footer-note { margin-top: 4px; opacity: 0.7; } .site-footer .beian-link { color: rgba(255, 255, 255, 0.85); text-decoration: none; } .site-footer .beian-link:hover { text-decoration: underline; } /* ===== 响应式 ===== */ @media (max-width: 768px) { .hero { min-height: 60vh; } .about-grid { grid-template-columns: 1fr; gap: 28px; } .contact-cards { grid-template-columns: 1fr; gap: 16px; } section { padding: 64px 0; } } @media (max-width: 480px) { .site-header { padding: 12px 18px; } .site-nav { gap: 18px; } .site-nav a { font-size: 14px; } .brand-name { font-size: 18px; } }