/* REN GOLF Unified Design System & Stylesheet - theme.css */

:root {
    /* Color Palette */
    --primary: #0A2E1A;              /* 經典高爾夫英國賽車綠 */
    --primary-hover: #14492A;
    --primary-light: #E6EFEA;
    --accent: #00E676;               /* AI 雷射薄荷綠 */
    --accent-glow: rgba(0, 230, 118, 0.15);
    --text-main: #1D2D24;            /* 深灰綠 */
    --text-muted: #586B61;           /* 灰綠色 */
    --bg-body: #FAFBF8;              /* 暖象牙白 */
    --bg-card: #FFFFFF;
    --gold: #F9A825;
    
    /* Layout Tokens */
    --border-light: rgba(15, 59, 36, 0.08);
    --border-hover: rgba(10, 46, 26, 0.2);
    --border-focus: rgba(0, 230, 118, 0.5);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    
    /* Animations & Shadows */
    --shadow-subtle: 0 8px 32px rgba(10, 46, 26, 0.02);
    --shadow-hover: 0 12px 40px rgba(10, 46, 26, 0.05);
    --ease-out-quint: cubic-bezier(0.23, 1, 0.32, 1);
    --transition-base: all 0.35s var(--ease-out-quint);
}

/* Global Reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans TC', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.7;
    overflow-x: hidden;
    padding-top: 54px !important; /* Navbar Safe Distance */
}

/* Common Layout Container */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Typography */
h1, h2, h3, h4 {
    color: var(--primary);
    font-weight: 700;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition-base);
}

a:hover {
    color: var(--accent);
}

/* Code & Data Fonts */
.data-mono {
    font-family: 'JetBrains Mono', 'SF Mono', Fira Code, monospace;
}

/* Button Styles */
.btn-classic {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: var(--primary);
    color: #FFFFFF !important;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(10, 46, 26, 0.15);
    transition: var(--transition-base);
}

.btn-classic:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(10, 46, 26, 0.25);
}

/* Blueprint Grid Background (Subtle AI vibe) */
.bg-blueprint {
    background-image: 
      linear-gradient(rgba(15, 59, 36, 0.02) 1px, transparent 1px),
      linear-gradient(90deg, rgba(15, 59, 36, 0.02) 1px, transparent 1px);
    background-size: 24px 24px;
}

/* Card Design Patterns */
.card-classic {
    background-color: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-subtle);
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
}

.card-classic:hover {
    border-color: var(--border-hover);
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

/* Accent highlight card for recommendation or active status */
.card-classic.card-highlight {
    border-color: rgba(10, 46, 26, 0.15);
    background: linear-gradient(180deg, var(--bg-card) 0%, var(--primary-light) 100%);
}

.card-classic.card-highlight::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background-color: var(--accent);
}

/* Scanner overlay line for AI scanning effect */
.scan-line {
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background-color: var(--accent);
    box-shadow: 0 0 8px var(--accent);
    opacity: 0.8;
}

/* Minimalist Form Elements */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.9em;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-light);
    background-color: var(--bg-card);
    border-radius: var(--radius-sm);
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.95em;
    transition: var(--transition-base);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* Footer Section */
footer.site-footer {
    background-color: var(--primary);
    color: rgba(255, 255, 255, 0.6);
    padding: 60px 20px 30px;
    text-align: center;
    border-top: 1px solid var(--border-light);
}

footer.site-footer a {
    color: rgba(255, 255, 255, 0.7);
    margin: 0 8px;
    font-size: 0.85em;
}

footer.site-footer a:hover {
    color: var(--accent);
}

footer.site-footer p {
    font-size: 0.8em;
    margin-top: 12px;
    opacity: 0.5;
}

/* --- index.html layout support --- */
.qr-container { display: flex; gap: 24px; justify-content: center; margin-top: 20px; flex-wrap: wrap; }
.qr-box { 
    background: var(--bg-card); 
    padding: 12px; 
    border-radius: var(--radius-md); 
    box-shadow: var(--shadow-subtle); 
    text-align: center; 
    border: 1px solid var(--border-light); 
    transition: var(--transition-base); 
    width: 150px; 
    text-decoration: none; 
    display: block; 
    color: inherit; 
}
.qr-box:hover { 
    transform: translateY(-4px); 
    box-shadow: var(--shadow-hover); 
    border-color: var(--border-hover);
}
.qr-img { width: 100%; border-radius: var(--radius-sm); margin-bottom: 10px; display: block; }
.qr-btn { 
    display: inline-flex; 
    align-items: center; 
    justify-content: center; 
    gap: 6px; 
    background: var(--primary); 
    color: #fff; 
    font-size: 0.85em; 
    font-weight: bold; 
    text-decoration: none; 
    padding: 6px 12px; 
    border-radius: 50px; 
    width: 100%; 
    transition: var(--transition-base);
}
.qr-btn:hover {
    background: var(--primary-hover);
}
.qr-btn svg { width: 14px; height: 14px; }

.hero {
    background: radial-gradient(ellipse at center, #ffffff 0%, var(--primary-light) 100%);
    padding: 100px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero-inner { position: relative; z-index: 1; max-width: 800px; margin: 0 auto; }
.hero img { width: 110px; height: 110px; border-radius: var(--radius-lg); box-shadow: var(--shadow-hover); margin-bottom: 24px; }
.hero h1 { font-size: clamp(2.6em, 7vw, 4.2em); font-weight: 700; line-height: 1.15; margin-bottom: 16px; color: var(--primary); letter-spacing: 1px; }
.hero h1 .acc { color: var(--gold); font-style: italic; font-size: 1.5em; display: inline-block; transform: translateY(-0.05em); margin: 0 4px; font-weight: 800; }
.hero .tag { font-size: clamp(1.05em, 2.5vw, 1.2em); font-weight: 500; color: var(--text-muted); margin-bottom: 44px; letter-spacing: 1px; }
.hero-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* 傳統 btn-green 保留，對齊新風格 */
.btn-green { 
    background-color: var(--primary); 
    color: #fff; 
    border: none; 
    padding: 16px 42px; 
    border-radius: 50px; 
    font-size: 1.1em; 
    font-weight: 700; 
    cursor: pointer; 
    box-shadow: 0 8px 24px rgba(10, 46, 26, 0.15); 
    transition: var(--transition-base); 
    text-decoration: none; 
    display: inline-flex; 
    align-items: center; 
    gap: 8px; 
    font-family: inherit; 
}
.btn-green:hover { 
    transform: translateY(-3px); 
    box-shadow: 0 12px 32px rgba(10, 46, 26, 0.25); 
    background-color: var(--primary-hover); 
}

.sbar { background: var(--bg-card); padding: 32px 20px; border-bottom: 1px solid var(--border-light); }
.sbar-in { max-width: 900px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.sbar-in .n { font-size: 2.2em; font-weight: 900; color: var(--primary); line-height: 1; }
.sbar-in .l { font-size: 0.82em; color: var(--text-muted); margin-top: 6px; }

section { padding: 80px 20px; }
.si { max-width: 1100px; margin: 0 auto; }
.slabel { display: inline-block; background: var(--primary-light); color: var(--primary); padding: 5px 14px; border-radius: 50px; font-size: 0.8em; font-weight: 700; letter-spacing: 1px; margin-bottom: 14px; }
.stitle { font-size: clamp(1.6em, 4vw, 2.4em); font-weight: 800; color: var(--primary); margin-bottom: 14px; line-height: 1.25; }
.sdesc { color: var(--text-muted); font-size: 1.05em; max-width: 640px; margin-bottom: 50px; }

/* AI 辨識 */
.ocr-g { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.ocr-c { 
    background: var(--bg-card); 
    border-radius: var(--radius-md); 
    padding: 28px; 
    border: 1px solid var(--border-light); 
    text-align: center; 
    transition: var(--transition-base); 
}
.ocr-c:hover { 
    border-color: var(--primary); 
    transform: translateY(-4px); 
    box-shadow: var(--shadow-hover); 
}
.ocr-c .ic { font-size: 2.5em; margin-bottom: 12px; }
.ocr-c h4 { font-size: 1em; font-weight: 700; margin-bottom: 8px; color: var(--text-main); }
.ocr-c p { font-size: 0.85em; color: var(--text-muted); }
.ocr-c.best { 
    border-color: var(--primary); 
    background: var(--primary-light); 
}
.bb { display: inline-block; background: var(--primary); color: #fff; font-size: 0.7em; padding: 2px 10px; border-radius: 50px; margin-bottom: 8px; font-weight: 700; }

/* 個人功能 */
.fg { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.fc { 
    background: var(--bg-card); 
    border: 1px solid var(--border-light); 
    border-radius: var(--radius-md); 
    padding: 30px; 
    transition: var(--transition-base); 
}
.fc:hover { 
    transform: translateY(-5px); 
    box-shadow: var(--shadow-hover); 
    border-color: var(--border-hover);
}
.fc .ci { font-size: 2.2em; margin-bottom: 14px; display: block; }
.fc h3 { font-size: 1.1em; font-weight: 700; color: var(--text-main); margin-bottom: 10px; }
.fc p { color: var(--text-muted); font-size: 0.9em; line-height: 1.65; }
.fc .ct { display: inline-block; background: var(--primary-light); color: var(--primary); font-size: 0.72em; font-weight: 700; padding: 3px 10px; border-radius: 50px; margin-top: 12px; }
.fc.hl { 
    border-color: var(--accent); 
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--bg-card) 100%); 
}

/* 球技指標 */
.sg { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-top: 40px; }
.sc { background: var(--primary-light); border-radius: var(--radius-md); padding: 22px 18px; text-align: center; }
.sc .i { font-size: 1.8em; margin-bottom: 8px; }
.sc h4 { font-size: 0.9em; font-weight: 700; color: var(--primary); margin-bottom: 4px; }
.sc p { font-size: 0.78em; color: var(--text-muted); }

/* 遊戲模式 */
.gmg { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; margin-top: 40px; }
.gmc { 
    background: var(--bg-card); 
    border-radius: var(--radius-md); 
    padding: 22px; 
    border: 1px solid var(--border-light); 
    transition: var(--transition-base); 
}
.gmc:hover { 
    background: var(--bg-card); 
    box-shadow: var(--shadow-hover); 
    transform: translateY(-3px); 
    border-color: var(--border-hover);
}
.gmc .gi { font-size: 1.8em; margin-bottom: 8px; }
.gmc h4 { font-size: 0.95em; font-weight: 700; margin-bottom: 6px; }
.gmc p { font-size: 0.82em; color: var(--text-muted); }
.gp-tag { display: inline-block; background: var(--primary-light); color: var(--primary); font-size: 0.7em; font-weight: 700; padding: 2px 8px; border-radius: 50px; margin-top: 8px; }

/* 球隊管理 */
.tbg { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 40px; }
.tbc { 
    background: var(--bg-card); 
    border-radius: var(--radius-md); 
    border: 1px solid var(--border-light); 
    padding: 36px; 
    box-shadow: var(--shadow-subtle); 
    transition: var(--transition-base); 
}
.tbc:hover { transform: translateY(-4px); border-color: var(--border-hover); box-shadow: var(--shadow-hover); }
.tbc .ti { font-size: 2.5em; margin-bottom: 16px; }
.tbc h3 { font-size: 1.2em; font-weight: 800; margin-bottom: 12px; color: var(--primary); }
.tbc ul { padding-left: 20px; }
.tbc li { font-size: 0.9em; color: var(--text-muted); margin-bottom: 6px; }

/* Apple Watch 區 */
.watch-sec { 
    background: linear-gradient(145deg, #092013 0%, #153A22 60%, #1A2E1E 100%); 
    color: #fff; 
}
.watch-sec .slabel { background: rgba(255, 255, 255, 0.12); color: rgba(255, 255, 255, 0.85); }
.watch-sec .stitle { color: #fff; }
.watch-sec .sdesc { color: rgba(255, 255, 255, 0.65); }
.wfg { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-top: 40px; }
.wfc { 
    background: rgba(255, 255, 255, 0.05); 
    border: 1px solid rgba(255, 255, 255, 0.1); 
    border-radius: var(--radius-md); 
    padding: 26px; 
    transition: var(--transition-base); 
}
.wfc:hover { 
    background: rgba(255, 255, 255, 0.08); 
    transform: translateY(-3px); 
    border-color: rgba(0, 230, 118, 0.4);
}
.wfc .wi { font-size: 1.8em; margin-bottom: 12px; }
.wfc h4 { font-size: 0.95em; font-weight: 700; margin-bottom: 8px; color: rgba(255, 255, 255, 0.92); }
.wfc p { font-size: 0.85em; color: rgba(255, 255, 255, 0.55); }
.wd { margin-top: 32px; padding: 16px 24px; background: rgba(249, 168, 37, 0.12); border: 1px solid rgba(249, 168, 37, 0.3); border-radius: 12px; font-size: 0.85em; color: rgba(255, 255, 255, 0.7); }

/* 方案選擇 */
.plg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.plc { 
    background: var(--bg-card); 
    border-radius: var(--radius-md); 
    border: 1px solid var(--border-light); 
    padding: 32px; 
    text-align: center; 
    transition: var(--transition-base); 
    position: relative; 
}
.plc:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: var(--border-hover); }
.plc.rec { 
    border-color: var(--primary); 
    box-shadow: 0 0 0 4px var(--accent-glow); 
}
.pbadge { 
    position: absolute; 
    top: -14px; 
    left: 50%; 
    transform: translateX(-50%); 
    background: var(--primary); 
    color: #fff; 
    font-size: 0.72em; 
    font-weight: 700; 
    padding: 4px 16px; 
    border-radius: 50px; 
}
.pn { font-size: 1.2em; font-weight: 800; margin-bottom: 8px; color: var(--text-main); }
.pp { font-size: 2em; font-weight: 900; color: var(--primary); margin-bottom: 4px; }
.pper { font-size: 0.8em; color: var(--text-muted); margin-bottom: 24px; }
.pfl { text-align: left; list-style: none; }
.pfl li { font-size: 0.88em; color: var(--text-muted); padding: 7px 0; border-bottom: 1px solid var(--border-light); display: flex; align-items: flex-start; gap: 8px; }
.ck { color: var(--accent); flex-shrink: 0; font-weight: bold; }
.cx { color: #ccc; flex-shrink: 0; }
.pcta { 
    display: block; 
    margin-top: 24px; 
    padding: 12px; 
    border-radius: 50px; 
    background: var(--primary); 
    color: #fff !important; 
    font-weight: 700; 
    text-align: center; 
    text-decoration: none; 
    font-size: 0.9em; 
}
.plc.rec .pcta { background: var(--primary-hover); }
.pcta.fc2 { background: var(--primary-light); color: var(--primary) !important; }

/* 球隊方案 */
.tpg { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tpc { 
    background: var(--bg-card); 
    border-radius: var(--radius-md); 
    border: 1px solid var(--border-light); 
    padding: 28px 20px; 
    text-align: center; 
    transition: var(--transition-base); 
    position: relative; 
}
.tpc:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: var(--border-hover); }
.tpc.rec { border-color: var(--primary); }
.tpn { font-size: 1.0em; font-weight: 800; margin-bottom: 8px; }
.tpl { font-size: 2em; font-weight: 900; color: var(--primary); line-height: 1; }
.tpll { font-size: 0.75em; color: var(--text-muted); margin-bottom: 16px; }
.tpp { font-size: 1.2em; font-weight: 700; color: var(--text-main); }
.tpper { font-size: 0.75em; color: var(--text-muted); }

/* 最新消息區塊 */
.ng { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.nc { 
    background: var(--bg-card); 
    border-radius: var(--radius-md); 
    overflow: hidden; 
    border: 1px solid var(--border-light); 
    transition: var(--transition-base); 
    color: inherit; 
    display: block; 
}
.nc:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: var(--border-hover); }
.ni { width: 100%; height: 160px; background: linear-gradient(135deg, var(--primary), var(--primary-hover)); display: flex; align-items: center; justify-content: center; font-size: 3em; color: #fff; }
.nb { padding: 22px; }
.nd { font-size: 0.78em; color: var(--text-muted); margin-bottom: 8px; }
.nt { font-size: 0.95em; font-weight: 700; color: var(--text-main); line-height: 1.45; margin-bottom: 8px; }
.nx { font-size: 0.82em; color: var(--text-muted); line-height: 1.55; }

/* FAQ */
.faq-l { max-width: 760px; margin: 40px auto 0; }
.fq { border-bottom: 1px solid var(--border-light); padding: 20px 0; }
.fq .q { font-weight: 700; font-size: 0.97em; color: var(--text-main); margin-bottom: 10px; }
.fq .a { font-size: 0.9em; color: var(--text-muted); line-height: 1.7; }

/* RWD Media Queries */
@media(max-width:768px){
    .sbar-in, .plg { grid-template-columns: repeat(2, 1fr); }
    .ocr-g, .tbg { grid-template-columns: 1fr; }
    .tpg, .ng { grid-template-columns: 1fr 1fr; }
}
@media(max-width:480px){
    .tpg, .ng { grid-template-columns: 1fr; }
}
