:root { --primary: #1EAD6F; --primary-dark: #178F5B; --primary-light: #E8F8F0; --secondary: #222222; --accent: #5341E3; --bg-light: #F8F9FA; --bg-white: #FFFFFF; --text-main: #222222; --text-secondary: #666666; --border: #E5E5E5; --shadow: 0 2px 12px rgba(0,0,0,0.08); --radius: 8px; } * { box-sizing: border-box; margin: 0; padding: 0; } body { font-family: 'Noto Sans', Inter, 'SF Pro', Roboto, 'Helvetica Neue', Helvetica, Tahoma, Arial, 'PingFang SC', 'Microsoft YaHei', sans-serif; line-height: 1.75; color: #555; background: #fff; } .container { max-width: 1200px; margin: 0 auto; padding: 0 24px; } img { max-width: 100%; height: auto; display: block; } a { color: var(--accent); text-decoration: none; transition: all 0.2s; } main a:hover:not([class*="btn"]) { color: #3D2FB8; text-decoration: underline; } header a, footer a { color: inherit; } /* Typography */ h1 { font-size: 2.4rem; font-weight: 800; letter-spacing: -0.02em; color: #222; margin-bottom: 1.5rem; line-height: 1.2; } h2 { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.01em; color: #222; margin: 2rem 0 1rem; position: relative; padding-bottom: 12px; } h2::after { content: ''; position: absolute; bottom: 0; left: 0; width: 36px; height: 3px; background: var(--primary); border-radius: 2px; } /* Header */ header { position: sticky; top: 0; height: 72px; background: rgba(255,255,255,0.95); backdrop-filter: blur(8px); border-bottom: 1px solid #F0F0F0; z-index: 1000; display: flex; align-items: center; } .header-inner { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; display: flex; justify-content: space-between; align-items: center; } .header-left { display: flex; align-items: center; gap: 32px; } .header-right { display: flex; align-items: center; gap: 12px; } .logo { display: inline-flex; align-items: center; transition: opacity 0.2s; text-decoration: none; } .logo:hover { opacity: 0.7; } .logo img { height: 24px; width: auto; object-fit: contain; } nav { display: flex; align-items: center; gap: 4px; } nav a { font-size: 0.88rem; font-weight: 500; color: #555 !important; text-decoration: none; padding: 6px 14px; border-radius: 20px; transition: all 0.2s; } nav a:hover { background: #EEEEEE; color: #111 !important; } .btn-pill { padding: 9px 20px; border-radius: 24px; font-size: 0.9rem; font-weight: 600; text-decoration: none; transition: all 0.2s; cursor: pointer; display: inline-block; } .btn-download { border: 1.5px solid #999; color: #222; } .btn-download:hover { border-color: #222; background: #F5F5F5; } .btn-try { background: #1EAD6F; color: white; border: none; } .btn-try:hover { background: #169B62; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(30,173,111,0.2); } @media (max-width: 768px) { .blog-link, .work-link, .btn-download { display: none; } .header-left { gap: 16px; } } /* Guide page */ .page-guide { padding: 80px 0; background: #fff; } .page-body { max-width: 800px; margin: 0 auto; padding: 0 24px; box-sizing: border-box; } .prose { max-width: 800px; margin: 0 auto; line-height: 1.8; color: #333; } .prose h1 { text-align: center; margin-bottom: 2.5rem; font-size: 2.5rem; color: #111; } .prose h2 { margin-top: 4rem; margin-bottom: 1.5rem; font-size: 1.8rem; border-bottom: 2px solid #F0F0F0; padding-bottom: 0.5rem; } .prose h3 { margin-top: 2.5rem; margin-bottom: 1rem; font-size: 1.4rem; } .prose p { margin-bottom: 1.8rem; font-size: 1.05rem; } .prose ul, .prose ol { margin-bottom: 2rem; padding-left: 1.5rem; } .prose li { margin-bottom: 0.8rem; } .prose strong { color: #111; } .prose blockquote { border-left: 4px solid var(--primary); padding: 1rem 2rem; margin: 2rem 0; background: #F9F9F9; font-style: italic; } .prose .note { background: #FFF9E6; border: 1px solid #FFE58F; padding: 1.5rem; border-radius: 12px; margin: 2rem 0; font-size: 0.95rem; } /* Comparison page */ .page-comparison { padding: 80px 0; background: #fff; } .comparison-hero { text-align: center; margin-bottom: 4rem; } .comparison-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 32px; margin-bottom: 60px; } .comparison-table { width: 100%; border-collapse: collapse; margin: 40px 0; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,0.05); } .comparison-table th { background: #F8F9FA; padding: 20px; text-align: left; font-weight: 700; color: #111; border-bottom: 2px solid #EEE; } .comparison-table td { padding: 18px 20px; border-bottom: 1px solid #F0F0F0; font-size: 0.95rem; vertical-align: middle; } .comparison-table tr:last-child td { border-bottom: none; } .comparison-table .feature-name { font-weight: 600; color: #444; width: 30%; } .comparison-table .check-yes { color: #1EAD6F; font-weight: bold; } .comparison-table .check-no { color: #999; } /* Tool page */ .page-tool { background: #fff; } .tool-hero { padding: 80px 0 100px; background: linear-gradient(180deg, #F0FDF4 0%, #F8FAFB 60%, #FFFFFF 100%); text-align: center; } .tool-hero .container { display: flex; flex-direction: column; align-items: center; } .tool-hero h1 { margin: 0 auto 1.5rem; width: 100%; } .tool-hero p { margin: 0 auto 3rem; } .tool-card { max-width: 900px; margin: -48px auto 0; background: #fff; border-radius: 16px; box-shadow: 0 10px 30px rgba(0,0,0,0.08); padding: 40px; border: 1px solid rgba(0,0,0,0.05); text-align: left; position: relative; z-index: 10; } /* Form Elements */ .input-group label { display: block; margin-bottom: 8px; font-weight: 700; color: #333; font-size: 0.9rem; } .input-group input { width: 100%; padding: 12px 16px; border: 1.5px solid var(--border); border-radius: 10px; font-size: 1rem; transition: all 0.2s; } .input-group input:focus { border-color: var(--primary); outline: none; box-shadow: 0 0 0 3px var(--primary-light); } /* Buttons */ .btn-primary { background: var(--primary); color: white; border: none; padding: 14px 28px; border-radius: 12px; font-size: 1rem; font-weight: 700; cursor: pointer; transition: all 0.3s; display: inline-block; text-align: center; } .btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(30,173,111,0.25); } .btn-primary:active { transform: translateY(0); } /* Components */ .data-badge { display: inline-flex; align-items: center; gap: 8px; background: #fff; padding: 6px 16px; border-radius: 20px; box-shadow: 0 4px 12px rgba(0,0,0,0.06); margin-bottom: 24px; font-size: 0.85rem; font-weight: 700; color: var(--primary); } .data-badge-dot { width: 8px; height: 8px; background: var(--primary); border-radius: 50%; display: inline-block; } /* FAQ */ .faq-section { padding: 80px 24px; } .faq-grid { max-width: 800px; margin: 40px auto 0; } .faq-item { border-bottom: 1px solid #EEE; } .faq-question { width: 100%; text-align: left; padding: 24px 0; background: none; border: none; font-size: 1.1rem; font-weight: 600; cursor: pointer; display: flex; justify-content: space-between; align-items: center; color: #222; } .faq-question:hover { color: var(--primary); } .faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease-out; color: #666; font-size: 0.95rem; } .faq-answer p { padding-bottom: 24px; } .faq-icon { font-size: 1.5rem; color: #CCC; transition: transform 0.3s; } /* CTA */ .final-cta { background: linear-gradient(135deg, #1A1A2E 0%, #2D2D44 100%); padding: 72px 0; text-align: center; position: relative; overflow: hidden; color: white; } .final-cta h2 { color: white; font-size: 2rem; margin-bottom: 16px; } .final-cta h2::after { display: none; } .final-cta p { color: rgba(255,255,255,0.7); max-width: 520px; margin: 0 auto 32px; font-size: 1.1rem; } .cta-btn { padding: 14px 40px; border-radius: 28px; font-weight: 700; display: inline-block; background: var(--primary) !important; color: white !important; } .cta-btn:hover { background: var(--primary-dark) !important; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(30,173,111,0.4); } .trust-text { margin-top: 24px; font-size: 0.8rem; color: rgba(255,255,255,0.4); } /* Footer */ footer { background: #FAFAFA; padding: 80px 0 40px; border-top: 1px solid #EEE; color: #444; } .footer-main { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 60px; } .footer-brand { display: flex; flex-direction: column; gap: 24px; } .footer-logo { display: inline-block; margin-bottom: 24px; text-decoration: none; } .footer-logo img { height: 24px; width: auto; object-fit: contain; } .footer-socials { display: flex; gap: 16px; } .footer-socials a { width: 36px; height: 36px; border-radius: 50%; background: #EEE; display: flex; align-items: center; justify-content: center; color: #666; transition: all 0.2s; } .footer-socials a:hover { background: #1EAD6F; color: white; transform: translateY(-3px); } .footer-socials svg { width: 18px; height: 18px; } .footer-h { font-size: 0.95rem; font-weight: 700; color: #111; margin-bottom: 24px; text-transform: uppercase; letter-spacing: 0.5px; } .footer-list { list-style: none; padding: 0; margin: 0; } .footer-list li { margin-bottom: 12px; } .footer-list a { color: #666; text-decoration: none; font-size: 0.9rem; transition: color 0.2s; } .footer-list a:hover { color: #1EAD6F; } .footer-bottom { border-top: 1px solid #EEE; padding-top: 32px; display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; font-size: 0.85rem; color: #888; } .footer-bottom a { color: #888; text-decoration: none; transition: color 0.2s; } .footer-bottom a:hover { color: #222; } .footer-bottom-sep { color: #DDD; } /* End Footer */ /* Related Guides */ .related-guides { background: var(--bg-light); padding: 60px 0; border-top: 1px solid var(--border); } .related-guides h2 { margin-top: 0; margin-bottom: 32px; } .related-guides ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 16px; max-width: 800px; margin: 0 auto; } .related-guides li { background: #fff; border-radius: 8px; border: 1px solid var(--border); transition: all 0.2s; } .related-guides li:hover { box-shadow: var(--shadow); transform: translateY(-2px); } .related-guides a { display: block; padding: 16px 20px; color: var(--accent); font-weight: 600; text-decoration: none; } .related-guides a:hover { text-decoration: underline; } /* ============================================================ GLOBAL COMPONENT LIBRARY v1.0 Use these classes in body HTML. Do NOT redeclare in extraStyles. ============================================================ */ /* -- Page Hero (guide pages) -- */ .c-hero { text-align: center; padding: 72px 0 56px; background: linear-gradient(180deg, #F0FDF4 0%, #FFFFFF 100%); } .c-hero h1 { font-size: 2.8rem; color: #1a202c; margin-bottom: 1rem; line-height: 1.2; } .c-hero .subtitle { color: #666; font-size: 1.15rem; max-width: 700px; margin: 0 auto 2rem; } .c-hero-img { max-width: 680px; margin: 32px auto 0; border-radius: 16px; box-shadow: 0 20px 40px rgba(0,0,0,0.09); border: 1px solid #eee; } /* -- Key Takeaways / Summary Box -- */ .c-takeaway { background: #F9FAFB; border: 1px solid #E5E7EB; border-radius: 16px; padding: 36px 40px; margin: 40px auto; max-width: 800px; } .c-takeaway h3 { margin-bottom: 20px; color: #111; font-size: 1.1rem; } .c-takeaway ul { list-style: none; padding: 0; margin: 0; } .c-takeaway li { margin-bottom: 14px; font-size: 1rem; color: #444; padding-left: 1.5rem; position: relative; } .c-takeaway li::before { content: '✓'; position: absolute; left: 0; color: var(--primary); font-weight: 700; } /* -- Stat Grid + Stat Cards -- */ .c-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; margin: 40px 0; } .c-stat-card { background: #fff; padding: 28px 24px; border-radius: 12px; box-shadow: 0 4px 16px rgba(0,0,0,0.07); text-align: center; border-top: 4px solid var(--primary); transition: transform 0.25s; } .c-stat-card:hover { transform: translateY(-4px); } .c-stat-value { font-size: 2rem; font-weight: 800; color: var(--primary); line-height: 1; margin-bottom: 8px; } .c-stat-label { font-size: 0.9rem; color: #666; font-weight: 500; } /* -- Step Progress Bar -- */ .c-steps { display: flex; justify-content: space-between; margin: 48px 0; position: relative; padding: 0 16px; gap: 8px; } .c-steps::before { content: ''; position: absolute; top: 24px; left: 0; right: 0; height: 3px; background: var(--border); z-index: 0; } .c-step { position: relative; z-index: 1; text-align: center; flex: 1; } .c-step-num { width: 48px; height: 48px; background: #fff; border: 3px solid var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; font-weight: 800; color: var(--primary); font-size: 1.1rem; box-shadow: 0 2px 8px rgba(0,0,0,0.06); } .c-step-label { font-size: 0.85rem; font-weight: 700; max-width: 120px; margin: 0 auto; color: #222; line-height: 1.3; } @media (max-width: 600px) { .c-steps { flex-wrap: wrap; gap: 24px; } .c-steps::before { display: none; } } /* -- Section Image (inline article image) -- */ .c-img { margin: 40px auto; text-align: center; max-width: 800px; } .c-img img { border-radius: 12px; box-shadow: 0 12px 32px rgba(0,0,0,0.09); } .c-img figcaption, .c-img-caption { font-size: 0.88rem; color: #888; margin-top: 10px; font-style: italic; } /* -- Highlight / Callout Box -- */ .c-callout { border-left: 4px solid var(--primary); background: var(--primary-light); padding: 20px 24px; border-radius: 0 12px 12px 0; margin: 32px 0; font-size: 0.97rem; color: #333; } .c-callout strong { color: #111; } .c-note { background: #FFF9E6; border: 1px solid #FFE58F; padding: 18px 24px; border-radius: 12px; margin: 28px 0; font-size: 0.95rem; } .c-tip { background: #F0F7FF; border: 1px solid #BAD7FF; padding: 18px 24px; border-radius: 12px; margin: 28px 0; font-size: 0.95rem; } /* -- Table (data / comparison) -- */ .c-table-wrap { overflow-x: auto; margin: 32px 0; border-radius: 12px; box-shadow: 0 2px 16px rgba(0,0,0,0.06); } .c-table { width: 100%; border-collapse: collapse; background: #fff; font-size: 0.93rem; } .c-table thead tr { background: #F8F9FA; } .c-table th { padding: 16px 20px; text-align: left; font-weight: 700; color: #111; border-bottom: 2px solid #EEE; white-space: nowrap; } .c-table td { padding: 14px 20px; border-bottom: 1px solid #F0F0F0; vertical-align: middle; color: #444; } .c-table tr:last-child td { border-bottom: none; } .c-table tr:hover td { background: #FAFAFA; } .c-table .c-check-yes { color: var(--primary); font-weight: 700; } .c-table .c-check-no { color: #CCC; } /* -- Card Grid (feature / tool cards) -- */ .c-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; margin: 40px 0; } .c-card { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 28px; transition: all 0.25s; } .c-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.09); transform: translateY(-3px); border-color: transparent; } .c-card-icon { font-size: 2rem; margin-bottom: 14px; } .c-card h3 { font-size: 1.05rem; font-weight: 700; color: #111; margin-bottom: 10px; } .c-card p { font-size: 0.9rem; color: #666; line-height: 1.6; margin: 0; } .c-card-tag { display: inline-block; font-size: 0.75rem; font-weight: 700; padding: 3px 10px; border-radius: 20px; background: var(--primary-light); color: var(--primary); margin-bottom: 10px; } /* -- Assessment / Quiz Box -- */ .c-assessment { background: #fff; border: 2px solid var(--border); border-radius: 16px; padding: 40px; margin: 48px 0; } .c-assessment h3 { margin-bottom: 24px; color: #111; } .c-assessment-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; } .c-field { margin-bottom: 20px; } .c-field label { display: block; margin-bottom: 8px; font-weight: 600; color: #333; font-size: 0.9rem; } .c-field select, .c-field input[type="text"], .c-field input[type="number"] { width: 100%; padding: 11px 16px; border: 1.5px solid var(--border); border-radius: 10px; font-size: 0.95rem; color: #333; background: #fff; transition: border-color 0.2s; } .c-field select:focus, .c-field input:focus { border-color: var(--primary); outline: none; box-shadow: 0 0 0 3px var(--primary-light); } .c-result-box { background: var(--primary-light); border: 1px solid var(--primary); border-radius: 12px; padding: 24px; margin-top: 24px; } /* -- Calculator Result Grid -- */ .c-calc-result { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; background: #F8F9FA; padding: 28px; border-radius: 12px; border: 1px solid #EEE; margin-top: 28px; } .c-result-item .c-result-label { display: block; font-size: 0.85rem; color: #666; margin-bottom: 4px; } .c-result-item .c-result-value { font-size: 1.7rem; font-weight: 800; color: #111; } .c-result-item.is-primary .c-result-value { color: var(--primary); } .c-disclaimer { font-size: 0.8rem; color: #999; margin-top: 14px; } /* -- TOC (Table of Contents) -- */ .c-toc { background: #F8F9FA; border: 1px solid var(--border); border-radius: 12px; padding: 28px 32px; margin: 40px 0; } .c-toc h3 { font-size: 0.9rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: #999; margin-bottom: 16px; } .c-toc ol { padding-left: 1.2rem; margin: 0; } .c-toc li { margin-bottom: 10px; font-size: 0.95rem; } .c-toc a { color: #444; font-weight: 500; text-decoration: none; } .c-toc a:hover { color: var(--primary); } /* -- Glossary -- */ .c-glossary { margin: 40px 0; } .c-term { border-bottom: 1px solid #F0F0F0; padding: 20px 0; } .c-term-name { font-weight: 700; color: #111; font-size: 1rem; margin-bottom: 6px; } .c-term-def { color: #555; font-size: 0.93rem; line-height: 1.6; } /* -- Dark Panel (dark background section) -- */ .c-dark-panel { background: #1A1A2E; border-radius: 20px; padding: 48px 40px; margin: 48px 0; color: #fff; } .c-dark-panel h3 { color: #fff; margin-bottom: 28px; } .c-dark-card { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); border-radius: 14px; padding: 24px; transition: background 0.25s; } .c-dark-card:hover { background: rgba(255,255,255,0.1); } .c-dark-card h4 { color: #fff; margin-bottom: 10px; font-size: 1rem; } .c-dark-card p { color: rgba(255,255,255,0.7); font-size: 0.9rem; margin: 0; } /* -- Section Title (standalone, outside prose) -- */ .c-section-title { text-align: center; margin: 0 auto 48px; } .c-section-title h2 { font-size: 2rem; color: #111; margin-bottom: 12px; } .c-section-title h2::after { left: 50%; transform: translateX(-50%); } .c-section-title p { color: #666; max-width: 560px; margin: 0 auto; font-size: 1rem; } /* -- Tag / Badge chips -- */ .c-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; } .c-tag { display: inline-block; padding: 4px 12px; border-radius: 20px; font-size: 0.8rem; font-weight: 600; background: #F0F0F0; color: #555; } .c-tag.is-primary { background: var(--primary-light); color: var(--primary); } /* -- Mobile responsive utilities -- */ @media (max-width: 768px) { /* Component library */ .c-hero h1 { font-size: 2rem; } .c-stats { grid-template-columns: repeat(2, 1fr); } .c-cards { grid-template-columns: 1fr; } .c-dark-panel { padding: 32px 24px; } .c-assessment { padding: 28px 20px; } /* Global typography */ h1 { font-size: 1.7rem; line-height: 1.2; } h2 { font-size: 1.3rem; margin-top: 2rem; } h2::after { width: 28px; } h3 { font-size: 1.05rem; } /* Container */ .container { padding: 0 16px; } .page-body { max-width: 100%; padding: 0 16px; } /* Footer */ footer { padding: 48px 16px 32px; } .footer-main { grid-template-columns: 1fr; gap: 32px; margin-bottom: 40px; } .footer-bottom { flex-direction: column; align-items: center; gap: 6px; padding-top: 24px; } .footer-bottom-sep { display: none; } /* Final CTA */ .final-cta { padding: 48px 16px; } .final-cta h2 { font-size: 1.4rem; } .final-cta p { font-size: 0.95rem; } .cta-btn { padding: 12px 32px; font-size: 0.95rem; } /* Related guides */ .related-guides { padding: 40px 16px; } .related-guides h2 { font-size: 1.2rem; } .related-guides a { padding: 14px 16px; font-size: 0.9rem; } /* Misc */ .data-badge { font-size: 0.78rem; padding: 4px 12px; } .tool-card { padding: 28px 20px; } .faq-section { padding: 40px 16px; } .faq-question { padding: 18px 0; font-size: 1rem; } #backToTop { bottom: 20px; right: 20px; width: 40px; height: 40px; } } @media (max-width: 480px) { .c-stats { grid-template-columns: 1fr; } .c-calc-result { grid-template-columns: 1fr; } h1 { font-size: 1.5rem; } footer { padding: 36px 12px 24px; } .footer-socials { gap: 10px; } .footer-socials a { width: 32px; height: 32px; } .footer-socials svg { width: 16px; height: 16px; } .final-cta { padding: 40px 16px; } .final-cta h2 { font-size: 1.3rem; } }
