/** * TDesign 主页/售卖前端全局样式 * 落地页 / 顶栏 / 页脚按 guanwang1(科技企业官网)风格移植: * - 绿色主色 #42b983、浅色背景、圆角卡片、扁平留白 * - 轮播 hero、核心优势、新闻预览、客户评价区块 * 其余页面(套餐 / 余额 / 账户 / 官网内容)沿用 hd-* 通用类 */ :root { --hd-brand: #42b983; --hd-brand-light: #e6f7f0; --hd-brand-dark: #359c6d; --hd-text: #181818; --hd-text-2: #595959; --hd-text-3: #8c8c8c; --hd-border: #e7e7e7; --hd-bg: #ffffff; --hd-surface: #ffffff; --hd-radius: 6px; --hd-radius-lg: 10px; --hd-radius-xl: 16px; --hd-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 4px 12px rgba(0, 0, 0, 0.04); --hd-shadow-lg: 0 8px 28px rgba(15, 23, 42, 0.08); --hd-ease: cubic-bezier(0.4, 0, 0.2, 1); --hd-dur: 0.2s; /* 覆盖 TDesign 品牌色为官网绿色(仅 home scope 生效) * 必须完整覆盖调色板 --td-brand-color-1~10 及派生变量, * 否则组件默认色仍读取默认蓝色系 */ --td-brand-color-1: #e6f7f0; --td-brand-color-2: #c9efe0; --td-brand-color-3: #9fdfc3; --td-brand-color-4: #6fcfa3; --td-brand-color-5: #4bc18e; --td-brand-color-6: #42b983; --td-brand-color-7: #359c6d; --td-brand-color-8: #2c815c; --td-brand-color-9: #23674a; --td-brand-color-10: #1a4d38; --td-brand-color: #42b983; --td-brand-color-hover: #359c6d; --td-brand-color-active: #2c815c; --td-brand-color-focus: rgba(66, 185, 131, 0.2); --td-brand-color-disabled: rgba(66, 185, 131, 0.4); --td-brand-color-light: #e6f7f0; --td-brand-color-light-hover: #c9efe0; --td-text-color-brand: #42b983; --td-text-color-link: #359c6d; /* 兼容旧命名(部分组件仍引用) */ --td-brand: #42b983; --td-brand-light: #e6f7f0; --td-brand-dark: #359c6d; --td-brand-hover: #359c6d; --td-brand-active: #2c815c; --td-brand-focus: rgba(66, 185, 131, 0.2); } /* ============ 布局容器 ============ */ .hd-shell { display: flex; flex-direction: column; min-height: 100vh; background: #fff; } /* guanwang1 容器:1200px */ .container { max-width: 1200px; margin: 0 auto; padding: 0 20px; } /* 兼容旧页面容器(与 container 统一宽度) */ .hd-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; } /* ============ 顶栏(guanwang1 Header 移植) ============ */ .hd-nav { background: rgba(255, 255, 255, 0.8); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); position: sticky; top: 0; z-index: 100; } .hd-nav-inner { display: flex; justify-content: space-between; align-items: center; height: 70px; gap: 16px; } .hd-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; } .hd-brand:hover { text-decoration: none; } .hd-brand h1 { color: #42b983; margin: 0; font-size: 24px; font-weight: 700; } .hd-brand-logo { width: 28px; height: 28px; object-fit: contain; } .hd-nav-right { display: flex; align-items: center; gap: 18px; } .hd-nav-list { display: flex; align-items: center; list-style: none; margin: 0; padding: 0; gap: 30px; } .hd-nav-list a { text-decoration: none; color: #333; font-weight: 500; font-size: 14px; transition: color 0.3s; position: relative; } .hd-nav-list a:hover, .hd-nav-list a.active { color: #42b983; text-decoration: none; } .hd-nav-list a::after { content: ''; position: absolute; bottom: -5px; left: 0; width: 0; height: 2px; background-color: #42b983; transition: width 0.3s; } .hd-nav-list a:hover::after, .hd-nav-list a.active::after { width: 100%; } .hd-nav-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; } .hd-user-name { font-size: 13px; color: #666; margin-right: 2px; } /* 用户中心入口(user_info 独立后台) */ .hd-account-link { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: #1f7a4d; font-weight: 600; padding: 4px 10px; border-radius: 6px; text-decoration: none; transition: background var(--td-dur, 0.2s) ease, color var(--td-dur, 0.2s) ease; } .hd-account-link:hover { background: rgba(31, 122, 77, 0.08); text-decoration: none; } .hd-account-link i { font-size: 16px; } .hd-menu-toggle { display: none; flex-direction: column; cursor: pointer; background: none; border: none; padding: 6px; } .hd-menu-toggle span { width: 25px; height: 3px; background-color: #333; margin: 3px 0; transition: 0.3s; } .hd-menu-toggle.active span:nth-child(1) { transform: translateY(9px) rotate(45deg); } .hd-menu-toggle.active span:nth-child(2) { opacity: 0; } .hd-menu-toggle.active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); } /* ============ 主内容 ============ */ .hd-main { flex: 1; } /* ============ 页脚(guanwang1 Footer 移植) ============ */ .hd-footer { background-color: #f8f9fa; color: #333; padding: 40px 0 20px; margin-top: auto; } .hd-footer-content { display: flex; justify-content: space-between; flex-wrap: wrap; margin-bottom: 40px; gap: 30px; } .hd-footer-section { flex: 1; min-width: 250px; margin-bottom: 20px; padding: 20px; background-color: #fff; border: 1px solid #e9ecef; } .hd-footer-section h3, .hd-footer-section h4 { color: #2c3e50; margin-bottom: 15px; padding-bottom: 10px; border-bottom: 2px solid #42b983; } .hd-footer-section h3 { margin-top: 0; font-size: 20px; } .hd-footer-section h4 { margin-top: 0; font-size: 16px; } .hd-footer-section p, .hd-footer-section li { color: #666; line-height: 1.6; } .hd-footer-section ul { list-style: none; padding: 0; margin: 0; } .hd-footer-section li { margin-bottom: 8px; } .hd-footer-section a { text-decoration: none; color: #666; transition: color 0.3s; position: relative; } .hd-quick-links a { color: #42b983; } .hd-footer-section a::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 1px; background: #42b983; transition: width 0.3s ease; } .hd-footer-section a:hover { color: #42b983; } .hd-footer-section a:hover::after { width: 100%; } .hd-social-links { display: flex; gap: 15px; margin-top: 20px; } .hd-social-link { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; color: #666; font-size: 18px; transition: all 0.3s ease; text-decoration: none; border-radius: 4px; } .hd-social-link:hover { color: #42b983; transform: translateY(-2px); } .hd-contact-item { display: flex; align-items: center; margin-bottom: 15px; } .hd-contact-item .icon { font-size: 18px; margin-right: 15px; width: 24px; text-align: center; color: #42b983; } .hd-footer-bottom { border-top: 1px solid #e9ecef; padding-top: 20px; text-align: center; color: #666; display: flex; flex-direction: column; align-items: center; gap: 10px; } .hd-footer-beians { display: flex; gap: 20px; font-size: 14px; } .hd-footer-beians a { color: #666; text-decoration: none; display: flex; align-items: center; gap: 5px; transition: color 0.3s ease; } .hd-footer-beians a:hover { color: #42b983; } .hd-back-to-top { display: flex; align-items: center; gap: 5px; background-color: #e9ecef; padding: 8px 15px; cursor: pointer; transition: all 0.3s ease; border: none; font-size: 14px; } .hd-back-to-top:hover { background-color: #42b983; color: white; } /* ============ 落地页(guanwang1 Home 移植) ============ */ .home { flex: 1; } .section { padding: 80px 0; } .section-header { text-align: center; margin-bottom: 50px; } .section-title { font-size: 2rem; margin-bottom: 20px; color: #333; position: relative; padding-bottom: 15px; font-weight: 700; } .section-title:after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 50px; height: 3px; background-color: #42b983; } .section-subtitle { font-size: 1.1rem; color: #666; max-width: 700px; margin: 0 auto; line-height: 1.6; } /* ---- Hero 轮播 ---- */ .hero { position: relative; color: white; height: 500px; animation: hdFadeIn 0.8s ease-out; } .carousel { position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; } .carousel-inner { position: relative; width: 100%; height: 100%; } .carousel-item { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1s ease-in-out; } .carousel-item.active { opacity: 1; } .carousel-bg { width: 100%; height: 100%; background-size: cover; background-position: center; } .carousel-controls { position: absolute; top: 50%; width: 100%; display: flex; justify-content: space-between; transform: translateY(-50%); padding: 0 20px; z-index: 10; } .carousel-btn { background: rgba(0, 0, 0, 0.5); color: white; border: none; width: 50px; height: 50px; border-radius: 50%; font-size: 24px; cursor: pointer; transition: all 0.3s ease; line-height: 1; } .carousel-btn:hover { background: rgba(0, 0, 0, 0.8); transform: scale(1.1); } .carousel-indicators { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; z-index: 10; } .carousel-indicators span { width: 12px; height: 12px; border-radius: 50%; background: rgba(255, 255, 255, 0.5); cursor: pointer; transition: all 0.3s ease; } .carousel-indicators span.active { background: white; transform: scale(1.2); } .carousel-caption { position: absolute; top: 40%; left: 50%; transform: translate(-50%, -50%); text-align: center; z-index: 2; color: white; width: 80%; max-width: 800px; padding: 20px; } .carousel-title { font-size: 2.5rem; font-weight: 700; margin-bottom: 15px; text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5); } .carousel-subtitle { font-size: 1.2rem; margin-bottom: 10px; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5); } .carousel-description { font-size: 1rem; margin-bottom: 30px; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5); line-height: 1.6; } .hero-buttons { display: flex; justify-content: center; gap: 20px; margin-top: 30px; } .btn { display: inline-block; padding: 12px 30px; border-radius: 30px; text-decoration: none; font-weight: 500; transition: all 0.4s ease; border: none; cursor: pointer; font-size: 1rem; } .btn:hover { text-decoration: none; } .btn-primary { background-color: #42b983; color: white; } .btn-primary:hover { background-color: #359c6d; transform: translateY(-3px); box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15); } .btn-secondary { background-color: transparent; color: white; border: 2px solid white; } .btn-secondary:hover { background-color: rgba(255, 255, 255, 0.1); transform: translateY(-3px); box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1); } .btn-light { background-color: #fff; color: #42b983; } .btn-light:hover { transform: translateY(-3px); box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15); } @keyframes hdFadeIn { from { opacity: 0; } to { opacity: 1; } } /* ---- 公告 ---- */ .notice-strip { padding: 24px 0 0; } .hd-notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 18px; border: 1px solid var(--hd-border); border-radius: var(--hd-radius-xl); background: var(--hd-surface); box-shadow: var(--hd-shadow); } .hd-notice i { font-size: 20px; line-height: 1.5; flex-shrink: 0; color: var(--hd-brand); } .hd-notice .txt { color: var(--hd-text-2); font-size: 14px; white-space: pre-line; word-break: break-word; } /* ---- 套餐区 ---- */ .plans-section { background: #fff; } .hd-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; } .hd-plan-card { background: var(--hd-surface); border: 1px solid var(--hd-border); border-radius: var(--hd-radius-xl); display: flex; flex-direction: column; overflow: hidden; transition: box-shadow var(--hd-dur) var(--hd-ease), transform var(--hd-dur) var(--hd-ease); } .hd-plan-card:hover { box-shadow: var(--hd-shadow-lg); transform: translateY(-2px); } .hd-plan-card.pop { border-color: var(--hd-brand); box-shadow: 0 0 0 1px var(--hd-brand); } .hd-plan-top { padding: 22px 22px 16px; border-bottom: 1px solid var(--hd-border); } .hd-plan-chip { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--hd-brand-light); color: var(--hd-brand); font-size: 12px; font-weight: 700; margin-bottom: 8px; } .hd-plan-top h3 { font-size: 1.1rem; letter-spacing: -0.02em; margin: 0 0 4px; color: var(--hd-text); } .hd-plan-desc { color: var(--hd-text-3); font-size: 13px; min-height: 40px; line-height: 1.6; /* 简介 li 列表:每项独占一行、带圆点 */ ul { margin: 4px 0; padding-left: 16px; } li { display: list-item; list-style: disc; margin: 2px 0; } p { margin: 2px 0; } } .hd-plan-body { padding: 18px 22px 22px; display: flex; flex-direction: column; flex: 1; } .hd-plan-price { margin-bottom: 14px; } .hd-plan-price .num { font-size: 1.7rem; font-weight: 800; letter-spacing: -0.03em; color: var(--hd-text); } .hd-plan-price .sub { color: var(--hd-text-3); font-size: 12px; } .hd-plan-feats { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 8px; flex: 1; } .hd-plan-feats li { display: flex; gap: 8px; font-size: 13px; color: var(--hd-text-2); } .hd-plan-feats li .ok { color: var(--hd-brand); flex-shrink: 0; } .hd-plan-feats li .off { color: #c2c7cf; flex-shrink: 0; } .hd-plan-body .t-button { height: 44px; font-size: 15px; border-radius: var(--hd-radius-lg); } /* ---- 核心优势 ---- */ .features { background-color: #f8f9fa; } .features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; } .feature-card { background: rgba(255, 255, 255, 0.9); border-radius: 10px; padding: 30px; text-align: center; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05); transition: all 0.4s ease; border: 1px solid #eee; } .feature-card:hover { transform: translateY(-10px); box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1); } .feature-icon { font-size: 3rem; margin-bottom: 20px; color: #42b983; line-height: 1; } .feature-card h3 { font-size: 1.5rem; margin-bottom: 15px; color: #333; font-weight: 600; } .feature-card p { color: #666; line-height: 1.6; margin: 0; } /* ---- 新闻预览 ---- */ .news-preview { background-color: #f8f9fa; } .news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; } .news-card { background: white; border-radius: 8px; transition: all 0.3s ease; border: 1px solid #e0e0e0; padding: 20px; box-shadow: none; cursor: pointer; } .news-card:hover { transform: translateY(-5px); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08); border-color: #42b983; } .news-date { color: #42b983; font-size: 0.85rem; margin-bottom: 8px; display: block; font-weight: 600; letter-spacing: 0.5px; } .news-card h3 { font-size: 1.3rem; margin-bottom: 12px; color: #2c3e50; line-height: 1.4; font-weight: 600; } .news-excerpt { color: #555; line-height: 1.6; margin-bottom: 16px; font-size: 0.9rem; } .read-more { color: #42b983; text-decoration: none; font-weight: 600; transition: all 0.3s ease; display: inline-block; padding: 8px 0; border-bottom: 1px solid transparent; cursor: pointer; } .read-more:hover { color: #359c6d; border-bottom-color: #359c6d; } .more-news { color: #42b983; text-decoration: none; font-weight: 500; transition: color 0.3s ease; display: inline-block; margin-top: 20px; font-size: 1.1rem; } .more-news:hover { color: #359c6d; } /* ---- 客户评价 ---- */ .testimonials { background-color: #fff; } .testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; } .testimonial-card { background: #ffffff; padding: 24px; transition: all 0.3s ease; border: 1px solid #e2e8f0; position: relative; border-radius: 8px; } .testimonial-card:hover { transform: translateY(-4px); box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1); border-color: #cbd5e0; } .testimonial-header { display: flex; align-items: center; margin-bottom: 16px; } .client-avatar { width: 50px; height: 50px; border-radius: 50%; overflow: hidden; flex-shrink: 0; background: linear-gradient(135deg, #42b983, #64b5f6); display: flex; align-items: center; justify-content: center; margin-right: 12px; } .avatar-placeholder { font-size: 1.2rem; font-weight: 600; color: white; } .client-details { flex: 1; } .client-name { font-weight: 600; color: #333; margin-bottom: 4px; font-size: 1rem; } .client-title { color: #64748b; font-size: 0.85rem; } .testimonial-text { color: #334155; line-height: 1.6; margin-bottom: 20px; position: relative; padding-top: 0; } .testimonial-text::before { content: '"'; position: absolute; top: -20px; left: -10px; font-size: 4rem; color: rgba(66, 185, 131, 0.15); font-family: Georgia, serif; line-height: 1; } .quote-icon { position: absolute; bottom: 20px; right: 20px; color: rgba(66, 185, 131, 0.3); font-size: 1.5rem; } /* ---- 底部 CTA ---- */ .hd-cta { text-align: center; padding: 46px 28px; background: linear-gradient(135deg, #42b983 0%, #67cfa2 100%); border-radius: var(--hd-radius-xl); color: #fff; box-shadow: 0 6px 20px rgba(66, 185, 131, 0.25); } .hd-cta h3 { margin: 0 0 8px; font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; } .hd-cta p { margin: 0 0 20px; opacity: 0.9; font-size: 14px; } .hd-cta .btn { margin-top: 4px; } /* ---- 空状态 ---- */ .hd-empty { text-align: center; padding: 48px 16px; color: var(--hd-text-3); font-size: 13px; } .hd-empty i { font-size: 36px; display: block; margin-bottom: 8px; color: #cbd5e1; } /* ============ 通用页面容器 ============ */ .hd-page { padding: 24px 0; } .hd-page-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; gap: 12px; flex-wrap: wrap; } .hd-page-title { font-size: 18px; font-weight: 700; margin: 0; color: var(--hd-text); } .hd-page-subtitle { font-size: 13px; color: var(--hd-text-2); margin: 2px 0 0; } /* 卡片 */ .hd-card { background: var(--hd-surface); border: 1px solid var(--hd-border); border-radius: var(--hd-radius-lg); box-shadow: var(--hd-shadow); overflow: hidden; } .hd-card-body { padding: 20px; } .hd-card-body--pad-lg { padding: 28px; } /* 登录/注册页 */ .hd-auth-wrap { max-width: 420px; margin: 0 auto; padding: 24px 0; } .hd-auth-title { font-size: 20px; font-weight: 700; text-align: center; margin: 0 0 4px; } .hd-auth-sub { text-align: center; color: var(--hd-text-3); font-size: 13px; margin: 0 0 22px; } .hd-auth-foot { text-align: center; margin-top: 16px; font-size: 13px; color: var(--hd-text-2); } /* 余额统计卡 */ .hd-balance-card { display: flex; align-items: center; justify-content: space-between; padding: 26px 30px; background: linear-gradient(135deg, #42b983 0%, #67cfa2 100%); border-radius: var(--hd-radius-xl); color: #fff; box-shadow: 0 6px 20px rgba(66, 185, 131, 0.25); } .hd-balance-card .label { font-size: 13px; opacity: 0.85; } .hd-balance-card .value { font-size: 2.2rem; font-weight: 800; margin-top: 4px; } .hd-balance-actions { display: flex; gap: 8px; } /* ============ 响应式 ============ */ @media (max-width: 768px) { .section { padding: 60px 0; } .section-title { font-size: 1.7rem; } .carousel-title { font-size: 1.8rem; } .carousel-subtitle { font-size: 1rem; } .carousel-caption { top: 50%; width: 90%; padding: 15px; } .carousel-description { font-size: 0.9rem; margin-bottom: 20px; } .hero { height: 50vh; min-height: 300px; } .hero-buttons { flex-direction: column; gap: 15px; margin-top: 20px; } .btn { width: 100%; max-width: 250px; margin: 0 auto; padding: 10px 20px; font-size: 0.9rem; } .carousel-btn { width: 40px; height: 40px; font-size: 20px; } .news-grid, .testimonials-grid, .features-grid { grid-template-columns: 1fr; } .testimonial-card { text-align: center; } .testimonial-header { flex-direction: column; } .client-avatar { margin-right: 0; margin-bottom: 15px; } .client-details { text-align: center; } .quote-icon { left: 50%; right: auto; transform: translateX(-50%); } .carousel-indicators { bottom: 15px; } .container, .hd-container { padding: 0 15px; } /* 页脚单列 */ .hd-footer-content { flex-direction: column; gap: 20px; } .hd-footer-section { min-width: 100%; } .hd-social-links { justify-content: center; } /* 移动端导航:全屏下拉 */ .hd-nav-list { position: fixed; top: 70px; left: -100%; width: 100%; height: calc(100vh - 70px); background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); flex-direction: column; align-items: center; padding-top: 40px; transition: left 0.3s; gap: 0; z-index: 99; } .hd-nav-list.active { left: 0; } .hd-nav-list li { margin: 15px 0; } .hd-menu-toggle { display: flex; } } @media (max-width: 640px) { .hd-plans { grid-template-columns: 1fr; } .hd-balance-card { flex-direction: column; gap: 14px; align-items: flex-start; } }