"""语料库数据 - 变量池和模板"""
import re
from typing import Dict, List

# ============================================================
#  共享变量池 (每池 30 值)
# ============================================================
V: Dict[str, List[str]] = {
    "cuisine": ["Italian","Mexican","Japanese","Thai","Indian","French","Chinese","Korean","Vietnamese","Greek","Turkish","Ethiopian","Peruvian","Spanish","Brazilian","Moroccan","Lebanese","Indonesian","Filipino","Caribbean","Georgian","Malaysian","Argentinian","Polish","German","Nigerian","Egyptian","Nepalese","Swedish","Cuban"],
    "dish": ["pasta","curry","stir-fry","risotto","tacos","sushi","dumplings","paella","ramen","pho","biryani","goulash","ceviche","pad thai","falafel","bulgogi","empanadas","gyoza","laksa","rendang","shakshuka","moussaka","pierogi","borscht","kimchi jjigae","tamales","bibimbap","naan bread","spring rolls","samosa"],
    "ingredient": ["garlic","ginger","turmeric","basil","cilantro","cumin","paprika","lemongrass","saffron","oregano","thyme","rosemary","chili flakes","cinnamon","cardamom","coconut milk","sesame oil","fish sauce","miso paste","tahini","za'atar","sumac","star anise","bay leaves","black pepper","vanilla extract","nutmeg","coriander","fennel","dill"],
    "lang": ["Python","JavaScript","TypeScript","Rust","Go","Java","C++","Swift","Kotlin","Ruby","PHP","Scala","Haskell","Elixir","C#","Dart","Julia","R","Lua","Perl","Clojure","Erlang","Zig","Nim","OCaml","F#","Crystal","Groovy","MATLAB","Fortran"],
    "fw": ["React","Vue","Angular","Django","Flask","Spring Boot","Express","Next.js","Nuxt","FastAPI","Rails","Laravel","Svelte","Remix","Astro","SolidJS","Gin","Fiber","Actix","Rocket","Phoenix","NestJS","Hono","htmx","Alpine.js","Tailwind","Bootstrap","Gatsby","Starlette","Tornado"],
    "tech": ["microservices","serverless architecture","containerization","CI/CD pipelines","event-driven design","domain-driven design","test-driven development","GraphQL APIs","WebSocket connections","OAuth 2.0","JWT authentication","database sharding","message queues","caching strategies","load balancing","API rate limiting","blue-green deployment","feature flags","observability","infrastructure as code","edge computing","service mesh","data pipelines","schema migration","zero-downtime deployment","chaos engineering","A/B testing","canary releases","immutable infrastructure","reverse proxies"],
    "sport": ["running","swimming","cycling","yoga","weightlifting","tennis","basketball","soccer","hiking","rock climbing","martial arts","rowing","skiing","surfing","boxing","pilates","CrossFit","badminton","volleyball","table tennis","fencing","archery","golf","kayaking","skateboarding","ice skating","trail running","dance fitness","gymnastics","parkour"],
    "body": ["core","legs","arms","shoulders","back","chest","glutes","hamstrings","quadriceps","calves","forearms","triceps","biceps","abs","obliques","hip flexors","trapezius","lats","deltoids","neck","wrists","ankles","lower back","upper back","rotator cuff","adductors","pelvic floor","rhomboids","serratus anterior","erector spinae"],
    "goal": ["lose weight","build muscle","improve flexibility","increase endurance","reduce stress","improve posture","boost energy","train for a marathon","recover from injury","improve balance","increase strength","tone up","improve cardio health","gain lean mass","improve mobility","reduce back pain","train for competition","improve sleep","build stamina","achieve a PR","rehab a knee","improve core stability","prep for triathlon","get flexible","build functional strength","prevent injuries","improve agility","enhance performance","manage chronic pain","stay active while aging"],
    "city": ["Tokyo","Paris","New York","London","Seoul","Bangkok","Barcelona","Istanbul","Rome","Berlin","Dubai","Singapore","Sydney","Cairo","Prague","Amsterdam","Vienna","Lisbon","Buenos Aires","Cape Town","Marrakech","Kyoto","Vancouver","Melbourne","Copenhagen","Munich","Stockholm","Zurich","Taipei","Montreal"],
    "country": ["Japan","Italy","France","Spain","Thailand","Greece","Portugal","New Zealand","Iceland","Peru","Morocco","Norway","South Korea","Mexico","Vietnam","Turkey","Croatia","Switzerland","Ireland","Chile","Tanzania","Nepal","Scotland","Colombia","Austria","Czech Republic","Argentina","Indonesia","Costa Rica","Egypt"],
    "travel": ["budget backpacking","luxury resort","solo travel","family vacation","adventure travel","cultural immersion","road trip","digital nomad","eco-tourism","food tourism","volunteer travel","wellness retreat","photography trip","cruise","camping","hiking expedition","historical tour","wildlife safari","beach vacation","ski trip","festival trip","pilgrimage","honeymoon","gap year","weekend getaway","island hopping","train journey","off-the-grid","group tour","self-guided tour"],
    "genre": ["science fiction","fantasy","mystery","thriller","romance","historical fiction","literary fiction","horror","memoir","biography","self-help","psychology","philosophy","economics","popular science","true crime","dystopian","young adult","graphic novels","poetry","satire","adventure","magical realism","cyberpunk","space opera","steampunk","noir","epistolary","cli-fi","afrofuturism"],
    "skill": ["public speaking","creative writing","photography","drawing","playing guitar","playing piano","cooking","data analysis","machine learning","web development","graphic design","video editing","3D modeling","animation","calligraphy","woodworking","pottery","gardening","investing","negotiation","time management","speed reading","meditation","chess","origami","digital marketing","UX design","mobile app dev","game development","music production"],
    "subject": ["quantum physics","neuroscience","evolutionary biology","astronomy","ancient history","art history","philosophy of mind","linguistics","behavioral economics","climate science","genetics","cosmology","cognitive psychology","political theory","anthropology","marine biology","organic chemistry","number theory","artificial intelligence","cryptography","game theory","epidemiology","paleontology","geopolitics","renewable energy","urban planning","architecture","zoology","mythology","ethnomusicology"],
    "hobby": ["gardening","painting","knitting","board games","video games","birdwatching","fishing","baking","home brewing","journaling","stargazing","puzzles","model building","candle making","soap making","embroidery","scrapbooking","reading","podcasting","blogging","vlogging","cosplay","foraging","beekeeping","aquascaping","geocaching","metalworking","leathercraft","fermentation","herbalism"],
    "pet": ["dog","cat","rabbit","hamster","guinea pig","parrot","goldfish","turtle","ferret","chinchilla","hedgehog","snake","lizard","hermit crab","cockatiel","budgie","corgi","labrador","persian cat","siamese cat","beagle","poodle","shiba inu","golden retriever","maine coon","ragdoll","bengal cat","husky","dachshund","bulldog"],
    "season": ["spring","summer","autumn","winter","rainy season","dry season","early spring","late summer","mid-autumn","deep winter","monsoon season","harvest season","holiday season","back-to-school season","pollen season","hurricane season","ski season","festival season","planting season","cherry blossom season","peak summer","Indian summer","shoulder season","off-season","high season","mud season","leaf-peeping season","aurora season","midnight sun season","frost season"],
    "music": ["jazz","classical","rock","hip-hop","electronic","blues","R&B","country","folk","reggae","punk","metal","indie","soul","funk","ambient","lo-fi","K-pop","J-pop","bossa nova","gospel","afrobeat","dancehall","trap","house","techno","synthwave","grunge","ska","prog rock"],
    "instrument": ["guitar","piano","violin","drums","bass","saxophone","trumpet","cello","flute","ukulele","harmonica","banjo","accordion","clarinet","harp","mandolin","oboe","trombone","synthesizer","djembe","sitar","tabla","erhu","kalimba","bagpipes","marimba","theremin","didgeridoo","steel drum","hang drum"],
    "animal": ["dolphins","elephants","wolves","eagles","octopuses","penguins","cheetahs","whales","gorillas","owls","foxes","bears","pandas","tigers","koalas","seahorses","chameleons","ravens","chimpanzees","salmon","monarch butterflies","honeybees","otters","flamingos","meerkats","jellyfish","mantis shrimp","snow leopards","axolotls","narwhals"],
    "planet": ["Mars","Jupiter","Saturn","Venus","Mercury","Neptune","Uranus","Pluto","Europa","Titan","Enceladus","Ganymede","Io","Callisto","Triton","Ceres","Eris","Makemake","Haumea","Proxima Centauri b","Kepler-442b","TRAPPIST-1e","the Moon","Phobos","Deimos","Charon","Sedna","Vesta","Pallas","Juno"],
    "job": ["software engineer","data scientist","product manager","UX designer","teacher","nurse","architect","lawyer","journalist","chef","photographer","therapist","entrepreneur","marketing manager","financial analyst","civil engineer","veterinarian","pharmacist","librarian","translator","pilot","detective","diplomat","game designer","curator","sommelier","urban planner","marine biologist","forensic scientist","ethical hacker"],
    "industry": ["healthcare","fintech","education","e-commerce","gaming","renewable energy","real estate","logistics","biotech","media","aerospace","agriculture","cybersecurity","insurance","retail","hospitality","telecom","automotive","fashion","entertainment","construction","consulting","legal tech","food delivery","social media","SaaS","cleantech","mental health","pet care","elder care"],
    "relation": ["a close friend","a coworker","a family member","a new neighbor","a mentor","a romantic partner","a childhood friend","an online friend","a classmate","a roommate","a team member","a client","a younger sibling","an older relative","a long-distance friend","a pen pal","a study partner","a gym buddy","a business partner","a supervisor","a parent","a teenager","a college roommate","an ex-colleague","a volunteer partner","a coach","a teacher","a freelance collaborator","a community member","a fellow hobbyist"],
    "emotion": ["anxious","overwhelmed","frustrated","lonely","unmotivated","burnt out","nostalgic","grateful","confused","excited","nervous","disappointed","jealous","insecure","hopeful","restless","melancholic","inspired","bored","content","embarrassed","resentful","curious","determined","vulnerable","skeptical","relieved","wistful","ambivalent","energized"],
    "num": ["3","5","7","8","10","12","15","20","25","30","4","6","9","11","14","16","18","21","28","35","50","100","2","13","17","19","22","24","40","45"],
    "period": ["a week","a month","two weeks","three months","six months","a year","30 days","90 days","two months","a semester","a quarter","a weekend","10 days","45 days","8 weeks","the next year","this summer","the holidays","a sabbatical","a gap year","winter break","spring break","5 days","a long weekend","21 days","the off-season","a workshop weekend","an intensive bootcamp","a retreat","a trial period"],
    "level": ["beginner","intermediate","advanced","absolute beginner","upper intermediate","self-taught","hobbyist","professional-level","casual","dedicated","returning","experienced","aspiring","curious","serious","recreational","competitive","amateur","enthusiastic","rusty","passionate","committed","exploring","dabbling","first-time","lifelong","weekend","intensive","part-time","keen"],
    "color": ["teal","coral","navy blue","sage green","burgundy","mustard yellow","lavender","slate gray","burnt orange","forest green","blush pink","cobalt blue","terracotta","ivory","charcoal","olive","champagne","rose gold","midnight blue","emerald","rust","mauve","seafoam","plum","tangerine","indigo","peach","crimson","amber","pewter"],
}

# ============================================================
#  500+ 独立问题模板 (每条都是完全不同的问题)
# ============================================================
Q: List[str] = [
    # ─── 烹饪/美食 (1-40) ───
    "What's a good {cuisine} recipe for {dish} using {ingredient}?",
    "How do I make {dish} with {ingredient} in a {cuisine} style?",
    "Can you suggest a {level} {cuisine} recipe that features {ingredient}?",
    "What {cuisine} dishes go well with {ingredient} for a {season} dinner?",
    "How can a {level} cook make authentic {cuisine} {dish}?",
    "What's the best way to prepare {ingredient} for {cuisine} {dish}?",
    "I'm hosting a {season} dinner party — suggest a {cuisine} menu with {dish}",
    "What's the secret to making restaurant-quality {dish} at home with {ingredient}?",
    "How do street vendors in {city} make their {dish} so delicious?",
    "What {num} food markets in {city} are worth visiting during {season}?",
    "How does {cuisine} food in {city} differ from {country}'s original?",
    "Where can I find the best {dish} in {city} as a {travel} traveler?",
    "What {cuisine} cooking classes are available in {city}?",
    "What {num} {cuisine} dishes from {country} should everyone try?",
    "How has {city}'s food scene evolved with {cuisine} influences?",
    "What's the best coffee to pair with {dish} in a {cuisine} meal?",
    "How do I brew great coffee for a {season} morning as a {level}?",
    "What are {num} tea varieties from {country} that I should try?",
    "What {cuisine} teas go well with {dish} during {season}?",
    "How does the tea culture in {country} compare to {cuisine} food culture?",
    "What traditional {cuisine} foods are served during {season} in {country}?",
    "What {cuisine} street food is popular during {season} in {city}?",
    "What should I eat for {goal} during {season} as a {level}?",
    "Is {ingredient} good for people trying to {goal}?",
    "What are {num} {season} superfoods that help with {goal}?",
    "Best {cuisine} recipes with {ingredient} for someone wanting to {goal}?",
    "How does a {cuisine} diet compare for {goal} over {period}?",
    "What {num} healthy meals with {ingredient} work for {season}?",
    "What nutrition plan works for {sport} athletes trying to {goal}?",
    "What should a {level} know about nutrition for {sport}?",
    "I have a {pet} that won't eat — what {ingredient}-based food might help?",
    "What homemade {dish} can I make for my {pet} using {ingredient}?",
    "How do I meal prep {dish} for {period} as a busy {job}?",
    "What's the difference between {cuisine} and {cuisine} {dish}?",
    "How did {country}'s culture influence {cuisine} cuisine?",
    "Is it hard to make authentic {dish} outside of {country}?",
    "What kitchen tools does a {level} need to cook {cuisine} food?",
    "How can I reduce food waste when cooking {dish} with {ingredient}?",
    "What {num} spices are essential for {cuisine} cooking?",
    "How do I adapt {cuisine} recipes for someone trying to {goal}?",
    # ─── 编程/科技 (41-80) ───
    "How do I implement {tech} in {lang} using {fw}?",
    "What's the best way to learn {lang} for {tech}?",
    "Can you explain {tech} with a {lang} example?",
    "I'm building a project with {fw} — how should I handle {tech}?",
    "As a {level} developer, how should I approach {tech} in {lang}?",
    "How does {lang} handle {tech} compared to other languages?",
    "What {fw} patterns work best for implementing {tech}?",
    "What are common mistakes when using {lang} for {tech}?",
    "Should I use {lang} or {lang} for my next {tech} project?",
    "How do I set up {fw} with {tech} for a {level} developer?",
    "What {num} {lang} libraries are essential for {tech}?",
    "How has {tech} evolved in the {industry} industry?",
    "What's the career outlook for {tech} specialists in {country}?",
    "Are {tech} skills in demand for {job} positions?",
    "How do I transition into {tech} from a {job} background?",
    "What {num} online courses teach {tech} for {level} learners?",
    "Can you recommend {tech} projects for a {level} portfolio?",
    "What's the average salary for {tech} professionals in {city}?",
    "How does {tech} impact the {industry} sector?",
    "Which companies in {city} are leading in {tech}?",
    "What {tech} certifications are most valuable in {industry}?",
    "How do I prepare for a {tech} interview at a {industry} company?",
    "What's the learning curve for {tech} for someone at {level}?",
    "How does {tech} compare to {tech} in terms of scalability?",
    "What are the pros and cons of {tech} in {industry}?",
    "How do I choose between {tech} and {tech} for my startup?",
    "What {tech} tools integrate best with {fw}?",
    "How has {tech} changed the way {job}s work?",
    "What's the best {tech} stack for a {level} developer building {industry} apps?",
    "How do I debug {tech} issues in {fw}?",
    "What {num} GitHub repos demonstrate best {tech} practices?",
    "How do I optimize {tech} performance in {lang}?",
    "What's the difference between {tech} and {tech}?",
    "How does {tech} work under the hood in {lang}?",
    "Can you suggest {tech} tutorials for {level} {lang} developers?",
    "What are the latest trends in {tech} for {industry}?",
    "How do I secure my {fw} application with {tech}?",
    "What's the best way to test {tech} implementations in {lang}?",
    "How do I scale {tech} for millions of users?",
    "What {tech} patterns are used by top {industry} companies?",
    # ─── 健身/运动 (81-120) ───
    "What's a good {sport} routine for {goal} targeting {body}?",
    "How do I start {sport} as a {level} with {goal}?",
    "What's the best {sport} workout for strengthening {body}?",
    "How often should I do {sport} to {goal}?",
    "Can {sport} help with {goal} for people with {emotion}?",
    "What {num} {sport} exercises are best for {body}?",
    "What's a typical training plan for {sport} targeting {goal}?",
    "How do I prevent injuries when doing {sport} for {goal}?",
    "What's the best {sport} gear for {level} practitioners?",
    "How does {sport} compare to {sport} for {goal}?",
    "What should I eat before {sport} to {goal}?",
    "How do I recover after {sport} to maximize {goal}?",
    "What's the best time of day for {sport} to {goal}?",
    "Can you suggest a {period} {sport} plan for {goal}?",
    "How do I stay motivated with {sport} when feeling {emotion}?",
    "What {sport} apps help track progress for {goal}?",
    "How do I modify {sport} for {level} fitness levels?",
    "What's the best {sport} technique for working {body}?",
    "How does {sport} benefit mental health for {goal}?",
    "What {num} {sport} mistakes should {level}s avoid?",
    "How do I set realistic {sport} goals for {goal}?",
    "What's the connection between {sport} and {sport} for overall fitness?",
    "How do I balance {sport} with other workouts for {goal}?",
    "What {sport} supplements help with {goal}?",
    "How do I find a good {sport} coach or community?",
    "What's the best {sport} shoes for {level}?",
    "How do I progress from {level} to intermediate in {sport}?",
    "What {num} stretching exercises should I do after {sport}?",
    "How does weather affect {sport} performance for {goal}?",
    "Can {sport} help with {goal} for {job}s who sit all day?",
    "What's the best {sport} routine for {period}?",
    "How do I track my {sport} metrics for {goal}?",
    "What {sport} competitions can {level}s participate in?",
    "How do I overcome plateaus in {sport} for {goal}?",
    "What's the best way to warm up before {sport}?",
    "How does cross-training with {sport} help with {goal}?",
    "What {num} strength exercises complement {sport}?",
    "How do I design a {sport} schedule for {goal}?",
    "What are the mental benefits of {sport} beyond {goal}?",
    # ─── 旅游 (121-160) ───
    "What's the best {travel} itinerary for {num} days in {city}?",
    "How do I plan a {travel} trip to {country} on a budget?",
    "What should I pack for a {season} {travel} to {city}?",
    "What are the best {travel} destinations in {country} for {season}?",
    "How do I find authentic local experiences during {travel}?",
    "What {num} hidden gems in {city} are perfect for {travel}?",
    "Is {city} a good {travel} destination for families?",
    "What {travel} activities work well during {season} in {city}?",
    "How do I stay safe during {travel} in {country}?",
    "What visa requirements exist for {travel} to {country}?",
    "How do I find the best flights for {travel} to {city}?",
    "What {num} {city} neighborhoods are worth exploring during {travel}?",
    "How does {season} affect {travel} to {country}?",
    "What's the best way to get around {city} during {travel}?",
    "What {travel} apps are essential for visiting {city}?",
    "How do I handle language barriers during {travel} to {country}?",
    "What {num} must-see attractions in {city} for {travel}?",
    "How do I find affordable accommodation for {travel} in {city}?",
    "What's the local food scene like in {city} for {travel}?",
    "How do I balance relaxation and adventure during {travel}?",
    "What {num} photography spots in {city} are perfect for {travel}?",
    "How do I meet locals during {travel} in {country}?",
    "What's the best time to visit {city} for a {travel}?",
    "How do I plan a {travel} that avoids tourist traps in {city}?",
    "What cultural experiences should I seek during {travel} to {country}?",
    "How do I stay healthy during {travel} to {city}?",
    "What {num} day trips from {city} work for {travel}?",
    "How do I handle money matters during {travel} to {country}?",
    "What {travel} experiences are unique to {country}?",
    "How do I plan a sustainable {travel} trip to {city}?",
    "What's the best {travel} route through {country} for {period}?",
    "How do I find WiFi and data during {travel} in {country}?",
    "What {num} festivals in {country} are worth {travel} for?",
    "How do I travel {city} on a budget as a {level} traveler?",
    "What's the best way to see {city} in {num} days during {season}?",
    "How do I handle emergencies during {travel} in {country}?",
    "What {travel} guides would you recommend for {city}?",
    "How do I capture the essence of {city} during {travel}?",
    # ─── 阅读/书籍 (161-200) ───
    "What are the best {genre} books for {level} readers?",
    "Can you recommend a {genre} book about {subject}?",
    "What {num} {genre} books should everyone read?",
    "How does {genre} literature help with understanding {subject}?",
    "What's a good {genre} book for {emotion} people?",
    "Who are the best {genre} authors writing about {subject}?",
    "What {num} contemporary {genre} novels are worth reading?",
    "How has {genre} evolved as a literary form?",
    "What's the best {genre} book to start with for {level}?",
    "What {genre} classics are essential for understanding {subject}?",
    "Can you suggest {genre} books similar to {book}?",
    "What {num} award-winning {genre} books from {country}?",
    "How do I choose the right {genre} book for my mood?",
    "What {genre} books explore themes of {emotion}?",
    "What's the difference between {genre} and {genre}?",
    "How do I get into {genre} if I'm a {level} reader?",
    "What {num} {genre} books were adapted from {genre}?",
    "Who are emerging {genre} authors to watch?",
    "What {genre} books help with {goal}?",
    "How does {country}'s {genre} literature differ from others?",
    "What's a good {genre} book for {period} reading?",
    "What {num} {genre} series should I start?",
    "How do I find time to read more {genre} books?",
    "What {genre} podcasts complement the books I read?",
    "What {num} {genre} graphic novels are must-reads?",
    "How do I build a {genre} reading habit?",
    "What {genre} books are being made into movies?",
    "What's the best {genre} for understanding {subject}?",
    "How do I discuss {genre} books in a book club?",
    "What {num} {genre} memoirs are inspiring?",
    "What {genre} books explore {subject} from unique angles?",
    "How do I recommend {genre} books to friends?",
    "What's the reading order for {genre} series?",
    "What {num} {genre} novellas are worth reading?",
    "How do I explore different {genre} subgenres?",
    "What {genre} books help develop empathy?",
    "How do I find my next favorite {genre} author?",
    "What {num} {genre} audiobooks are well-narrated?",
    # ─── 音乐 (201-240) ───
    "What's a good {music} song to learn on {instrument} for {level}?",
    "How do I start listening to {music} as a {level}?",
    "What {num} {music} artists should I know?",
    "Can you recommend {music} albums from {country}?",
    "What's the best way to appreciate {music} as a beginner?",
    "What {music} genres pair well with {instrument}?",
    "How do I find {music} concerts in {city}?",
    "What {num} {music} festivals are worth attending in {country}?",
    "What's the difference between {music} and {music}?",
    "How has {music} evolved over the decades?",
    "What {music} should I listen to while {hobby}?",
    "How do I start playing {music} on {instrument}?",
    "What {num} {music} songs are perfect for {season}?",
    "What's a good {music} playlist for {emotion} moods?",
    "How do I discover new {music} artists?",
    "What {music} theory should {level} musicians know?",
    "How does {music} from {country} sound unique?",
    "What {num} {music} genres originated in {country}?",
    "What's the best {music} for focusing on {task}?",
    "How do I appreciate {music} as a non-musician?",
    "What {music} instruments are easiest to learn for {level}?",
    "How does {music} affect the brain?",
    "What {num} {music} albums are considered classics?",
    "How do I build a {music} collection?",
    "What {music} works well for relaxation?",
    "What's the history of {music} in {country}?",
    "How do I find {music} lessons in {city}?",
    "What {num} {music} podcasts should I follow?",
    "How does {music} influence {industry}?",
    "What {music} should a {level} composer study?",
    "What's the best {music} for a {season} road trip?",
    "How do I analyze {music} as a {level} listener?",
    "What {num} {music} soundtracks are masterpieces?",
    "How do I create my own {music}?",
    "What's the connection between {music} and {emotion}?",
    "What {music} genres are popular in {city}?",
    "How do I find {music} that matches my {emotion}?",
    "What {num} {music} cover songs are better than originals?",
    "How do I get into {music} from different decades?",
    # ─── 动物/自然 (241-280) ───
    "What should I know before getting a {pet} as a {level}?",
    "How do I care for a {pet} in {season}?",
    "What's the best {pet} food for {goal}?",
    "How do I train my {pet} to {goal}?",
    "What {num} toys are essential for {pet}s?",
    "How does having a {pet} help with {emotion}?",
    "What's the difference between {pet} breeds for {goal}?",
    "How do I find a reputable {pet} breeder or shelter?",
    "What {pet} is best for {level} owners in {city}?",
    "How do I introduce a new {pet} to my home?",
    "What {num} vet visits does a {pet} need per year?",
    "How do I groom my {pet} at home?",
    "What's the best {pet} for apartment living?",
    "How do I help my {pet} with {season} allergies?",
    "What {animal} species are native to {country}?",
    "How do I spot {animal}s in the wild during {travel}?",
    "What {num} endangered {animal}s need protection?",
    "How does {animal} behavior change with {season}?",
    "What's the best place to see {animal}s in {city}?",
    "How do I photograph {animal}s in their natural habitat?",
    "What {num} {animal}s live in {country}'s ecosystems?",
    "How do climate changes affect {animal} populations?",
    "What role do {animal}s play in {country}'s ecosystem?",
    "How do I identify different {animal}s?",
    "What {num} bird species can I see in {city}?",
    "How do I attract {animal}s to my garden?",
    "What's the difference between {animal} and {animal}?",
    "How do {animal}s prepare for {season}?",
    "What marine {animal}s live near {country}?",
    "How do I help injured {animal}s?",
    "What {num} ways can I support {animal} conservation?",
    "How do zoos help protect {animal}s?",
    "What's the social structure of {animal} groups?",
    "How do {animal}s communicate with each other?",
    "What {animal}s are symbols of {country}?",
    "How do I safely observe {animal}s in the wild?",
    "What {num} facts about {animal}s should everyone know?",
    "How do pets differ from {animal}s in behavior?",
    # ─── 太空/科学 (281-320) ───
    "What makes {planet} suitable for human colonization?",
    "How do scientists detect {planet}s in other solar systems?",
    "What's the most interesting fact about {planet}?",
    "How does space travel affect the human body?",
    "What {num} moons does {planet} have?",
    "How do we send missions to {planet}?",
    "What's the temperature on {planet}?",
    "How did {planet} form in our solar system?",
    "Could life exist on {planet}?",
    "What {num} space agencies have visited {planet}?",
    "How long would it take to travel to {planet}?",
    "What's the atmosphere like on {planet}?",
    "How does {planet}'s gravity compare to Earth's?",
    "What {num} rovers have explored {planet}?",
    "How do we study {planet} from Earth?",
    "What's the most mysterious thing about {planet}?",
    "How do stars differ from {planet}s?",
    "What would happen if {planet} collided with Earth?",
    "How does {planet} affect Earth's tides?",
    "What {num} countries have space programs studying {planet}?",
    "How do scientists map {planet}'s surface?",
    "What's the orbital period of {planet}?",
    "How does {planet} compare to Earth in size?",
    "What {num} interesting features does {planet} have?",
    "How long is a day on {planet}?",
    "What would it be like to live on {planet}?",
    "How do we know {planet} exists if we've never visited?",
    "What makes {planet} different from other {planet}s?",
    "How has our understanding of {planet} changed over time?",
    "What {num} telescopes study {planet}?",
    # ─── 职业/职场 (321-360) ───
    "How do I transition from {job} to {job}?",
    "What's the best way to prepare for a {job} interview?",
    "What skills do I need to become a successful {job}?",
    "How do I negotiate salary as a {job}?",
    "What {num} certifications help {job}s advance?",
    "How does the {job} role differ in {country} vs other countries?",
    "What's the career path for a {job} in {industry}?",
    "How do I stay relevant as a {job} in {industry}?",
    "What {num} mistakes do new {job}s make?",
    "How do I network effectively as a {job}?",
    "What's the work-life balance like for {job}s in {city}?",
    "How do I switch industries from {industry} to {industry}?",
    "What {num} questions should I ask in a {job} interview?",
    "How important is a portfolio for {job} positions?",
    "What soft skills are crucial for {job}s?",
    "How do I handle burnout as a {job}?",
    "What's the average salary for {job}s in {city}?",
    "How do I demonstrate leadership as a {level} {job}?",
    "What {num} resources help {job}s grow?",
    "How do I ask for a promotion as a {job}?",
    "What trends are shaping the {job} market in {industry}?",
    "How do I handle conflict with a coworker as a {job}?",
    "What's the best way to learn {skill} for {job}s?",
    "How do I maintain work-life balance as a {job}?",
    "What {num} habits make successful {job}s?",
    "How do I deal with imposter syndrome as a {job}?",
    "What's the future of {job} in the age of {tech}?",
    "How do I find a mentor in the {industry} industry?",
    "What {num} resume tips for {job} applications?",
    "How do I explain employment gaps in my {job} career?",
    "What makes {job}s stand out in performance reviews?",
    "How do I transition to remote work as a {job}?",
    "What {num} tools should every {job} use?",
    "How do I develop {skill} as a {job}?",
    "What's the best {period} plan to become a {job}?",
    "How do I handle difficult clients as a {job}?",
    "What {num} books should every {job} read?",
    # ─── 情感/心理 (361-400) ───
    "How do I cope with feeling {emotion}?",
    "What helps when you're {emotion} about {subject}?",
    "How do I manage {emotion} in the workplace?",
    "What {num} strategies help with {emotion}?",
    "How do I support a friend who feels {emotion}?",
    "What's the relationship between {emotion} and {subject}?",
    "How does {emotion} affect decision making?",
    "What {num} signs indicate {emotion} needs attention?",
    "How do I process {emotion} in a healthy way?",
    "What's the difference between {emotion} and {emotion}?",
    "How do movies and books portray {emotion}?",
    "What {num} journal prompts help process {emotion}?",
    "How do I explain feeling {emotion} to someone?",
    "What breathing techniques help with {emotion}?",
    "How does {emotion} manifest physically?",
    "What {num} podcasts discuss {emotion}?",
    "How do cultural differences affect expressing {emotion}?",
    "What's the role of {emotion} in relationships?",
    "How do I know if {emotion} is affecting my health?",
    "What {num} movies capture {emotion} beautifully?",
    "How do I help a child deal with {emotion}?",
    "What role does sleep play in managing {emotion}?",
    "How does social media influence {emotion}?",
    "What {num} TED talks address {emotion}?",
    "How do I create boundaries to protect my {emotion}?",
    "What's the connection between {emotion} and {subject}?",
    "How do I build emotional resilience?",
    "What {num} apps help track mood and {emotion}?",
    "How does exercise help with {emotion}?",
    "What role does {emotion} play in creativity?",
    # ─── 宠物 (401-440) ───
    "What's the best {pet} breed for a {level} owner?",
    "How do I care for a {pet} in {season}?",
    "What should I feed my {pet} for {goal}?",
    "How do I train my {pet} to {goal}?",
    "What {num} toys keep {pet}s entertained?",
    "How do I introduce a {pet} to my {relation}?",
    "What's the best way to groom a {pet}?",
    "How do I find a good vet for my {pet}?",
    "What {num} vet visits does a {pet} need yearly?",
    "How do I help my {pet} adjust to a new home?",
    "What's the difference between {pet} breeds?",
    "How do I teach my {pet} basic commands?",
    "What {num} signs show my {pet} is healthy?",
    "How much exercise does a {pet} need?",
    "What {pet} food brands do you recommend?",
    "How do I deal with {pet} behavior problems?",
    "What's the average lifespan of a {pet}?",
    "How do I travel safely with my {pet}?",
    "What {num} common health issues affect {pet}s?",
    "How do I socialise my {pet} with other animals?",
    "What {pet} is best for apartment living?",
    "How do I prepare my home for a new {pet}?",
    "What {num} supplies do I need for a {pet}?",
    "How do I know if my {pet} is {emotion}?",
    "What's the best age to adopt a {pet}?",
    "How do I help my {pet} cope with {season}?",
    "What {num} training methods work for {pet}s?",
    "How do I choose between {pet} and {pet}?",
    "What's the cost of owning a {pet} over its lifetime?",
    "How do I introduce my {pet} to children?",
    "What {num} rescues in {city} have {pet}s available?",
    "How do I know if my {pet} needs more attention?",
    "What's the best diet for a {pet} with {goal}?",
    "How do I keep my {pet} safe during {season}?",
    "What {num} enrichment activities for {pet}s?",
    "How do I handle pet allergies in my family?",
    # ─── 科学/学科 (441-480) ───
    "Can you explain {subject} in simple terms?",
    "What are the latest breakthroughs in {subject}?",
    "How does {subject} impact our daily lives?",
    "What {num} concepts in {subject} should everyone know?",
    "How do I start learning {subject} as a {level}?",
    "What's the history of {subject}?",
    "How does {subject} connect to other fields?",
    "What {num} careers use {subject}?",
    "Who are the most influential {subject} researchers?",
    "How has {subject} changed in the last decade?",
    "What are the ethical questions in {subject}?",
    "How do I pursue {subject} as a hobby?",
    "What {num} books would you recommend for {subject}?",
    "What's the difference between {subject} and {subject}?",
    "How does {subject} relate to {industry}?",
    "What {num} experiments can I do to learn {subject}?",
    "How do I stay updated on {subject} research?",
    "What makes {subject} difficult for {level} learners?",
    "How does {subject} explain {phenomenon}?",
    "What {num} online courses teach {subject}?",
    "What are the big unanswered questions in {subject}?",
    "How do I apply {subject} to real-world problems?",
    "What {num} documentaries about {subject} are must-watch?",
    "How does {subject} intersect with {subject}?",
    "What's the best way to study {subject}?",
    "What {num} terms define {subject}?",
    "How do experts in {subject} think?",
    "What tools help with learning {subject}?",
    "How does {subject} affect policy in {country}?",
    "What {num} podcasts cover {subject}?",
    # ─── 兴趣爱好 (481-520) ───
    "How do I start {hobby} as a {level}?",
    "What {num} tips for {hobby} beginners?",
    "What's the best equipment for {hobby}?",
    "How do I improve at {hobby} to {goal}?",
    "What {hobby} supplies do I need as a {level}?",
    "How do I find a community for {hobby} in {city}?",
    "What's the cost of getting into {hobby}?",
    "How does {hobby} help with {emotion}?",
    "What {num} projects should a {level} try in {hobby}?",
    "How do I stay motivated with {hobby}?",
    "What famous {hobby}ists should I follow?",
    "How much time should I spend on {hobby} to {goal}?",
    "What's the best {hobby} for relaxation?",
    "How do I turn {hobby} into a side hustle?",
    "What {num} YouTube channels teach {hobby}?",
    "How do I choose between {hobby} and {hobby}?",
    "What's the history of {hobby}?",
    "How does {hobby} benefit mental health?",
    "What {num} common mistakes do {level} {hobby}ists make?",
    "How do I find inspiration for {hobby} projects?",
    "What {hobby} works well for {goal}?",
    "How do I display or share my {hobby} work?",
    "What {num} techniques improve {hobby} skills?",
    "How do I teach {hobby} to others?",
    "What's the best way to practice {hobby} daily?",
    "What {num} online communities exist for {hobby}?",
    "How do I find time for {hobby} with a busy schedule?",
    "What {hobby} events happen in {city}?",
    "How do I choose what to {hobby} next?",
    "What's the most satisfying part of {hobby}?",
    # ─── 中文模板 (521-600) ───
    "我想学{lang}，应该从哪里开始？",
    "作为{level}，如何快速掌握{fw}？",
    "{tech}在{industry}行业中的应用前景如何？",
    "帮我推荐几个适合{level}的{lang}学习资源",
    "{city}有哪些适合{level}的{tech}工作机会？",
    "如何用{lang}实现{tech}？",
    "{industry}行业的{tech}发展趋势是什么？",
    "学习{lang}需要多长时间才能达到{level}水平？",
    "哪些{tech}工具最适合{fw}开发？",
    "作为{job}，我应该如何提升{skill}？",
    "请给我推荐几本{lang}的入门书籍",
    "{tech}和{tech}，哪个更适合{industry}？",
    "如何在{period}内学会{lang}？",
    "{city}的{tech}人才需求量大吗？",
    "请解释一下{tech}的工作原理",
    "我应该选择{lang}还是{lang}作为第一门编程语言？",
    "哪些{fw}最适合开发{industry}应用？",
    "学习{tech}的最佳实践是什么？",
    "请推荐几个高质量的{lang}开源项目",
    "{tech}领域的常见面试题有哪些？",
    "如何优化{lang}代码的性能？",
    "{industry}数字化转型需要哪些{tech}能力？",
    "帮我写一个简单的{lang}程序实现{tech}",
    "{tech}在未来会被AI取代吗？",
    "哪些{tech}认证在{industry}最有用？",
    "如何从零开始学习{lang}？",
    "{tech}在{industry}中的最佳使用场景是什么？",
    "请推荐适合{level}的{tech}课程",
    "如何评估{tech}解决方案的优劣？",
    "{job}需要掌握哪些{tech}技能？",
    "我想学习{skill}，有什么建议吗？",
    "作为{level}，如何准备{tech}面试？",
    "{industry}的{tech}薪资水平如何？",
    "请推荐几部适合{level}的{genre}书籍",
    "什么运动对{goal}最有效？",
    "作为{level}，如何开始{sport}？",
    "帮我制定一个{period}的{goal}计划",
    "哪些{sport}动作可以锻炼{body}？",
    "如何避免{sport}运动中的常见伤病？",
    "请推荐几款适合{level}的健身App",
    "怎样在{period}内达到{goal}？",
    "{city}有哪些适合{sport}的场地？",
    "运动前应该吃什么来帮助{goal}？",
    "如何克服运动时的{emotion}情绪？",
    "{job}如何利用运动来提升{goal}？",
    "请推荐几本关于{subject}的入门书籍",
    "{subject}和{subject}有什么区别？",
    "如何培养对{subject}的兴趣？",
    "{subject}领域的最新研究进展是什么？",
    "学习{subject}需要哪些基础知识？",
    "{city}的{subject}研究方向有哪些优势？",
    "如何将{subject}应用到实际生活中？",
    "帮我解释一下{subject}的核心概念",
    "{subject}对{industry}有什么影响？",
    "哪些{subject}细分方向更有前景？",
    "作为{level}，如何深入学习{subject}？",
    "{period}内可以掌握{subject}到什么程度？",
    "请推荐{subject}领域值得关注的学者",
    "跨学科学习{subject}和{subject}有价值吗？",
    "我想去{city}旅游，{period}时间够吗？",
    "{city}有哪些必去的景点？",
    "{city}的最佳旅行季节是什么时候？",
    "请推荐{city}的特色美食",
    "如何规划{city}的自由行路线？",
    "{country}旅游有什么需要注意的？",
    "去{city}旅游要准备什么签证材料？",
    "{city}有哪些小众但值得去的地方？",
    "如何买到便宜的{city}机票？",
    "{season}去{city}旅游合适吗？",
    "请推荐{city}适合{level}的住宿",
    "在{city}如何避免游客陷阱？",
    "{country}有哪些值得一去的城市？",
    "如何深度体验{city}的本地文化？",
    "{city}的公共交通方便吗？",
    "第一次养{pet}需要注意什么？",
    "如何训练{pet}定点上厕所？",
    "{pet}挑食怎么办？",
    "哪种{pet}最适合公寓饲养？",
    "{pet}的疫苗接种计划是什么？",
    "如何判断{pet}是否生病了？",
    "{pet}应该吃什么牌子的粮食？",
    "如何给{pet}选择合适的玩具？",
    "{pet}掉毛严重怎么处理？",
    "多大年龄的{pet}最适合领养？",
    "在{season}养{pet}需要注意什么？",
    # ─── 中文追问模板 (601-648) ───
    "能详细说说吗？",
    "有什么替代方案吗？",
    "大概需要多长时间？",
    "预算有限的话怎么办？",
    "有更简单的方法吗？",
    "最常见的错误是什么？",
    "有什么好的学习资源吗？",
    "和其他方法相比怎么样？",
    "我应该先关注什么？",
    "能给我一个具体的例子吗？",
    "有什么工具或APP推荐吗？",
    "大概需要多少钱？",
    "适合完全新手吗？",
    "如何保持动力？",
    "我能期待什么样的结果？",
    "如何衡量进步？",
    "专业人士会建议什么？",
    "有什么风险或缺点吗？",
    "这些年有什么变化吗？",
    "专家们对此有什么分歧？",
    "能解释一下背后的原理吗？",
    "最快多久能看到效果？",
    "有什么书籍或播客推荐吗？",
    "如何找到这个领域的社区？",
    "最需要记住的一点是什么？",
    "如何避免常见的坑？",
    "有相关的APP吗？",
    "下一步建议做什么？",
    "地点或气候会影响这个吗？",
    "有什么好的在线课程推荐吗？",
    "在{season}做什么{hobby}最有意思？",
    "{emotion}的时候听{music}真的能改善心情吗？",
]

# ============================================================
#  追问模板池
# ============================================================
FU: List[str] = [
    "Can you tell me more about that?",
    "What about alternatives or substitutes?",
    "How long would that take approximately?",
    "Any budget-friendly options you'd recommend?",
    "Is there a simpler way to approach this?",
    "What are the most common mistakes to avoid?",
    "Any good resources or tutorials for this?",
    "How does this compare to other approaches?",
    "What should I prioritize first?",
    "Can you give me a specific example?",
    "What tools or apps would help with this?",
    "How much would that cost roughly?",
    "Is this suitable for complete beginners?",
    "Any tips for staying motivated with this?",
    "What results can I realistically expect?",
    "How do I measure my progress?",
    "What would a professional recommend?",
    "Are there any risks or downsides?",
    "How has this changed in recent years?",
    "What do experts disagree about here?",
    "Can you explain the science behind that?",
    "What's the quickest way to see results?",
    "Any books or podcasts on this topic?",
    "How do I find a community for this?",
    "What's the single most important thing to remember?",
    "How do I avoid common pitfalls?",
    "Is there an app for that?",
    "What would you suggest for the next step?",
    "How does location or climate affect this?",
    "Any online courses you'd recommend?",
    "有没有更详细的建议？",
    "这个适合新手吗？",
    "需要花多少钱？",
    "有什么需要特别注意的？",
    "有推荐的资源吗？",
    "大概需要多长时间？",
    "有没有更简单的方法？",
    "效果怎么样？",
    "有什么替代方案？",
    "怎么衡量进步？",
]

# ============================================================
#  语言分池 — 确保追问语言与首轮一致
# ============================================================
_CN_CHARS = re.compile(r"[\u4e00-\u9fff]")
Q_EN: List[str] = [q for q in Q if not _CN_CHARS.search(q)]
Q_CN: List[str] = [q for q in Q if _CN_CHARS.search(q)]

FU_EN: List[str] = [f for f in FU if not _CN_CHARS.search(f)]
FU_CN: List[str] = [f for f in FU if _CN_CHARS.search(f)]

# 话题关键词映射 — 用于日志里显示可读话题名
_TOPIC_KEYWORDS = {
    "cooking": ["recipe","dish","ingredient","cuisine","cook","kitchen","meal","spice"],
    "programming": ["code","language","framework","developer","API","deploy","debug","software"],
    "fitness": ["exercise","workout","muscle","cardio","gym","stretch","body","athlete"],
    "travel": ["trip","travel","visit","itinerary","hotel","tourist","flight","backpack"],
    "books": ["book","read","novel","fiction","author","story","writing","literary"],
    "music": ["music","instrument","album","song","band","concert","melody","chord"],
    "nature": ["animal","wildlife","ecosystem","species","habitat","endangered","nature"],
    "space": ["planet","Mars","Jupiter","space","orbit","astronaut","telescope","galaxy"],
    "career": ["job","career","salary","industry","interview","resume","hire","profession"],
    "emotions": ["feeling","emotion","anxiety","stress","mental","therapy","mindful"],
    "pets": ["pet","dog","cat","vet","puppy","kitten","breed","train"],
    "science": ["physics","biology","chemistry","theory","experiment","research","discover"],
    "hobbies": ["hobby","craft","DIY","garden","paint","knit","collect"],
    "food": ["food","restaurant","street food","market","cafe","coffee","tea","brew"],
}