/* BNASDAQ — 機構風格設計系統（2026-11-03 改版）
   參考資產管理公司網站的語彙：深色頁首與頁尾、襯線大標、細線分隔、留白、香檳金點綴；數據圖表沿用已驗證的色盲安全配色（--s-*）。
   所有既有 class 保留，頁面內容與 JS 不需更動。 */
/* 字型：本站精簡版 Noto Sans TC／Noto Serif TC（只含網站用到的字，字形與 Google Fonts 相同；產生方式見 scripts/build_fonts.py）
   沒收錄的字依序改用 Google 的 Noto（由 site.js 只補那幾個字）→ 系統字型 */
/* @fonts-start */
@font-face { font-family: "BN Sans"; src: url(fonts/bn-sans-400.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+0-1f,U+21-10ffff; }
@font-face { font-family: "BN Sans"; src: url(fonts/bn-sans-400-s11.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+fb01,U+fe33-fe36,U+fe38-fe44,U+fe49-fe51,U+fe54,U+fe56-fe57,U+fe59-fe5c,U+fe5f-fe66,U+fe68-fe6a,U+ff04,U+ff07,U+ff26-ff2c,U+ff31-ff32,U+ff35-ff37,U+ff39-ff3a,U+ff3c,U+ff3e-ff5b,U+ff5d,U+ff61-ff65,U+ff67-ff68,U+ff6a,U+ff6c-ff77; }
@font-face { font-family: "BN Sans"; src: url(fonts/bn-sans-400-s95.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+1ec0-1ec3,U+1ec5-1ec6,U+1ec9,U+1ecb-1ecd,U+1ecf-1ed1,U+1ed3-1ed5,U+1ed7-1edd,U+1edf,U+1ee1,U+1ee3-1ee7,U+1ee9,U+1eeb,U+1eed,U+1eef-1ef1,U+1ef3,U+1ef7,U+1ef9,U+2002-2003,U+2010-2012,U+2015-2016,U+201a,U+201e,U+2020-2021,U+2025,U+2030,U+2032-2033,U+2035,U+2042,U+2049,U+2074,U+20a9,U+20ab,U+20dd,U+2105,U+2109,U+2113,U+2116,U+2121,U+2126,U+212b; }
@font-face { font-family: "BN Sans"; src: url(fonts/bn-sans-400-s108.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+3081,U+5835,U+5c60,U+6514,U+652c,U+6cab,U+6eef,U+6ef2,U+76ea,U+776b,U+7a46,U+8adc,U+8cc3,U+8f44,U+929c,U+97cc,U+ff1c-ff1d,U+ff21,U+ff38,U+ff9f; }
@font-face { font-family: "BN Sans"; src: url(fonts/bn-sans-400-s109.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+2103,U+25a0,U+266a,U+3014-3015,U+50d1,U+5d4c,U+6052,U+614c,U+6296,U+632a-632b,U+679a,U+6a11,U+6b67,U+6c83,U+74ca,U+7624,U+7838,U+788c,U+79a6,U+7f79,U+8755,U+88f9,U+916c,U+9245,U+ff16-ff19; }
@font-face { font-family: "BN Sans"; src: url(fonts/bn-sans-400-s110.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+a5,U+2190-2191,U+2193,U+25cb,U+524a,U+52f3,U+59a8,U+6070,U+60df,U+61fc,U+62bc,U+65ac,U+6602,U+6e4a,U+6e67,U+6ea2,U+715e,U+76f2,U+77fd,U+780d,U+78c5,U+7a84,U+7aca,U+7def,U+7f77,U+83f1,U+9175,U+9470,U+9b4f,U+9f90,U+ff05,U+ff14; }
@font-face { font-family: "BN Sans"; src: url(fonts/bn-sans-400-s111.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+25ce,U+4ea8,U+4f3a,U+50ac,U+51f8,U+52f8,U+535c,U+541e,U+5733,U+5c65,U+5cfd,U+6291,U+62d3,U+62da,U+62fe,U+64a4,U+64b2,U+64ce,U+6558,U+65a5,U+6aaf,U+6b96,U+6f84,U+72d0,U+75b2,U+7891,U+7c72,U+7f55,U+81c2,U+8332,U+845b,U+8667,U+8b39,U+8caa,U+8eb2,U+908f,U+9215,U+fe30,U+ff0b,U+ff10,U+ff15; }
@font-face { font-family: "BN Sans"; src: url(fonts/bn-sans-400-s112.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+b0,U+22ef,U+25c6,U+2665,U+4f0d,U+50b5,U+511f,U+5141,U+5146,U+514c,U+51fd,U+5378,U+53c9,U+5915,U+5b0c,U+5f59,U+5f6d,U+5fb9,U+6062,U+6108,U+614e,U+626d,U+62cb,U+6368,U+64e0,U+67f1,U+6851,U+687f,U+6cca,U+6cdb,U+6d29,U+6daf,U+758f,U+7a00,U+7be9,U+7c4c,U+7e2b,U+7e31,U+816b,U+8870,U+88d5,U+8cb8,U+8ce0,U+8d81,U+8ef8,U+8f1b,U+8fa8,U+906e,U+919c,U+98c6,U+ff06,U+ff0a,U+ff12-ff13; }
@font-face { font-family: "BN Sans"; src: url(fonts/bn-sans-400-s113.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+25cf,U+2606,U+3008-3009,U+50be,U+5272,U+52fe,U+53ec,U+594f,U+5951,U+5ac1,U+5d29,U+5de1,U+5f7c,U+5faa,U+6046,U+6212,U+62b9,U+6350,U+6490,U+659c,U+6cbf,U+6db5,U+71c3,U+731c,U+758a,U+75d5,U+76c8,U+76e7,U+7709,U+7926,U+7d81,U+7e5e,U+7f70,U+8058,U+80c3,U+8105,U+84b8,U+86c7,U+8896,U+8b7d,U+8ca2,U+8d64,U+8d74,U+8ecc,U+9022,U+903e,U+905c,U+9072,U+9838,U+9a5f,U+9ad2,U+9df9,U+ff11,U+ff1e; }
@font-face { font-family: "BN Sans"; src: url(fonts/bn-sans-400-s116.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+201c-201d,U+203b,U+2192,U+25b2,U+300f,U+4e01,U+4e39,U+4e88,U+4f0a,U+4f38,U+4f5b,U+4fc3,U+500d,U+504f,U+5100,U+5104,U+5132,U+5175,U+51a0,U+51ac,U+51e1,U+5224,U+5238,U+526f,U+52de,U+5371,U+53e5,U+547c,U+552f,U+56f0,U+5761,U+57f7,U+5805,U+5854,U+586b,U+592e,U+5967,U+59bb,U+59d3,U+5bec,U+5c24,U+5e2d,U+5f1f,U+5fd9,U+61b6,U+62b5,U+62d6,U+63cf,U+63e1,U+640d,U+64cd,U+64fe,U+654f,U+65c1,U+65d7,U+6620,U+6676,U+6697,U+66ab,U+66c6,U+66dd,U+66ff,U+671d,U+672b,U+67d0,U+68c4,U+690d,U+695a,U+6ac3,U+6b04,U+6b23,U+6b78,U+6c60,U+6d89,U+6db2,U+6de1,U+6e38,U+6fc3,U+70c8,U+7126,U+718a,U+79df,U+7a05,U+7a3f,U+7a69,U+7af6,U+7c3d,U+7c4d,U+7d2b,U+7de3,U+7e2e,U+812b,U+83f2,U+840a,U+8463,U+860b,U+878d,U+885d,U+89f8,U+8afe,U+8b5c,U+8c37,U+8c46,U+8cbf,U+8cd3,U+8cf4,U+8ddd,U+9014,U+9055,U+934b,U+9396,U+9583,U+9663,U+96bb,U+9707,U+9846,U+9905,U+9aa8,U+9ea5,U+9f4a,U+ff0d; }
@font-face { font-family: "BN Sans"; src: url(fonts/bn-sans-400-s117.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+3c,U+d7,U+300e,U+4e4e,U+4e82,U+4e92,U+4ec1,U+4ecd,U+4fb5,U+5012,U+502b,U+522a,U+52dd,U+52ff,U+532f,U+53f3,U+5409,U+56b4,U+56fa,U+5713,U+57df,U+584a,U+58de,U+593e,U+59d4,U+5b88,U+5ba3,U+5bae,U+5bdf,U+5c01,U+5c04,U+5c3e,U+5ddd-5dde,U+5de8,U+5e63,U+5e8a,U+5ef6,U+5f48,U+6025,U+6050,U+6069,U+60e1,U+6162,U+6176,U+61c2,U+6200,U+6263,U+6279,U+6297,U+62bd,U+62ec,U+6311,U+6377,U+6388-6389,U+638c,U+63a2,U+63f4,U+6436,U+64c1,U+6551,U+6557,U+6563,U+6696,U+66b4,U+66f2,U+6751,U+675f,U+6790,U+6838,U+684c,U+68d2,U+6982,U+699c,U+69ae,U+69cb,U+6a39,U+6a4b,U+6b66,U+6cb3,U+6ce1,U+6d3e,U+6de8,U+6ed1,U+6fdf,U+719f,U+7259,U+7389,U+745e,U+7533,U+7591,U+7686,U+76db,U+76df,U+76e3,U+7701,U+786c,U+7981,U+79d2,U+79fb,U+7a81,U+7a97,U+7aef,U+7b26,U+7c64,U+7d0d,U+7d14,U+7d2f,U+7dca,U+7df4,U+7e54,U+7e6b,U+7f3a,U+8033,U+805a,U+81e8,U+8449,U+84cb,U+85e5,U+8a13,U+8a5e,U+8aa4,U+8ab0,U+8ab2,U+8ac7,U+8b66,U+8c9d,U+8de8,U+8f2a,U+8fb2,U+906d,U+907f,U+90a6,U+9192,U+91cb,U+91dd,U+964d,U+9686,U+968e,U+9694,U+969c,U+96ea,U+96f7,U+975c,U+9760,U+9858,U+9918,U+ff0e-ff0f,U+ff5c; }
@font-face { font-family: "BN Sans"; src: url(fonts/bn-sans-400-s118.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+b7,U+2022,U+2027,U+3042,U+3044,U+3046,U+3048,U+304a-3050,U+3053-3057,U+3059-305b,U+305d-3061,U+3063-306c,U+306e-3079,U+307b,U+307d-307f,U+3082-308d,U+308f,U+3092-3093,U+30a1-30a4,U+30a6-30c1,U+30c3-30c4,U+30c6-30e1,U+30e3-30ed,U+30ef,U+30f3,U+30fb-30fc,U+4ea6,U+4eac,U+4f34,U+50b7,U+523b,U+5283,U+5348,U+5354,U+54e5,U+5708,U+590f,U+592b,U+5a01,U+5a5a,U+5de7,U+5e78,U+5e9c,U+5fb5,U+6167,U+627f,U+63a1,U+64d4,U+65bd,U+68ee,U+6bba,U+6d6a,U+6e1b,U+6f6e,U+71d2,U+722d,U+72c2,U+7530,U+7642,U+76e1,U+7d9c,U+7da0,U+7e41,U+8056,U+8173,U+822a,U+8349,U+8840,U+885b,U+8907,U+8a34,U+8cb4,U+8dd1,U+8fd4,U+8ff0,U+93e1,U+984f; }
@font-face { font-family: "BN Sans"; src: url(fonts/bn-sans-400-s119.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+23-25,U+3d,U+2026,U+4e03,U+4e45,U+4e5d,U+4eae,U+4ed8,U+4f01,U+4f11,U+4f3c,U+4f8b,U+4fc2,U+5019,U+505c,U+50c5,U+5145,U+51b7,U+5207,U+521d,U+525b,U+5287,U+52e2,U+535a,U+537b,U+5426,U+542b,U+5438,U+54ea,U+555f,U+5584,U+570d,U+571f,U+5747,U+58d3,U+591c,U+5920,U+5957,U+5a92,U+5b63,U+5b83,U+5b9c,U+5bb3,U+5c3c,U+5c40,U+5c4b,U+5c64,U+5cf6,U+5de6,U+5e0c,U+5e55,U+5eab,U+5ead,U+5ee0,U+5f85,U+5f8b,U+5fa9,U+5fd7-5fd8,U+600e,U+6298,U+62db,U+62ff,U+639b,U+63a7,U+642d,U+6469,U+64ad,U+653b,U+65b7,U+65cf,U+665a,U+666e,U+66fe,U+67b6,U+6821,U+6839,U+6a94,U+6b50,U+6b62,U+6bcd,U+6bdb,U+6c38,U+6c7a,U+6c7d,U+6c99,U+6cb9,U+6ce2,U+6cf0,U+6d17,U+6d32,U+6e2c,U+6fb3,U+7206,U+723e,U+725b,U+7387,U+73ed,U+7565,U+7570,U+76ca,U+76e4,U+773e,U+77ed,U+77f3,U+7814,U+7834,U+7968,U+79d8,U+7a76,U+7b46,U+7bc4,U+7d20,U+7d22,U+7d42,U+7d55,U+7e7c,U+7f85,U+7ffb,U+8077,U+80cc,U+81f4,U+81fa,U+820a,U+822c,U+85cd,U+88dc,U+8986,U+8a0e,U+8a2a,U+8a73,U+8a8c,U+8c50,U+8c61,U+8ca0,U+8cfd,U+8d8a,U+8df3,U+8e64,U+8ecd,U+8edf,U+8f38,U+9000,U+9047,U+9060,U+91ce,U+9280,U+9418,U+9435,U+9589,U+9592,U+9678,U+967d,U+968a,U+96aa,U+96c5,U+96dc,U+96f6,U+9732,U+9748,U+9802,U+9806,U+9808,U+9818,U+983b,U+984d,U+98db,U+9b06,U+9bae,U+ff1b,U+ff5e; }
@font-face { font-family: "BN Sans"; src: url(fonts/bn-sans-400-s121.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+3e,U+7e,U+3000,U+300a-300b,U+3010-3011,U+4e16,U+4e26,U+4e94,U+4e9b,U+4ea4,U+4eca-4ecb,U+4efb,U+4efd,U+4f46,U+4f55,U+4f9b,U+4f9d,U+4fbf,U+505a,U+5065,U+5099,U+50cf,U+50f9,U+512a,U+5143,U+5148,U+514d,U+5152,U+5169,U+5171,U+5177,U+518a,U+5217,U+5225,U+5247,U+5275,U+529f,U+52a9,U+5305,U+5341,U+5357,U+5361,U+5373,U+53bb,U+53c3,U+53c8,U+53d6-53d7,U+53e3,U+53ea,U+53f8,U+5404,U+5668,U+56db,U+56e0,U+5712,U+5718,U+578b,U+57fa,U+58eb,U+592a,U+5c0b,U+5c0e,U+5c11,U+5c1a,U+5c55,U+5c71,U+5df1,U+5e2b,U+5e36,U+5e97,U+5eb7,U+5ee3,U+5efa,U+5f35,U+5f37,U+5f88,U+5f9e,U+5fc5,U+606f,U+60a8,U+624d,U+6253,U+627e,U+6280,U+6301,U+6307,U+6392,U+63a5,U+6539,U+653e-653f,U+6574,U+65c5,U+6613,U+66f8,U+672a,U+6797,U+67e5,U+6a19,U+6a23,U+6b61,U+6bcf,U+6bd4,U+6c11,U+6c42,U+6d41,U+6d77,U+6d88,U+6e05,U+6e2f,U+6eff,U+7136,U+7167,U+71df,U+738b,U+7403,U+7531,U+754c,U+7559,U+767d-767e,U+76f4,U+793a,U+795e,U+79c1,U+79d1,U+7a2e,U+7a31,U+7a7a,U+7ae0,U+7ba1,U+7bc0,U+7c21,U+7cfb,U+7d04-7d05,U+7d1a,U+7d44,U+7d66,U+7d71,U+7de8,U+7e3d,U+800c,U+805e,U+8072,U+81f3,U+82b1,U+82f1,U+83ef,U+842c,U+8457,U+8655,U+8853,U+88ab,U+88dd,U+88fd,U+897f,U+898f,U+89aa,U+89bd,U+89c0,U+89e3,U+8a02,U+8a3b,U+8a55,U+8a8d,U+8a9e,U+8ad6,U+8b49,U+8b77,U+8b8a,U+8b93,U+8cb7,U+8ce3,U+8cea,U+8cfc,U+8f09,U+8fd1,U+9001,U+901f-9020,U+9054,U+90a3,U+914d,U+91cf,U+9304,U+95b1,U+9650,U+9664,U+969b,U+96b1,U+96c6,U+9700,U+975e,U+98a8,U+98df,U+9999,U+99ac,U+9a57,U+9ebc; }
@font-face { font-family: "BN Sans"; src: url(fonts/bn-sans-400-s122.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+2b,U+7c,U+a0,U+a9,U+300c-300d,U+4e09,U+4e3b,U+4e4b,U+4e5f,U+4e86,U+4e8b-4e8c,U+4eab,U+4ed6,U+4ee3-4ee4,U+4ef6,U+4f4d,U+4f60,U+4f7f,U+4f86,U+4fdd,U+4fe1,U+5011,U+50b3,U+5149,U+5167,U+5176,U+518d,U+5229,U+524d,U+529b,U+52a0,U+52d9,U+5316-5317,U+5340,U+539f,U+53ca-53cb,U+5408,U+540c-540d,U+544a,U+548c,U+54c1,U+54e1,U+5546,U+554f,U+55ae,U+56de,U+5716,U+5831,U+5834,U+5916,U+5929,U+5973,U+597d,U+5982,U+5b57,U+5b78,U+5b89,U+5b8c,U+5b9a,U+5ba2,U+5bb9,U+5be6,U+5c07-5c08,U+5c0d,U+5c31,U+5de5,U+5df2,U+5e02,U+5e38,U+5e73-5e74,U+5ea6,U+5f0f,U+5f71,U+5f8c,U+5f97,U+5feb,U+6027,U+60c5,U+60f3,U+610f,U+611b,U+611f,U+61c9,U+6210,U+6216,U+6240,U+624b,U+63a8,U+63d0,U+641c,U+6536,U+6578,U+6599,U+65b9,U+660e,U+661f,U+66f4,U+670d,U+671f,U+6771,U+679c,U+683c,U+689d,U+696d,U+6a02,U+6a5f,U+6b0a,U+6b21,U+6b3e,U+6b64,U+6c23,U+6c34,U+6c92,U+6cbb,U+6cd5,U+7063,U+7121,U+71b1,U+7247-7248,U+7269,U+7279,U+73fe,U+7406,U+7522,U+7576,U+767b,U+76ee,U+76f8,U+770b,U+771f,U+77e5,U+793e,U+7a0b,U+7acb,U+7ad9,U+7b2c,U+7b49,U+7cbe,U+7d50,U+7d61,U+7d93,U+7dda,U+7f8e,U+8005,U+806f,U+80fd,U+81ea,U+8207,U+8272,U+865f,U+8868,U+8981,U+898b,U+8996,U+8a00,U+8a08,U+8a0a,U+8a18,U+8a2d,U+8a71,U+8aaa,U+8acb,U+8cbb,U+8cc7,U+8d77,U+8d85,U+8def,U+8eab,U+8eca,U+8f49,U+9019-901a,U+9023,U+9032,U+904a-904b,U+904e,U+9053,U+9078,U+9084,U+90e8,U+90fd,U+91cd,U+91d1,U+9577,U+9580,U+9593,U+9762,U+982d,U+984c,U+985e,U+9996,U+9ad4,U+9ad8,U+9ede,U+ff01,U+ff08-ff09,U+ff1f; }
@font-face { font-family: "BN Sans"; src: url(fonts/bn-sans-400-s123.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+20-22,U+27-2a,U+2c-3b,U+3f,U+41-5d,U+61-7b,U+7d,U+ab,U+ae,U+b2-b3,U+bb,U+bf-c2,U+c8-ca,U+cc-ce,U+d2-d4,U+d6,U+d9-db,U+e0-ef,U+f1-f4,U+f6,U+f9-fd,U+100-103,U+110-113,U+11a-11b,U+12a-12b,U+143-144,U+147-148,U+14c-14f,U+16a-16d,U+1a1,U+1b0,U+1cd-1d4,U+1f8-1f9,U+300-301,U+304,U+30c,U+1e3e-1e3f,U+1ea1,U+1ea3,U+1ebf,U+1ec7,U+2013-2014,U+2039-203a,U+203c,U+2122,U+3001-3002,U+3113-3114,U+3118,U+311a-3129,U+4e00,U+4e0a-4e0b,U+4e0d,U+4e2d,U+4eba,U+4ee5,U+4f5c,U+500b,U+5165,U+5168,U+516c,U+51fa,U+5206,U+5230,U+52d5,U+53ef-53f0,U+570b,U+5728,U+5730,U+591a,U+5927,U+5b50,U+5bb6,U+5c0f,U+5fc3,U+6211,U+6587,U+65b0,U+65bc,U+65e5,U+662f,U+6642,U+6700,U+6703,U+6708-6709,U+672c,U+6b63,U+70ba,U+751f,U+7528,U+767c,U+7684,U+7db2,U+884c,U+958b,U+95dc,U+96fb,U+9801,U+ff0c,U+ff1a; }
@font-face { font-family: "BN Sans"; src: url(fonts/bn-sans-500.woff2) format("woff2"); font-weight: 500; font-style: normal; font-display: swap; unicode-range: U+0-1f,U+21-10ffff; }
@font-face { font-family: "BN Sans"; src: url(fonts/bn-sans-500-s117.woff2) format("woff2"); font-weight: 500; font-style: normal; font-display: swap; unicode-range: U+3c,U+d7,U+300e,U+57df,U+5ef6,U+63a2,U+6790,U+ff0e-ff0f,U+ff5c; }
@font-face { font-family: "BN Sans"; src: url(fonts/bn-sans-500-s119.woff2) format("woff2"); font-weight: 500; font-style: normal; font-display: swap; unicode-range: U+23-25,U+3d,U+2026,U+4f11,U+505c,U+521d,U+52e2,U+58d3,U+5957,U+64ad,U+666e,U+6c7a,U+6ce2,U+6e2c,U+7565,U+7570,U+7814,U+7a76,U+7d20,U+7d22,U+7e7c,U+7f85,U+9000,U+96aa,U+984d,U+ff1b,U+ff5e; }
@font-face { font-family: "BN Sans"; src: url(fonts/bn-sans-500-s122.woff2) format("woff2"); font-weight: 500; font-style: normal; font-display: swap; unicode-range: U+2b,U+7c,U+a0,U+a9,U+300c-300d,U+4e09,U+4ee3,U+524d,U+529b,U+52a0,U+5340,U+5408,U+540c,U+54e1,U+554f,U+55ae,U+56de,U+5716,U+5834,U+5b57,U+5b8c,U+5b9a,U+5c08,U+5c0d,U+5de5,U+5e02,U+5e38,U+5ea6,U+5f71,U+5f8c,U+6027,U+6240,U+63a8,U+6578,U+6599,U+66f4,U+671f,U+696d,U+6b0a,U+7063,U+7247-7248,U+7522,U+767b,U+76ee,U+7ad9,U+7d93,U+7dda,U+7f8e,U+81ea,U+8207,U+8868,U+898b,U+8996,U+8a08,U+8cbb,U+8cc7,U+8d77,U+9032,U+9053,U+90e8,U+91cd,U+9593,U+9762,U+984c,U+9996,U+9ad4,U+9ede,U+ff01,U+ff08-ff09,U+ff1f; }
@font-face { font-family: "BN Sans"; src: url(fonts/bn-sans-500-s123.woff2) format("woff2"); font-weight: 500; font-style: normal; font-display: swap; unicode-range: U+20-22,U+27-2a,U+2c-3b,U+3f,U+41-5d,U+61-7b,U+7d,U+ab,U+ae,U+b2-b3,U+bb,U+bf-c2,U+c8-ca,U+cc-ce,U+d2-d4,U+d6,U+d9-db,U+e0-ef,U+f1-f4,U+f6,U+f9-fd,U+100-103,U+110-113,U+11a-11b,U+12a-12b,U+143-144,U+147-148,U+14c-14f,U+16a-16d,U+1a1,U+1b0,U+1cd-1d4,U+1f8-1f9,U+300-301,U+304,U+30c,U+1e3e-1e3f,U+1ea1,U+1ea3,U+1ebf,U+1ec7,U+2013-2014,U+2039-203a,U+203c,U+2122,U+3001-3002,U+3113-3114,U+3118,U+311a-3129,U+4e00,U+4e0a,U+4e0d,U+500b,U+5165,U+5168,U+51fa,U+5206,U+5230,U+52d5,U+53ef-53f0,U+5bb6,U+65b0,U+65bc,U+65e5,U+6700,U+6703,U+6708-6709,U+70ba,U+767c,U+7db2,U+95dc,U+96fb,U+9801,U+ff0c,U+ff1a; }
@font-face { font-family: "BN Sans"; src: url(fonts/bn-sans-700.woff2) format("woff2"); font-weight: 700; font-style: normal; font-display: swap; unicode-range: U+0-1f,U+21-10ffff; }
@font-face { font-family: "BN Sans"; src: url(fonts/bn-sans-700-s11.woff2) format("woff2"); font-weight: 700; font-style: normal; font-display: swap; unicode-range: U+fb01,U+fe33-fe36,U+fe38-fe44,U+fe49-fe51,U+fe54,U+fe56-fe57,U+fe59-fe5c,U+fe5f-fe66,U+fe68-fe6a,U+ff04,U+ff07,U+ff26-ff2c,U+ff31-ff32,U+ff35-ff37,U+ff39-ff3a,U+ff3c,U+ff3e-ff5b,U+ff5d,U+ff61-ff65,U+ff67-ff68,U+ff6a,U+ff6c-ff77; }
@font-face { font-family: "BN Sans"; src: url(fonts/bn-sans-700-s108.woff2) format("woff2"); font-weight: 700; font-style: normal; font-display: swap; unicode-range: U+3081,U+ff1c-ff1d,U+ff21,U+ff38,U+ff9f; }
@font-face { font-family: "BN Sans"; src: url(fonts/bn-sans-700-s111.woff2) format("woff2"); font-weight: 700; font-style: normal; font-display: swap; unicode-range: U+25ce,U+64a4,U+64ce,U+6b96,U+fe30,U+ff0b,U+ff10,U+ff15; }
@font-face { font-family: "BN Sans"; src: url(fonts/bn-sans-700-s117.woff2) format("woff2"); font-weight: 700; font-style: normal; font-display: swap; unicode-range: U+3c,U+d7,U+300e,U+522a,U+52dd,U+532f,U+56b4,U+56fa,U+5713,U+57df,U+5b88,U+5e63,U+5ef6,U+6025,U+63a2,U+675f,U+6790,U+6982,U+69cb,U+7686,U+79fb,U+7a97,U+7d0d,U+7d2f,U+8aa4,U+8f2a,U+907f,U+964d,U+968e,U+9858,U+9918,U+ff0e-ff0f,U+ff5c; }
@font-face { font-family: "BN Sans"; src: url(fonts/bn-sans-700-s119.woff2) format("woff2"); font-weight: 700; font-style: normal; font-display: swap; unicode-range: U+23-25,U+3d,U+2026,U+4e45,U+4e5d,U+4ed8,U+4f11,U+4f8b,U+5019,U+505c,U+50c5,U+521d,U+52e2,U+5426,U+542b,U+54ea,U+570d,U+5747,U+5b9c,U+5f8b,U+6298,U+63a7,U+64ad,U+653b,U+666e,U+67b6,U+6c7a,U+6ce2,U+6e2c,U+7387,U+7565,U+7570,U+76ca,U+76e4,U+77ed,U+7814,U+7968,U+7a76,U+7b46,U+7bc4,U+7d20,U+7d42,U+7e7c,U+7f85,U+81f4,U+8986,U+8ca0,U+8f38,U+9000,U+96aa,U+9732,U+9808,U+983b,U+984d,U+ff1b,U+ff5e; }
@font-face { font-family: "BN Sans"; src: url(fonts/bn-sans-700-s122.woff2) format("woff2"); font-weight: 700; font-style: normal; font-display: swap; unicode-range: U+2b,U+7c,U+a0,U+a9,U+300c-300d,U+4e09,U+4e3b,U+4e4b,U+4e86,U+4e8b,U+4eab,U+4ed6,U+4ee3,U+4ef6,U+4f4d,U+4f7f,U+4f86,U+4fdd,U+5167,U+5176,U+5229,U+524d,U+52a0,U+52d9,U+5316,U+5340,U+5408,U+540c-540d,U+544a,U+54c1,U+54e1,U+5546,U+554f,U+55ae,U+56de,U+5831,U+5834,U+5929,U+5982,U+5b57,U+5b8c,U+5b9a,U+5bb9,U+5be6,U+5c08,U+5c0d,U+5de5,U+5df2,U+5e02,U+5e38,U+5e73-5e74,U+5ea6,U+5f0f,U+5f71,U+5f8c,U+5f97,U+6027,U+60c5,U+610f,U+611f,U+61c9,U+6210,U+6216,U+6240,U+624b,U+63a8,U+63d0,U+641c,U+6536,U+6578,U+6599,U+65b9,U+660e,U+66f4,U+670d,U+671f,U+679c,U+683c,U+696d,U+6a5f,U+6b21,U+6c34,U+6cd5,U+7063,U+7121,U+7247,U+73fe,U+7406,U+7522,U+7576,U+767b,U+76ee,U+76f8,U+770b,U+7a0b,U+7ad9,U+7b2c,U+7b49,U+7d50,U+7dda,U+7f8e,U+8005,U+80fd,U+81ea,U+8207,U+865f,U+8868,U+8981,U+898b,U+8996,U+8a08,U+8a0a,U+8a2d,U+8a71,U+8aaa,U+8acb,U+8cbb,U+8cc7,U+8d77,U+8d85,U+8def,U+8eca,U+901a,U+9023,U+9032,U+904b,U+904e,U+9053,U+9078,U+9084,U+90e8,U+90fd,U+91cd,U+91d1,U+9577,U+9580,U+9593,U+9762,U+984c,U+9996,U+9ad4,U+9ad8,U+9ede,U+ff01,U+ff08-ff09,U+ff1f; }
@font-face { font-family: "BN Sans"; src: url(fonts/bn-sans-700-s123.woff2) format("woff2"); font-weight: 700; font-style: normal; font-display: swap; unicode-range: U+20-22,U+27-2a,U+2c-3b,U+3f,U+41-5d,U+61-7b,U+7d,U+ab,U+ae,U+b2-b3,U+bb,U+bf-c2,U+c8-ca,U+cc-ce,U+d2-d4,U+d6,U+d9-db,U+e0-ef,U+f1-f4,U+f6,U+f9-fd,U+100-103,U+110-113,U+11a-11b,U+12a-12b,U+143-144,U+147-148,U+14c-14f,U+16a-16d,U+1a1,U+1b0,U+1cd-1d4,U+1f8-1f9,U+300-301,U+304,U+30c,U+1e3e-1e3f,U+1ea1,U+1ea3,U+1ebf,U+1ec7,U+2013-2014,U+2039-203a,U+203c,U+2122,U+3001-3002,U+3113-3114,U+3118,U+311a-3129,U+4e00,U+4e0a-4e0b,U+4e0d,U+4e2d,U+4ee5,U+4f5c,U+500b,U+5165,U+5168,U+516c,U+51fa,U+5206,U+5230,U+52d5,U+53ef-53f0,U+570b,U+5728,U+591a,U+5927,U+5bb6,U+5c0f,U+65b0,U+65bc,U+65e5,U+662f,U+6642,U+6700,U+6703,U+6708-6709,U+672c,U+6b63,U+70ba,U+751f,U+7528,U+767c,U+7684,U+884c,U+958b,U+95dc,U+96fb,U+9801,U+ff0c,U+ff1a; }
@font-face { font-family: "BN Serif"; src: url(fonts/bn-serif-600.woff2) format("woff2"); font-weight: 600; font-style: normal; font-display: swap; unicode-range: U+0-1f,U+21-10ffff; }
@font-face { font-family: "BN Serif"; src: url(fonts/bn-serif-600-s111.woff2) format("woff2"); font-weight: 600; font-style: normal; font-display: swap; unicode-range: U+25ce,U+64a4,U+6b96,U+fe30,U+ff0b,U+ff10,U+ff15; }
@font-face { font-family: "BN Serif"; src: url(fonts/bn-serif-600-s117.woff2) format("woff2"); font-weight: 600; font-style: normal; font-display: swap; unicode-range: U+3c,U+d7,U+300e,U+532f,U+5713,U+5b88,U+5e63,U+5ef6,U+63a2,U+66b4,U+6790,U+6982,U+69cb,U+6d3e,U+745e,U+7591,U+79fb,U+7d0d,U+7d2f,U+8de8,U+906d,U+907f,U+964d,U+968e,U+ff0e-ff0f,U+ff5c; }
@font-face { font-family: "BN Serif"; src: url(fonts/bn-serif-600-s119.woff2) format("woff2"); font-weight: 600; font-style: normal; font-display: swap; unicode-range: U+23-25,U+3d,U+2026,U+4e03,U+4e5d,U+4f01,U+4f11,U+5019,U+50c5,U+521d,U+52e2,U+542b,U+54ea,U+555f,U+5b9c,U+5bb3,U+666e,U+67b6,U+6c7a,U+6cb9,U+6e2c,U+7206,U+7387,U+7565,U+76e4,U+7814,U+7834,U+7a76,U+7b46,U+7d20,U+7d22,U+7f85,U+8a73,U+9000,U+96aa,U+9732,U+9808,U+9818,U+984d,U+ff1b,U+ff5e; }
@font-face { font-family: "BN Serif"; src: url(fonts/bn-serif-600-s122.woff2) format("woff2"); font-weight: 600; font-style: normal; font-display: swap; unicode-range: U+2b,U+7c,U+a0,U+a9,U+300c-300d,U+4e09,U+4e3b,U+4e86,U+4e8b,U+4ee3,U+4f4d,U+4f7f,U+4f86,U+4fe1,U+50b3,U+5167,U+5229,U+524d,U+529b,U+52a0,U+5316,U+5340,U+5408,U+540c,U+544a,U+54c1,U+54e1,U+5546,U+554f,U+55ae,U+56de,U+5716,U+5831,U+5834,U+5b8c,U+5b9a,U+5ba2,U+5c08,U+5c0d,U+5c31,U+5e02,U+5e38,U+5e73-5e74,U+5ea6,U+5f0f,U+5f71,U+5f8c,U+5f97,U+6027,U+60c5,U+611f,U+61c9,U+6210,U+6240,U+63a8,U+641c,U+6536,U+6578,U+6599,U+65b9,U+660e,U+66f4,U+671f,U+679c,U+696d,U+6a5f,U+6b21,U+6c34,U+6cbb,U+6cd5,U+71b1,U+7247,U+7279,U+73fe,U+7406,U+7522,U+7576,U+767b,U+76ee,U+7a0b,U+7ad9,U+7b2c,U+7d50,U+7dda,U+7f8e,U+81ea,U+8207,U+865f,U+8868,U+8981,U+898b,U+8996,U+8a08,U+8a2d,U+8cbb,U+8cc7,U+8d77,U+901a,U+9023,U+9032,U+904e,U+9053,U+9078,U+91cd,U+91d1,U+9580,U+9593,U+9762,U+982d,U+984c,U+9ad8,U+9ede,U+ff01,U+ff08-ff09,U+ff1f; }
@font-face { font-family: "BN Serif"; src: url(fonts/bn-serif-600-s123.woff2) format("woff2"); font-weight: 600; font-style: normal; font-display: swap; unicode-range: U+20-22,U+27-2a,U+2c-3b,U+3f,U+41-5d,U+61-7b,U+7d,U+ab,U+ae,U+b2-b3,U+bb,U+bf-c2,U+c8-ca,U+cc-ce,U+d2-d4,U+d6,U+d9-db,U+e0-ef,U+f1-f4,U+f6,U+f9-fd,U+100-103,U+110-113,U+11a-11b,U+12a-12b,U+143-144,U+147-148,U+14c-14f,U+16a-16d,U+1a1,U+1b0,U+1cd-1d4,U+1f8-1f9,U+300-301,U+304,U+30c,U+1e3e-1e3f,U+1ea1,U+1ea3,U+1ebf,U+1ec7,U+2013-2014,U+2039-203a,U+203c,U+2122,U+3001-3002,U+3113-3114,U+3118,U+311a-3129,U+4e00,U+4e0a-4e0b,U+4e0d,U+4e2d,U+4ee5,U+4f5c,U+500b,U+5165,U+5168,U+516c,U+51fa,U+5206,U+5230,U+53ef-53f0,U+570b,U+5728,U+5927,U+5bb6,U+5c0f,U+5fc3,U+65b0,U+65bc,U+65e5,U+6642,U+6700,U+6703,U+6708-6709,U+672c,U+6b63,U+70ba,U+7528,U+767c,U+7684,U+884c,U+95dc,U+96fb,U+9801,U+ff0c,U+ff1a; }
@font-face { font-family: "BN Serif"; src: url(fonts/bn-serif-700.woff2) format("woff2"); font-weight: 700; font-style: normal; font-display: swap; unicode-range: U+0-1f,U+21-10ffff; }
@font-face { font-family: "BN Serif"; src: url(fonts/bn-serif-700-s123.woff2) format("woff2"); font-weight: 700; font-style: normal; font-display: swap; unicode-range: U+20-22,U+27-2a,U+2c-3b,U+3f,U+41-5d,U+61-7b,U+7d,U+ab,U+ae,U+b2-b3,U+bb,U+bf-c2,U+c8-ca,U+cc-ce,U+d2-d4,U+d6,U+d9-db,U+e0-ef,U+f1-f4,U+f6,U+f9-fd,U+100-103,U+110-113,U+11a-11b,U+12a-12b,U+143-144,U+147-148,U+14c-14f,U+16a-16d,U+1a1,U+1b0,U+1cd-1d4,U+1f8-1f9,U+300-301,U+304,U+30c,U+1e3e-1e3f,U+1ea1,U+1ea3,U+1ebf,U+1ec7,U+2013-2014,U+2039-203a,U+203c,U+2122,U+3001-3002,U+3113-3114,U+3118,U+311a-3129,U+ff0c,U+ff1a; }
/* @fonts-end */
:root {
  color-scheme: light;
  /* 品牌 */
  --head: #0b0b0c; --head-2: #141518; --head-line: #26282c; --head-ink: #f2f0eb; --head-mute: #a9a59c;
  --gold: #8c6a2f;        /* 淺底上的文字與細線（對白底 4.9:1） */
  --gold-hi: #cdae70;     /* 深底上的點綴 */
  --gold-tint: rgba(184, 151, 90, .12);
  /* 版面 */
  --plane: #ffffff; --paper: #ffffff; --band: #f6f5f1; --band-2: #faf9f6;
  --ink: #121314; --ink-2: #4a4c50; --muted: #74767b; --line: #e3e0d8; --line-2: #eeece6;
  --navy: #121314; --navy-2: #24262a; --navy-3: #2f3237; --navy-ink: #121314; /* 舊變數名稱沿用，改指向墨色 */
  --blue: #121314; --blue-ink: #121314;
  --good: #1f7a3a; --bad: #b3261e; --warn: #9a6a00;
  /* 圖表（已驗證的色盲安全配色，維持不變） */
  --s-fund: #2a78d6; --s-qqq: #eb6834; --s-qld: #1baf7a; --s-tw: #eda100; --s-tsmc: #e87ba4; --s-save: #008300; --s-shv: #6f7f93; --s-sat: #e34948; --s-sat2: #5b3a9e; --s-sat3: #940054;
  --grid: #ebe9e3; --axis: #c3c0b8;
  /* 資產全貌 3D 圓餅（投資組合透視）：股票藍 6 階、債券綠、現金金黃、反向紫、ETF 內現金灰、商品橘、未拆解淺灰、其他洋紅；依切片順序驗證相鄰色差（淺色＝白底、深色＝#15171a） */
  --p3-s1: #02376f; --p3-s2: #3e7fcf; --p3-s3: #064d95; --p3-s4: #5799eb; --p3-s5: #2365b3; --p3-so: #7cb4fc; --p3-b1: #2e9e52; --p3-b2: #015e28; --p3-m1: #f5af20; --p3-m2: #af7b11; --p3-i: #6250d6; --p3-e: #898781; --p3-c1: #f3743f; --p3-c2: #9d3900; --p3-u: #c3c2b7; --p3-x: #e87ba4;
  /* 分類圓餅（BN.charts.pie3d.cat）：網站 8 色分類色盤＋「其他」灰；圓餅首尾相接，「其他」與 8 色相鄰皆通過 validate_palette.js（CVD ≥8、正常視覺 ≥15） */
  --pc-1: #2a78d6; --pc-2: #eb6834; --pc-3: #1baf7a; --pc-4: #eda100; --pc-5: #e87ba4; --pc-6: #008300; --pc-7: #6250d6; --pc-8: #e34948; --pc-o: #c9c7bf; --pc-cash: #6a3a06; --pc-bond: #00201b;   /* 資產全貌的現金、債券與其他：和 8 色、灰、彼此皆通過 */
  --serif: "BN Serif", "Noto Serif TC", "Songti TC", "PMingLiU", Georgia, serif;
  --sans: "BN Sans", "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", "Helvetica Neue", Arial, system-ui, sans-serif;
  --maxw: 1800px; --gutter: 16px; /* 2026-11-10 加寬（1200→1600→1800）：寬螢幕不再擠壓（文章段落仍由 p 的 74ch 控制行長） */
  --focus: 0 0 0 3px rgba(184, 151, 90, .45);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --gold: #d2b47a; --gold-hi: #d8bb82; --gold-tint: rgba(205, 174, 112, .14);
    --plane: #0e0f11; --paper: #15171a; --band: #121416; --band-2: #181a1d;
    --ink: #eceae5; --ink-2: #c4c1b9; --muted: #96938b; --line: #2b2e33; --line-2: #24272b;
    --navy: #eceae5; --navy-2: #d6d3cc; --navy-3: #c4c1b9; --navy-ink: #eceae5; --blue: #eceae5; --blue-ink: #eceae5;
    --good: #5fcf7f; --bad: #ff8a80; --warn: #e3b341;
    --s-fund: #3987e5; --s-qqq: #d95926; --s-qld: #199e70; --s-tw: #c98500; --s-tsmc: #d55181; --s-save: #008300; --s-shv: #93a3b7; --s-sat: #e66767; --s-sat2: #6447b8; --s-sat3: #f410e0;
    --grid: #26292e; --axis: #4a4e55;
    --p3-s1: #c0dafc; --p3-s2: #5b92d8; --p3-s3: #93c2ff; --p3-s4: #447bbe; --p3-s5: #72aaf1; --p3-so: #2e64a6; --p3-b1: #6fd087; --p3-b2: #2a904b; --p3-m1: #f2b036; --p3-m2: #b7810f; --p3-i: #9085e9; --p3-e: #898781; --p3-c1: #fd8453; --p3-c2: #b44200; --p3-u: #5f5e5a; --p3-x: #d55181;
    --pc-1: #3987e5; --pc-2: #d95926; --pc-3: #199e70; --pc-4: #c98500; --pc-5: #d55181; --pc-6: #008300; --pc-7: #9085e9; --pc-8: #e66767; --pc-o: #4a4946; --pc-cash: #efd956; --pc-bond: #22edd1;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --gold: #d2b47a; --gold-hi: #d8bb82; --gold-tint: rgba(205, 174, 112, .14);
  --plane: #0e0f11; --paper: #15171a; --band: #121416; --band-2: #181a1d;
  --ink: #eceae5; --ink-2: #c4c1b9; --muted: #96938b; --line: #2b2e33; --line-2: #24272b;
  --navy: #eceae5; --navy-2: #d6d3cc; --navy-3: #c4c1b9; --navy-ink: #eceae5; --blue: #eceae5; --blue-ink: #eceae5;
  --good: #5fcf7f; --bad: #ff8a80; --warn: #e3b341;
  --s-fund: #3987e5; --s-qqq: #d95926; --s-qld: #199e70; --s-tw: #c98500; --s-tsmc: #d55181; --s-save: #008300; --s-shv: #93a3b7; --s-sat: #e66767; --s-sat2: #6447b8; --s-sat3: #f410e0;
  --grid: #26292e; --axis: #4a4e55;
  --p3-s1: #c0dafc; --p3-s2: #5b92d8; --p3-s3: #93c2ff; --p3-s4: #447bbe; --p3-s5: #72aaf1; --p3-so: #2e64a6; --p3-b1: #6fd087; --p3-b2: #2a904b; --p3-m1: #f2b036; --p3-m2: #b7810f; --p3-i: #9085e9; --p3-e: #898781; --p3-c1: #fd8453; --p3-c2: #b44200; --p3-u: #5f5e5a; --p3-x: #d55181;
  --pc-1: #3987e5; --pc-2: #d95926; --pc-3: #199e70; --pc-4: #c98500; --pc-5: #d55181; --pc-6: #008300; --pc-7: #9085e9; --pc-8: #e66767; --pc-o: #4a4946; --pc-cash: #efd956; --pc-bond: #22edd1;
}

/* ---------- base ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 64px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--plane); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.8; font-feature-settings: "palt" 0; }
a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--gold-hi); text-underline-offset: 4px; text-decoration-thickness: 1px; }
a:hover { color: var(--gold); text-decoration-color: currentColor; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 2px; }
img, svg, video { max-width: 100%; height: auto; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.32; color: var(--ink); margin: 0 0 .55em; letter-spacing: .01em; }
h1 { font-size: clamp(30px, 3.8vw, 44px); }
h2 { font-size: clamp(23px, 2.5vw, 30px); margin-top: 2em; padding-top: 18px; position: relative; }
h2::before { content: ""; position: absolute; left: 0; top: 0; width: 44px; height: 2px; background: var(--gold-hi); }
h3 { font-size: clamp(18px, 1.9vw, 21px); margin-top: 1.5em; }
p { margin: 0 0 1em; max-width: 74ch; }
ul, ol { padding-left: 1.4em; max-width: 74ch; }
li { margin-bottom: .35em; }
b, strong { font-weight: 600; }
small, .small { font-size: 13.5px; color: var(--ink-2); }
.muted { color: var(--muted); font-weight: 400; }
.num { font-variant-numeric: tabular-nums; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--paper); color: var(--ink); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
.eyebrow { display: inline-block; font-family: var(--sans); font-size: 12.5px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); margin: 0 0 12px; }

/* ---------- header (dark) ---------- */
.gov { display: none; }
.brand { background: var(--head); color: var(--head-ink); border-bottom: 1px solid var(--head-line); }
.brand .wrap { display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; padding-top: 16px; padding-bottom: 16px; }
.mark { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.mark:hover { color: inherit; }
.mark .seal { display: none; }
.mark .word { font-family: var(--serif); font-size: 27px; font-weight: 700; letter-spacing: .2em; line-height: 1; color: #fff; }
.mark .word b { color: var(--gold-hi); font-weight: 700; }
.mark .sub, .tagline { display: none; }
/* 登入後頁首 BNASDAQ 旁的「會員專區」（site.js 放進頁首中間那一欄） */
.brand .mlink { display: inline-flex; align-items: center; height: 36px; padding: 0 16px; border: 1px solid var(--gold-hi); color: var(--gold-hi); text-decoration: none; font-weight: 600; letter-spacing: .1em; font-size: 15px; white-space: nowrap; }
.brand .mlink:hover, .brand .mlink[aria-current] { background: var(--gold-hi); color: #111; }
.brand .tools { display: flex; gap: 10px; align-items: center; justify-content: flex-end; min-width: 0; }
.search { display: flex; gap: 0; }
.search input { font: inherit; font-size: 14.5px; padding: 8px 12px; border: 1px solid var(--line); border-right: 0; min-width: 210px; width: 244px; /* 固定寬度：原本依字型度量自動計算，會隨字型載入快慢而不同 */ background: var(--paper); color: var(--ink); border-radius: 2px 0 0 2px; }
.search button { font: inherit; font-size: 14.5px; background: var(--ink); color: var(--paper); border: 1px solid var(--ink); padding: 8px 16px; border-radius: 0 2px 2px 0; cursor: pointer; letter-spacing: .06em; }
.search button:hover { background: var(--gold); border-color: var(--gold); color: #fff; }
.brand .search input { background: #17181b; border-color: #34363b; color: var(--head-ink); }
.brand .search input::placeholder { color: #8b877f; }
.brand .search button { background: var(--gold-hi); border-color: var(--gold-hi); color: #111; font-weight: 600; }
.brand .search button:hover { background: #e0c48d; border-color: #e0c48d; color: #111; }
.themebtn { background: none; border: 1px solid #34363b; color: #d6d3cc; font: inherit; font-size: 13.5px; padding: 8px 12px; border-radius: 2px; cursor: pointer; white-space: nowrap; }
.themebtn:hover { border-color: var(--gold-hi); color: #fff; }
.util { display: none; }

.nav { background: var(--head); border-bottom: 1px solid var(--head-line); position: sticky; top: 0; z-index: 50; }
.nav .wrap { display: flex; align-items: stretch; flex-wrap: wrap; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex: 1; max-width: none; }
.nav ul#mainmenu { flex: 1 1 100%; justify-content: flex-start; align-items: center; }
.nav li { display: flex; margin: 0; }
.nav a { color: #d4d1ca; text-decoration: none; padding: 13px 5px 12px; font-size: 13.5px; font-weight: 500; letter-spacing: 0; border-bottom: 2px solid transparent; display: flex; align-items: center; white-space: nowrap; }
.nav a:hover, .nav a:focus-visible { color: #fff; background: transparent; }
.nav a[aria-current="page"] { color: #fff; border-bottom-color: var(--gold-hi); background: transparent; }
.nav li:last-child { margin-left: auto; }
.nav a.acct { color: var(--gold-hi); border: 1px solid rgba(205, 174, 112, .55); border-radius: 2px; padding: 6px 10px; margin: 7px 0; font-weight: 500; }
.nav a.acct:hover { background: var(--gold-hi); color: #111; border-color: var(--gold-hi); }
.nav .burger { display: none; background: none; border: 0; color: #fff; font: inherit; padding: 10px 6px; cursor: pointer; }
.nav .burger svg { width: 26px; height: 26px; }
@media (min-width: 1440px) { .nav a { padding-left: 9px; padding-right: 9px; font-size: 14px; } }
@media (min-width: 1680px) { .nav a { padding-left: 13px; padding-right: 13px; font-size: 14.5px; } }
@media (min-width: 1880px) { .nav a { padding-left: 16px; padding-right: 16px; font-size: 15px; } }
@media (max-width: 1200px) {
  .brand .wrap { grid-template-columns: minmax(0, 1fr); gap: 12px; padding-top: 14px; padding-bottom: 12px; }
  .brand .tools .search { flex: 1; } .brand .tools .search input { width: 100%; min-width: 0; }
  .nav .burger { display: block; }
  .nav ul#mainmenu, .nav ul { display: none; flex-direction: column; align-items: stretch; width: 100%; padding-bottom: 8px; }
  .nav ul.open, .nav ul#mainmenu.open { display: flex; }
  .nav li:last-child { margin-left: 0; }
  .nav li { display: block; } .nav a { width: 100%; }
  .nav a { padding: 12px 4px; border-bottom: 1px solid #1f2124; font-size: 14px; letter-spacing: .02em; }
  .nav a[aria-current="page"] { border-bottom-color: #1f2124; border-left: 3px solid var(--gold-hi); padding-left: 10px; }
  .nav a.acct { margin: 10px 0 2px; justify-content: center; }
}

/* ---------- hero (homepage) ---------- */
.hero { background: radial-gradient(1200px 520px at 85% 10%, rgba(205, 174, 112, .16), transparent 60%), linear-gradient(180deg, #0b0b0c 0%, #121316 100%); color: var(--head-ink); padding: 72px 0 76px; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 64px 64px; mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent); pointer-events: none; }
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-hi), transparent); }
.hero .wrap { display: grid; grid-template-columns: 1fr; gap: 36px; align-items: center; position: relative; }
.hero .eyebrow { color: var(--gold-hi); }
.hero h1 { color: #fff; font-size: clamp(32px, 5vw, 64px); line-height: 1.25; letter-spacing: .03em; margin-bottom: 22px; }
.hero p { color: #c9c6be; font-size: 17px; max-width: 58ch; }
.hero .kicker { color: #a9a59c; font-size: 14px; margin-bottom: 10px; letter-spacing: .03em; }
.hero .big { font-family: var(--serif); font-size: clamp(56px, 8vw, 104px); line-height: 1; font-weight: 700; letter-spacing: -.01em; color: #fff; }
.hero .big small { font-size: .42em; font-weight: 500; color: #d6d3cc; margin-left: 6px; letter-spacing: .04em; }
/* 頂部三個策略：標題列＋三張並排卡片（各自的策略色細線、代號、期末價值、IRR 與本金倍數） */
.hero .shead { display: flex; justify-content: space-between; align-items: baseline; gap: 6px 20px; flex-wrap: wrap; padding-bottom: 14px; margin-bottom: 18px; border-bottom: 1px solid rgba(205, 174, 112, .22); }
.hero .shead .kicker { margin: 0; }
.hero .shead b { color: #e9e5dc; font-weight: 600; font-variant-numeric: tabular-nums; }
.hero .hrow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.hero .hs { position: relative; padding: 18px 20px 16px; background: rgba(255, 255, 255, .025); border: 1px solid rgba(255, 255, 255, .07); border-top: 3px solid var(--c); min-width: 0; }
.hero .hcode { display: flex; align-items: center; gap: 8px; font-size: 13px; letter-spacing: .08em; color: #d6d3cc; margin-bottom: 12px; font-variant-numeric: tabular-nums; }
.hero .hcode .sw { width: 9px; height: 9px; border-radius: 2px; flex: none; background: var(--c); }
.hero .hs .big { font-size: clamp(44px, 4.6vw, 72px); white-space: nowrap; font-variant-numeric: tabular-nums; }
.hero .hs .big small { color: var(--gold-hi); }
.hero .hm { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 16px 0 0; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .08); }
.hero .hm div { min-width: 0; }
.hero .hm dt { font-size: 12px; letter-spacing: .06em; color: #8f8b83; margin-bottom: 2px; }
.hero .hm dd { margin: 0; font-size: 17px; font-weight: 600; color: #ece8df; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero .stat { grid-column: 1 / -1; border: 1px solid rgba(205, 174, 112, .35); background: rgba(255, 255, 255, .03); padding: 22px 24px 24px; backdrop-filter: blur(2px); }
@media (max-width: 860px) { .hero { padding: 48px 0 52px; } .hero .wrap { grid-template-columns: 1fr; gap: 28px; } .hero .stat { padding: 18px 16px 16px; } .hero .hrow { grid-template-columns: 1fr; gap: 12px; } .hero .hs { padding: 14px 16px; } .hero .hs .big { font-size: clamp(40px, 12vw, 56px); } }
/* 四個策略並列（2026-11-21 加入 BNASDAQ-26113）：寬螢幕四張並排；中等寬度與手機改成 2×2（手機把 IRR、本金倍數排成左右對齊的兩列） */
.hero .hrow.hrow4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.hero .hrow4 .hs { padding: 16px 16px 14px; }
.hero .hrow4 .hs .big { font-size: clamp(36px, 3.5vw, 64px); }
@media (max-width: 1180px) { .hero .hrow.hrow4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .hero .hrow4 .hs .big { font-size: clamp(40px, 6vw, 64px); } }
@media (max-width: 560px) {
  .hero .hrow.hrow4 { gap: 10px; }
  .hero .hrow4 .hs { padding: 12px 12px 10px; }
  .hero .hrow4 .hcode { font-size: 11.5px; letter-spacing: .03em; gap: 6px; margin-bottom: 8px; }
  .hero .hrow4 .hs .big { font-size: clamp(26px, 8.6vw, 40px); }
  .hero .hrow4 .hm { grid-template-columns: 1fr; gap: 5px; margin-top: 10px; padding-top: 8px; }
  .hero .hrow4 .hm div { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; }
  .hero .hrow4 .hm dt { font-size: 11px; margin: 0; letter-spacing: .02em; }
  .hero .hrow4 .hm dd { font-size: 14px; }
}
@media (max-width: 360px) { .hero .hrow4 .hs { padding: 10px 9px 9px; } .hero .hrow4 .hcode { font-size: 10.5px; letter-spacing: 0; gap: 5px; } .hero .hrow4 .hcode .sw { width: 7px; height: 7px; } .hero .hrow4 .hs .big { font-size: 26px; } .hero .hrow4 .hm dt { white-space: nowrap; font-size: 10.5px; } .hero .hrow4 .hm dd { font-size: 13px; } }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 22px; border-radius: 2px; text-decoration: none; font-weight: 600; font-size: 15px; letter-spacing: .05em; border: 1px solid transparent; cursor: pointer; font-family: inherit; line-height: 1.4; transition: background .15s, color .15s, border-color .15s; }
.btn[hidden] { display: none; }   /* .btn 的 display 會蓋過瀏覽器內建的 [hidden]：按鈕設了 hidden 卻還看得到（管理後台的「下載…手動上傳用」） */
.btn.primary { background: var(--gold-hi); color: #111; border-color: var(--gold-hi); }
.btn.primary:hover { background: #e0c48d; color: #111; border-color: #e0c48d; }
.btn.ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .45); }
.btn.ghost:hover { background: rgba(255, 255, 255, .08); color: #fff; border-color: #fff; }
.btn.navy { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn.navy:hover { background: var(--gold); border-color: var(--gold); color: #fff; }
.btn.line { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn.line:hover { background: var(--ink); color: var(--paper); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.main .btn.primary, .band .btn.primary { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.main .btn.primary:hover, .band .btn.primary:hover { background: var(--gold); border-color: var(--gold); color: #fff; }

/* ---------- page header (inner pages, dark) ---------- */
.pagehead { background: radial-gradient(900px 360px at 90% 0%, rgba(205, 174, 112, .12), transparent 60%), #0f1012; color: var(--head-ink); border-bottom: 1px solid var(--head-line); padding: 44px 0 40px; }
.crumbs { font-size: 13px; color: #9a968d; margin-bottom: 14px; letter-spacing: .04em; }
.crumbs a { color: #c9c6be; text-decoration-color: rgba(205, 174, 112, .6); }
.crumbs a:hover { color: #fff; }
.pagehead h1 { color: #fff; margin-bottom: 10px; }
.pagehead .lede { font-size: 17px; color: #c9c6be; max-width: 72ch; margin: 0; line-height: 1.8; }
.pagehead .lede a { color: #fff; }

/* ---------- layout ---------- */
.main { padding: 40px 0 72px; }
.cols { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; align-items: start; }
.cols > aside { position: sticky; top: 72px; }
@media (max-width: 980px) { .cols { grid-template-columns: minmax(0, 1fr); gap: 32px; } .cols > aside { position: static; } }
.side { background: var(--paper); border: 1px solid var(--line); border-top: 2px solid var(--gold-hi); padding: 18px 20px; margin-bottom: 20px; }
.side h3 { margin: 0 0 10px; font-size: 15px; font-family: var(--sans); font-weight: 600; letter-spacing: .12em; color: var(--ink-2); }
.side ul { list-style: none; padding: 0; margin: 0; }
.side li { padding: 8px 0; border-top: 1px solid var(--line-2); font-size: 14.5px; margin: 0; }
.side li:first-child { border-top: 0; }
.side a { text-decoration: none; }
.side a:hover { text-decoration: underline; }
.toc li a[aria-current] { font-weight: 600; color: var(--gold); }

/* ---------- sections ---------- */
.band { padding: 64px 0; }
.band.alt { background: var(--band); border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.band h2 { margin-top: 0; }
.band.dark { background: #0f1012; color: var(--head-ink); }
.band.dark h2, .band.dark h3 { color: #fff; }
.band.dark p { color: #c9c6be; }
.sechead { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.sechead h2 { margin-bottom: 0; }
.sechead .more { font-size: 14.5px; white-space: nowrap; font-weight: 500; }
.lead { font-size: 17.5px; color: var(--ink-2); max-width: 70ch; }

/* tabs */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 10px; flex-wrap: wrap; }
.tabs button { font: inherit; font-size: 15px; background: none; border: 0; padding: 10px 14px; cursor: pointer; color: var(--ink-2); border-bottom: 2px solid transparent; margin-bottom: -1px; letter-spacing: .03em; }
.tabs button:hover { color: var(--ink); }
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--gold-hi); font-weight: 600; }
.dev { list-style: none; margin: 0; padding: 0; max-width: none; }
.dev li { display: grid; grid-template-columns: 110px 1fr; gap: 18px; padding: 14px 0; border-bottom: 1px solid var(--line-2); font-size: 15.5px; margin: 0; }
.dev time { color: var(--muted); font-size: 13.5px; font-variant-numeric: tabular-nums; padding-top: 2px; letter-spacing: .03em; }
.dev a { text-decoration: none; font-weight: 500; }
.dev a:hover { text-decoration: underline; }
.dev .tag { display: inline-block; font-size: 11.5px; color: var(--gold); border: 1px solid var(--line); padding: 0 8px; border-radius: 2px; margin-left: 8px; vertical-align: 2px; letter-spacing: .08em; }
@media (max-width: 560px) { .dev li { grid-template-columns: 1fr; gap: 2px; } }

/* feature cards */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature { background: var(--paper); border: 1px solid var(--line); display: flex; flex-direction: column; transition: border-color .15s, box-shadow .15s; }
.feature:hover { border-color: var(--gold-hi); box-shadow: 0 10px 28px rgba(0, 0, 0, .06); }
.feature .fig { background: var(--band-2); padding: 12px 12px 8px; border-bottom: 1px solid var(--line-2); }
.feature .fig svg { width: 100%; height: auto; display: block; }
.feature .fig .viz-lbl, .feature .fig .viz-axis text { font-size: 13px; }
.feature .fig .viz-txt { font-size: 13.5px; }
.feature .fig .fnote { font-size: 12.5px; margin-top: 4px; }
.feature .fig .legend { font-size: 13px; margin-top: 2px; }
.feature .body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.feature h3 { margin: 0; font-size: 20px; }
.feature p { font-size: 15px; color: var(--ink-2); margin: 0; flex: 1; }
.feature a.more { font-weight: 600; text-decoration: none; font-size: 14.5px; letter-spacing: .04em; }
.feature a.more:hover { text-decoration: underline; }
@media (max-width: 860px) { .features { grid-template-columns: 1fr; } }

/* principal indicators */
.ind { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); max-width: none; }
.ind li { display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--line); margin: 0; }
.ind .label { font-size: 15.5px; }
.ind .label small { display: block; color: var(--muted); font-size: 13.5px; margin-top: 2px; }
.ind .val { font-family: var(--serif); font-size: 30px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ind .val.neg { color: var(--bad); }
.ind .tagfix { display: inline-block; font-size: 11.5px; letter-spacing: .06em; color: var(--muted); border: 1px solid var(--line); padding: 0 6px; margin-left: 6px; vertical-align: 2px; border-radius: 2px; }
@media (max-width: 560px) { .ind li { grid-template-columns: 1fr; gap: 4px; } .ind .val { font-size: 26px; } }
/* 主要指標：兩個策略並列（標題列＋每列兩個數值；手機改成兩欄、數值上方標代號） */
.ind2 li { grid-template-columns: minmax(0, 1fr) minmax(150px, auto) minmax(150px, auto); }
.ind2 .val { text-align: right; }
.ind2 li.ih { padding: 10px 0; align-items: center; }
.ind2 .vh { font-family: var(--sans); font-size: 13.5px; font-weight: 600; letter-spacing: .04em; color: var(--ink-2); display: inline-flex; align-items: center; justify-content: flex-end; gap: 6px; }
.ind2 .vh .sw { width: 10px; height: 10px; border-radius: 2px; }
.ind2 .val.pend { font-family: var(--sans); font-size: 17px; font-weight: 600; color: var(--muted); }
.ind2 .label small + small { margin-top: 4px; }
@media (max-width: 720px) {
  .ind2 li { grid-template-columns: 1fr 1fr; gap: 6px 16px; }
  .ind2 li .label { grid-column: 1 / -1; }
  .ind2 li.ih { display: none; }
  .ind2 .val { text-align: left; font-size: 24px; }
  .ind2 .val::before { content: attr(data-c); display: block; font-family: var(--sans); font-size: 11.5px; font-weight: 600; letter-spacing: .04em; color: var(--muted); margin-bottom: 2px; }
}
/* 三個策略並列（2026-11-18 加入 BNASDAQ-26112）：桌機三個數值欄；手機三欄、字小一點 */
.ind3 li { grid-template-columns: minmax(0, 1fr) repeat(3, minmax(118px, auto)); gap: 16px; }
@media (max-width: 720px) {
  .ind3 li { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px 12px; }
  .ind3 .val { font-size: 20px; }
  .ind3 .val::before { font-size: 10.5px; }
  .ind3 .val { white-space: normal; overflow-wrap: anywhere; min-width: 0; }
}
@media (max-width: 400px) { .ind3 li { gap: 6px 8px; } .ind3 .val { font-size: 18px; } }
/* 四個策略並列（2026-11-21 加入 BNASDAQ-26113）：桌機四個數值欄；窄一點改成說明一列＋四欄數值（數值上方標代號）；手機沿用 .ind2 的兩欄＝2×2 */
.ind4 li { grid-template-columns: minmax(0, 1fr) repeat(4, 172px); gap: 14px; }
.ind4 .val:not(.vh) { font-size: 24px; }
@media (max-width: 1180px) {
  .ind4 li { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px 14px; }
  .ind4 li .label { grid-column: 1 / -1; }
  .ind4 li.ih { display: none; }
  .ind4 .val { text-align: left; font-size: 24px; white-space: normal; overflow-wrap: anywhere; min-width: 0; }
  .ind4 .val::before { content: attr(data-c); display: block; font-family: var(--sans); font-size: 11.5px; font-weight: 600; letter-spacing: .04em; color: var(--muted); margin-bottom: 2px; }
}
@media (max-width: 720px) { .ind4 li { grid-template-columns: 1fr 1fr; gap: 8px 16px; } .ind4 .val { font-size: 22px; } }
.row3, .strat.row3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 860px) { .row3, .strat.row3 { grid-template-columns: 1fr; } }
.row4, .strat.row4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1180px) { .row4, .strat.row4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .row4, .strat.row4 { grid-template-columns: 1fr; } }

/* loop tiles */
.loop { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; counter-reset: step; margin: 18px 0; }
.loop .step { background: var(--paper); border: 1px solid var(--line); border-top: 2px solid var(--gold-hi); padding: 14px 14px 14px; position: relative; }
.loop .step::before { counter-increment: step; content: "0" counter(step); display: block; margin-bottom: 6px; color: var(--gold); font-size: 12px; font-weight: 600; letter-spacing: .14em; }
.loop .step b { display: block; font-size: 15.5px; margin-bottom: 4px; color: var(--ink); }
.loop .step span { font-size: 13.5px; color: var(--ink-2); line-height: 1.55; display: block; }
@media (max-width: 980px) { .loop { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .loop { grid-template-columns: 1fr 1fr; } }

/* ---------- tables ---------- */
.tbl { width: 100%; border-collapse: collapse; font-size: 14.5px; background: var(--paper); margin: 10px 0 22px; font-variant-numeric: tabular-nums; }
.tbl caption { text-align: left; font-weight: 600; padding: 6px 0 10px; color: var(--ink); caption-side: top; font-size: 14.5px; }
.tbl th, .tbl td { padding: 10px 12px; border-bottom: 1px solid var(--line-2); text-align: right; vertical-align: top; }
.tbl th { background: var(--band); color: var(--ink-2); font-weight: 600; font-size: 12.5px; letter-spacing: .06em; border-bottom: 1px solid var(--ink); border-top: 1px solid var(--line); }
.tbl th:first-child, .tbl td:first-child { text-align: left; }
.tbl td.l, .tbl th.l { text-align: left; }
.tbl td.c, .tbl th.c { text-align: center; }
.tbl tbody tr:hover td { background: var(--band-2); }
.tbl tr.hl td { background: var(--gold-tint); font-weight: 600; }
.tbl .pos { color: var(--good); } .tbl .neg { color: var(--bad); }
.tbl tfoot td { color: var(--muted); font-size: 13px; text-align: left; border-bottom: 0; }
.tblwrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.sw { display: inline-block; width: 10px; height: 10px; border-radius: 2px; vertical-align: -1px; margin-right: 7px; }

/* ---------- figures / charts ---------- */
.fig { background: var(--paper); border: 1px solid var(--line); padding: 18px 18px 12px; margin: 16px 0 26px; }
.fig .ftitle { font-weight: 600; font-size: 15.5px; margin: 0 0 2px; }
.fig .fsub { font-size: 13px; color: var(--muted); margin: 0 0 10px; }
.fig svg { width: 100%; height: auto; display: block; font-family: var(--sans); }
.fig .legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--ink-2); margin: 8px 0 0; }
.fig .legend span::before { content: ""; display: inline-block; width: 14px; height: 0; vertical-align: 3px; margin-right: 6px; border-top: 3px solid var(--c); border-radius: 2px; }
.fig .legend span.dash::before { border-top-style: dashed; }
.fig .fnote { font-size: 12.5px; color: var(--muted); margin: 8px 0 0; }
.tip { position: fixed; pointer-events: none; background: #111214; color: #f2f0eb; font-size: 12.5px; padding: 8px 10px; border-radius: 2px; z-index: 200; display: none; white-space: nowrap; line-height: 1.55; box-shadow: 0 8px 24px rgba(0, 0, 0, .25); border-top: 2px solid var(--gold-hi); }
.viz-grid line { stroke: var(--grid); stroke-width: 1; }
.viz-axis line, .viz-axis path { stroke: var(--axis); fill: none; }
.viz-axis text, .viz-lbl { fill: var(--muted); font-size: 11.5px; }
.viz-txt { fill: var(--ink-2); font-size: 12px; }
.viz-endname { fill: var(--ink-2); font-weight: 500; }
.viz-endvals text { font-variant-numeric: tabular-nums; }

/* ---------- 回測起點選擇列 ---------- */
.btpick { margin: 0 0 18px; }
.btpick.sticky { position: sticky; top: 49px; z-index: 30; }
.btbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; background: var(--paper); border: 1px solid var(--line); border-left: 3px solid var(--gold-hi); padding: 10px 14px; box-shadow: 0 6px 18px rgba(0, 0, 0, .04); }
.bt-main { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.bt-k { font-size: 12.5px; font-weight: 600; letter-spacing: .16em; color: var(--gold); margin-right: 4px; }
.btbar select { font: inherit; font-size: 14.5px; padding: 6px 28px 6px 10px; border: 1px solid var(--line); border-radius: 2px; background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%2374767b' stroke-width='1.4'/%3E%3C/svg%3E") no-repeat right 10px center; color: var(--ink); -webkit-appearance: none; appearance: none; cursor: pointer; font-variant-numeric: tabular-nums; }
.btbar select:focus { outline: none; box-shadow: var(--focus); border-color: var(--gold-hi); }
.bt-reset { font: inherit; font-size: 13.5px; background: none; border: 1px solid var(--line); color: var(--ink-2); padding: 6px 12px; border-radius: 2px; cursor: pointer; }
.bt-reset:hover { border-color: var(--ink); color: var(--ink); }
.bt-pre { display: flex; flex-wrap: wrap; gap: 6px; }
.bt-pre button { font: inherit; font-size: 13px; background: var(--band-2); border: 1px solid var(--line); color: var(--ink-2); padding: 4px 10px; border-radius: 999px; cursor: pointer; white-space: nowrap; }
.bt-pre button:hover { border-color: var(--gold-hi); color: var(--ink); }
.bt-pre button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.bt-info { font-size: 13px; color: var(--muted); flex: 1 1 260px; font-variant-numeric: tabular-nums; }
.bt-info b { color: var(--ink); font-weight: 600; }
.bt-note { font-size: 12.5px; color: var(--muted); margin: 6px 0 0; }
@media (max-width: 1200px) { .btpick.sticky { top: 55px; } }
@media (max-width: 560px) { .btpick.sticky .bt-info { display: none; } .btbar { padding: 8px 10px; gap: 8px; } .bt-pre { overflow-x: auto; flex-wrap: nowrap; max-width: 100%; padding-bottom: 2px; } .bt-info { flex-basis: 100%; } }

/* ---------- callouts ---------- */
.note { border-left: 3px solid var(--gold-hi); background: var(--band-2); padding: 14px 18px; margin: 18px 0; font-size: 15px; }
.note.navy { border-left-color: var(--ink); }
.note.warn { border-left-color: var(--bad); background: rgba(179, 38, 30, .05); }
.note p:last-child { margin-bottom: 0; }
.kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0; margin: 16px 0 22px; border-top: 1px solid var(--ink); border-left: 1px solid var(--line); }
.kv .tile { background: var(--paper); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 16px 18px; }
.kv .tile .k { font-size: 12.5px; color: var(--muted); letter-spacing: .06em; }
.kv .tile .v { font-family: var(--serif); font-size: 26px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; line-height: 1.35; margin-top: 4px; }
.kv .tile .v.neg { color: var(--bad); }
.kv .tile .s { font-size: 13px; color: var(--ink-2); margin-top: 2px; }
.steps { counter-reset: s; list-style: none; padding: 0; }
.steps li { counter-increment: s; position: relative; padding-left: 46px; margin-bottom: 14px; }
.steps li::before { content: counter(s, decimal-leading-zero); position: absolute; left: 0; top: 0; font-family: var(--serif); font-size: 18px; font-weight: 700; color: var(--gold); letter-spacing: .02em; }

/* ---------- forms ---------- */
.form { display: grid; gap: 16px; max-width: 560px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 6px; letter-spacing: .04em; color: var(--ink-2); }
.field input, .field select, .field textarea { width: 100%; font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 2px; background: var(--paper); color: var(--ink); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; box-shadow: var(--focus); border-color: var(--gold-hi); }
.field .help { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .row2 { grid-template-columns: 1fr; } }
.msg { padding: 10px 14px; border-radius: 2px; font-size: 14.5px; margin: 10px 0; }
.msg.err { background: rgba(179, 38, 30, .07); color: var(--bad); border: 1px solid rgba(179, 38, 30, .3); }
.msg.ok { background: rgba(31, 122, 58, .07); color: var(--good); border: 1px solid rgba(31, 122, 58, .3); }
.msg.info { background: var(--band); color: var(--ink-2); border: 1px solid var(--line); }
.badge { display: inline-block; font-size: 12px; padding: 1px 9px; border-radius: 2px; border: 1px solid var(--line); color: var(--ink-2); vertical-align: 2px; }
.badge.qld { background: rgba(27, 175, 122, .12); color: #0f6b4a; border-color: rgba(27, 175, 122, .45); }
.badge.shv { background: rgba(111, 127, 147, .12); color: #44515f; border-color: rgba(111, 127, 147, .45); }
.badge.half { background: rgba(184, 151, 90, .14); color: #6f5320; border-color: rgba(184, 151, 90, .5); }
:root[data-theme="dark"] .badge.qld { color: #7fe0b8; } :root[data-theme="dark"] .badge.shv { color: #c3cfdc; } :root[data-theme="dark"] .badge.half { color: #e3c68f; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .badge.qld { color: #7fe0b8; } :root:not([data-theme="light"]) .badge.shv { color: #c3cfdc; } :root:not([data-theme="light"]) .badge.half { color: #e3c68f; } }
.hold { font-family: var(--serif); font-size: 28px; font-weight: 700; color: var(--ink); }

/* ---------- FAQ ---------- */
details { border: 1px solid var(--line); background: var(--paper); margin-bottom: 10px; }
details[open] { border-color: var(--ink-2); }
summary { cursor: pointer; padding: 16px 18px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "＋"; color: var(--gold); font-weight: 400; }
details[open] summary::after { content: "－"; }
details .ans { padding: 0 18px 16px; border-top: 1px solid var(--line-2); font-size: 15px; }
details .ans p { margin-top: 12px; }

/* ---------- member / admin ---------- */
.panel { background: var(--paper); border: 1px solid var(--line); border-top: 2px solid var(--ink); padding: 20px 22px; margin-bottom: 22px; }
.panel h3 { margin-top: 0; }
.strat { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 760px) { .strat { grid-template-columns: 1fr; } }
.strat .card { border: 1px solid var(--line); padding: 16px 18px; background: var(--band-2); }
.strat .card h4 { margin: 0 0 6px; font-family: var(--sans); font-size: 14.5px; color: var(--ink-2); letter-spacing: .04em; }
.strat .card .hold { margin: 2px 0 6px; }
.strat .card .next { border-top: 1px dashed var(--line); margin-top: 12px; padding-top: 12px; font-size: 14px; }
.ok-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--good); margin-right: 6px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.tbl button.sm { font: inherit; font-size: 12.5px; padding: 3px 8px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); border-radius: 2px; cursor: pointer; }
.tbl button.sm:hover { border-color: var(--ink); }
.tbl button.sm.danger { color: var(--bad); }
pre.code { background: var(--band); border: 1px solid var(--line); padding: 10px 12px; font-size: 12.5px; overflow: auto; }

/* ---------- 個股對比：自選代號 ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.chip { display: inline-flex; align-items: center; gap: 4px; font-size: 13.5px; padding: 4px 8px 4px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--band-2); }
.chip button { background: none; border: 0; color: var(--muted); cursor: pointer; font: inherit; padding: 0 2px; line-height: 1; }
.chip button:hover { color: var(--bad); }
#twadd .form .field button { width: 100%; }
@media (max-width: 560px) { #twadd .row2 { grid-template-columns: 1fr !important; } }

/* ---------- 首頁：核心策略、機構級標準、邀請制 ---------- */
.factsheet { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: start; }
.facts { width: 100%; border-collapse: collapse; font-size: 15px; border-top: 1px solid var(--ink); }
.facts th, .facts td { text-align: left; padding: 13px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.facts th { width: 34%; font-weight: 500; color: var(--muted); font-size: 13.5px; letter-spacing: .06em; padding-right: 16px; }
.facts td { color: var(--ink); }
@media (max-width: 860px) { .factsheet { grid-template-columns: 1fr; gap: 28px; } }
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--ink); }
.pillar { padding: 24px 22px 8px 0; border-right: 1px solid var(--line); margin-right: 22px; }
.pillar:last-child { border-right: 0; margin-right: 0; }
.pillar .no { font-family: var(--serif); font-size: 14px; color: var(--gold); letter-spacing: .14em; }
.pillar h3 { margin: 8px 0 8px; font-size: 19px; }
.pillar p { font-size: 14.5px; color: var(--ink-2); }
@media (max-width: 980px) { .pillars { grid-template-columns: 1fr 1fr; } .pillar:nth-child(2) { border-right: 0; margin-right: 0; } }
@media (max-width: 560px) { .pillars { grid-template-columns: 1fr; } .pillar { border-right: 0; margin-right: 0; border-bottom: 1px solid var(--line); padding-bottom: 14px; } }
.invite { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.icard { aspect-ratio: 1.586; max-width: 440px; width: 100%; border-radius: 14px; background: radial-gradient(120% 140% at 0% 0%, #2a2b2f 0%, #121315 45%, #0a0a0b 100%); border: 1px solid rgba(205, 174, 112, .45); box-shadow: 0 30px 60px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .06); position: relative; padding: 26px 28px; color: #e8e4da; overflow: hidden; }
.icard::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(115deg, rgba(255, 255, 255, .025) 0 2px, transparent 2px 7px); pointer-events: none; }
.icard .w { font-family: var(--serif); font-size: 22px; font-weight: 700; letter-spacing: .22em; color: #fff; }
.icard .w b { color: var(--gold-hi); }
.icard .chipm { position: absolute; left: 28px; top: 42%; width: 46px; height: 34px; border-radius: 6px; background: linear-gradient(135deg, #e3c88f, #9c7b3c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .25); }
.icard .t { position: absolute; left: 28px; bottom: 24px; font-size: 11.5px; letter-spacing: .32em; color: var(--gold-hi); }
.icard .t2 { position: absolute; right: 28px; bottom: 24px; font-size: 11.5px; letter-spacing: .18em; color: #a9a59c; }
.icard .t2 span { display: block; }
@media (max-width: 420px) { .icard .t, .icard .t2 { line-height: 1.2; } .icard .t2 { right: 28px; left: 28px; bottom: 44px; } .icard .t2 span { display: inline-block; width: 50%; letter-spacing: .1em; margin-bottom: 3px; } }  /* 窄卡片：兩行說明上下排，避免重疊；四個代號排成 2×2 */
.band.dark .eyebrow { color: var(--gold-hi); }
.band.dark .facts th { color: #9a968d; } .band.dark .facts td { color: #eceae5; } .band.dark .facts, .band.dark .facts th, .band.dark .facts td { border-color: #2b2e33; }
@media (max-width: 860px) { .invite { grid-template-columns: 1fr; gap: 32px; } .icard { max-width: 360px; } }

/* ---------- footer (dark) ---------- */
footer, .site-foot { background: var(--head); color: #c9c6be; margin-top: 0; font-size: 14px; }
.site-foot .foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; padding-top: 56px; padding-bottom: 36px; }
.site-foot .foot-brand p { color: #a9a59c; font-size: 14px; line-height: 1.8; margin: 14px 0 0; max-width: 36ch; }
.site-foot .mark .word { font-size: 22px; }
footer h4 { color: #fff; font-family: var(--sans); font-size: 12.5px; font-weight: 600; margin: 0 0 14px; letter-spacing: .2em; }
footer ul { list-style: none; margin: 0; padding: 0; }
footer li { margin-bottom: 8px; }
footer a { color: #c9c6be; text-decoration: none; }
footer a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--gold-hi); }
.site-foot .disc { border-top: 1px solid var(--head-line); padding-top: 26px; padding-bottom: 26px; }
footer .disc p { max-width: 96ch; font-size: 13.5px; line-height: 1.85; margin: 0 0 10px; color: #a9a59c; }
footer .disc .more { font-size: 13px; margin: 0; }
footer .legal { border-top: 1px solid var(--head-line); padding: 16px 0 26px; font-size: 12.5px; color: #8b877f; }
footer .legal .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
@media (max-width: 860px) { .site-foot .foot-grid { grid-template-columns: 1fr 1fr; } .site-foot .foot-brand { grid-column: 1 / -1; } }
@media (max-width: 420px) { .site-foot .foot-grid { grid-template-columns: 1fr; } }

/* ---------- print ---------- */
.print-only { display: none; }
@media print { .nav, .util, .gov, .search, footer, .cta, .burger, .btpick, .themebtn { display: none !important; } body { background: #fff; } .hero, .pagehead { background: #fff !important; color: #000; } .hero h1, .pagehead h1 { color: #000; } .fig { break-inside: avoid; } }
ul.ind { max-width: none; }
.band.dark .btn.primary { background: var(--gold-hi); color: #111; border-color: var(--gold-hi); }
.band.dark .btn.primary:hover { background: #e0c48d; border-color: #e0c48d; color: #111; }

@media (max-width: 560px) { .row2[style*="grid-template-columns"] { grid-template-columns: 1fr !important; } }
.nowrap, .tbl time, .bn-code { white-space: nowrap; }
.tbl td:not(:first-child):not(.l) { white-space: nowrap; }
.search button { white-space: nowrap; }

/* 首頁客戶專區圖片（管理後台上傳）：白底方格，深色模式也維持白底以確保標誌清晰 */
.clogos { list-style: none; padding: 0; margin: 20px 0 24px; max-width: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.clogos[hidden] { display: none; }
.clogos li { margin: 0; background: #fff; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: center; height: 104px; padding: 18px 20px; }
.clogos li a { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; text-decoration: none; }
.clogos img { max-width: 100%; max-height: 60px; object-fit: contain; }
@media (max-width: 560px) { .clogos { grid-template-columns: repeat(2, 1fr); } .clogos li { height: 88px; padding: 14px; } .clogos img { max-height: 48px; } }

/* 首頁策略對比 */
.cmp-cards { margin-bottom: 18px; }
.cmp-cards h3 { margin: 0 0 6px; font-size: 17px; }
.cmp-cards h3 small { margin-left: 8px; font-family: var(--sans); font-size: 12px; font-weight: 500; letter-spacing: .06em; color: var(--muted); }
.cmp-cards p { margin: 0; font-size: 14.5px; color: var(--ink-2); }
.tbl.cmp td small { display: block; color: var(--muted); font-size: 11.5px; line-height: 1.4; white-space: nowrap; }
.tbl.cmp td b { font-weight: 700; color: var(--ink); }
.tbl.cmp .tagfix { display: inline-block; font-size: 11px; letter-spacing: .06em; color: var(--muted); border: 1px solid var(--line); padding: 0 6px; margin-left: 6px; vertical-align: 1px; border-radius: 2px; }
.cmp-figs { margin-top: 18px; }
.tbl.cmp .mth { display: none; }
/* 手機：每個指標一列標題＋四欄數值（欄名顯示在每格上方），不再左右捲動 */
@media (max-width: 640px) {
  .tbl.cmp { font-size: 14px; }
  .tbl.cmp, .tbl.cmp tbody, .tbl.cmp caption { display: block; }
  .tbl.cmp thead { display: none; }
  .tbl.cmp tr { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 10px; row-gap: 6px; padding: 12px 0; border-bottom: 1px solid var(--line-2); }
  .tbl.cmp.cmp5 tr, .tbl.cmp.cmp6 tr { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tbl.cmp tbody tr:hover td { background: none; }
  .tbl.cmp td { display: block; min-width: 0; padding: 0; border: 0; text-align: left !important; }
  .tbl.cmp td:first-child { grid-column: 1 / -1; white-space: normal; font-weight: 600; color: var(--ink); }
  .tbl.cmp .mth { display: block; min-height: 3.2em; font-size: 11px; line-height: 1.6; color: var(--muted); white-space: normal; }
  .tbl.cmp .mth .sw { width: 8px; height: 8px; margin-right: 4px; }
  .tbl.cmp td small { white-space: normal; font-size: 10.5px; overflow-wrap: anywhere; }
}

/* ---------- 3D 圓餅（資產全貌） ---------- */
.pie3d .p3-wrap { display: grid; grid-template-columns: minmax(280px, 1.15fr) minmax(260px, 1fr); gap: 18px; align-items: center; }
.pie3d .p3-svg svg { width: 100%; max-width: 560px; height: auto; display: block; margin: 0 auto; overflow: visible; }
.pie3d .p3-svg path[tabindex]:focus { outline: none; stroke: var(--ink); stroke-width: 2; }
.pie3d .p3-tbl { margin: 0; }
.pie3d .p3-tbl td, .pie3d .p3-tbl th { padding-top: 6px; padding-bottom: 6px; }
.pie3d .p3-tbl tr.on td { background: var(--gold-tint); }
.pie3d .p3-tbl small { display: block; margin-top: 1px; }
.pie3d .p3-tbl th, .pie3d .p3-tbl td:not(.l) { white-space: nowrap; }   /* 表頭與數字不折行；名稱欄可折行 */
@media (max-width: 760px) { .pie3d .p3-wrap { grid-template-columns: 1fr; } }
/* 放在半寬欄（會員專區兩欄）時：圓餅在上、數字表在下 */
.pie3d { container-type: inline-size; }
@container (max-width: 640px) { .pie3d .p3-wrap { grid-template-columns: 1fr; } .pie3d .p3-svg svg { max-width: 460px; } }

/* ---------- 每日市場分析：會員「你的資產變化」（assets/mychange.js；只有登入看得到） ---------- */
.mychg { padding: 30px 0 10px; border-bottom: 1px solid var(--line); }
.mychg h2 { margin-top: 0; }
.mychg .kv .tile .v.pos, .mychg .kv .tile .s.pos, .mychg .pos { color: var(--good); }
.mychg .kv .tile .v.neg, .mychg .kv .tile .s.neg, .mychg .neg { color: var(--bad); }
.mychg-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 12px 36px; align-items: start; }
@media (max-width: 900px) { .mychg-grid { grid-template-columns: minmax(0, 1fr); } }
.mychg-bars { display: grid; gap: 8px; margin: 6px 0 10px; }
.mychg-bars .mb { display: grid; grid-template-columns: minmax(110px, 42%) minmax(60px, 1fr) 64px; gap: 10px; align-items: center; font-size: 13.5px; }
.mychg-bars .lb { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mychg-bars .tr { position: relative; height: 14px; background: var(--band); border: 1px solid var(--line-2); }
.mychg-bars .tr::before { content: ""; position: absolute; left: 50%; top: -3px; bottom: -3px; width: 1px; background: var(--muted); }
.mychg-bars .tr i { position: absolute; top: 0; bottom: 0; }
.mychg-bars .tr i.up { left: 50%; background: var(--good); }
.mychg-bars .tr i.dn { right: 50%; background: var(--bad); }
.mychg-bars .vv { text-align: right; font-variant-numeric: tabular-nums; }

/* 首頁頂部四張策略卡：點了跳到下方對應的模型說明（2026-11-21） */
.hero a.hs { display: block; color: inherit; text-decoration: none; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease; }
.hero a.hs:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0, 0, 0, .28); }
.hero a.hs:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 2px; }
.cmp-cards .card { scroll-margin-top: 104px; }
.cmp-cards .card:target { box-shadow: 0 0 0 2px var(--gold-hi); }
@media (prefers-reduced-motion: reduce) { .hero a.hs { transition: none; } .hero a.hs:hover { transform: none; } }

/* 搜尋與深／淺色切換：從頁首移到頁尾最上面（2026-11-21） */
.site-foot .foot-tools { padding-top: 28px; }
.site-foot .tools { display: flex; gap: 10px; align-items: center; min-width: 0; padding-bottom: 24px; border-bottom: 1px solid #26282c; }
.site-foot .tools .search { flex: 1; max-width: 560px; }
.site-foot .tools .search input { width: 100%; min-width: 0; background: #17181b; border-color: #34363b; color: var(--head-ink); }
.site-foot .tools .search input::placeholder { color: #8b877f; }
.site-foot .tools .search button { background: var(--gold-hi); border-color: var(--gold-hi); color: #111; font-weight: 600; }
.site-foot .tools .search button:hover { background: #e0c48d; border-color: #e0c48d; color: #111; }
.site-foot .foot-tools + .foot-grid { padding-top: 36px; }
@media (max-width: 640px) { .site-foot .tools .search { max-width: none; } }

/* 深／淺色切換放回頁首右上角，搜尋留在頁尾（2026-11-21） */
/* 2026-11-21 16:12：深／淺色切換左邊多一個「會員登入」入口（和選單裡的登入連結一樣到 login.html；登入後隱藏，改由商標旁的「會員專區」進入） */
.brand .wrap > .htools { justify-self: end; display: flex; gap: 10px; align-items: center; }
.brand .hlogin { display: inline-flex; align-items: center; color: var(--gold-hi); border: 1px solid rgba(205, 174, 112, .55); border-radius: 2px; font-size: 13.5px; font-weight: 500; line-height: 1.8; padding: 8px 12px; text-decoration: none; white-space: nowrap; }
.brand .hlogin:hover { background: var(--gold-hi); color: #111; border-color: var(--gold-hi); }
.brand .hlogin:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 2px; }
.brand .hlogin[hidden] { display: none; }
@media (max-width: 1200px) {
  .brand .wrap { grid-template-columns: minmax(0, 1fr) auto; }
  .brand .wrap > .mark { grid-column: 1; grid-row: 1; }
  .brand .wrap > .htools { grid-column: 2; grid-row: 1; }
  .brand .wrap > .mark + div { grid-column: 1 / -1; }
  .brand .wrap > .mark + div:empty { display: none; }
}
@media print { .hlogin { display: none !important; } }

/* 首頁「動態走勢」按鈕（2026-11-21）：和「重設」同款，金色字表示可播放 */
.bt-play { color: var(--gold); border-color: var(--gold); font-weight: 600; }
.bt-play:hover { color: var(--ink); border-color: var(--ink); }
.bt-play[aria-pressed="true"] { background: var(--gold); color: #111; border-color: var(--gold); }
/* 每張圖右上角的「動態走勢」按鈕（2026-11-21 22:23 站主：全站所有圖表都要有）：同首頁按鈕的樣式，放在圖框右上角 */
.fig-play { float: right; position: relative; z-index: 1; margin: -4px -4px 8px 12px; padding: 4px 11px; font-size: 13px; line-height: 1.5; }
.fsub-play { font-variant-numeric: tabular-nums; }
.fig-play.inl { float: none; margin: 0; }
.p3-tbl tbody tr.p3-wait { opacity: .3; }
.p3-tbl tbody tr { transition: opacity .25s ease; }
@media (prefers-reduced-motion: reduce) { .p3-tbl tbody tr { transition: none; } }
@media print { .fig-play { display: none !important; } }
/* 動態走勢播放時的「當月持有」列 */
.whold { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 10px 0 0; padding: 10px 14px; border: 1px solid var(--line); border-left: 3px solid var(--gold); background: var(--paper); font-size: 13.5px; font-variant-numeric: tabular-nums; }
.whold .wh-k { font-weight: 700; color: var(--ink); margin-right: 4px; }
.whold .wh-i { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); padding: 2px 6px; border-radius: 2px; transition: background-color .25s ease; }
.whold .wh-i .sw { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }
.whold .wh-i b { color: var(--ink); font-weight: 700; }
.whold .wh-i.chg { background: var(--gold-tint, rgba(205, 174, 112, .18)); }
@media (prefers-reduced-motion: reduce) { .whold .wh-i { transition: none; } }
