/* === theme263 沙漠绿洲生态 === */
:root { --color-primary: #40A868; --color-primary-dark: #286838; --color-accent: #D8B870; --color-sky: #60B0D0; --color-text-dark: #2A2818; --color-text-muted: #6B6850; --color-bg-warm: #fcf9f2; --color-border: #d8d0b8; --radius-sm: 6px; --radius-md: 12px; --radius-lg: 20px; --shadow-sm: 0 2px 10px rgba(60,40,10,0.06); --font-heading: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif; --font-body: 'Noto Sans SC', -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif; }
* { box-sizing: border-box; } html { scroll-behavior: smooth; } body { font-family: var(--font-body); font-size: 15px; line-height: 1.8; color: var(--color-text-dark); background: var(--color-bg-warm); margin: 0; } a { color: var(--color-primary-dark); } a:hover { color: var(--color-accent); } .container { max-width: 1200px; margin: 0 auto; padding: 0 15px; } h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); font-weight: 600; } .skip-link { position: absolute; top: -50px; left: 8px; z-index: 9999; padding: 10px 18px; background: var(--color-primary); color: #fff !important; border-radius: 0 0 8px 8px; } a:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.site-header { background: #fff; border-bottom: 3px solid var(--color-accent); position: sticky; top: 0; z-index: 1000; } .site-header .container { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; } .site-logo img { height: 44px; } .site-logo-text { display: inline-block; font-size: 22px; font-weight: 700; color: var(--color-primary-dark); letter-spacing: 1px; line-height: 1.3; } .main-nav { background: var(--color-primary-dark); } .main-menu { display: flex; list-style: none; } .main-menu > li > a { display: block; padding: 13px 22px; color: rgba(255,255,255,0.9); font-family: var(--font-heading); font-size: 17px; transition: background 0.2s; } .main-menu > li > a:hover { background: var(--color-accent); color: #2A2818; } .main-menu .dropdown { position: relative; } .main-menu .dropdown-menu { display: none; position: absolute; top: 100%; left: 0; z-index: 999; min-width: 190px; max-height: 360px; overflow-y: auto; overscroll-behavior: contain; background: #fff; border: 1px solid var(--color-border); border-radius: 8px; box-shadow: 0 10px 30px rgba(60,40,10,0.15); list-style: none; padding: 6px 0; margin: 0; } .main-menu .dropdown:hover .dropdown-menu { display: block; } .main-menu .dropdown-menu a { display: block; padding: 9px 18px; color: var(--color-text-muted); font-size: 13px; white-space: nowrap; } .main-menu .dropdown-menu a:hover { background: #f0f8f2; color: var(--color-primary-dark); } .main-menu .caret { margin-left: 6px; }
.hero-section { background: linear-gradient(160deg, var(--color-primary-dark) 0%, #2e7a46 55%, #1f5a30 100%), radial-gradient(circle at 50% 18%, rgba(216,184,112,0.18), transparent 58%); padding: 120px 0 100px; text-align: center; color: #fff; } .hero-content { max-width: 780px; margin: 0 auto; } .hero-badge { display: inline-block; padding: 6px 18px; border: 2px solid var(--color-accent); border-radius: 20px; font-family: var(--font-heading); font-size: 15px; letter-spacing: 3px; color: var(--color-accent); margin-bottom: 20px; } .hero-title { font-family: var(--font-heading); font-size: 34px; } .hero-subtitle { font-size: 16px; color: rgba(255,255,255,0.85); margin: 18px auto 0; max-width: 640px; line-height: 1.9; } .hero-actions { display: flex; gap: 16px; justify-content: center; margin-top: 32px; flex-wrap: wrap; } .btn-hero-primary { padding: 14px 36px; background: var(--color-primary); color: #fff !important; font-family: var(--font-heading); font-size: 18px; border-radius: 20px; border: none; } .btn-hero-primary:hover { background: #309050; } .btn-hero-secondary { padding: 14px 36px; background: transparent; color: #fff !important; border: 2px solid rgba(255,255,255,0.5); border-radius: 20px; font-family: var(--font-heading); font-size: 18px; }
.section-works, .section-testimonials, .section-stats, .section-quote, .section-cta { padding: 70px 0; } .section-stats { background: linear-gradient(135deg, var(--color-primary), var(--color-sky)); padding: 50px 0; } .section-cta { background: linear-gradient(160deg, var(--color-primary-dark) 0%, #2e7a46 60%, #1f5a30 100%), radial-gradient(circle at 50% 30%, rgba(216,184,112,0.15), transparent 60%); text-align: center; color: #fff; } .section-cta h2 { font-family: var(--font-heading); font-size: 28px; } .section-desc { max-width: 640px; margin: 14px auto 0; color: var(--color-text-muted); }
.section-head { text-align: center; margin-bottom: 44px; } .section-label { font-family: var(--font-heading); font-size: 15px; letter-spacing: 3px; color: var(--color-primary); } .section-title { font-family: var(--font-heading); font-size: 30px; } .products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; } .product-card { background: #fff; border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--color-border); transition: transform 0.3s; display: flex; flex-direction: column; } .product-card:hover { transform: translateY(-4px); } .product-img { display: block; height: 200px; overflow: hidden; } .product-img img { width: 100%; height: 100%; object-fit: cover; display: block; } .oasis-gradient { width: 100%; height: 100%; } .os-water { background: linear-gradient(135deg, #60B0D0, #3080A0, #80D0F0, #4898C0); } .os-date { background: linear-gradient(135deg, #D8B870, #B89840, #F0D890, #C8A850); } .os-plant { background: linear-gradient(135deg, #40A868, #207030, #58C080, #308848); } .os-kanat { background: linear-gradient(135deg, #C8A868, #A88848, #D8B878, #B89858); } .os-desertify { background: linear-gradient(135deg, #E0C090, #C0A070, #F0D8A8, #D0B080); } .os-eye { background: linear-gradient(135deg, #6088B0, #406898, #80A8D0, #5078A8); } .product-body { flex: 1; min-width: 0; padding: 16px; } .product-badge { display: inline-block; padding: 2px 10px; background: #f0f8f2; color: var(--color-primary-dark); font-family: var(--font-heading); font-size: 13px; border-radius: 12px; } .product-body h3 { font-size: 16px; margin: 10px 0 8px; line-height: 1.5; word-break: break-word; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; } .product-body h3 a { color: var(--color-text-dark); } .product-body h3 a:hover { color: var(--color-primary-dark); } .product-body p { color: var(--color-text-muted); font-size: 13px; line-height: 1.8; margin: 0 0 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; word-break: break-word; } .article-meta { display: flex; gap: 16px; color: var(--color-text-muted); font-size: 12px; align-items: center; flex-wrap: wrap; } .meta-cat { color: var(--color-primary-dark); }
.stats-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; text-align: center; } .stat-number { display: block; font-family: var(--font-heading); font-size: 32px; color: #fff; } .stat-label { display: block; color: rgba(255,255,255,0.85); font-size: 13px; margin-top: 6px; } .testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; } .testimonial-card { background: #fff; padding: 28px; border-radius: var(--radius-md); box-shadow: var(--shadow-sm); border-top: 3px solid var(--color-primary); } .tm-quote { font-size: 24px; color: var(--color-accent); opacity: 0.3; } .tm-text { font-size: 14px; color: var(--color-text-muted); line-height: 1.9; } .tm-author { display: flex; align-items: center; gap: 12px; margin-top: 16px; } .tm-avatar { width: 40px; height: 40px; background: var(--color-primary); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--font-heading); font-size: 18px; } .oasis-banner { background: #fff; border-radius: var(--radius-md); padding: 36px; box-shadow: var(--shadow-sm); border-left: 4px solid var(--color-primary); } .oasis-banner blockquote p { font-family: var(--font-heading); font-size: 18px; line-height: 2; }
/* standard blocks */ .article-card-list { display: flex; flex-direction: column; gap: 20px; } .article-card { display: flex; background: #fff; border-radius: var(--radius-md); border: 1px solid var(--color-border); } .article-card:hover { transform: translateY(-2px); } .article-cover { flex-shrink: 0; width: 240px; height: 160px; overflow: hidden; } .article-cover img { width: 100%; height: 100%; object-fit: cover; } .article-body { flex: 1; min-width: 0; padding: 18px 22px; } .article-detail { background: #fff; padding: 32px; border-radius: var(--radius-md); border: 1px solid var(--color-border); } .article-detail-title { font-family: var(--font-heading); font-size: 26px; } .widget { background: #fff; border-radius: var(--radius-md); padding: 18px 20px; margin-bottom: 20px; border: 1px solid var(--color-border); } .widget-title { font-family: var(--font-heading); font-size: 18px; border-bottom: 2px solid var(--color-accent); } .widget ul { list-style: none; margin: 0; padding: 0; } .widget a { display: block; color: var(--color-text-muted); font-size: 13px; line-height: 2; } .widget a:hover { color: var(--color-primary-dark); } .widget li { border-bottom: 1px dashed var(--color-border); padding: 8px 0; } .article-title { font-family: var(--font-heading); font-size: 18px; margin: 0 0 8px; } .article-title a { color: var(--color-text-dark); } .article-title a:hover { color: var(--color-primary-dark); } .article-intro { color: var(--color-text-muted); font-size: 13px; line-height: 1.8; margin: 0 0 10px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; } .pagination-box { display: flex; justify-content: center; gap: 8px; margin-top: 30px; flex-wrap: wrap; } .pagination-box a, .pagination-box span { padding: 8px 14px; background: #fff; border: 1px solid var(--color-border); color: var(--color-text-muted); border-radius: 6px; } .pagination-box .current, .pagination-box a:hover { color: #fff; background: var(--color-primary); border-color: var(--color-primary); } .page-banner { background: linear-gradient(160deg, var(--color-primary-dark), #2e7a46); padding: 60px 0 36px; text-align: center; color: #fff; } .page-banner-title { font-family: var(--font-heading); font-size: 28px; margin: 0; } .breadcrumb-inline { margin-top: 12px; font-size: 13px; color: rgba(255,255,255,0.75); } .breadcrumb-inline a { color: var(--color-accent); } .page-container { padding: 36px 0 56px; } .detail-cat { display: inline-block; padding: 3px 12px; background: #f0f8f2; color: var(--color-primary-dark); font-size: 12px; border-radius: 12px; margin-bottom: 12px; } .article-detail-meta { display: flex; gap: 18px; color: var(--color-text-muted); font-size: 13px; padding-bottom: 16px; border-bottom: 1px solid var(--color-border); margin-bottom: 20px; flex-wrap: wrap; } .article-detail-content { line-height: 2; font-size: 15px; } .article-detail-content h2, .article-detail-content h3 { color: var(--color-primary-dark); } .article-detail-content img { max-width: 100%; border-radius: 8px; } .detail-nav { display: flex; justify-content: space-between; gap: 16px; margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--color-border); } .dn-item { flex: 1; min-width: 0; max-width: 50%; display: flex; flex-direction: column; overflow: hidden; color: var(--color-text-muted); } .dn-label { display: block; font-size: 12px; } .dn-title { display: block; color: var(--color-text-dark); font-size: 14px; margin-top: 4px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .dn-prev { align-items: flex-start; } .dn-next { align-items: flex-end; text-align: right; } .empty { color: var(--color-text-muted); text-align: center; padding: 60px 0; } .site-footer { background: var(--color-primary-dark); color: rgba(255,255,255,0.7); padding: 50px 0 0; } .footer-row { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 32px; padding-bottom: 36px; } .footer-col { flex: 1 1 200px; min-width: 200px; } .footer-brand { flex: 1.4 1 260px; } .footer-col h4 { color: #fff; font-size: 16px; margin: 0 0 12px; border-left: 3px solid var(--color-accent); padding-left: 10px; } .footer-col a { display: block; color: rgba(255,255,255,0.7); font-size: 13px; line-height: 2; } .footer-col a:hover { color: var(--color-accent); } .footer-col p { font-size: 13px; line-height: 1.9; } .site-footer .site-logo-text { color: #fff; } .footer-bottom { padding: 16px 0; border-top: 1px solid rgba(255,255,255,0.15); display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 12px; } .footer-bottom a { color: rgba(255,255,255,0.7); } #floatbtn { position: fixed; right: 24px; bottom: 28px; z-index: 999; } #back-to-top { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; background: linear-gradient(135deg, var(--color-primary), #309050); color: #fff !important; font-size: 20px; box-shadow: 0 6px 18px rgba(40,104,56,0.35); transition: all 0.25s ease; text-decoration: none; line-height: 1; } #back-to-top i { line-height: 1; display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; } #back-to-top:hover { transform: translateY(-4px); box-shadow: 0 10px 26px rgba(40,104,56,0.5); } @media (max-width: 768px) { .products-grid, .testimonial-grid, .stats-grid { grid-template-columns: 1fr; } .stats-grid { grid-template-columns: repeat(3, 1fr); } .article-card { flex-direction: column; } .article-cover { width: 100%; height: 180px; } .footer-row { flex-direction: column; gap: 24px; } #floatbtn { right: 16px; bottom: 18px; } #back-to-top { width: 42px; height: 42px; font-size: 17px; } }
