| :root { | |
| --primary: #4285f4; | |
| --dark: #1a1a2e; | |
| --light: #f5f5f5; | |
| --gray: #e6e6e6; | |
| --text: #333; | |
| } | |
| * { | |
| margin: 0; | |
| padding: 0; | |
| box-sizing: border-box; | |
| } | |
| body { | |
| font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; | |
| line-height: 1.6; | |
| color: var(--text); | |
| background-color: var(--light); | |
| } | |
| .container { | |
| width: 90%; | |
| max-width: 1200px; | |
| margin: 0 auto; | |
| padding: 0 20px; | |
| } | |
| .header { | |
| background-color: var(--dark); | |
| color: white; | |
| padding: 2rem 0; | |
| text-align: center; | |
| } | |
| .header h1 { | |
| font-size: 3rem; | |
| margin-bottom: 0.5rem; | |
| } | |
| .header h1 span { | |
| color: var(--primary); | |
| } | |
| .header p { | |
| font-size: 1.2rem; | |
| opacity: 0.9; | |
| } | |
| .navbar { | |
| background-color: white; | |
| box-shadow: 0 2px 5px rgba(0,0,0,0.1); | |
| position: sticky; | |
| top: 0; | |
| z-index: 100; | |
| } | |
| .navbar ul { | |
| display: flex; | |
| list-style: none; | |
| } | |
| .navbar a { | |
| display: block; | |
| padding: 1.2rem 1.5rem; | |
| text-decoration: none; | |
| color: var(--text); | |
| font-weight: 500; | |
| transition: all 0.3s ease; | |
| } | |
| .navbar a:hover { | |
| color: var(--primary); | |
| } | |
| main { | |
| padding: 2rem 0; | |
| } | |
| section { | |
| margin-bottom: 3rem; | |
| } | |
| h2 { | |
| font-size: 2rem; | |
| margin-bottom: 1.5rem; | |
| padding-bottom: 0.5rem; | |
| border-bottom: 2px solid var(--gray); | |
| } | |
| h3 { | |
| font-size: 1.5rem; | |
| margin: 1.5rem 0 1rem; | |
| } | |
| pre { | |
| background-color: #f8f8f8; | |
| border-radius: 4px; | |
| padding: 1rem; | |
| overflow-x: auto; | |
| margin: 1rem 0; | |
| } | |
| code { | |
| font-family: 'Courier New', Courier, monospace; | |
| font-size: 0.9rem; | |
| } | |
| .code-tabs { | |
| display: flex; | |
| margin-bottom: -1px; | |
| } | |
| .code-tabs button { | |
| padding: 0.5rem 1rem; | |
| background: var(--gray); | |
| border: none; | |
| cursor: pointer; | |
| border-radius: 4px 4px 0 0; | |
| margin-right: 5px; | |
| } | |
| .code-tabs button.active { | |
| background: #f8f8f8; | |
| } | |
| .code-content { | |
| display: none; | |
| } | |
| .code-content.active { | |
| display: block; | |
| } | |
| .example-grid { | |
| display: grid; | |
| grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); | |
| gap: 1.5rem; | |
| } | |
| .example-card { | |
| background: white; | |
| border-radius: 8px; | |
| padding: 1.5rem; | |
| box-shadow: 0 2px 10px rgba(0,0,0,0.05); | |
| } | |
| .example-output { | |
| min-height: 100px; | |
| border: 1px dashed var(--gray); | |
| margin: 1rem 0; | |
| padding: 1rem; | |
| border-radius: 4px; | |
| } | |
| .run-example { | |
| background: var(--primary); | |
| color: white; | |
| border: none; | |
| padding: 0.5rem 1rem; | |
| border-radius: 4px; | |
| cursor: pointer; | |
| margin-bottom: 1rem; | |
| transition: background 0.3s; | |
| } | |
| .run-example:hover { | |
| background: #3367d6; | |
| } | |
| .api-table { | |
| overflow-x: auto; | |
| } | |
| table { | |
| width: 100%; | |
| border-collapse: collapse; | |
| margin: 1rem 0; | |
| } | |
| th, td { | |
| padding: 0.75rem; | |
| text-align: left; | |
| border-bottom: 1px solid var(--gray); | |
| } | |
| th { | |
| background-color: var(--primary); | |
| color: white; | |
| } | |
| tr:nth-child(even) { | |
| background-color: #f9f9f9; | |
| } | |
| .download-options { | |
| display: flex; | |
| gap: 1rem; | |
| flex-wrap: wrap; | |
| } | |
| .download-btn { | |
| display: inline-block; | |
| background: var(--primary); | |
| color: white; | |
| padding: 0.75rem 1.5rem; | |
| text-decoration: none; | |
| border-radius: 4px; | |
| transition: background 0.3s; | |
| } | |
| .download-btn:hover { | |
| background: #3367d6; | |
| } | |
| footer { | |
| background: var(--dark); | |
| color: white; | |
| text-align: center; | |
| padding: 1.5rem 0; | |
| margin-top: 2rem; | |
| } | |
| @media (max-width: 768px) { | |
| .navbar ul { | |
| flex-direction: column; | |
| } | |
| .example-grid { | |
| grid-template-columns: 1fr; | |
| } | |
| } |