{"id":55939,"date":"2026-07-16T11:43:12","date_gmt":"2026-07-16T03:43:12","guid":{"rendered":"https:\/\/goearthward.com\/?page_id=55939"},"modified":"2026-07-16T14:24:39","modified_gmt":"2026-07-16T06:24:39","slug":"kua-number-calculator","status":"publish","type":"page","link":"https:\/\/goearthward.com\/zh\/tools\/kua-number-calculator\/","title":{"rendered":"Kua Number Calculator: Feng Shui Directions &#038; Crystals"},"content":{"rendered":"\n<!-- ===== Kua Number Calculator v1.0 (feng shui tool #1) ===== -->\n<div class=\"ekua-root\">\n  <div class=\"ekua-inner\">\n\n    <div class=\"ekua-hero\">\n      <h1 class=\"ekua-h1\">Kua Number Calculator<\/h1>\n      <p class=\"ekua-sub\">Find your feng shui Kua (Gua) number, your four auspicious and four challenging directions, and the birth crystals traditionally paired with your energy &mdash; based on classical Ba Zhai (Eight Mansions) feng shui.<\/p>\n    <\/div>\n\n    <!-- Input form -->\n    <form id=\"ekua-form\" class=\"ekua-form\" onsubmit=\"return false;\">\n      <div class=\"ekua-form-title\">Enter your birth details<\/div>\n      <div class=\"ekua-form-row\">\n        <label class=\"ekua-field\">Month\n          <select id=\"ekua-month\" required><option value=\"\">MM<\/option><option value=\"1\">1<\/option><option value=\"2\">2<\/option><option value=\"3\">3<\/option><option value=\"4\">4<\/option><option value=\"5\">5<\/option><option value=\"6\">6<\/option><option value=\"7\">7<\/option><option value=\"8\">8<\/option><option value=\"9\">9<\/option><option value=\"10\">10<\/option><option value=\"11\">11<\/option><option value=\"12\">12<\/option><\/select>\n        <\/label>\n        <label class=\"ekua-field\">Day\n          <select id=\"ekua-day\" required><option value=\"\">DD<\/option><option value=\"1\">1<\/option><option value=\"2\">2<\/option><option value=\"3\">3<\/option><option value=\"4\">4<\/option><option value=\"5\">5<\/option><option value=\"6\">6<\/option><option value=\"7\">7<\/option><option value=\"8\">8<\/option><option value=\"9\">9<\/option><option value=\"10\">10<\/option><option value=\"11\">11<\/option><option value=\"12\">12<\/option><option value=\"13\">13<\/option><option value=\"14\">14<\/option><option value=\"15\">15<\/option><option value=\"16\">16<\/option><option value=\"17\">17<\/option><option value=\"18\">18<\/option><option value=\"19\">19<\/option><option value=\"20\">20<\/option><option value=\"21\">21<\/option><option value=\"22\">22<\/option><option value=\"23\">23<\/option><option value=\"24\">24<\/option><option value=\"25\">25<\/option><option value=\"26\">26<\/option><option value=\"27\">27<\/option><option value=\"28\">28<\/option><option value=\"29\">29<\/option><option value=\"30\">30<\/option><option value=\"31\">31<\/option><\/select>\n        <\/label>\n        <label class=\"ekua-field\">Year\n          <select id=\"ekua-year\" required><option value=\"\">YYYY<\/option><option value=\"2026\">2026<\/option><option value=\"2025\">2025<\/option><option value=\"2024\">2024<\/option><option value=\"2023\">2023<\/option><option value=\"2022\">2022<\/option><option value=\"2021\">2021<\/option><option value=\"2020\">2020<\/option><option value=\"2019\">2019<\/option><option value=\"2018\">2018<\/option><option value=\"2017\">2017<\/option><option value=\"2016\">2016<\/option><option value=\"2015\">2015<\/option><option value=\"2014\">2014<\/option><option value=\"2013\">2013<\/option><option value=\"2012\">2012<\/option><option value=\"2011\">2011<\/option><option value=\"2010\">2010<\/option><option value=\"2009\">2009<\/option><option value=\"2008\">2008<\/option><option value=\"2007\">2007<\/option><option value=\"2006\">2006<\/option><option value=\"2005\">2005<\/option><option value=\"2004\">2004<\/option><option value=\"2003\">2003<\/option><option value=\"2002\">2002<\/option><option value=\"2001\">2001<\/option><option value=\"2000\">2000<\/option><option value=\"1999\">1999<\/option><option value=\"1998\">1998<\/option><option value=\"1997\">1997<\/option><option value=\"1996\">1996<\/option><option value=\"1995\">1995<\/option><option value=\"1994\">1994<\/option><option value=\"1993\">1993<\/option><option value=\"1992\">1992<\/option><option value=\"1991\">1991<\/option><option value=\"1990\">1990<\/option><option value=\"1989\">1989<\/option><option value=\"1988\">1988<\/option><option value=\"1987\">1987<\/option><option value=\"1986\">1986<\/option><option value=\"1985\">1985<\/option><option value=\"1984\">1984<\/option><option value=\"1983\">1983<\/option><option value=\"1982\">1982<\/option><option value=\"1981\">1981<\/option><option value=\"1980\">1980<\/option><option value=\"1979\">1979<\/option><option value=\"1978\">1978<\/option><option value=\"1977\">1977<\/option><option value=\"1976\">1976<\/option><option value=\"1975\">1975<\/option><option value=\"1974\">1974<\/option><option value=\"1973\">1973<\/option><option value=\"1972\">1972<\/option><option value=\"1971\">1971<\/option><option value=\"1970\">1970<\/option><option value=\"1969\">1969<\/option><option value=\"1968\">1968<\/option><option value=\"1967\">1967<\/option><option value=\"1966\">1966<\/option><option value=\"1965\">1965<\/option><option value=\"1964\">1964<\/option><option value=\"1963\">1963<\/option><option value=\"1962\">1962<\/option><option value=\"1961\">1961<\/option><option value=\"1960\">1960<\/option><option value=\"1959\">1959<\/option><option value=\"1958\">1958<\/option><option value=\"1957\">1957<\/option><option value=\"1956\">1956<\/option><option value=\"1955\">1955<\/option><option value=\"1954\">1954<\/option><option value=\"1953\">1953<\/option><option value=\"1952\">1952<\/option><option value=\"1951\">1951<\/option><option value=\"1950\">1950<\/option><option value=\"1949\">1949<\/option><option value=\"1948\">1948<\/option><option value=\"1947\">1947<\/option><option value=\"1946\">1946<\/option><option value=\"1945\">1945<\/option><option value=\"1944\">1944<\/option><option value=\"1943\">1943<\/option><option value=\"1942\">1942<\/option><option value=\"1941\">1941<\/option><option value=\"1940\">1940<\/option><option value=\"1939\">1939<\/option><option value=\"1938\">1938<\/option><option value=\"1937\">1937<\/option><option value=\"1936\">1936<\/option><option value=\"1935\">1935<\/option><option value=\"1934\">1934<\/option><option value=\"1933\">1933<\/option><option value=\"1932\">1932<\/option><option value=\"1931\">1931<\/option><option value=\"1930\">1930<\/option><option value=\"1929\">1929<\/option><option value=\"1928\">1928<\/option><option value=\"1927\">1927<\/option><option value=\"1926\">1926<\/option><option value=\"1925\">1925<\/option><option value=\"1924\">1924<\/option><option value=\"1923\">1923<\/option><option value=\"1922\">1922<\/option><option value=\"1921\">1921<\/option><option value=\"1920\">1920<\/option><option value=\"1919\">1919<\/option><option value=\"1918\">1918<\/option><option value=\"1917\">1917<\/option><option value=\"1916\">1916<\/option><option value=\"1915\">1915<\/option><option value=\"1914\">1914<\/option><option value=\"1913\">1913<\/option><option value=\"1912\">1912<\/option><option value=\"1911\">1911<\/option><option value=\"1910\">1910<\/option><option value=\"1909\">1909<\/option><option value=\"1908\">1908<\/option><option value=\"1907\">1907<\/option><\/select>\n        <\/label>\n      <\/div>\n      <div class=\"ekua-gender-row\">\n        <label class=\"ekua-gender\"><input type=\"radio\" name=\"ekua-gender\" value=\"male\" required> Male<\/label>\n        <label class=\"ekua-gender\"><input type=\"radio\" name=\"ekua-gender\" value=\"female\" required> Female<\/label>\n      <\/div>\n      <button type=\"submit\" class=\"ekua-submit\">Reveal My Kua Number &rarr;<\/button>\n      <p class=\"ekua-form-hint\">Feng shui uses the solar year (starts ~Feb 4, Li Chun). Born Jan 1\u2013Feb 3? We auto-adjust to the prior year.<\/p>\n    <\/form>\n\n    <!-- Result mount -->\n    <div id=\"ekua-result\" class=\"ekua-result\"><\/div>\n\n    <!-- SEO Accordion -->\n    <section class=\"ekua-seo-accordion\" aria-label=\"Kua number guide\">\n      <details class=\"ekua-seo-details\">\n        <summary>Learn More About Kua Numbers<\/summary>\n        <div class=\"ekua-seo-content\">\n          <h2>What is a Kua number in feng shui?<\/h2>\n          <p>A Kua number (also called Gua number) is a number from 1 to 9 used in classical Ba Zhai (Eight Mansions) feng shui. Calculated from your birth year and gender, it reveals your four auspicious and four challenging compass directions \u2014 a traditional framework for arranging your bed, desk, and stove to align with supportive energy. It is a tool for reflection, not a guarantee of outcomes.<\/p>\n          <h2>How to calculate your Kua number<\/h2>\n          <p>Take the last two digits of your birth year, add them together, and reduce to a single digit. Males subtract that digit from 10 (for births 1900\u20131999) or 9 (for births 2000 onward); females add 5 (1900s) or 6 (2000s), then reduce to a single digit. If the result is 5, males use 2 and females use 8. Feng shui follows the solar calendar, so if you were born between January 1 and February 3 (before Li Chun, the Start of Spring around February 4), use the previous year as your birth year.<\/p>\n          <h2>Your four auspicious directions<\/h2>\n          <p>Each Kua number has four supportive directions: <strong>Sheng Chi<\/strong> (success and wealth), <strong>Tien Yi<\/strong> (health), <strong>Nien Yen<\/strong> (love and relationships), and <strong>Fu Wei<\/strong> (stability and personal growth). The four challenging directions \u2014 Ho Hai, Wu Kwei, Liu Sha, and Chueh Ming \u2014 are traditionally avoided for the orientation of beds and desks. Kua numbers 1, 3, 4, and 9 belong to the East group; 2, 6, 7, and 8 to the West group.<\/p>\n          <h2>Kua numbers and birth crystals<\/h2>\n          <p>Each Kua number belongs to one of the five elements \u2014 Water, Wood, Fire, Earth, or Metal. This calculator pairs you with three birth crystals traditionally aligned with your element and lucky colors, drawn from a library of over 390 stones. Crystal pairings are traditional and symbolic, not a medical claim.<\/p>\n          <h2>BTB vs classical feng shui<\/h2>\n          <p>The Kua number system comes from classical (compass) feng shui and the Eight Mansions tradition. BTB (Black Sect) feng shui, the most widely practiced school in the West, uses the front door rather than compass directions to place the bagua. The two can be used alongside each other \u2014 this calculator focuses on the classical Kua direction system.<\/p>\n          <h3>Frequently asked questions<\/h3>\n          <h3>What is a Kua number in feng shui?<\/h3>\n          <p>A Kua number is a number from 1 to 9 used in classical Eight Mansions feng shui, calculated from your birth year and gender. It reveals your four auspicious and four challenging directions for success, health, relationships, and stability.<\/p>\n          <h3>How do I calculate my Kua number?<\/h3>\n          <p>Add the last two digits of your birth year and reduce to a single digit. Males subtract from 10 (1900s) or 9 (2000s); females add 5 (1900s) or 6 (2000s), then reduce. If born January 1 \u2013 February 3, use the prior year (Li Chun solar rule).<\/p>\n          <h3>Why does my birth date before February 4 change my Kua number?<\/h3>\n          <p>Feng shui uses the solar calendar, and the Chinese solar year begins at Li Chun (Start of Spring, ~February 4). If you were born before that date, your feng shui birth year is the previous calendar year.<\/p>\n          <h3>Which crystals match my Kua number?<\/h3>\n          <p>Each Kua number belongs to one of the five elements. This calculator pairs you with three birth crystals aligned with your element and lucky colors from a 390-stone library. Pairings are traditional and symbolic.<\/p>\n          <h3>Is the Kua number different for males and females?<\/h3>\n          <p>Yes. The formula differs by gender (males subtract, females add), so the same birth date yields different Kua numbers for men and women, reflecting the classical Eight Mansions tradition.<\/p>\n          <h3>Are Kua numbers scientifically proven?<\/h3>\n          <p>No. Feng shui is a traditional cultural practice. Kua numbers and their directions are a framework for reflection, not a scientifically proven system and not a guarantee of specific results, wealth, or outcomes.<\/p>\n        <\/div>\n      <\/details>\n    <\/section>\n\n  <\/div>\n<\/div>\n\n<style>\n.ekua-root{font-family:-apple-system,BlinkMacSystemFont,\"Segoe UI\",Roboto,\"Helvetica Neue\",Arial,sans-serif;color:#1A1A2E;line-height:1.6}\n.ekua-inner{max-width:1140px;margin:0 auto;padding:24px 28px 40px}\n.ekua-hero{text-align:center;margin-bottom:28px}\n.ekua-h1{font-size:34px;font-weight:800;color:#1A1A2E;margin:0 0 10px;letter-spacing:-.01em}\n.ekua-sub{font-size:16px;color:#5A5A6E;max-width:720px;margin:0 auto;line-height:1.65}\n.ekua-form{background:#fff;border:1px solid #E8E2D5;border-radius:16px;padding:28px 30px;margin-bottom:28px;max-width:560px;margin-left:auto;margin-right:auto}\n.ekua-form-title{font-size:15px;font-weight:700;color:#2D6A4F;text-transform:uppercase;letter-spacing:.06em;margin-bottom:14px}\n.ekua-form-row{display:flex;gap:12px;margin-bottom:16px}\n.ekua-field{flex:1;display:flex;flex-direction:column;font-size:13px;font-weight:600;color:#5A5A6E}\n.ekua-field select{margin-top:5px;padding:11px 10px;border:1px solid #D5CFC2;border-radius:8px;font-size:15px;background:#fff;color:#1A1A2E}\n.ekua-gender-row{display:flex;gap:14px;margin-bottom:18px}\n.ekua-gender{flex:1;display:flex;align-items:center;justify-content:center;gap:8px;padding:12px;border:1px solid #D5CFC2;border-radius:8px;font-size:15px;font-weight:600;cursor:pointer;background:#fff}\n.ekua-gender input{accent-color:#2D6A4F}\n.ekua-submit{width:100%;background:#2D6A4F;color:#fff;border:none;border-radius:10px;padding:14px;font-size:16px;font-weight:700;cursor:pointer;transition:background .2s}\n.ekua-submit:hover{background:#1B4332}\n.ekua-form-hint{font-size:12px;color:#888;margin:10px 0 0;line-height:1.5;font-style:italic}\n.ekua-result{margin-top:8px}\n.ekua-res-head{text-align:center;margin-bottom:24px}\n.ekua-res-badge{display:inline-block;background:#CFAA3E;color:#fff;font-size:15px;font-weight:600;padding:7px 18px;border-radius:20px;margin-bottom:10px}\n.ekua-res-badge strong{font-size:22px;font-weight:800;margin-left:4px}\n.ekua-res-meta{font-size:16px;color:#1A1A2E;font-weight:600;margin-bottom:6px}\n.ekua-tri{color:#2D6A4F;font-weight:700}\n.ekua-el{color:#CFAA3E;font-weight:700}\n.ekua-res-colors{font-size:14px;color:#5A5A6E;font-style:italic}\n.ekua-compass-row{display:grid;grid-template-columns:340px 1fr;gap:28px;background:linear-gradient(135deg,#FBF8F1 0%,#fff 100%);border:1px solid #E8E2D5;border-radius:16px;padding:26px;margin-bottom:24px;align-items:center}\n.ekua-compass{width:100%;max-width:320px;height:auto}\n.ekua-c-ring{fill:none;stroke:#E8E2D5;stroke-width:2}\n.ekua-c-sect{fill:#F4F0E6;stroke:#D5CFC2;stroke-width:1}\n.ekua-c-good .ekua-c-sect{fill:#D4E9DD;stroke:#2D6A4F}\n.ekua-c-bad .ekua-c-sect{fill:#F0E0E0;stroke:#A05050}\n.ekua-c-dir{text-anchor:middle;font-size:11px;font-weight:800;fill:#1A1A2E}\n.ekua-c-lbl{text-anchor:middle;font-size:8px;fill:#5A5A6E}\n.ekua-c-good .ekua-c-lbl{fill:#1B4332;font-weight:600}\n.ekua-c-bad .ekua-c-lbl{fill:#804040}\n.ekua-c-center{fill:#2D6A4F;stroke:#CFAA3E;stroke-width:3}\n.ekua-c-center-num{text-anchor:middle;font-size:24px;font-weight:800;fill:#fff}\n.ekua-c-center-lbl{text-anchor:middle;font-size:9px;fill:#CFAA3E;letter-spacing:.1em;font-weight:700}\n.ekua-dirs-col{}\n.ekua-dirs-title{font-size:14px;font-weight:700;color:#2D6A4F;text-transform:uppercase;letter-spacing:.05em;margin:0 0 8px}\n.ekua-dirs-title-bad{color:#804040;margin-top:14px}\n.ekua-dir-row{display:flex;align-items:center;gap:8px;padding:6px 0;border-bottom:1px solid #F0EDE5;font-size:14px}\n.ekua-dir-ico{font-weight:800;width:18px}\n.ekua-good .ekua-dir-ico{color:#2D6A4F}\n.ekua-bad .ekua-dir-ico{color:#A05050}\n.ekua-dir-name{flex:1;color:#1A1A2E}\n.ekua-dir-pos{font-weight:700;color:#5A5A6E}\n.ekua-module{background:#fff;border:1px solid #E8E2D5;border-radius:14px;padding:24px 26px;margin-bottom:20px}\n.ekua-m-stones{background:linear-gradient(135deg,#FBF8F1 0%,#fff 70%);border-color:#CFAA3E}\n.ekua-mod-head{display:flex;align-items:center;gap:10px;margin-bottom:12px}\n.ekua-mod-num{background:#2D6A4F;color:#fff;font-size:14px;font-weight:800;width:28px;height:28px;display:flex;align-items:center;justify-content:center;border-radius:7px}\n.ekua-mod-gold{background:#CFAA3E}\n.ekua-mod-head h2{font-size:21px;font-weight:800;color:#1A1A2E;margin:0}\n.ekua-lede-soft{font-size:14px;color:#5A5A6E;font-style:italic;margin:0 0 14px}\n.ekua-body{font-size:15px;color:#444;margin:0 0 12px;line-height:1.7}\n.ekua-stones-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}\n.ekua-stone-card{background:#fff;border:1px solid #E8E2D5;border-radius:12px;padding:14px;text-align:center}\n.ekua-stone-img{width:80px;height:80px;object-fit:cover;border-radius:50%;margin:0 auto 10px;border:2px solid #CFAA3E;background:#F0F0F5}\n.ekua-stone-ph{background:linear-gradient(135deg,#CFAA3E,#E8E2D5)}\n.ekua-stone-name{font-size:15px;font-weight:800;color:#1A1A2E;margin-bottom:4px}\n.ekua-stone-reason{font-size:12px;color:#5A5A6E;line-height:1.5;margin:0 0 8px;min-height:50px}\n.ekua-stone-shop{font-size:13px;font-weight:700;color:#2D6A4F !important;text-decoration:none;border-bottom:2px solid #CFAA3E;padding-bottom:1px}\n.ekua-bracelets{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}\n.ekua-bracelet{display:flex;flex-direction:column;background:#F4F0E6;border:1px solid #E8E2D5;border-radius:10px;padding:12px 14px;text-decoration:none;transition:border-color .2s}\n.ekua-bracelet:hover{border-color:#CFAA3E}\n.ekua-b-intent{font-size:12px;font-weight:700;color:#2D6A4F;text-transform:uppercase;letter-spacing:.04em}\n.ekua-b-name{font-size:15px;font-weight:700;color:#1A1A2E;margin-top:2px}\n.ekua-home{background:#F0F5F1;border-left:3px solid #2D6A4F;padding:12px 14px;border-radius:0 8px 8px 0;margin-top:8px}\n.ekua-home-lbl{display:block;font-size:11px;font-weight:700;color:#2D6A4F;text-transform:uppercase;letter-spacing:.06em;margin-bottom:4px}\n.ekua-home p{margin:0;font-size:14px;color:#444;line-height:1.6}\n.ekua-note{font-size:13px;color:#888;font-style:italic;line-height:1.65;margin:20px 0 0;padding:0 10px}\n.ekua-seo-accordion{margin:32px 0 8px}\n.ekua-seo-details{border:1px solid #E8E2D5;border-radius:12px;background:#FAFAFA;overflow:hidden}\n.ekua-seo-details summary{list-style:none;cursor:pointer;background:#F4F0E6;color:#1A1A2E;font-size:18px;font-weight:700;padding:18px 22px;display:flex;justify-content:space-between;align-items:center}\n.ekua-seo-details summary::-webkit-details-marker{display:none}\n.ekua-seo-details summary:after{content:'+';float:right;font-size:24px;line-height:1;color:#2D6A4F;font-weight:300}\n.ekua-seo-details[open] summary:after{content:'\u2013'}\n.ekua-seo-content{padding:24px 28px;color:#444;font-size:16px;line-height:1.75}\n.ekua-seo-content h2{color:#1A1A2E;font-size:24px;margin:26px 0 10px;letter-spacing:-.005em}\n.ekua-seo-content h2:first-child{margin-top:0}\n.ekua-seo-content h3{color:#1A1A2E;font-size:19px;margin:20px 0 8px}\n.ekua-seo-content p{margin:0 0 12px}\n.ekua-seo-content strong{color:#2D6A4F}\n@media(max-width:640px){.ekua-seo-content{padding:18px 16px;font-size:15px}.ekua-seo-content h2{font-size:21px}.ekua-seo-content h3{font-size:17px}.ekua-seo-details summary{font-size:16px;padding:15px 16px}}\n@media(max-width:900px){.ekua-compass-row{grid-template-columns:1fr;text-align:center}.ekua-stones-grid{grid-template-columns:repeat(2,1fr)}}\n@media(max-width:640px){.ekua-inner{padding:16px 14px 32px}.ekua-h1{font-size:26px}.ekua-form{padding:20px 18px}.ekua-form-row{flex-wrap:wrap}.ekua-field{min-width:90px}.ekua-stones-grid{grid-template-columns:1fr}.ekua-bracelets{grid-template-columns:1fr}.ekua-mod-head h2{font-size:18px}}\n<\/style>\n\n<script type=\"application\/json\" id=\"ekua-data\">{\"kuas\":[{\"kua\":1,\"trigram\":{\"name\":\"Kan\",\"symbol\":\"\\u2635\",\"chinese\":\"\\u574e\"},\"element\":\"Water\",\"group\":\"East\",\"colors\":[\"black\",\"blue\",\"white\"],\"directions\":{\"sheng_chi\":\"SE\",\"tien_yi\":\"E\",\"nien_yen\":\"S\",\"fu_wei\":\"N\",\"chueh_ming\":\"W\",\"wu_kwei\":\"NE\",\"liu_sha\":\"NW\",\"ho_hai\":\"SW\"},\"personality\":\"Kan (Water) people are reflective, adaptable and deep-thinking. Like water, you flow around obstacles rather than crash into them, gathering insight in stillness. Your strength is inner depth \\u2014 you sense what others miss and adapt with quiet resilience. The growth edge is avoiding withdrawal: water nourishes best when it moves, not when it pools.\",\"home\":\"Face your desk toward Sheng Chi (Southeast) for focused, prosperous work; orient your bed so the crown points to Tien Yi (East) to support rest and recovery. Keep the North sector (your Fu Wei stability area) uncluttered and well-lit.\",\"crystals\":[{\"slug\":\"black-tourmaline-meaning\",\"name\":\"Black Tourmaline\",\"reason\":\"A Water-element anchor that grounds Kan's deep sensitivity, offering a protective boundary so your receptive nature doesn't absorb surrounding stress.\",\"img\":\"https:\/\/goearthward.com\/wp-content\/uploads\/2026\/06\/black-tourmaline-form-bracelet.webp\",\"shop\":\"\/product-category\/black-tourmaline-crystals\/\"},{\"slug\":\"obsidian-meaning\",\"name\":\"Obsidian\",\"reason\":\"Black volcanic glass mirrors Water's depth, supporting clear emotional boundaries and reflective self-honesty.\",\"img\":\"https:\/\/goearthward.com\/wp-content\/uploads\/2026\/06\/obsidian-overview.webp\",\"shop\":\"\/product-category\/obsidian-crystals\/\"},{\"slug\":\"aquamarine-meaning\",\"name\":\"Aquamarine\",\"reason\":\"Light Water energy that eases communication and keeps your adaptability flowing rather than frozen.\",\"img\":\"https:\/\/goearthward.com\/wp-content\/uploads\/2026\/06\/aquamarine-overview.webp\",\"shop\":\"\/product-category\/healing-crystals-jewelry\/\"}],\"bracelets\":[{\"direction\":\"sheng_chi\",\"intent\":\"Success & Wealth (SE)\",\"slug\":\"citrine-meaning\",\"name\":\"Citrine\"},{\"direction\":\"tien_yi\",\"intent\":\"Health (E)\",\"slug\":\"bloodstone-meaning\",\"name\":\"Bloodstone\"},{\"direction\":\"nien_yen\",\"intent\":\"Love (S)\",\"slug\":\"rose-quartz-meaning\",\"name\":\"Rose Quartz\"},{\"direction\":\"fu_wei\",\"intent\":\"Stability (N)\",\"slug\":\"smoky-quartz-meaning\",\"name\":\"Smoky Quartz\"}]},{\"kua\":2,\"trigram\":{\"name\":\"Kun\",\"symbol\":\"\\u2637\",\"chinese\":\"\\u5764\"},\"element\":\"Earth\",\"group\":\"West\",\"colors\":[\"yellow\",\"earth tones\",\"brown\"],\"directions\":{\"sheng_chi\":\"NE\",\"tien_yi\":\"W\",\"nien_yen\":\"NW\",\"fu_wei\":\"SW\",\"chueh_ming\":\"SE\",\"wu_kwei\":\"E\",\"liu_sha\":\"S\",\"ho_hai\":\"N\"},\"personality\":\"Kun (Earth) people are nurturing, receptive and grounded. You embody the fertile field \\u2014 patient, supportive, and able to hold space for others to grow. Your reliability is your gift; your growth edge is self-nourishment, remembering that even the richest soil needs tending and rest.\",\"home\":\"Strengthen the Southwest (your Fu Wei stability corner) with earthy ceramics or earthen crystals; face your workspace toward the Northeast (Sheng Chi) to nurture steady prosperity. Warm yellow and terracotta tones support your element throughout the home.\",\"crystals\":[{\"slug\":\"citrine-meaning\",\"name\":\"Citrine\",\"reason\":\"Earth-element sunshine stone that nurtures Kun's generous nature while inviting warmth and abundance without depletion.\",\"img\":\"https:\/\/goearthward.com\/wp-content\/uploads\/2026\/06\/citrine-form-bracelet.webp\",\"shop\":\"\/product-category\/citrine-crystals\/\"},{\"slug\":\"tiger-eye-meaning\",\"name\":\"Tiger Eye\",\"reason\":\"Golden-brown banded quartz grounds Earth energy, supporting steady willpower and grounded decision-making.\",\"img\":\"https:\/\/goearthward.com\/wp-content\/uploads\/2026\/06\/tiger-eye-form-bracelet.webp\",\"shop\":\"\/product-category\/tiger-eye-crystals\/\"},{\"slug\":\"red-jasper-meaning\",\"name\":\"Red Jasper\",\"reason\":\"Earthy red stone that nourishes stamina, helping the nurturing Kun type sustain care for others and self alike.\",\"img\":\"https:\/\/goearthward.com\/wp-content\/uploads\/2026\/06\/red-jasper-form-bracelet-1.webp\",\"shop\":\"\/product-category\/red-jasper-crystals\/\"}],\"bracelets\":[{\"direction\":\"sheng_chi\",\"intent\":\"Success & Wealth (NE)\",\"slug\":\"citrine-meaning\",\"name\":\"Citrine\"},{\"direction\":\"tien_yi\",\"intent\":\"Health (W)\",\"slug\":\"aventurine-meaning\",\"name\":\"Aventurine\"},{\"direction\":\"nien_yen\",\"intent\":\"Love (NW)\",\"slug\":\"rose-quartz-meaning\",\"name\":\"Rose Quartz\"},{\"direction\":\"fu_wei\",\"intent\":\"Stability (SW)\",\"slug\":\"tiger-eye-meaning\",\"name\":\"Tiger Eye\"}]},{\"kua\":3,\"trigram\":{\"name\":\"Zhen\",\"symbol\":\"\\u2633\",\"chinese\":\"\\u9707\"},\"element\":\"Wood\",\"group\":\"East\",\"colors\":[\"green\",\"blue\",\"black\"],\"directions\":{\"sheng_chi\":\"S\",\"tien_yi\":\"N\",\"nien_yen\":\"SE\",\"fu_wei\":\"E\",\"chueh_ming\":\"W\",\"wu_kwei\":\"NW\",\"liu_sha\":\"NE\",\"ho_hai\":\"SW\"},\"personality\":\"Zhen (Wood\/thunder) people are pioneering, spontaneous and full of initiating energy. Like spring thunder awakening dormant seeds, you spark new beginnings and move quickly from idea to action. Your growth edge is patience \\u2014 Wood grows strongest with both upward reach and deep roots.\",\"home\":\"Place living plants in the East (your Fu Wei sector) to strengthen Wood growth energy; face your desk South (Sheng Chi) to fuel initiative and recognition. Avoid clutter in the East, which stagnates your initiating power.\",\"crystals\":[{\"slug\":\"aventurine-meaning\",\"name\":\"Aventurine\",\"reason\":\"Green Wood-element stone that supports Zhen's growth and new beginnings, inviting opportunity and lucky forward momentum.\",\"img\":\"https:\/\/goearthward.com\/wp-content\/uploads\/2026\/06\/aventurine-overview.webp\",\"shop\":\"\/product-category\/aventurine-crystals\/\"},{\"slug\":\"moss-agate-meaning\",\"name\":\"Moss Agate\",\"reason\":\"Forest-green agate nurtures steady Wood growth, grounding the thunder-type's spontaneity into lasting vitality.\",\"img\":\"https:\/\/goearthward.com\/wp-content\/uploads\/2026\/06\/moss-agate-overview.webp\",\"shop\":\"\/product-category\/healing-crystals-jewelry\/\"},{\"slug\":\"jade-meaning\",\"name\":\"Jade\",\"reason\":\"Treasured in Eastern tradition as a Wood stone of wisdom and longevity, deepening Zhen's pioneering roots.\",\"img\":\"https:\/\/goearthward.com\/wp-content\/uploads\/2026\/06\/jade-overview.webp\",\"shop\":\"\/product-category\/jade-crystals\/\"}],\"bracelets\":[{\"direction\":\"sheng_chi\",\"intent\":\"Success & Wealth (S)\",\"slug\":\"citrine-meaning\",\"name\":\"Citrine\"},{\"direction\":\"tien_yi\",\"intent\":\"Health (N)\",\"slug\":\"bloodstone-meaning\",\"name\":\"Bloodstone\"},{\"direction\":\"nien_yen\",\"intent\":\"Love (SE)\",\"slug\":\"rose-quartz-meaning\",\"name\":\"Rose Quartz\"},{\"direction\":\"fu_wei\",\"intent\":\"Stability (E)\",\"slug\":\"aventurine-meaning\",\"name\":\"Aventurine\"}]},{\"kua\":4,\"trigram\":{\"name\":\"Xun\",\"symbol\":\"\\u2634\",\"chinese\":\"\\u5dfd\"},\"element\":\"Wood\",\"group\":\"East\",\"colors\":[\"green\",\"purple\"],\"directions\":{\"sheng_chi\":\"N\",\"tien_yi\":\"S\",\"nien_yen\":\"E\",\"fu_wei\":\"SE\",\"chueh_ming\":\"NE\",\"wu_kwei\":\"W\",\"liu_sha\":\"SW\",\"ho_hai\":\"NW\"},\"personality\":\"Xun (Wind\/gentle Wood) people are adaptable, perceptive and quietly influential. Like wind carrying seeds across great distances, your influence spreads through flexibility and subtle persistence rather than force. Your growth edge is rootedness \\u2014 even the wind benefits from a calm center to blow from.\",\"home\":\"Keep the Southeast sector (your Tien Yi health area) fresh and airy; place purple or green accents in the North (Sheng Chi) to invite prosperity. Plants in the East nourish your Wind-Wood nature.\",\"crystals\":[{\"slug\":\"aventurine-meaning\",\"name\":\"Aventurine\",\"reason\":\"Green Wood stone supporting Xun's gentle, persistent growth \\u2014 opportunity carried on favorable winds.\",\"img\":\"https:\/\/goearthward.com\/wp-content\/uploads\/2026\/06\/aventurine-overview.webp\",\"shop\":\"\/product-category\/aventurine-crystals\/\"},{\"slug\":\"amethyst-meaning\",\"name\":\"Amethyst\",\"reason\":\"Purple amethyst, the BTB wealth-corner signature, aligns with Xun's lucky purple and clarifies perception.\",\"img\":\"https:\/\/goearthward.com\/wp-content\/uploads\/2026\/06\/amethyst-form-bracelet.webp\",\"shop\":\"\/product-category\/amethyst-crystals\/\"},{\"slug\":\"jade-meaning\",\"name\":\"Jade\",\"reason\":\"Eastern Wood stone of harmony, deepening the rootedness that balances Wind's constant motion.\",\"img\":\"https:\/\/goearthward.com\/wp-content\/uploads\/2026\/06\/jade-overview.webp\",\"shop\":\"\/product-category\/jade-crystals\/\"}],\"bracelets\":[{\"direction\":\"sheng_chi\",\"intent\":\"Success & Wealth (N)\",\"slug\":\"citrine-meaning\",\"name\":\"Citrine\"},{\"direction\":\"tien_yi\",\"intent\":\"Health (SE)\",\"slug\":\"bloodstone-meaning\",\"name\":\"Bloodstone\"},{\"direction\":\"nien_yen\",\"intent\":\"Love (E)\",\"slug\":\"rose-quartz-meaning\",\"name\":\"Rose Quartz\"},{\"direction\":\"fu_wei\",\"intent\":\"Stability (S)\",\"slug\":\"smoky-quartz-meaning\",\"name\":\"Smoky Quartz\"}]},{\"kua\":6,\"trigram\":{\"name\":\"Qian\",\"symbol\":\"\\u2630\",\"chinese\":\"\\u4e7e\"},\"element\":\"Metal\",\"group\":\"West\",\"colors\":[\"white\",\"gold\",\"silver\",\"gray\"],\"directions\":{\"sheng_chi\":\"W\",\"tien_yi\":\"NE\",\"nien_yen\":\"SW\",\"fu_wei\":\"NW\",\"chueh_ming\":\"S\",\"wu_kwei\":\"N\",\"liu_sha\":\"E\",\"ho_hai\":\"SE\"},\"personality\":\"Qian (Metal\/heaven) people are principled, disciplined and natural leaders. You carry the clarity and structure of refined metal \\u2014 decisive, honorable, and driven by strong inner standards. Your growth edge is flexibility; the strongest metal, like the sage's will, bends without breaking.\",\"home\":\"Reinforce the Northwest (your Fu Wei sector, also the Helpful People area) with metal objects or white tones to attract supportive allies; face work toward the West (Sheng Chi) for principled success. Keep the space uncluttered \\u2014 Metal thrives on order.\",\"crystals\":[{\"slug\":\"quartz-meaning\",\"name\":\"Quartz\",\"reason\":\"Clear white Metal-element quartz mirrors Qian's clarity and amplifies focused, principled intention.\",\"img\":\"https:\/\/goearthward.com\/wp-content\/uploads\/2026\/06\/quartz-overview.webp\",\"shop\":\"\/product-category\/clear-quartz-crystals\/\"},{\"slug\":\"selenite-meaning\",\"name\":\"Selenite\",\"reason\":\"Pure white Metal stone of clarity and order, supporting the decisive structure Qian types thrive on.\",\"img\":\"https:\/\/goearthward.com\/wp-content\/uploads\/2026\/06\/selenite-overview.webp\",\"shop\":\"\/product-category\/selenite-crystals\/\"},{\"slug\":\"hematite-meaning\",\"name\":\"Hematite\",\"reason\":\"Silvery metallic stone grounding Metal's sharpness into steady, honorable willpower.\",\"img\":\"https:\/\/goearthward.com\/wp-content\/uploads\/2026\/06\/hematite-form-bracelet.webp\",\"shop\":\"\/product-category\/hematite-crystals\/\"}],\"bracelets\":[{\"direction\":\"sheng_chi\",\"intent\":\"Success & Wealth (W)\",\"slug\":\"citrine-meaning\",\"name\":\"Citrine\"},{\"direction\":\"tien_yi\",\"intent\":\"Health (NE)\",\"slug\":\"bloodstone-meaning\",\"name\":\"Bloodstone\"},{\"direction\":\"nien_yen\",\"intent\":\"Love (SW)\",\"slug\":\"rose-quartz-meaning\",\"name\":\"Rose Quartz\"},{\"direction\":\"fu_wei\",\"intent\":\"Stability (NW)\",\"slug\":\"hematite-meaning\",\"name\":\"Hematite\"}]},{\"kua\":7,\"trigram\":{\"name\":\"Dui\",\"symbol\":\"\\u2631\",\"chinese\":\"\\u5151\"},\"element\":\"Metal\",\"group\":\"West\",\"colors\":[\"white\",\"silver\",\"pastels\"],\"directions\":{\"sheng_chi\":\"NW\",\"tien_yi\":\"SW\",\"nien_yen\":\"NE\",\"fu_wei\":\"W\",\"chueh_ming\":\"E\",\"wu_kwei\":\"SE\",\"liu_sha\":\"N\",\"ho_hai\":\"S\"},\"personality\":\"Dui (Metal\/lake) people are expressive, joyful and socially gifted. You carry the reflective brightness of a still lake catching light \\u2014 communicative, charming, and able to bring pleasure to others. Your growth edge is depth; the lake that shines brightest also runs deepest.\",\"home\":\"Brighten the West (your Fu Wei sector) with white and metallic accents to support creativity and joy; place reflective surfaces in the Northwest (Sheng Chi) to invite prosperity. Fresh, airy spaces suit your joyful Metal nature.\",\"crystals\":[{\"slug\":\"quartz-meaning\",\"name\":\"Quartz\",\"reason\":\"Clear Metal-element quartz amplifies Dui's bright, expressive clarity and creative sparkle.\",\"img\":\"https:\/\/goearthward.com\/wp-content\/uploads\/2026\/06\/quartz-overview.webp\",\"shop\":\"\/product-category\/clear-quartz-crystals\/\"},{\"slug\":\"moonstone-meaning\",\"name\":\"Moonstone\",\"reason\":\"Luminous white-luster stone supporting emotional depth beneath Dui's social charm.\",\"img\":\"https:\/\/goearthward.com\/wp-content\/uploads\/2026\/06\/moonstone-form-bracelet.webp\",\"shop\":\"\/product-category\/moonstone-crystals\/\"},{\"slug\":\"selenite-meaning\",\"name\":\"Selenite\",\"reason\":\"Pure white Metal stone keeping the joyful lake-type's energy clear and refreshed.\",\"img\":\"https:\/\/goearthward.com\/wp-content\/uploads\/2026\/06\/selenite-overview.webp\",\"shop\":\"\/product-category\/selenite-crystals\/\"}],\"bracelets\":[{\"direction\":\"sheng_chi\",\"intent\":\"Success & Wealth (NW)\",\"slug\":\"citrine-meaning\",\"name\":\"Citrine\"},{\"direction\":\"tien_yi\",\"intent\":\"Health (SW)\",\"slug\":\"bloodstone-meaning\",\"name\":\"Bloodstone\"},{\"direction\":\"nien_yen\",\"intent\":\"Love (NE)\",\"slug\":\"rose-quartz-meaning\",\"name\":\"Rose Quartz\"},{\"direction\":\"fu_wei\",\"intent\":\"Stability (W)\",\"slug\":\"moonstone-meaning\",\"name\":\"Moonstone\"}]},{\"kua\":8,\"trigram\":{\"name\":\"Gen\",\"symbol\":\"\\u2636\",\"chinese\":\"\\u826e\"},\"element\":\"Earth\",\"group\":\"West\",\"colors\":[\"yellow\",\"brown\",\"earthy tones\"],\"directions\":{\"sheng_chi\":\"SW\",\"tien_yi\":\"NW\",\"nien_yen\":\"W\",\"fu_wei\":\"NE\",\"chueh_ming\":\"S\",\"wu_kwei\":\"N\",\"liu_sha\":\"E\",\"ho_hai\":\"SE\"},\"personality\":\"Gen (Earth\/mountain) people are still, steady and self-contained. Like a mountain, you provide stability and a grounded presence others rely on; your calm is your power. Your growth edge is movement; even the mountain is shaped by the rivers that flow around it.\",\"home\":\"Ground the Northeast (your Fu Wei knowledge sector) with earthy crystals and steady objects to support study and stillness; face work toward the Southwest (Sheng Chi) for stable prosperity. Warm, layered earth tones throughout suit your mountain nature.\",\"crystals\":[{\"slug\":\"citrine-meaning\",\"name\":\"Citrine\",\"reason\":\"Earthy golden warmth nurturing Gen's mountain-steady nature, inviting abundance without disturbing stillness.\",\"img\":\"https:\/\/goearthward.com\/wp-content\/uploads\/2026\/06\/citrine-form-bracelet.webp\",\"shop\":\"\/product-category\/citrine-crystals\/\"},{\"slug\":\"tiger-eye-meaning\",\"name\":\"Tiger Eye\",\"reason\":\"Banded golden-brown quartz grounding Earth resolve, supporting steady protective strength.\",\"img\":\"https:\/\/goearthward.com\/wp-content\/uploads\/2026\/06\/tiger-eye-form-bracelet.webp\",\"shop\":\"\/product-category\/tiger-eye-crystals\/\"},{\"slug\":\"smoky-quartz-meaning\",\"name\":\"Smoky Quartz\",\"reason\":\"Earthy smoky stone anchoring mountain energy and gently releasing stagnation.\",\"img\":\"https:\/\/goearthward.com\/wp-content\/uploads\/2026\/06\/smoky-quartz-form-bracelet.webp\",\"shop\":\"\/product-category\/healing-crystals-jewelry\/\"}],\"bracelets\":[{\"direction\":\"sheng_chi\",\"intent\":\"Success & Wealth (SW)\",\"slug\":\"citrine-meaning\",\"name\":\"Citrine\"},{\"direction\":\"tien_yi\",\"intent\":\"Health (NW)\",\"slug\":\"bloodstone-meaning\",\"name\":\"Bloodstone\"},{\"direction\":\"nien_yen\",\"intent\":\"Love (W)\",\"slug\":\"rose-quartz-meaning\",\"name\":\"Rose Quartz\"},{\"direction\":\"fu_wei\",\"intent\":\"Stability (NE)\",\"slug\":\"tiger-eye-meaning\",\"name\":\"Tiger Eye\"}]},{\"kua\":9,\"trigram\":{\"name\":\"Li\",\"symbol\":\"\\u2632\",\"chinese\":\"\\u79bb\"},\"element\":\"Fire\",\"group\":\"East\",\"colors\":[\"red\",\"purple\",\"warm tones\"],\"directions\":{\"sheng_chi\":\"E\",\"tien_yi\":\"SE\",\"nien_yen\":\"N\",\"fu_wei\":\"S\",\"chueh_ming\":\"NW\",\"wu_kwei\":\"NE\",\"liu_sha\":\"W\",\"ho_hai\":\"SW\"},\"personality\":\"Li (Fire) people are radiant, passionate and visibility-seeking in the best sense. Like fire, you illuminate, inspire and lead through warmth and clarity of vision. Your growth edge is sustainability; fire that tends its fuel burns longest, so guard against burnout.\",\"home\":\"Strengthen the South (your Fu Wei fame sector) with warm lighting and red accents to support visibility and reputation; face work toward the East (Sheng Chi) for inspired success. Candles and warm tones feed your Fire element.\",\"crystals\":[{\"slug\":\"carnelian-meaning\",\"name\":\"Carnelian\",\"reason\":\"Warm Fire-element stone fueling Li's radiant confidence and sustained creative vitality.\",\"img\":\"https:\/\/goearthward.com\/wp-content\/uploads\/2026\/06\/carnelian-form-bracelet-1.webp\",\"shop\":\"\/product-category\/carnelian-crystals\/\"},{\"slug\":\"sunstone-meaning\",\"name\":\"Sunstone\",\"reason\":\"Sunlit Fire stone supporting joyful visibility and leadership without burnout.\",\"img\":\"https:\/\/goearthward.com\/wp-content\/uploads\/2026\/06\/sunstone-form-bracelet.webp\",\"shop\":\"\/product-category\/healing-crystals-jewelry\/\"},{\"slug\":\"red-jasper-meaning\",\"name\":\"Red Jasper\",\"reason\":\"Earthy red stone grounding Fire's intensity into steady, sustainable passion.\",\"img\":\"https:\/\/goearthward.com\/wp-content\/uploads\/2026\/06\/red-jasper-form-bracelet-1.webp\",\"shop\":\"\/product-category\/red-jasper-crystals\/\"}],\"bracelets\":[{\"direction\":\"sheng_chi\",\"intent\":\"Success & Wealth (E)\",\"slug\":\"citrine-meaning\",\"name\":\"Citrine\"},{\"direction\":\"tien_yi\",\"intent\":\"Health (SE)\",\"slug\":\"bloodstone-meaning\",\"name\":\"Bloodstone\"},{\"direction\":\"nien_yen\",\"intent\":\"Love (N)\",\"slug\":\"rose-quartz-meaning\",\"name\":\"Rose Quartz\"},{\"direction\":\"fu_wei\",\"intent\":\"Stability (S)\",\"slug\":\"carnelian-meaning\",\"name\":\"Carnelian\"}]}],\"dir_names\":{\"auspicious\":{\"sheng_chi\":\"Success (Sheng Chi )\",\"tien_yi\":\"Health (Tien Yi )\",\"nien_yen\":\"Love (Nien Yen )\",\"fu_wei\":\"Stability (Fu Wei )\"},\"inauspicious\":{\"ho_hai\":\"Mishaps (Ho Hai )\",\"wu_kwei\":\"Five Ghosts (Wu Kwei )\",\"liu_sha\":\"Six Killings (Liu Sha )\",\"chueh_ming\":\"Total Loss (Chueh Ming )\"}},\"healing\":\"\/product-category\/healing-crystals-jewelry\/\",\"li_chun_note\":\"Feng shui uses the solar calendar \\u2014 the year begins at Li Chun (Start of Spring, ~February 4). If you were born Jan 1 \\u2013 Feb 3, your feng shui birth year is the previous year.\"}<\/script>\n<script type=\"text\/plain\" id=\"ekua-app\">KGZ1bmN0aW9uKCl7CiAgdmFyIERBVEE7CiAgdHJ5IHsgREFUQSA9IEpTT04ucGFyc2UoZG9jdW1lbnQuZ2V0RWxlbWVudEJ5SWQoJ2VrdWEtZGF0YScpLnRleHRDb250ZW50KTsgfQogIGNhdGNoIChlKSB7IGNvbnNvbGUuZXJyb3IoJ0VLVUEgZGF0YSBwYXJzZSBmYWlsZWQnLCBlKTsgcmV0dXJuOyB9CiAgdmFyIEtVQVMgPSBEQVRBLmt1YXMsIERJUk5BTUVTID0gREFUQS5kaXJfbmFtZXMsIEhFQUxJTkcgPSBEQVRBLmhlYWxpbmc7CiAgdmFyIEtVQV9CWV9OVU0gPSB7fTsgS1VBUy5mb3JFYWNoKGZ1bmN0aW9uKGspeyBLVUFfQllfTlVNW2sua3VhXSA9IGs7IH0pOwoKICBmdW5jdGlvbiBlc2Mocyl7IHJldHVybiBTdHJpbmcocz09bnVsbD8nJzpzKS5yZXBsYWNlKC8mL2csJyZhbXA7JykucmVwbGFjZSgvPC9nLCcmbHQ7JykucmVwbGFjZSgvPi9nLCcmZ3Q7JykucmVwbGFjZSgvIi9nLCcmcXVvdDsnKTsgfQogIGZ1bmN0aW9uIHNob3BVcmwoc3RvbmUpeyBpZighc3RvbmUpIHJldHVybiBIRUFMSU5HOyBpZihzdG9uZS5zaG9wKSByZXR1cm4gc3RvbmUuc2hvcDsgaWYoc3RvbmUuc2x1ZykgcmV0dXJuICcvc2hvcC8\/cz0nK2VuY29kZVVSSUNvbXBvbmVudChzdG9uZS5zb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LXllYXInKS52YWx1ZSwgMTApOwogICAgICB2YXIgbW8gPSBwYXJzZUludChkb2N1bWVudC5nZXRFbGVtZW50QnlJZCgnZWt1YS1tb250aCcpLnZhbHVlLCAxMCk7CiAgICAgIHZhciBkYSA9IHBhcnNlSW50KGRvY3VtZW50LmdldEVsZW1lbnRCeUlkKCdla3VhLWRheScpLnZhbHVlLCAxMCk7CiAgICAgIHZhciBnID0gZG9jdW1lbnQucXVlcnlTZWxlY3RvcignaW5wdXRbbmFtZT0iZWt1YS1nZW5kZXIiXTpjaGVja2VkJyk7CiAgICAgIGlmICgheSB8fCAhbW8gfHwgIWRhIHx8ICFnKSB7IGFsZXJ0KCdQbGVhc2UgZW50ZXIgeW91ciBiaXJ0aCBkYXRlIGFuZCBnZW5kZXIuJyk7IHJldHVybjsgfQogICAgICBnID0gZy52YWx1ZTsKICAgICAgdmFyIGt1YU51bSA9IGNhbGNLdWEoeSwgbW8sIGRhLCBnKTsKICAgICAgdmFyIGt1YSA9IEtVQV9CWV9OVU1ba3VhTnVtXTsKICAgICAgaWYgKCFrdWEpIHsgYWxlcnQoJ0t1YSAnICsga3VhTnVtICsgJyBkYXRhIG1pc3NpbmcuJyk7IHJldHVybjsgfQogICAgICByZW5kZXIoa3VhLCBnLCBtbyArICcvJyArIGRhICsgJy8nICsgeSk7CiAgICB9KTsKICB9CiAgaWYgKGRvY3VtZW50LnJlYWR5U3RhdGUgPT09ICdsb2FkaW5nJykgZG9jdW1lbnQuYWRkRXZlbnRMaXN0ZW5lcignRE9NQ29udGVudExvYWRlZCcsIGluaXQpOwogIGVsc2UgaW5pdCgpOwp9KSgpOw==<\/script>\n<script>(function(){var b=document.getElementById('ekua-app').textContent;try{var s=atob(b);(0,eval)(s);}catch(e){console.error('EKUA init failed',e);}})();<\/script>\n\n<!-- ===== Kua Calculator Schema (FAQPage) ===== -->\n<script type=\"application\/ld+json\">\n{\"@context\":\"https:\/\/schema.org\",\"@type\":\"FAQPage\",\"mainEntity\":[\n{\"@type\":\"Question\",\"name\":\"What is a Kua number in feng shui?\",\"acceptedAnswer\":{\"@type\":\"Answer\",\"text\":\"A Kua number (also called Gua number) is a number from 1 to 9 used in classical Ba Zhai (Eight Mansions) feng shui. It is calculated from your birth year and gender, and reveals your four auspicious and four challenging compass directions for success, health, relationships, and stability. It is a traditional framework for arranging your space, not a guarantee of outcomes.\"}},\n{\"@type\":\"Question\",\"name\":\"How do I calculate my Kua number?\",\"acceptedAnswer\":{\"@type\":\"Answer\",\"text\":\"Take the last two digits of your birth year, add them, and reduce to a single digit. Males subtract that digit from 10 (1900s) or 9 (2000s); females add 5 (1900s) or 6 (2000s), then reduce to a single digit. If the result is 5, males use 2 and females use 8. Feng shui uses the solar calendar, so if you were born January 1 to February 3 (before Li Chun, around February 4), use the previous year.\"}},\n{\"@type\":\"Question\",\"name\":\"Why does my birth date before February 4 change my Kua number?\",\"acceptedAnswer\":{\"@type\":\"Answer\",\"text\":\"Feng shui follows the solar calendar, and the Chinese solar year begins at Li Chun (Start of Spring), which falls around February 4 each year. If you were born between January 1 and February 3, your feng shui birth year is the previous calendar year. This calculator applies the Li Chun adjustment automatically.\"}},\n{\"@type\":\"Question\",\"name\":\"Which crystals match my Kua number?\",\"acceptedAnswer\":{\"@type\":\"Answer\",\"text\":\"Each Kua number belongs to one of the five elements (Water, Wood, Fire, Earth, or Metal). This calculator pairs you with three birth crystals traditionally aligned with your element and lucky colors, drawn from a library of over 390 stones. Crystal pairings are traditional and symbolic, not a medical claim.\"}},\n{\"@type\":\"Question\",\"name\":\"Is the Kua number different for males and females?\",\"acceptedAnswer\":{\"@type\":\"Answer\",\"text\":\"Yes. The Kua formula differs by gender: males subtract from 10 (or 9 for births after 2000) and females add 5 (or 6 for births after 2000), so the same birth date yields different Kua numbers for men and women. This reflects the classical Eight Mansions tradition.\"}},\n{\"@type\":\"Question\",\"name\":\"Are Kua numbers and feng shui directions scientifically proven?\",\"acceptedAnswer\":{\"@type\":\"Answer\",\"text\":\"No. Feng shui is a traditional cultural practice for arranging your environment to support intention and wellbeing. Kua numbers and their directions are a framework for reflection, not a scientifically proven system and not a guarantee of specific results, wealth, or outcomes. They are best used as a mindful lens alongside your own judgment.\"}}\n]}\n<\/script>\n<!-- ===== End Kua Number Calculator v1.0 ===== -->\n","protected":false},"excerpt":{"rendered":"<p>Kua Number Calculator Find your feng shui Kua (Gua) number, your four auspicious and four challenging directions, and the birth<\/p>","protected":false},"author":1,"featured_media":0,"parent":43101,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_acf_changed":false,"footnotes":""},"class_list":["post-55939","page","type-page","status-publish","hentry"],"acf":[],"_links":{"self":[{"href":"https:\/\/goearthward.com\/zh\/wp-json\/wp\/v2\/pages\/55939","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/goearthward.com\/zh\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/goearthward.com\/zh\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/goearthward.com\/zh\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/goearthward.com\/zh\/wp-json\/wp\/v2\/comments?post=55939"}],"version-history":[{"count":2,"href":"https:\/\/goearthward.com\/zh\/wp-json\/wp\/v2\/pages\/55939\/revisions"}],"predecessor-version":[{"id":56010,"href":"https:\/\/goearthward.com\/zh\/wp-json\/wp\/v2\/pages\/55939\/revisions\/56010"}],"up":[{"embeddable":true,"href":"https:\/\/goearthward.com\/zh\/wp-json\/wp\/v2\/pages\/43101"}],"wp:attachment":[{"href":"https:\/\/goearthward.com\/zh\/wp-json\/wp\/v2\/media?parent=55939"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}